TL;DR
Large language model (LLM) agents are increasingly capable of building machine learning pipelines, but their reliance on costly, full-training evaluations severely bottlenecks search under real-world compute budgets. ArchPilot tackles this by decoupling ML engineering into three specialized agents—Orchestration, Generation, and Evaluation—that guide a Monte Carlo Tree Search (MCTS) using lightweight, dynamically reweighted proxy evaluations and strategic tree restarts. Evaluated on MLE-Bench, ArchPilot discovers higher-performing models while consuming fewer GPU hours than state-of-the-art baselines like ML-Master and AIDE.
What Problem Does This Paper Address?
Recent autonomous ML agents explore solution spaces by generating code, running it, and iterating on the output. However, nearly all state-of-the-art frameworks evaluate candidate pipelines by training them to completion. Full training runs are computationally expensive; under tight resource budgets (e.g., a couple of GPU-hours), agents can only afford to test a handful of candidates. This severely throttles exploration diversity and causes agents to either waste massive compute or miss high-performing solutions altogether.
Methods
ArchPilot decomposes automated ML engineering into three specialized, closed-loop agents:
[ Orchestration Agent (OA) ] <--- Coordinates MCTS, restarts, & budget
| ^
v | Feedback / Scores
[ Generation Agent (GA) ] ---> [ Evaluation Agent (EA) ]
(Draft, Improve, Debug) (Proxies, Ridge Reweighting)
- Generation Agent (GA): Generates self-contained PyTorch pipelines across three explicit modes: drafting initial pipelines from scratch, making single atomic modifications to valid parents to isolate effects, or minimally debugging failing scripts based on execution logs.
- Evaluation Agent (EA): Rather than running full training for every draft, EA instruments code to run cheap proxy evaluations (e.g., training for 1 epoch on 10% of the data). It computes multiple complementary signals:
- One-epoch validation loss (baseline generalization)
- Noisy validation (prediction stability under Gaussian noise)
- Feature-dropout validation (resilience to missing features)
EA aligns metric directions and normalizes them into a scalar score. When full training runs are triggered ($k \ge 5$), EA refits the proxy weights using ridge-regularized least squares projected onto the probability simplex, applying a hard-zero policy to any proxy emitting runtime sentinels.
- Orchestration Agent (OA): Coordinates tree search via an Upper Confidence Bound for Trees (UCT) policy. Crucially, when EA updates proxy weights significantly, OA initiates a tree restart—recalculating scores and reseeding the tree with the top-$k$ verified candidates so that outdated statistics do not mislead future exploration. OA also dynamically disables proxy mode as the remaining budget or wall-clock time drops below critical thresholds.
Datasets
The authors evaluated ArchPilot on MLE-Bench (Chan et al., 2024), a benchmark comprising 75 Kaggle-style machine learning tasks across tabular, vision, and natural language modalities. Tasks are categorized by difficulty (Low, Medium, High) and evaluated against real Kaggle leaderboard distributions.
Key Insights and Ideas
- Decoupling generation from evaluation: Bundling code synthesis, evaluation, and search logic into a single monolithic LLM prompt leads to myopic decisions. Separation of concerns allows the evaluation agent to focus purely on scoring fidelity while the generation agent concentrates on code quality and debugging.
- Ensembles of cheap proxies beat single heuristics: Combining speed-, robustness-, and feature-reliance proxies yields a significantly more accurate ranking metric than standard single-epoch validation alone.
- Tree restarts resolve semantic drift: When proxy weights are updated mid-search, the underlying reward landscape shifts. Resetting visit counts and reseeding from the top-scoring verified nodes keeps MCTS aligned with the newly calibrated objective.
- Maximum impact on hard tasks: Proxy-guided pruning provides the largest benefit on computationally demanding tasks where committing to full training on a mediocre architecture quickly exhausts the budget.
Key Results
Under a strict budget of 2.5 GPU-hours per task using gpt-4.1-2025-04-04:
- Overall Benchmark Superiority: ArchPilot achieved an 89.3% valid submission rate (vs. 86.7% for ML-Master and 78.7% for AIDE) and an average normalized ranking of 0.6149 (lower is better; vs. 0.6535 for ML-Master and 0.6953 for AIDE).
- Medal-Level Milestones: ArchPilot earned 12.0% Gold+ and 29.3% Above-Median rates, outperforming ML-Master (10.7% and 26.7%, respectively).
- High-Difficulty Gains: On high-difficulty tasks, ArchPilot improved mean normalized rank to 0.6496, compared to 0.7262 for ML-Master and 0.7439 for AIDE.
- Budget Scalability: Across all difficulty tiers, ArchPilot reached stronger leaderboard rankings earlier in its GPU budget compared to baselines.
Limitations and Future Work
- Proxy Dependence: If initial proxies fail to correlate with downstream performance or if data regimes are extremely noisy/sparse, proxy weight fitting can become unstable.
- Restart Overhead: Hard tree restarts can occasionally discard promising, underexplored branches when scoring rules shift abruptly.
- Future Directions: The authors plan to investigate meta-learned proxy weight initializations across related tasks, automated proxy generation tailored to novel modalities, and partial tree reuse strategies to replace full restarts.
Summary updated