LLMs Improving LLMs: Agentic Discovery for Test-Time Scaling

Tong Zheng, Haolin Liu, Chengsong Huang, Huiwen Bao, Sheng Zhang, Rui Liu, Runpeng Dai, Ruibo Chen, Chenxi Liu, Tianyi Xiong, Xidong Wu, Hongming Zhang, Heng Huang

TL;DR

AutoTTS shifts the paradigm of test-time scaling (TTS) from manually hand-crafting search heuristics to automatically discovering them using an LLM agent. By evaluating candidate strategies on a cheap, offline replay environment, AutoTTS discovers a highly efficient "Confidence Momentum Controller" that outperforms strong human-designed baselines across multiple reasoning benchmarks for a total search cost of just $39.90.

What Problem Does This Paper Address?

Test-time scaling (TTS)—allocating more compute at inference time via multiple reasoning paths, verification, or deeper search—has become the dominant paradigm for boosting LLM performance (as seen in models like OpenAI's o1 and DeepSeek-R1).

However, existing TTS strategies (like Self-Consistency, Adaptive Inference, or Parallel-Probing) are almost entirely hand-crafted. Researchers rely on intuition to guess thresholds for when a model should spawn a new reasoning branch, prune an unpromising one, or stop entirely. This manual approach leaves a massive portion of the compute-allocation design space completely unexplored.

Figure 2: Existing TTS algorithms as special cases of the width–depth control space. Each algorithm traces a distinct path: SC@64 [1] occupies a fixed full-budget corner; ASC [2] and ESC [3] adapt only along the width axis at max depth; ANSWER CONSISTENCY [4] adapts only along the depth axis on a single chain; ST-BON [5] expands wide, prunes to one branch, then deepens; PARALLEL- PROBE [6] starts wide and progressively prunes while deepening.

Methods

The authors introduce AutoTTS, an environment-driven framework for algorithmic discovery. Instead of designing individual TTS heuristics, humans design the discovery environment (defining states, actions, feedback, and objectives), and an explorer LLM searches for the optimal policy.

Key components of the framework include:

  • Offline Replay Environment: Calling an LLM repeatedly during an algorithmic search loop is prohibitively expensive. To solve this, AutoTTS pre-collects reasoning trajectories and intermediate probe signals. Evaluating a new strategy simply means "replaying" decisions deterministically on this cached data at zero generation cost.
  • Discovery Loop: An explorer LLM (Claude Code) iteratively proposes code-defined controllers, evaluates them on the replay environment, and refines them based on feedback.
  • Beta Parameterization: To prevent the agent from proposing overly complex controllers with too many brittle, overfitted hyperparameters, AutoTTS forces all internal thresholds to map monotonically to a single scalar, $\beta$ (representing the total token budget).
  • Execution Trace Feedback: Instead of just giving the agent a scalar accuracy score, AutoTTS provides full execution traces so the agent can diagnose why a strategy failed and adjust its code accordingly.
Figure 1: Overview of our Auto-TTS framework. Unlike the traditional workflow of manually designing TTS strategies, Auto-TTS shifts the human role from directly hand-crafting branching, pruning, and stopping heuristics to constructing environments by defining states, actions, feedback, and objectives. Given the constructed environment, an explorer LLM iteratively proposes candidate controllers, evaluates them in the offline replay environment, receives feedback from scaling curves and execution traces, and uses the accumulated history to refine future proposals. The right panel shows an example evaluation on Qwen-1.7B and AIME25, where the discovered controller improves the accuracy–cost Pareto frontier over hand-crafted baselines with an affordable one-time search cost.

Datasets

  • Search/Discovery Set: AIME24 (American Invitational Mathematics Examination 2024).
  • Held-out Evaluation Sets: AIME25 and HMMT25 (Harvard-MIT Mathematics Tournament 2025) to test math generalization.
  • GPQA-Diamond: A difficult graduate-level science QA dataset used to test generalization outside of mathematics.

Key Insights and Ideas

  • Shift to Environment Design: The core philosophy is that humans are better at defining the rules of the game (the control space) than finding the optimal policy within it.
  • The Discovered Strategy (CMC): The agent discovered a novel strategy called the Confidence Momentum Controller (CMC). CMC introduces non-obvious mechanisms that human researchers missed, such as Trend-based stopping via EMA momentum (waiting until confidence stabilizes and stops rising rather than stopping on a lucky early consensus spike) and Coupled width-depth control (spawning more branches if confidence gains stagnate, but focusing on deepening if they accelerate).
  • Data Replay is a Game-Changer: Turning an expensive LLM search problem into a deterministic data-replay Markov Decision Process (MDP) makes automated algorithm discovery incredibly practical, taking only 160 minutes and costing less than $40.

Key Results

  • Better Pareto Frontier: The discovered CMC controller consistently outperformed strong handcrafted baselines (Self-Consistency, ASC, ESC, Parallel-Probe) on the accuracy-cost tradeoff curves.
  • Massive Token Savings: At $\beta = 0.5$, CMC reduced token consumption by approximately 69.5% compared to standard Self-Consistency (SC@64) while maintaining identical average accuracy across four Qwen3 models (ranging from 0.6B to 8B parameters).
  • Higher Peak Performance: At $\beta = 1.0$, the discovered controller pushed peak accuracy beyond all handcrafted baselines in 5 out of 8 evaluation settings.
  • Cross-Architecture & Cross-Domain Generalization: The strategy found using Qwen3 on math problems transferred successfully to DeepSeek-R1-Distill-Llama-8B and the non-math GPQA-Diamond benchmark without any retuning.

Limitations and Future Work

  • Restricted Control Space: The current instantiation is limited to a 2D width-depth formulation (branching, continuing, probing, pruning). The authors note it would be valuable to expand the action set to support more complex control structures like tree search or graph-of-thoughts.
  • Dependence on Frontier Models: The discovery process currently relies on a top-tier proprietary coding agent (Claude Code). Exploring whether open-source coding agents can achieve comparable discovery performance remains an open question.

Summary updated

BibTeX
@inproceedings{zheng2026llms,
  author = {Tong Zheng and Haolin Liu and Chengsong Huang and Huiwen Bao and Sheng Zhang and Rui Liu and Runpeng Dai and Ruibo Chen and Chenxi Liu and Tianyi Xiong and Xidong Wu and Hongming Zhang and Heng Huang},
  title = {{LLMs Improving LLMs: Agentic Discovery for Test-Time Scaling}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=oH6xObXkeJ},
}
Figure