Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
Back to tool/Back to issues
#160428·elasticsearch

[ML] Support for Tabular Foundation Models (TabFM / TabPFN) for Zero-Shot and In-Context Classification

Author: lockness-KoCreated Sep 28, 2026Updated Sep 28, 2026
Labels>enhancement:mlTeam:ML

Description

Feature Request

Add native support in Elasticsearch for tabular foundation transformer models such as TabFM (Google Research) and TabPFN (Prior-Labs) to enable zero-shot and few-shot classification directly inside Elasticsearch without requiring external supervised training pipelines for every classification task.


Context & Use Case (Story)

We classify and enrich security-relevant string and entity fields to add threat context, specifically focusing on fields like:

  • user_agent.original (e.g., suspicious/anomalous client identification)
  • dns.question.name (e.g., DGA detection, suspicious or tunneling domains)
  • url.original (e.g., malicious URL categorization)

In the past, adding classification context for each of these distinct targets required building custom supervised models from scratch:

  1. Manually gathering and cleaning labeled datasets for each specific task (domains, user agents, URLs).
  2. Using AutoGluon externally to train tabular/tree-based models (such as XGBoost).
  3. Exporting the trained models and uploading them into Elasticsearch via eland / the Trained Models API.

This workflow is time-consuming and labor-intensive because every new classification task requires repeating the data collection, cleaning, and training pipeline externally before we can produce classifications. Having a tabular foundation model that supports zero-shot or few-shot in-context learning would eliminate this per-task training overhead.


What We Had to Do Instead (Current Workaround & Pain Points)

Without native tabular foundation model support, our workflow is constrained to:

  • Heavy Data Preparation Overhead: Spending significant manual effort sourcing, labeling, and sanitizing datasets for every single field we want to classify.
  • External Training Loops: Relying on external Python/AutoGluon environments to train XGBoost models, convert them, and import them into Elasticsearch.
  • Rigid Model Lifecycles: When new threat vectors or variations appear, we cannot simply provide a few reference examples; we have to re-gather data and re-run the full AutoGluon training loop.

Proposed Execution & Workflow Ideas

  1. Execution Environments:
    • Ingest Pipelines: Run zero-shot / few-shot tabular inference via an inference processor to enrich documents as they are ingested.
    • ES|QL / Query-Time: Evaluate classifications on the fly within ES|QL queries or search workflows.
  2. In-Context / Reference Data via Elasticsearch Indices:
    • Tabular foundation models (like TabPFN) excel at learning from a small set of prompt/reference examples. Elasticsearch could supply this context directly using a lookup index or dedicated reference index queried via KQL or ES|QL.
  3. End-to-End In-Cluster ML Pathway:
    • This opens a path to configuring custom classification tasks entirely inside Elasticsearch—potentially leveraging tools like Agent Builder for automated dataset gathering and cleaning, with no need to leave Elasticsearch for external model training.

Source: elastic/elasticsearch

View original on GitHubView discussion on GitHub