Strategic Scaling of Test-Time Compute: A Bandit Learning Approach

Bowen Zuo, Yinglun Zhu

TL;DR

This paper introduces a strategic approach to scaling Large Language Model (LLM) performance by adaptively allocating test-time compute. Instead of giving every question the same number of attempts, the authors use a bandit learning framework to identify which queries need more "thinking time" and which are unsolvable. This method achieves up to 15% relative performance gains and 4x efficiency improvements over standard uniform sampling.

The Problem: Inefficient Compute Allocation

Recent breakthroughs have demonstrated that LLMs perform significantly better when allowed to "think" longer at test time. This is typically achieved by generating multiple candidate answers and selecting the best one—a method known as Best-of-N sampling. However, current scaling methods are remarkably inefficient because they treat every query identically.

Allocating the same computational budget to a simple arithmetic problem as a complex calculus proof leads to critical inefficiencies:

  1. Over-computation: Wasting effort on easy questions that the model solves on the first try.
  2. Under-computation: Failing to allocate enough effort to difficult but solvable questions.
  3. The "Unsolvable" Trap: Expending massive amounts of compute on questions the model simply cannot answer, regardless of the number of attempts.

The authors aim to replace this "one-size-fits-all" strategy with a dynamic system that estimates query difficulty on the fly, redistributing saved compute from easy tasks to those that genuinely require it.

A Bandit Learning Framework for Compute Allocation

The researchers formulate compute allocation as a pure-exploration bandit problem. In this setup, each query is treated as an "arm" in a multi-armed bandit. Sampling a response from the LLM is equivalent to pulling an arm and receiving a reward (e.g., a score from a verifier or reward model).

The core contribution is Algorithm 1 (ELIMINATION) and its variants:

  • The Elimination Rule: The algorithm generates responses in rounds. If a query produces a response that exceeds a certain confidence threshold (such as a correct ground-truth answer or a high reward score), that query is "eliminated" from the active set, and its remaining budget is saved for other queries.
  • Exploration Strategies: While the base version explores all active queries uniformly, the authors introduce more sophisticated rules:
  • UCB (Upper Confidence Bound): Prioritizes queries with high potential rewards.
  • ENTROPY-based Rule: A novel addition designed for extremely hard datasets. It prioritizes queries that produce diverse, high-entropy response patterns. The authors found this to be a strong signal that a problem is "hard but solvable" rather than "impossible."
  • Flexibility: The framework seamlessly integrates with both Best-of-N and Self-Consistency aggregation and can handle "streaming" scenarios where queries arrive sequentially.

Datasets and Evaluation

The authors evaluated their approach on three major benchmarks for reasoning and coding:

  • MATH-500: A subset of the standard MATH benchmark.
  • AIME25: 30 difficult problems from the American Invitational Mathematics Examination.
  • LiveCodeBench: 479 code execution problems collected from recent competitive programming contests.
  • MATH-500-Hard-16: A custom challenging subset created by the authors, containing only the questions the model failed to solve even after 16 uniform samples.

Key Insights

  • The Efficiency Gap: The authors mathematically prove that their adaptive approach is fundamentally more efficient. While uniform allocation is bottlenecked by the difficulty of the hardest query in a set, their bandit approach scales with the average difficulty.
  • Entropy as a Signal for Solvability: A major finding is that unsolvable queries often result in repetitive, low-entropy, or malformed outputs. Solvable queries, even if difficult, tend to produce more diverse and well-structured "thought" patterns. By targeting high-entropy queries, the algorithm avoids throwing compute down the "unsolvable" drain.
  • Zero-Training Adaptivity: Unlike previous attempts at adaptive compute that required training a separate difficulty predictor model, this bandit approach is fully adaptive and works out-of-the-box with any existing reward model or verifier.

Key Results

The empirical results demonstrate that "thinking smarter" consistently beats "thinking longer."

Efficiency gains across different verifiers and aggregation methods
  • Performance Boost: On the MATH-500 dataset, the algorithm achieved an 11.10% absolute improvement (15.04% relative) over uniform allocation.
  • Coding Gains: On LiveCodeBench, the method yielded an 11.23% absolute improvement (15.29% relative).
  • Massive Efficiency: In many cases, the algorithm achieved the same accuracy as the baseline while using 2x to 4x less compute. For example, on AIME25, it reached the same performance as uniform sampling while being 4 times more efficient.
  • Robustness: The method remained superior even when constrained by total token counts rather than just the number of generations, proving its viability in real-world, resource-limited settings.

Limitations and Future Work

  • Reward Oracle Dependency: The system relies on a "reward oracle" (like a Process Reward Model or a ground-truth verifier) to determine when a query is solved. If the reward model is inaccurate, the elimination rule might trigger too early or too late.
  • Threshold Tuning: The elimination threshold ($\gamma$) currently needs to be set manually. While the system is robust to this value, automating the discovery of the optimal threshold remains a significant next step.
  • Beyond Sampling: The current work focuses on "Best-of-N" style scaling. Future research could explore applying these bandit strategies to more complex test-time search methods, such as Tree-of-Thought or Monte Carlo Tree Search (MCTS).

Summary updated

BibTeX
@inproceedings{zuo2026strategic,
  author = {Bowen Zuo and Yinglun Zhu},
  title = {{Strategic Scaling of Test-Time Compute: A Bandit Learning Approach}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=0mNnINd2z5},
}
Figure