TraceML: What Auto-Research Agents Miss in Long-Horizon ML Development

Jiarui Yan, Weiwei Sun, Sijie Li, Wenhan Li, Yiming YangNeurIPS 2026 Evaluations and Datasets Track Poster 2026

TL;DR

Auto-research agents can now run machine-learning experiments unattended for hours, yet they still routinely lose to strong human competitors on Kaggle. By tracking every intermediate code version—not just the final submission—TraceML reveals why: while human experts fluidly alternate between data work, validation, model changes, and revisiting old ideas, agents get trapped in narrow, repetitive loops. A short planning prompt nudges agents toward human habits and boosts scores, but the deepest gaps—memory and strategic control—require rethinking how agents are built.

What Problem Does This Paper Address?

If you grade an ML agent only on its final submission, two runs with the same score look identical—even if one methodically tested hypotheses and the other blindly tweaked hyperparameters. Existing benchmarks (like MLE-bench and MLAgentBench) record that agents trail human experts, but they discard the development process behind the score. Without process-level data, it is hard to tell whether agents fail because they lack coding skill, domain knowledge, or something else entirely.

TraceML bridges this gap by putting human and agent workflows onto the exact same footing, allowing researchers to compare how both sides actually develop solutions over time.

Methods

To compare a human’s weeks-long Kaggle notebook history with an agent’s 12-hour command-line run, the authors built a unified reconstruction and annotation pipeline:

Figure 2: TraceML reconstruction pipeline: notebook histories, git commits, and search branches become one version-level record. The example uses illustrative scores; Appendix B.6 follows a real trajectory.
  • Unified Version-Level Schema: Every run is represented as an ordered sequence of code versions, each carrying its leaderboard score, timestamp, and parent link. For humans, versions are deliberate Kaggle saves; for agents, they are submission-producing Git commits (for Codex, a linear edit-run-observe agent) or root-to-leaf branches in a search tree (for MLEvolve, an evolutionary tree-search agent).
  • Process-Level Annotation: Each version is tagged with its pipeline state (8 coarse stages, 136 fine-grained tags), and every transition between versions is labeled with its action, intent, edit magnitude, and score effect.
  • Distilled Open-Weight Labelers: Because hand-labeling 151,088 versions is impossible, the authors used gpt-5.4-mini as a teacher to train two lightweight Qwen3-1.7B student models—one for version states and one for transitions.
  • Diagnostic Planning Harness: To test which human-agent gaps can be fixed by simple instructions, the authors distilled a ~1,000-token planning prompt from human practice (banning single-holdout validation and repeated tweaks, asking for early $K$-fold and ensembling, and adding periodic 30-minute self-checks).

Datasets

TraceML introduces a new, publicly released corpus pairing human and agent trajectories:

  • Human Corpus: 4,465 public Kaggle trajectories (149,483 snapshots) across 134 competitions, spanning all Kaggle author tiers (Grandmaster to Contributor).
  • Paired Subset: 7 competitions worked by both humans (430 trajectories) and two agent scaffolds—Codex and MLEvolve—running on the same gpt-5.4-mini backend under a 12-hour budget (207 agent trajectories total).

Unlike prior benchmarks that only log final scores or lack task-matched human baselines, TraceML preserves the full code history of every scored version alongside human development.

Key Insights and Ideas

Figure 1: Real trajectories on one competition. (a) Best score so far, as a percentile among humans, with each edit colored by its coarse action. (b) Share of edits by kind. Codex tunes the submission, MLEvolve mutates the model, and humans spread their edits across all kinds.
  • Agents Collapse into Narrow Loops: At a coarse level, Codex’s action mix looks surprisingly similar to top humans. Zoom in to fine-grained actions, however, and the illusion vanishes. Humans spread their edits across data, features, validation, models, and ensembling. Codex spends 95% of its edits tuning submissions (re-weighting ensembles, tweaking post-processing), while MLEvolve spends 71% mutating models in place (averaging seeds, editing layers, changing epochs).
  • Pivoting Too Little or Too Much: Humans pivot—changing backbone, representation, objective, or validation—on 25% of transitions. Codex barely pivots (9%), while MLEvolve pivots constantly (58%) without making progress (its post-pivot steps average $-0.008$ vs. $+0.089$ for matched humans).
  • Recovery Without Memory: When an agent’s score drops, it can tune forward to recover. What it never does is reopen an abandoned approach. Top humans return to earlier, non-adjacent versions on 9% of eligible steps (and 78% of those returns beat the version they went back to). Across all runs, Codex returned once and MLEvolve never did.
  • Ensembling in Name Only: All cohorts ensemble, but 78% of Codex’s ensemble edits merely re-weight existing members—which does not improve scores. Top humans add new members, which raises the chance of next-version improvement by 6.4 percentage points.

Key Results

When the authors equipped Codex with the ~1,000-token planning harness:

  • Scores Improved: 5 of the 7 competitions saw substantial gains—+49 percentile points on Essay scoring, +40 on Q&A labeling, +30 on Credit default, +19 on Catheter X-ray, and +17 on EEG brain activity—while 2 stayed within noise (+4 and +1) and none regressed.
  • Some Habits Shifted: Re-weighting ensembles dropped by 39 percentage points (from 50% to 11%), and small early edits jumped +55 percentage points (from 5.6% to 61%).
  • Prompting Has Clear Limits: The harness overshot its bans (plain hold-out validation dropped to 0%, below the 24% rate where top humans still use it) and had no effect on behaviors Codex already did (like $K$-fold averaging).

Limitations and Future Work

The authors note that public Kaggle histories do not capture off-platform human work, and humans (working over weeks) are not budget-matched to 12-hour agent runs—meaning the human corpus serves as a reference distribution rather than a strict control.

More importantly, the planning prompt acts as a probe: it fixes behaviors that reduce to a simple checklist, leaving behind the deeper architectural gaps. The authors point to two concrete design problems for future agents: memory (giving agents a searchable history of their own earlier states so they can revisit abandoned ideas) and control (building a controller that reads where a run stands to decide when to pivot, rather than relying on a single static policy).

Summary updated

BibTeX
@inproceedings{yan2026traceml,
  author = {Jiarui Yan and Weiwei Sun and Sijie Li and Wenhan Li and Yiming Yang},
  title = {{TraceML: What Auto-Research Agents Miss in Long-Horizon ML Development}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=eL7smcZz4v},
}
Figure