Claude Code finds a leaner path for AI test-time scaling
AutoTTS uses Claude Code to search for test-time scaling algorithms instead of relying on human-written control rules. In tests on AIME and HMMT, the agent-written approach delivered better accuracy per unit of compute and cut token use by about 70 percent versus standard self-consistency.
Researchers are testing a different way to improve AI reasoning: instead of manually designing the rules that decide how a model spends compute, they let a coding agent search for those rules in code. The result, called AutoTTS, suggests that the next gains in test-time scaling may come as much from designing better search environments as from writing better algorithms by hand.
“The story mildly leans Terminator because it describes AI agents autonomously discovering more efficient reasoning control algorithms, increasing AI capability and automation.”Why it scores Terminator
What AutoTTS changes
Test-time scaling, or TTS, is the practice of giving a large language model more compute while it is answering a question. That can mean running multiple solution paths at once, extending chains of thought, or deciding when to stop work on a weak path and put more effort into a stronger one.
Until now, the control logic behind those choices has usually been written by humans. Researchers would define when a model should launch another path, when it should continue a promising path, and when a path should be abandoned.
AutoTTS changes that division of labor. A research team from UMD, UVA, WUSTL, UNC, Google, and Meta built an environment where Claude Code could search for better control algorithms on its own. The humans set up the space in which the search happens; the agent writes and refines the strategy.
The paper frames many existing methods as variations inside the same control space. That space is defined by two dimensions: width, meaning how many solution paths run at once, and depth, meaning how far each path is allowed to go. AutoTTS asks whether a machine can explore that space more effectively than researchers drawing the route manually.
How the search stays affordable
The key to the system is an offline environment. For each task, the team first pre-generates several solution paths from the language model and stores them. A candidate control algorithm then decides how to allocate compute using data that already exists.
That setup matters because it avoids repeatedly running the full language model for every trial. Thousands of algorithm variants can be tested against stored solution paths, which keeps the search practical.
Claude Code is the agent doing the algorithm search. Across several rounds, it reviews previous attempts, identifies weaknesses, and writes a new control algorithm directly as code. The process is not just a blind trial of isolated settings; the agent receives logs that show where earlier runs wasted compute.
The researchers also constrained the search. Each proposed algorithm can expose only one high-level controller to the outside, while that controller handles the remaining thresholds internally. This prevents the search from turning into a maze of small knobs that may work in a test setting but fail to generalize.
What the agent-written algorithm achieved
On math benchmarks including AIME and HMMT, the discovered algorithm produced better accuracy per unit of compute than established methods. In its lean setting, it reduced token usage by about 70 percent compared with standard self-consistency, while accuracy held steady.
Standard self-consistency generates 64 answers in parallel and selects the result by majority vote. AutoTTS found a more selective strategy for spending compute, rather than treating all solution paths the same from the start.
The approach also transferred beyond the original setting. The algorithm carried over to a different model, DeepSeek-R1-Distill-Llama-8B, and to a non-math benchmark, GPQA-Diamond. The full discovery run cost about $40 and took 160 minutes.
Those results are important because they point to compute efficiency, not just raw accuracy. If a model can reach similar or better outcomes while using fewer tokens, test-time scaling becomes more practical for workloads where cost and latency matter.
Why the discovered logic is unusual
The most notable part of the work is not only that the agent found a stronger algorithm. It is also how that algorithm behaves.
Rather than stopping as soon as a majority answer appears, the discovered program tracks how model confidence changes over several rounds. If confidence barely moves, it opens more solution paths. If confidence rises quickly, it avoids adding new ones.
The algorithm also gives extra compute to paths whose interim results align with the current majority. Paths that diverge are not dropped immediately. They are removed only if they keep moving in the wrong direction across multiple rounds.
The authors describe this kind of coordination as something that would have been nearly impossible to design by hand. The ablation study shows why the surrounding setup matters:
- Removing the single high-level controller led the agent toward extreme shortcuts that saved compute in testing but hurt accuracy on new tasks.
- Removing detailed logs produced an algorithm that used more compute and delivered worse accuracy.
That means the discovery process depends not just on the coding agent, but also on the quality of the feedback it receives. A final score alone was not enough for the agent to understand why earlier attempts failed.
What this suggests about AI research
AutoTTS fits into a broader line of work where language models act as program searchers. The authors connect it with FunSearch, AlphaEvolve, and ADAS. The difference is that AutoTTS applies the idea to test-time scaling, an area that had mostly relied on human-designed strategies.
The current version is still limited. It focuses on the trade-off between width and depth. It cannot yet handle more complex structures such as tree searches. The quality of the result also depends on the coding agent, and the authors do not say whether open-source alternatives would perform just as well.
Even with those limits, the direction is clear. The role of researchers shifts from handcrafting every rule to building the environment where useful rules can be discovered. In AutoTTS, the algorithm emerges as code written and refined by a language model.
The source also places this work alongside earlier research from Hugging Face in 2024, where small language models matched much larger ones through smart test-time compute scaling, though the search strategies were designed by hand. It also notes that Meta and partners recently introduced hyperagents, AI systems that optimize their own improvement process.
The larger implication is practical: smarter control over test-time compute can change how AI systems reason under resource constraints. AutoTTS shows one path toward that goal, using a coding agent not as a user-facing assistant, but as a researcher inside a carefully built algorithm search space.
Read next