CarBoN: Calibrated Best-of-N Sampling Improves Test-time Reasoning

Yung-Chen Tang, Pin-Yu Chen, Andrea Cavallaro · Submission to ICLR 2026 · Withdrawn

TL;DR

Standard parallel sampling methods like Best-of-$N$ suffer from diminishing returns because they repeatedly draw candidates from a static distribution and discard sub-optimal attempts. The authors propose CarBoN (Calibrated Best-of-$N$), a two-phase test-time calibration framework that mines signals from initial high-reward completions to adaptively steer subsequent generation toward higher-reward reasoning paths using a learned temperature and logit shift vector—achieving up to $4\times$ fewer rollouts without retraining the underlying language model.

What Problem Does This Paper Address?

Test-time scaling (TTS)—allocating more inference compute by generating multiple candidates (e.g., Best-of-$N$ sampling or majority voting)—lets smaller models match or outperform much larger ones on complex reasoning tasks. However, scaling rollouts naively leads to rapidly diminishing returns. Because candidates are sampled independently from a fixed model distribution, the model continues wasting compute exploring unpromising, low-quality reasoning trajectories.

While verification via process reward models (PRMs) helps rank outputs, existing parallel sampling approaches discard all non-winning rollouts, throwing away valuable intermediate signals about where high-reward solutions reside in the output space.

Methods

CarBoN reformulates test-time scaling as a two-phase exploration–exploitation framework under a fixed total rollout budget $N = N_1 + N_2$:

  1. Phase 1: Exploration ($N_1$ rollouts): The model samples $N_1 = N/2$ completions from the base model distribution (at default baseline temperature $T = 0.8$). A Process Reward Model (PRM) scores intermediate reasoning steps, producing a sequence-level score.
  2. Test-Time Logit Calibration: The top-$k$ highest-scoring completions ($k = N_1 / 4$) form a calibration set $\mathcal{D}_{\text{calib}}(x)$. The authors introduce two input-specific parameters:
  3. An additive shift vector $\delta \in \mathbb{R}^d$ in the final hidden dimension, projected into vocabulary space via the frozen language model head ($W_{\text{LM}}\delta$).
  4. A scalar temperature parameter $T > 0$.

The calibrated distribution is parameterized as: $$p_\theta(y_t \mid y_{<t}, x; \delta, T) = \text{softmax}\left(\frac{\text{logits} + W_{\text{LM}}\delta}{T}\right)$$ Crucially, $\delta$ and $T$ are optimized via AdamW directly on cached base logits of the top-$k$ completions to minimize negative log-likelihood (NLL) with an $L_2$ penalty on $\delta$. This lightweight optimization requires zero additional model forward passes.

  1. Phase 2: Calibrated Exploitation ($N_2$ rollouts): The model generates the remaining $N_2 = N/2$ candidates using the learned $(\delta^*, T^*)$.
  2. Final Selection: The final output is selected across the union of all $N_1 + N_2$ candidates using PRM scoring (evaluated via vanilla Best-of-$N$ or weighted selection summing scores for identical answers).

The framework also naturally extends to step-level decoding methods, such as beam search.

Datasets

The authors evaluate reasoning performance across two math benchmarks:

  • MATH-500: A standardized 500-problem test subset of the high-school competition MATH dataset across varying subjects and difficulty tiers.
  • AIME-2024: A highly challenging Olympiad-level benchmark consisting of 30 problems from the 2024 American Invitational Mathematics Examination (AIME I and II).

Models tested include Llama-3.2-1B/3B-Instruct, Qwen2.5-1.5B-Instruct, and Qwen2.5-Math-1.5B/7B-Instruct, paired with Qwen2.5-Math-PRM-7B as the verifier. No new benchmarks were introduced.

Key Insights and Ideas

  • Theoretical Guarantees for Test-Time Adaptation: The paper proves that whenever a model is not already perfectly calibrated to the target distribution, there exists a non-trivial joint update $(\delta, T) \neq (0, 1)$ that strictly decreases calibration loss (Lemma 1). Furthermore, shifting probability mass toward the optimal output provably improves the lower bound of expected Best-of-$N$ reward under finite sampling (Theorem 2).
  • Sub-optimality of Exploitation Alone: The authors mathematically show (Corollary 3) that pooling both exploration ($N_1$) and exploitation ($N_2$) candidates strictly dominates selecting only from the exploitation set, preserving broad exploratory coverage alongside focused exploitation.
  • Complementary Roles of $\delta$ and $T$:
  • $\delta$ acts as a token-level directional bias, boosting lexical precision and semantic overlap toward high-scoring solution patterns.
  • $T$ dynamically adapts to both problem difficulty and inference budget: harder problems and larger rollout budgets $N$ naturally learn higher temperatures to promote diversity and prevent repetitive sampling.

Key Results

  • Up to $4\times$ Compute Reduction: On MATH-500, CarBoN at $N = 64$ matches or outperforms uncalibrated Best-of-$N$ at $N = 256$ across all four evaluated models. For instance, Llama-3.2-1B reaches 51.0% accuracy at $N = 64$ with CarBoN versus 50.8% at $N = 256$ uncalibrated.
  • Outperforming Frontier Models: With Qwen2.5-Math-1.5B-Instruct, CarBoN hits 77.2% accuracy on MATH-500 at $N = 64$, surpassing single-sample GPT-4o (77.0%), whereas uncalibrated Best-of-$N$ fails to cross this threshold even at $N = 256$ (76.8%).
  • Harder Regimes & Larger Models: On AIME-2024, CarBoN boosts Qwen2.5-Math-7B-Instruct from 6/30 (uncalibrated plateau from $N = 64$ to $256$) to 7/30 at $N = 256$.
  • Generalization to Step-Level Sampling: Applied to Beam Search on MATH-500, calibrated beam search at $N = 32$ rivals or matches uncalibrated beam search at $N = 64$ (e.g., Llama-3.2-1B: 62.2% vs. 62.2%).

Limitations and Future Work

  • Reliance on Reward Model Quality: Calibration relies on top-$k$ outputs identified by a PRM. If the verifier is prone to reward hacking or misranking, calibration risks steering exploitation toward flawed reasoning paths.
  • Step-Level Calibration Overhead: While lightweight on cached logits in Best-of-$N$, step-level methods (like beam search) require frequent PRM evaluations and search pruning, increasing overall computational latency.
  • Fixed Exploration/Exploitation Allocation: The current approach splits compute evenly ($N_1 = N_2 = N/2$). Dynamically adapting this split based on problem difficulty or reward confidence remains an open question for future work.

Summary updated

BibTeX
@misc{tang2025carbon,
  author = {Yung-Chen Tang and Pin-Yu Chen and Andrea Cavallaro},
  title = {{CarBoN: Calibrated Best-of-N Sampling Improves Test-time Reasoning}},
  year = {2025},
  eprint = {2510.15674},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.15674},
}
Figure