TL;DR
Test-time scaling methods like Best-of-$N$ sampling hit a wall of diminishing returns because models waste compute exploring low-quality reasoning paths. CarBoN (Calibrated Best-of-$N$) solves this by using a two-phase approach: it explores the solution space first, then dynamically calibrates the model's output probabilities (logits) on the fly to steer subsequent generations toward high-reward paths. This lightweight method requires zero model retraining and cuts the required compute budget by up to 4×.
What Problem Does This Paper Address?
Large Language Models (LLMs) perform significantly better on complex reasoning tasks when allowed to "think longer" at inference time—a strategy known as test-time scaling (TTS). A common baseline is Best-of-$N$ (BoN) sampling, where the model generates $N$ independent answers, and a verifier or reward model picks the best one.
However, as $N$ grows, BoN suffers from severe diminishing returns. Because each generation is independent, the model blindly samples from its original distribution, frequently wasting compute on repetitive or low-quality reasoning paths. The authors target this inefficiency: how can we dynamically use early reward feedback to guide the model toward better answers during a single inference budget?
To illustrate the power of reward guidance, the authors use a binary search analogy. Instead of blindly bisecting an interval, using a noisy reward signal to calibrate the next step drastically accelerates convergence:
Methods
The authors introduce a general test-time calibration framework called CarBoN, which splits the inference budget ($N = N_1 + N_2$) into two distinct phases:
- Exploration ($N_1$ samples): The model generates an initial batch of candidate answers. A Process Reward Model (PRM) scores these completions.
- Logit Calibration: Instead of throwing away the discarded samples, CarBoN takes the top-$k$ highest-scoring completions to form a temporary calibration dataset. It then optimizes two input-specific parameters directly on the cached logits of these top samples: an additive shift vector ($\delta$) and a temperature scaling factor ($T$). This optimization is incredibly lightweight because it doesn't require backpropagation through the entire LLM.
- Exploitation ($N_2$ samples): The model generates the remaining samples using the newly calibrated logits, steering the generation toward high-reward regions.
The final answer is selected from the combined pool of all $N_1 + N_2$ samples. The authors also demonstrate that this framework easily generalizes to step-level decoding strategies like Beam Search.
Datasets
The method was evaluated on two prominent mathematical reasoning benchmarks:
- MATH-500: A widely adopted subset of the MATH dataset containing 500 high-school competition-level problems.
- AIME-2024: A highly challenging dataset consisting of problems from the American Invitational Mathematics Examination, designed to test advanced mathematical problem-solving.
Key Insights and Ideas
- Recycling Discarded Compute: Standard parallel sampling throws away $N-1$ generations. CarBoN treats these discarded paths as a goldmine of signal to map out the local reward landscape.
- Adaptive Temperature vs. Fixed Hyperparameters: The optimal temperature shouldn't be fixed. CarBoN automatically learns higher temperatures for harder problems (to encourage diversity when uncertain) and for larger sample budgets $N$ (to prevent generating near-identical redundant answers).
- The Power of Joint Calibration: While the shift vector ($\delta$) corrects token-level biases to align with high-quality answers, the temperature ($T$) controls the sharpness of the distribution. Together, they balance diversity and correctness.
- Theoretical Backing: The authors provide formal proofs showing that an optimal calibration solution always exists and that it mathematically guarantees first-order stochastic dominance over uncalibrated baselines, raising the lower bound of the expected reward.
Key Results
- 4× Compute Reduction: Across multiple models (Llama-3.2 and Qwen2.5 variants), CarBoN achieves the same or higher accuracy with up to 4× fewer rollouts. For instance, calibrated accuracy at $N=64$ consistently matched or exceeded uncalibrated accuracy at $N=256$.
- Outperforming GPT-4o: Using a small Qwen2.5-Math-1.5B-Instruct model with CarBoN at $N=64$, the model achieved 77.2% accuracy on MATH-500, surpassing GPT-4o's single-shot performance (77.0%), whereas the uncalibrated baseline failed to beat GPT-4o even at $N=256$.
- Generalization to Beam Search: When applied to step-level beam search, calibration similarly boosted sample efficiency, allowing a budget of $N=32$ to match a standard beam search budget of $N=64$.
Limitations and Future Work
- Dependency on Verifiers: CarBoN relies heavily on the quality of the Process Reward Model (PRM). If the reward model provides flawed or easily gamified feedback, the calibration will steer the model into incorrect reasoning traps.
- Domain Specificity: The evaluation focuses primarily on mathematics and structured reasoning where step-level verifiers are highly mature. How well this calibration transfers to open-ended writing or code generation remains an open question.
- Inference Overhead: While optimizing on cached logits is lightweight, it still introduces a small runtime pause between the exploration and exploitation phases to solve the optimization problem.
Summary updated