Sample Smart, Not Hard: Correctness-First Decoding for Better Reasoning in LLMs
Xueyan Li, Guinan Su, Mrinmaya Sachan, Jonas Geiping
TL;DR
This work reframes decoding for reasoning in LLMs as a correctness-driven problem rather than a pure exploration or confidence-driven task. By defining rank-wise accuracy and constructing a calibration grid that links token probability to expected correctness, the authors develop Greedy-Threshold, Calibrated-TopK, and Calibrated-$\varepsilon$ strategies that constrain sampling to high-correctness tokens. Across GSM8K, MMLU-Pro, BBH, and AIME, these correctness-first samplers yield consistent gains, with Calibrated-TopK and Calibrated-$\varepsilon$ providing the strongest improvements and Greedy-Threshold offering notable benefits for smaller models, all with negligible decoding overhead. The results support a shift in decoding practice toward correctness-aware truncation, showing that reducing sampling in low-confidence, high-risk steps can prevent error amplification while preserving useful diversity when appropriate. Overall, the work demonstrates that rank-based calibration signals offer a robust, transferable approach to improving reasoning capabilities in advanced LLMs and prompts a broader rethinking of uncertainty handling in autoregressive decoding.
Abstract
Large Language Models (LLMs) are increasingly applied to complex tasks that require extended reasoning. In such settings, models often benefit from diverse chains-of-thought to arrive at multiple candidate solutions. This requires two competing objectives: to inject enough stochasticity to explore multiple reasoning chains, and to ensure sufficient accuracy and quality in each path. Existing works pursue the first objective by increasing exploration at highly uncertain steps with higher temperature or larger candidate token sets, while others improve reliability by rejecting samples with low confidence post-generation, implying that low confidence correlates with low answer quality. These two lines of thought are in conflict, as they conflate different sources of uncertainty. To resolve this, we argue that the decoding rule should be calibrated by correctness, not confidence alone. We should sample from tokens with higher estimated correctness, and reduce sampling where expected correctness is low. We propose simple strategies that achieve this goal: Greedy-Threshold makes sampling greedy at very low confidence steps. Calibrated-TopK and Calibrated-epsilon set truncation threshold based on estimated rank-wise correctness. Together, our findings challenge prevailing heuristics about decoding under uncertainty and show gains across math and general reasoning benchmarks.
