Agentic Search Spaces for Tabular Machine Learning

Renat Sergazinov, Artem Chistyakov, Sergey Pankevich, Artem BabenkoarXiv 2026

TL;DR

LLM-based agents can significantly boost tabular machine learning performance not by replacing traditional models, but by acting as automated search-space designers. By generating a diverse set of modular code candidates once per model family, they allow classical hyperparameter optimization (HPO) algorithms to discover superior, dataset-specific pipelines at zero extra tuning cost.

What Problem Does This Paper Address?

Tabular data remains the most common data modality in practical machine learning applications (finance, healthcare, retail), yet deep learning has struggled to dominate it the way it has text or vision. Most tabular ML models are released as "frozen recipes" with narrow, author-provided hyperparameter optimization (HPO) spaces.

While recent work has explored using LLM agents to write and iterate on ML code directly for a specific dataset (often called an "autoresearch loop"), this approach has major flaws: it is highly expensive ($20–$50 per dataset), struggles to optimize continuous numerical values like learning rates, and risks data contamination. The authors of this paper ask a clever alternative question: Can we use LLM agents to design better, broader HPO search spaces just once per model, and then let classical, cheap optimization algorithms do the heavy lifting for each dataset?

Methods

The authors introduce a two-stage framework that cleanly divides labor between LLMs and classical optimization algorithms:

  1. Stage 1: Agentic Search-Space Generation (Run Once Per Model): The LLM agent (such as Claude Code or OpenAI Codex) is provided with the base model's code and original paper abstract. It is tasked with generating up to 64 diverse, self-contained code implementations for five distinct pipeline modules: preprocessing, feature embeddings, architecture, training, and inference.
  2. Stage 2: Classical HPO (Run Per Dataset): These agent-generated code blocks are added as discrete, categorical choices into a massive, joint HPO search space. When a new dataset arrives, a standard black-box optimization algorithm (Optuna's univariate Tree-structured Parzen Estimator) jointly optimizes over these new categorical code options and the model's default numerical hyperparameters.
Figure 1: Method overview. Stage 1 runs once per base model: an LLM agent generates candidate sets H1, . . . , H5 for the five pipeline modules. Stage 2 runs on each new dataset: a classical HPO searches the joint space and returns a fitted pipeline.

Datasets

The approach was evaluated across a diverse suite of 45 datasets curated from the OpenML, TabReD, and TabArena benchmarks. The datasets span both regression (20) and classification (25) tasks, ranging in size from 768 to over 1.2 million rows, and from 5 to more than 1,500 features. The authors also validated their findings on the official 51-dataset TabArena-Lite benchmark.

Key Insights and Ideas

  • Play to Strengths: LLMs excel at discrete brainstorming—like suggesting a newly published activation function (GELU/GLU) or a recent optimizer (Lion). Conversely, classical algorithms like TPE are far superior at fine-tuning continuous numerical values (like weight decay or learning rate).
  • No Single Winner: An analysis of the winning pipelines showed that the optimal combination of modules is highly dataset-specific. The LLM agent's value isn't in finding one "perfect" model, but in providing a rich, reusable library of building blocks that HPO can tailor to individual datasets.
  • Unlocking Ensemble Diversity: While the expanded search spaces only marginally improved the absolute best single-model performance, they massively boosted ensemble performance. This is because the diverse code modules generate individual models with substantially less correlated predictions, making them perfect candidates for ensembling.

Key Results

The agent-augmented search spaces were tested across five prominent tabular model families: standard MLPs, TabM, LightGBM, RealMLP, and the TabICLv2 foundation model.

  • Consistent Performance Gains: The expanded search spaces improved nearly every model family across the 45 datasets. Average relative gains sat at 0.6% overall, but jumped to 2.0% on small-to-medium regression datasets.
  • Beating the Baselines: Ensembles drawn from the agentic spaces dominated the leaderboards. Notably, the ensemble over the agentic RealMLP space became the strongest single-family system in the study, outperformed only by the multi-model AutoGluon system.
  • Massive Cost Reductions: Because the LLM is only run once per model family rather than per dataset, the token cost is completely amortized. The authors estimate the agent generation cost at just ~$10 per model family, compared to the hundreds or thousands of dollars required by end-to-end autoresearch loops across a benchmark suite.
Figure 2: Aggregate metrics across 45 datasets for tuned individual models (top) and greedy ensembles (bottom). Individual models are tuned for 200 trials on small-to-medium datasets and 100 trials on large (agentic TabICLv2: 100 trials everywhere; default TabICLv2: not tuned); ensembles are built from pools of 100 (20 for large datasets) random configurations. All metrics are computed over the joint pool; improvement over MLP is the mean relative improvement on the dataset-native metrics with respect to the tuned base-space MLP†. Purple bars and the (A) suffix mark the agent-augmented spaces. Orange bars are AutoML systems. AutoGluon (+A) is AutoGluon with the agentic RealMLP and TabM†. Error bars are 95% confidence intervals across datasets.

Limitations and Future Work

Despite the strong results, the authors note several limitations:

  • Overfitting and Compute Overhead: Extremely large search spaces run the risk of overfitting the validation set. Furthermore, some agent-proposed modules (like test-time augmentation) can increase per-fit training times by up to 2.4×.
  • Code Safety: Because LLMs can generate code containing subtle bugs, human-in-the-loop verification is still required before deploying these search spaces into production.
  • Missed Semantic Opportunities: To prevent data leakage and keep costs low, the agent was intentionally blinded to the specific target datasets. However, this means the agent cannot suggest domain-specific feature engineering based on column names, which remains an open area for future hybrid approaches.

Summary updated

BibTeX
@misc{sergazinov2026agentic,
  author = {Renat Sergazinov and Artem Chistyakov and Sergey Pankevich and Artem Babenko},
  title = {{Agentic Search Spaces for Tabular Machine Learning}},
  year = {2026},
  eprint = {2609.16309},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.16309},
}
Figure