TL;DR
This paper introduces "inference scaling laws" (or test-time scaling laws) to determine the most compute-optimal way to solve problems using LLMs. The authors demonstrate that allocating test-time compute to advanced inference strategies using smaller models is often far more efficient than simply running larger models, and they introduce a novel, highly efficient tree-search algorithm called REBASE to achieve Pareto-optimal performance.
What Problem Does This Paper Address?
While training scaling laws (such as the famous Chinchilla scaling laws) provide clear recipes for balancing model size and training data given a compute budget, how to optimally allocate compute during inference remains underexplored.
When deploying a model under a strict computational budget, practitioners face a critical trade-off: Is it better to use a massive model with simple greedy decoding, or a smaller model allowed to generate multiple reasoning paths and search for the best answer? This paper systematically analyzes these cost-performance trade-offs to establish compute-optimal inference configurations.
Methods
The authors evaluate several standard inference strategies, including greedy search, best-of-$n$ (rejection sampling), majority voting, weighted majority voting, and Monte Carlo Tree Search (MCTS).
They note that standard MCTS is highly compute-inefficient for LLMs because it spends excessive tokens on explicit rollouts and exploring paths that never make it into the final answer pool. To address this, they propose REBASE (REward BAlanced SEarch).
REBASE is a lightweight tree-search algorithm that leverages a step-level Process Reward Model (PRM) to evaluate intermediate reasoning steps. Instead of performing expensive rollouts, REBASE dynamically adjusts how much a node is expanded at each depth based on softmax-normalized PRM scores. This allows the system to inherit the pruning and exploitation benefits of tree search at a computational cost comparable to simple parallel sampling.
Datasets
The approaches are evaluated across prominent mathematical reasoning and coding benchmarks:
- GSM8K: Grade-school level math word problems.
- MATH / MATH500: High school competition-level mathematics.
- MBPP: A benchmark for Python code generation tasks.
The policy models evaluated include the Pythia suite (410M to 12B parameters) to analyze general scaling behavior, alongside math-specialized Llemma models (7B and 34B), Mistral-7B, and Llama3-8B-Instruct. The process reward models are fine-tuned using the Math-Shepherd dataset.
Key Insights and Ideas
- Smaller Models Can Dominate Inference: For a fixed compute budget, generating more tokens with a smaller model using a structured inference strategy frequently outperforms using a larger model with simple decoding.
- Diminishing Returns of Pure Sampling: The authors mathematically prove that simple sampling and voting strategies hit an asymptotic performance ceiling determined by the base model's token distribution. Without an oracle verifier, infinite samples will not yield perfect accuracy, highlighting the necessity of sophisticated search algorithms like REBASE.
- Harder Problems Benefit More: Advanced search strategies show their most significant performance gains on difficult, multi-step reasoning tasks (e.g., high-level MATH problems) rather than easy ones, where simple parallel sampling typically suffices.
Key Results
- 2x Compute Savings: The Llemma-7B model paired with REBASE achieves comparable accuracy to the much larger Llemma-34B model while requiring approximately 2x fewer total FLOPs.
- Massive Efficiency Gains: On the MATH500 benchmark, Mistral-7B using REBASE with only 32 samples achieved a 45.0% accuracy, outperforming standard sampling with 256 samples (42.8% accuracy) while using 6.4x fewer FLOPs (1.36 × 10¹⁴ vs 8.70 × 10¹⁴ FLOPs).
- Outperforming MCTS: Across all tested compute budgets, REBASE consistently outperforms MCTS, which suffers from a poor compute-accuracy trade-off due to its costly rollout mechanisms.
Limitations and Future Work
- PRM Dependency: The success of REBASE is heavily reliant on the quality of the underlying Process Reward Model; noisy or inaccurate step-level reward signals will directly degrade search performance.
- Theoretical Gaps: While the paper provides rigorous convergence proofs for sampling-based voting methods, a formal theoretical analysis of tree-search scaling behaviors is left for future work.
- Scope of Tasks: The empirical evaluation focuses primarily on math and coding problems; extending these inference scaling laws to open-ended generation or creative tasks remains an open area of exploration.
Summary updated