Are LLMs Good at Feature Engineering? Evidence from a Controlled Synthetic Benchmark

Viacheslav Surkov, Yasha Pushak, Ritesh Ahuja, Rafael Pires, Anne-Marie Kermarrec, Damien Hilloulin, Rhicheek Patra, Sungpack HongNeurIPS 2026 Evaluations and Datasets Track Poster 2026

TL;DR

Large Language Models (LLMs) are increasingly used to automate feature engineering on tabular data, but existing benchmarks mostly test them on static, shuffled datasets where they might just be recalling memorized patterns. This paper introduces TabGen, a controllable synthetic benchmark with temporal dynamics, distribution shifts, and a known ground-truth feature ceiling. Testing several LLM-based feature engineering workflows reveals a stark divide: hypothesis-driven analysis shines in stable environments, but when the data distribution shifts over time, almost all LLM methods overfit to the past and can actually perform worse than doing no feature engineering at all.

What Problem Does This Paper Address?

If you want to know whether an LLM is genuinely good at data science, standard tabular benchmarks won't give you a clean answer. Prevailing benchmarks typically assume independent and identically distributed (i.i.d.) rows, ignoring the messy reality of production data—where rows depend on past history (like a user's rolling average spend) and distributions drift over time (like seasonal buying habits).

Worse, real-world benchmarks—especially those pulled from Kaggle competitions—suffer from two major blind spots:

  1. Contamination: Winning Kaggle solutions may already be sitting in the LLM's training data, making it hard to tell genuine reasoning from memorization.
  2. No performance ceiling: Without knowing the true underlying features that generated the target, a negative result is ambiguous. Did the LLM fail to find the signal, or was there no signal to find?

Methods

To solve this, the authors built TabGen, a synthetic data generator that produces time-stamped binary classification datasets with two synchronized views:

  • The observable view ($X_O$): Anonymized columns (t, num_1, cat_1, etc.) that the feature-engineering pipeline actually sees.
  • The ground-truth view ($X_\star$): The exact features used to construct the target logits, computed deterministically from the observable history.

Because the target is sampled solely from $X_\star$ plus independent noise, $X_\star$ is Bayes-sufficient—no additional feature derived from $X_O$ can reduce Bayes risk. Running CatBoost on $X_\star$ gives a model-matched, finite-sample ceiling ($s_\star$), allowing the authors to measure normalized accuracy: the share of the performance gap between No-FE ($0$) and the ground-truth ceiling ($1$) that a method recovers.

Overview of TabGen generation

Using TabGen (with gpt-5-mini as the LLM and CatBoost as the downstream classifier), the authors evaluate four strategies:

  • No FE: CatBoost on the raw observable features.
  • CAAFE: An existing iterative, metric-guided LLM method adapted for time-aware cross-validation.
  • Codex: An autonomous coding agent given an end-to-end mandate to analyze data, engineer features, and iterate.
  • Analyze&Act (proposed): A structured, hypothesis-driven workflow that forces the LLM to (1) formulate concrete structural hypotheses about the data, (2) verify them by writing and running analysis code, and (3) implement transformations for train and test sets in a loop.

Datasets

  • TabGen without drift (63 datasets): Isolates inter-row interactions by enabling one of seven sequence-dynamics modules (e.g., rolling mean, rolling volatility, recency gap, streak) across three random seeds and three entity-grouping complexities (0, 1, or 2 entity ID columns).
  • TabGen with drift (36 datasets): Holds base configurations fixed and applies four matched regimes: no drift, sinusoidal seasonality, piecewise V-shaped drift, and both combined.
  • Drift-TabPFN (13 real-world tasks): Seven binary and six multiclass real-world classification tasks with temporal splits, evaluated with both original named columns and anonymized columns to check whether findings transfer beyond synthetic data.

Key Insights and Ideas

  • Hypothesis-driven analysis wins in stable regimes: Methods that actively inspect the data before engineering features (Analyze&Act and Codex) consistently beat No-FE and metric-climbing approaches (CAAFE) when there is no drift. Ablating Analyze&Act's explicit hypothesis generation and verification steps causes its normalized accuracy to plummet from 0.528 to 0.181.
  • Blind metric-climbing overfits: CAAFE often underperformed the No-FE baseline even without drift. Inspection showed it engineered complex features that squeezed out tiny cross-validation gains on spurious correlations, failing to generalize to the future test split.
  • Distribution drift breaks LLM feature engineering: Under seasonality and piecewise drift, all methods degraded sharply. Features that worked in the training period failed to transfer, leading to FE-level overfitting where LLM-engineered features actively hurt test accuracy.
  • LLM-induced variance is huge: The run-to-run variance introduced by the LLM itself dwarfed the variance from downstream model seeds, meaning single-run evaluations of LLM data science agents are unreliable.

Key Results

On TabGen without drift, Analyze&Act led with a normalized accuracy of 0.528 (raw accuracy 0.605), followed by Codex at 0.180 (0.573), No FE at 0.000 (0.557), and CAAFE at -0.097 (0.552).

TabGen no-drift results by module

Under TabGen with drift, normalized accuracy collapsed across the board: Analyze&Act dropped to 0.084 (barely above No-FE's 0.000), CAAFE fell to -0.216, and Codex plunged to -0.644 with massive variance (0.713 std).

Figure 2: TabGen benchmark: normalized-accuracy distributions without (left) and with (right) drift. No-drift datasets enable one inter-row module; drift datasets use matched drift regimes.

On the real-world Drift-TabPFN tasks (named columns with domain indicator), Analyze&Act remained strongest at 0.675 accuracy vs. 0.651 for No-FE, though lower-ranked methods reshuffled and individual runs still frequently underperformed No-FE under temporal shift.

Limitations and Future Work

The authors note that TabGen's synthetic world lacks hidden causal variables, measurement noise, and multi-modal signals found in production data—in TabGen, rolling statistics are the target-generating features, whereas in real life they are merely proxies for latent states (like user satisfaction). The study also focuses on binary classification with CatBoost, a limited set of drift types, and anonymized column names (which may underestimate methods designed to leverage semantic metadata). Future work could explore smaller open-weight LLMs, regression or ranking tasks, and new agent architectures that explicitly test for and adapt to distribution shift rather than overfitting to training-period correlations.

Summary updated

BibTeX
@inproceedings{surkov2026are,
  author = {Viacheslav Surkov and Yasha Pushak and Ritesh Ahuja and Rafael Pires and Anne-Marie Kermarrec and Damien Hilloulin and Rhicheek Patra and Sungpack Hong},
  title = {{Are LLMs Good at Feature Engineering? Evidence from a Controlled Synthetic Benchmark}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=HuY0OF2zX6},
}
Figure