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

Bowen Zuo, Yinglun Zhu · DOI

Abstract

Recent advancements in Large Language Models (LLMs) have demonstrated that increasing "thinking time" at inference can significantly improve performance. However, current methods typically allocate computational resources uniformly across all queries, regardless of difficulty. This paper introduces a bandit learning framework to strategically allocate test-time compute. By adaptively identifying which queries are easy, hard, or unsolvable, the proposed algorithms achieve up to an 11.1% absolute accuracy improvement and nearly 4x efficiency gains over standard uniform sampling methods on benchmarks such as MATH-500 and LiveCodeBench.

Introduction

The current "one-size-fits-all" approach to LLM inference is fundamentally inefficient. A simple query like "2+2" often receives the same computational budget as a complex calculus proof, leading to wasted resources on easy tasks and insufficient budget for difficult ones. As models like OpenAI’s o1 push the boundaries of test-time reasoning, the challenge shifts to resource management: How can we adaptively distribute a fixed compute budget across a set of queries to maximize the number of correct answers?

Methodology: A Bandit Learning Framework

The authors frame test-time 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 based on a reward model or ground-truth verifier.

The proposed Strategic Test-Time Compute Allocation algorithm relies on two main components:

  1. The Elimination Rule: If a query generates a response that exceeds a quality threshold ($\gamma$), it is considered "solved" and removed from the active set, recycling compute for harder problems.
  2. Exploration Rules: Several strategies are proposed to prioritize unsolved queries:
  3. Uniform Elimination: Spending compute equally across all active queries.
  4. Upper Confidence Bound (UCB): Prioritizing queries likely to be solved based on previous average rewards.
  5. Entropy-based Exploration: Prioritizing queries that produce a high diversity of responses. High entropy suggests the model is "struggling" but potentially close to a solution, whereas repetitive, low-quality outputs often signal an unsolvable task.

Experimental Setup

The researchers evaluated their approach using Llama-3.1-8B on two primary benchmarks: MATH-500 (mathematical reasoning) and LiveCodeBench (code execution). They also introduced MATH-500-Hard subsets, specifically targeting problems that models failed to solve after 8 or 16 uniform samples, to test the limits of adaptive allocation.

Key Results and Analysis

The adaptive approach consistently outperformed uniform sampling in both accuracy and efficiency.

Accuracy vs. Average Compute Budget on MATH-500. The adaptive approach ("Ours") significantly outperforms the uniform baseline as the budget increases.

Performance and Efficiency Gains

On MATH-500, the adaptive method achieved an 11.10% absolute improvement (15.04% relative) over uniform sampling. To reach the same accuracy as the uniform baseline, the proposed algorithms required 2x to 3.93x less compute. Similar results were seen on LiveCodeBench, with a 7.41% absolute improvement, demonstrating the generalizability of the strategy.

Coverage vs. Average Compute Budget. The strategic allocation method achieves higher coverage (percentage of problems solved) more efficiently than uniform sampling.

Entropy as a Signal for Solvability

A significant finding is that Entropy is a superior guide for solvability compared to simple confidence. On very hard datasets, unsolvable queries often result in repetitive, invalid formatting. In contrast, solvable queries show a diverse range of attempts. By targeting high-entropy queries, the algorithm avoids wasting compute on impossible tasks.

Discussion and Limitations

While the paper demonstrates strong gains, several areas for future work remain:

  • Granularity: Current compute units are full response generations; token-level or step-level allocation could provide even finer control.
  • Reward Oracle Dependency: The system's success depends on the reliability of the reward model. Noisy or biased rewards could degrade allocation performance.
  • Scaling: Future research should investigate these strategies at the scale of 70B+ parameter models and much larger compute budgets.

Conclusion

Strategic scaling of test-time compute represents a shift from static to dynamic inference. By leveraging bandit learning and signals like response entropy, computational resources can be directed toward the queries where they provide the most value, significantly enhancing the practical utility of LLMs.

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