TL;DR
This paper introduces an autonomous machine learning research framework that uses LLM-based specialist agents to optimize entire training recipes through a closed propose-measure-revise loop. By sharing an explicit "lineage memory" of past successes and failures (including code crashes and budget overruns), the system automatically writes code, runs experiments, and achieves significant performance gains across multiple benchmarks without any human intervention.
What Problem Does This Paper Address?
Machine learning engineering relies heavily on an iterative loop: tweaking code, running a training job, analyzing logs or failures, and revising the approach. While automated tools exist for hyperparameter optimization (HPO), they typically operate within fixed parameter grids. Conversely, recent LLM-driven "AI Scientist" approaches focus on generating high-level research papers or narratives rather than robust, auditable code.
The gap addressed here is automating program-level optimization of full training pipelines (encompassing architecture, data loading, optimization schedules, and kernels) under complex, real-world constraints. The authors tackle the challenge of making language agents autonomously navigate strict size caps, compute budgets, and accuracy gates, treating engineering failures as informative signals rather than dead ends.
Methods
The authors build a closed-loop auto research trajectory driven entirely by external measurement. The key components include:
- Submitted-Trial Loop: Each iteration consists of a concrete hypothesis, an executable code edit (git diff), an external evaluator-owned outcome, and a feedback signal.
- Specialist Agent Roles: Instead of a single generalist agent, the system deploys a swarm of specialized agents (e.g., Architecture, Optimization, Data, Schedule, Systems, Regularization). Each specialist receives a distinct prompt defining its scope and "edit radius" to prevent agents from repeatedly tweaking the same obvious parameters.
- Shared Lineage Memory: A central blackboard tracks the cross-trial history of hypotheses, diffs, scores, runtimes, and explicit crash/failure logs. This allows agents to build on each other's discoveries and learn exactly why a previous attempt failed.
- MCP Tools: Agents interact with the environment via Model Context Protocol (MCP) tools, including
submit_trial,syntax_check,size_project(to test file sizes locally before burning GPU time), andrebase_to.
Datasets and Environments
The framework was evaluated across three training environments with complementary feedback mechanisms:
- Parameter Golf: A language modeling task based on a slice of the FineWeb dataset. It imposes a strict 16 MB artifact size cap and a 10-minute training budget on 8xH100 GPUs, rewarding lower validation bits-per-byte (bpb).
- NanoChat-D12: A fixed-budget pretraining environment using nanochat. It rewards a higher CORE evaluation score under a strict 90-minute wallclock cap.
- CIFAR-10 Airbench96: An image classification task using CIFAR-10 aimed at minimizing training wallclock time, strictly gated by a minimum mean accuracy requirement of 0.96.
Key Insights and Ideas
- Failures are Features, Not Bugs: The most critical insight is that negative feedback—like code crashes, size violations, or near-misses on accuracy gates—is highly informative. For instance, when an agent's proposal failed Parameter Golf due to exceeding the 16 MB cap, the lineage memory preserved the exact byte excess, allowing a subsequent agent to recover artifact headroom while keeping the underlying algorithmic improvement.
- Lineage Prevents Stalling: Without shared lineage memory, the agent swarm quickly plateaus or repeatedly collides with budget boundaries. Lineage acts as an active research state, preserving which measured heads remain useful and which directions are dead ends.
- Role Partitioning Drives Diversity: Dividing the optimization space among specialized roles forces the system to explore non-obvious improvements, such as rewriting attention kernel paths, rather than just tuning learning rates.
Key Results
Across 1,197 headline trials, the autonomous loop successfully improved all three public starting recipes without any human intervention during the search:
- Parameter Golf: Reduced validation bpb by 0.81% relative to the public SOTA starting point.
- NanoChat-D12: Boosted the CORE score by 38.7% (from 0.1618 to 0.2244). This was largely driven by a systems agent diagnosing an attention bottleneck and switching from SSSL to Flash SDPA, which freed up wallclock budget to train on more tokens.
- CIFAR-10 Airbench96: Achieved a 4.59% speedup in training time while successfully clearing the 0.96 accuracy gate.
Ablation studies confirmed that removing lineage memory caused the system to stall, with the no-lineage run hitting the evaluation budget cap on 61.5% of trials compared to just 19.0% when lineage was enabled.
Limitations and Future Work
- No Paradigm-Level Inventions: The agents excel at composing, transferring, and repairing known techniques (e.g., implementing FlashAttention, adjusting schedules, adding logit bias), but they do not invent fundamentally new architectures (like creating a replacement for the Transformer block).
- Dependency on Verifiable Feedback: The method relies entirely on objective, automated, and fast external evaluators. It is poorly suited for research questions where evidence is subjective or cannot be automatically verified.
- Future Directions: The authors suggest extending this closed-loop approach to longer search horizons (weeks of continuous GPU time) to explore cross-role composition, and applying it to other compute-budgeted domains like speech or reinforcement learning.
Summary updated