CarBoN: Calibrated Best-of-N Sampling Improves Test-time Reasoning
Yung-Chen Tang, Pin-Yu Chen, Andrea Cavallaro
TL;DR
The paper addresses the inefficiency of test-time scaling with Best-of-$N$ sampling by introducing a general test-time calibration framework that steers generation toward high-reward reasoning paths without retraining the LLM. It instantiates CarBoN as a two-phase method: first explore with $N_1$ samples, then calibrate logits via an input-specific additive shift $\delta$ and temperature $T$ to guide the remaining $N_2$ rollouts, with the final answer drawn from all $N$ candidates. The authors prove the existence of an improving joint calibration $(\delta^*, T^*)$ and show that such calibration strictly increases the lower bound on the expected Best-of-$N$ reward, providing a theoretical foundation for the approach. Empirically, CarBoN delivers consistent gains on MATH-500 and AIME-2024 across multiple models, reducing the required rollout budget by up to $4\times$ and, in some cases, surpassing larger LLMs under fixed budgets; the work also demonstrates that temperature and delta impart complementary benefits and generalizes to beam-search style decoding. Overall, the framework offers a practical, provably beneficial path to more reliable test-time reasoning and broadens the applicability of test-time calibration beyond Best-of-$N$ to other step-level strategies.
Abstract
Allocating more computation during inference time (test-time scaling) improves language model performance, especially for reasoning tasks. However, popular methods like Best-of-$N$ sampling often show diminishing returns as $N$ increases. To address this inefficiency, we introduce a general test-time calibration framework that adaptively modifies the model toward high-reward reasoning paths, with theoretical guarantees of improving the lower bound of expected reward under finite sampling, all without large language model (LLM) retraining. Within this framework, we propose CarBoN (Calibrated Best-of-$N$), a two-phase method that first explores the solution space and then learns a calibration of the logits via an input-specific temperature $T$ and additive shift vector $δ$, guiding generation toward more reliable reasoning. Experiments on MATH-500 and AIME-2024 show that CarBoN improves efficiency, with up to $4\times$ fewer rollouts to reach the same accuracy, while often achieving higher accuracy under fixed budgets. We also analyze the complementary roles of $T$ and $δ$ in balancing output diversity and correctness, and demonstrate that the framework also generalizes to step-level sampling strategies such as beam search. For more information, please refer to our project page at huggingface.co/spaces/TrustSafeAI/Test-Time-Calibration.
