NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Learning the ARTS of Search for Automated Discovery

Gurusha Juneja, Arnav Kumar Jain, Deepak Nathani, William Yang Wang, Xin Eric WangarXiv 2026

TL;DR

The paper introduces Agentic Reasoning for Tree Search (ARTS), a framework that empowers AI "scientists" to conduct automated machine learning research more effectively by distinguishing between a bad idea and a buggy implementation. By combining this reasoning-driven search with Test-Time Training (TTT), the authors enable a lightweight, open-source 4B parameter model to match or outperform frontier closed-source models at one-fifth of the inference cost.

What Problem Does This Paper Address?

Recent breakthroughs have led to the rise of "AI Scientists"—autonomous agents capable of proposing, coding, and testing scientific hypotheses. However, current systems rely on traditional search heuristics like Monte Carlo Tree Search (MCTS) or evolutionary algorithms, which suffer from two major flaws when applied to machine learning research:

  1. Score Conflation: These algorithms judge a hypothesis solely by its final validation score. If a brilliant machine learning hypothesis fails because of a minor coding bug, a missing import, or an unoptimized learning rate, the algorithm prunes that entire line of research prematurely.
  2. Context Window Explosion: As an AI agent runs dozens of experiments, the accumulated history of code, training logs, and errors quickly outgrows the LLM's context window, forcing the system to prune or summarize away crucial past experiences.

Methods

ARTS addresses these challenges by splitting the workflow into two distinct roles: an agentic Scientist (driven by a large reasoning model like OpenAI's o3) that maps out the research strategy, and an Executor (driven by a fast, inexpensive model like Gemini 3 Flash) that writes and debugs the code.

Figure 1: A single search step of ARTS. A node is one validated experiment with a hypothesis, code, logs, and score. Starting from the current search tree (Tree to expand), the scientist inspects the candidate nodes and reasons about why each scored as it did, then selects the most promising node rather than the one with the highest score. In this figure, it picks the node with score 0.10 since the low score comes from under training rather than a weak hypothesis (Node selection). Through verbalized sampling the scientist then proposes diverse hypotheses with probabilities and samples one, which the executor implements, runs, and scores (Node expansion). The resulting node (0.55) becomes the new best and is added to the tree. This loop repeats until the budget is exhausted. Red nodes are explored candidates, green marks the node selected for expansion, and blue marks the newly added node.

Key components of the framework include:

  • Node Inspection: Instead of looking only at scores, the Scientist uses an INSPECT tool to read the code and training curves of past runs. It explicitly classifies failures as either IDEA-WRONG (abandon the direction) or IMPLEMENTATION-WRONG (fix the code and retry).
  • Verbalized Sampling: To prevent the model from getting stuck in a loop of minor hyperparameter tweaks, the Scientist must explicitly list diverse hypothesis families and assign them probabilities before the system samples the next move.
  • Test-Time Training (ARTS*): To solve the context window problem, the authors introduce a variant that fine-tunes the Scientist model (Qwen3-4B) on its own search tree mid-run. Using Group Relative Policy Optimization (GRPO) and a percentile-based reward signal, the agent bakes its evolving search experience directly into its model weights, acting as a permanent memory mechanism.

Datasets

The authors evaluated ARTS across 22 distinct machine learning tasks derived from two prominent benchmarks:

  • MLGym: Includes diverse tasks spanning regression, computer vision, language modeling, reinforcement learning, and game theory.
  • MLEBench: A benchmark consisting of complex, Kaggle-style machine learning engineering competitions.

Key Insights and Ideas

  • Don't Throw the Baby Out with the Bathwater: Traditional search methods are blind to why a run failed. By reading training logs, ARTS can see if a model was simply under-trained or over-augmented, allowing it to salvage promising ideas that score-based heuristics would discard.
  • Weights as a Memory Bank: Instead of building larger context windows, fine-tuning a model on its own successes and failures during the task (TTT) allows it to retain a compact, structured memory of the search space.
  • Mitigating Context Drift: On complex, partially observable tasks, long context windows can cause even frontier models to "drift" and forget their original goals. Embedding the search history into the weights keeps the agent laser-focused on refining the optimal solution path.

Key Results

ARTS demonstrated substantial performance gains over linear, tree-based, and evolutionary baselines:

  • Broad Superiority: ARTS achieved the highest score on 16 out of 22 tasks, yielding a 15.3% relative improvement in mean normalized score over the strongest contemporary baseline.
Figure 2: Aggregate normalized performance. We report the reliable metrics [1] and observe that ARTS significantly outperforms baselines at Mean and IQM while achieving lower optimality gap.
  • Efficiency via TTT: The test-time trained Qwen3-4B model (ARTS*) matched the performance of frontier models like Gemini 2.5 Pro and GPT o3 while operating at 5× lower inference cost.
  • Beating the Human Baseline: On the partially observable MetaMaze reinforcement learning task, the TTT-trained 4B model successfully rediscovered and optimized a complex human-best recurrent-memory (LSTM) solution that all other automated heuristic methods pruned away due to early training instability.

Limitations and Future Work

While highly effective, ARTS is inherently modular and its success remains bounded by the baseline capabilities of its constituent models; a weak Executor will struggle to implement complex architectures regardless of how good the Scientist's hypothesis is. Additionally, the authors note ethical concerns common to autonomous R&D agents, emphasizing that future deployments must maintain strict sandboxing, logging, and human oversight to prevent the accidental generation of malicious code or optimization of unsafe objectives.

Summary updated

BibTeX
@misc{juneja2026learning,
  author = {Gurusha Juneja and Arnav Kumar Jain and Deepak Nathani and William Yang Wang and Xin Eric Wang},
  title = {{Learning the ARTS of Search for Automated Discovery}},
  year = {2026},
  eprint = {2606.21891},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.21891},
}
Figure