TL;DR
Contrary to popular belief, increasing randomness when a Large Language Model (LLM) is uncertain often hurts its reasoning performance. This paper introduces "correctness-first" decoding strategies—Greedy-Threshold, Calibrated-TopK, and Calibrated-$\epsilon$—which improve reasoning by enforcing stricter, more "greedy" sampling precisely when the model is most likely to make a mistake.
The Problem: Exploration vs. Reliability
When LLMs tackle complex reasoning tasks, practitioners often generate multiple "chains-of-thought" to find the best answer, a technique known as self-consistency. To obtain diverse answers, randomness is typically injected during the decoding process.
However, there is a fundamental conflict in how we handle model uncertainty:
- The Exploration View: If a model is uncertain, we should sample more broadly to find alternative valid paths.
- The Reliability View: If a model is uncertain, it is likely about to hallucinate or make a mistake, so we should restrict sampling.
The authors argue that in reasoning tasks (like math or logic), uncertainty is rarely a "branch point" between two equally correct ideas. Instead, it is usually epistemic uncertainty—the model simply does not know the answer. In these cases, standard techniques like top-p or temperature scaling actually encourage the model to pick "tail tokens" that derail the entire reasoning chain.
Proposed Methods: Correctness-First Decoding
The researchers propose shifting from standard "confidence-based" decoding to correctness-based decoding.
They introduce three main strategies designed to truncate the sampling space based on the likelihood of a token actually being correct:
- Greedy-Threshold: A simple but counterintuitive rule. If the model's maximum confidence for the next token falls below a certain threshold (e.g., 0.3), the model stops sampling randomly and just picks the most likely token (greedy decoding).
- The Calibration Grid: The authors create a map that correlates a model's confidence and the rank of a token (1st most likely, 2nd, etc.) with its actual probability of being correct. They found that for low-confidence steps, the correctness of any token beyond the first one drops off a cliff.
- Calibrated-TopK & Calibrated-$\epsilon$: These are adaptive versions of standard samplers. Instead of a fixed $k$ or $\epsilon$, these methods use the Calibration Grid (or a log-log linear fit of it) to dynamically truncate the vocabulary, only allowing tokens that meet a predicted "correctness" score.
Key Insights
- Uncertainty is a Risk, Not an Opportunity: In reasoning, low-probability tokens are rarely "hidden gems." They are almost always errors. Sampling them doesn't add useful diversity; it just adds noise.
- The "Derailment" Effect: A single low-correctness token early in a chain-of-thought can ruin the entire sequence. By being "greedy" at these high-risk moments, the model stays on track.
- Calibration is Universal: Surprisingly, a model calibrated on a general instruction dataset (Alpaca) performs nearly as well as one calibrated on a specific task (GSM8K). This suggests that the relationship between confidence and correctness is a structural property of the model itself.
- Diversity vs. Correctness: While these methods reduce the number of unique answers generated, they increase the quality of those answers, leading to higher majority-vote accuracy.
Datasets and Results
The authors evaluated their methods across a diverse set of benchmarks, including reasoning and math (GSM8K, MMLU-Pro, Big-Bench-Hard), hard mathematics (AIME24 and AIME25), coding (MBPP), and creative writing (LitBench).
Key Results Include: * AIME Gains: The methods showed up to a 6% improvement on the challenging AIME math benchmark. * Consistency: Across Qwen2.5 and Llama-3 models, the calibrated samplers consistently outperformed standard baselines like top-p, min-p, and Entropy-dependent Temperature (EDT). * Small Model Boost: The "Greedy-Threshold" strategy was particularly effective for smaller models (like Qwen2.5-0.5B), which are more prone to drifting into low-correctness states. * Efficiency: These methods add negligible compute overhead—just a simple table lookup or a basic scalar transform during the decoding step.
Limitations and Future Work
While highly effective for reasoning, the stricter truncation of correctness-first decoding was less dominant in diversity-first tasks like coding (MBPP), where the pass@k metric heavily rewards finding any correct solution among many attempts. Similarly, creative writing tasks might still benefit from the "aleatoric" randomness that this method seeks to prune. Finally, because the model currently relies on a pre-computed calibration grid, future work could explore "on-the-fly" calibration that adjusts to the specific prompt or model state in real-time.
Summary updated