TL;DR
Scaling a model's performance doesn't always require more parameters; sometimes, you just need to let it "think" longer. This paper introduces inference scaling laws, showing that smaller models paired with sophisticated search strategies can outperform models five times their size. It also introduces REBASE, a novel tree-search algorithm that achieves Pareto-optimal efficiency in mathematical problem-solving.
What Problem Does This Paper Address?
We are well-acquainted with the "Chinchilla" scaling laws, which tell us how to balance model size and training data to get the best performance for a given training budget. However, we lack a similar roadmap for inference.
When a Large Language Model (LLM) faces a difficult reasoning task, we have two main levers: we can use a larger, more expensive model, or we can use a smaller model and ask it to generate multiple solutions (sampling) or explore different reasoning paths (search). The authors address a fundamental question: Given a fixed inference compute budget (FLOPs), what is the optimal combination of model size and inference strategy?
Methods
The researchers conducted a massive empirical study across different model families (Pythia, Llemma, Mistral, Llama 3) and various inference strategies:
- Baselines: Greedy search, Best-of-$n$, and Majority Voting.
- Advanced Search: Monte Carlo Tree Search (MCTS) and a newly proposed method called REBASE.
REBASE (REward BAlanced SEarch) is the paper's key algorithmic contribution. Unlike MCTS, which is computationally heavy because it requires "rollouts" (simulating a path to the end) to estimate node quality, REBASE uses a Process Reward Model (PRM) to score intermediate reasoning steps. It then uses a softmax-normalized expansion strategy: it allocates more "children" (next steps) to promising nodes and prunes the bad ones, all within a global token budget. This makes it much faster and more compute-efficient than traditional tree searches.
Datasets
The study focuses on domains where "correctness" is verifiable, primarily mathematical reasoning and coding:
- GSM8K: Grade-school math word problems.
- MATH / MATH500: Challenging high-school competition-level math.
- MBPP: A benchmark for Python code generation.
Key Insights and Ideas
- Inference Scaling exists and is predictable: Much like training, inference performance follows regular scaling patterns. The authors even provide a regression formula to estimate the optimal model size for a given test-time compute budget.
- The "Smaller is Better" Surprise: For many compute budgets, it is more efficient to use a smaller model with many samples/search steps than a large model with a single "greedy" guess.
- The Saturation Point: Simple sampling (like majority voting) eventually hits a wall. No matter how many thousands of samples you draw, accuracy saturates because the model's underlying distribution is flawed. This highlights the necessity of search (like REBASE) to shift the distribution toward correct answers.
- Harder Problems Benefit More: The performance gap between simple sampling and REBASE widens as problems get harder. On "MATH-hard" problems, the efficiency gains of tree search are most pronounced.
Key Results
- Efficiency Gains: On the MATH500 benchmark, Llemma-7B using REBASE achieved higher accuracy than Llemma-34B using standard sampling, while using 7x less compute.
- Pareto Optimality: REBASE was found to be Pareto-optimal across almost all tested budgets, meaning for any given amount of compute, it provided the highest accuracy compared to MCTS or Best-of-$n$.
- Generalization: The findings held true across different architectures, including the newer Llama-3-8B-Instruct, proving that inference scaling is a fundamental property of LLMs, not just an artifact of one specific model.
Limitations and Future Work
- Domain Specificity: The study is limited to math and code. It remains to be seen how these laws apply to "soft" reasoning tasks (like creative writing or legal analysis) where there isn't a clear Process Reward Model to guide the search.
- Reward Model Dependency: REBASE's success relies heavily on the quality of the Process Reward Model. If the PRM is biased or inaccurate, the search will fail.
- Future Directions: The authors suggest that the next frontier is designing even more sophisticated "test-time" algorithms that can alter the sampling distribution more effectively than current tree searches.
Summary updated