TL;DR
When you ask a Large Language Model (LLM) to generate multiple answers to a hard problem and pick the one it feels most "confident" about, you end up systematically selecting confidently wrong hallucinations. This paper introduces Consilience, a zero-overhead selection metric based on a counterintuitive realization: genuinely smart reasoning starts uncertain—as the model weighs different approaches—and only grows confident at the very end. By penalizing early-stage arrogance and rewarding final certainty, Consilience rescues test-time scaling on open-ended tasks like code generation without needing an external compiler or judge.
What Problem Does This Paper Address?
One of the best ways to make an LLM smarter at inference time is parallel test-time scaling: generate $N$ candidate solutions and pick the best one. That works wonders if you have an external verifier (like unit tests) or if you can take a majority vote (like on multiple-choice or integer math questions).
What if you are generating free-form code from scratch or navigating an agentic workflow without unit tests? Voting doesn't apply to open-ended text, and running LLM-as-a-judge models adds massive latency. To stay fast and verifier-free, researchers turned to internal token log-probabilities—picking the sequence with the highest average confidence.
On average across whole benchmarks, higher confidence correlates with higher accuracy. However, the authors uncover a catastrophic flaw: on genuinely hard problems, this relationship inverts. Incorrect answers exhibit a higher mean confidence than correct ones, forming a heavy right-skewed tail. Simply picking the highest-confidence completion guarantees falling into this "long-tail trap" of confidently wrong answers.
Methods
Why does high early confidence signal failure? In an autoregressive model, high confidence on the first few tokens means the model immediately collapsed its probability space onto a single path, ignoring nuances and alternative strategies. Conversely, if a model recognizes a problem's complexity and considers multiple valid routes, its probability mass splits—manifesting as low initial confidence. As it works through the logic, constraints tighten, culminating in high final confidence.
Borrowing from scientific epistemology—where consilience means a conclusion is reliable when multiple diverse lines of inquiry converge—the authors operationalize this temporal asymmetry:
- Token-Level Confidence: Following standard practice, confidence at step $t$ is the negative mean log-probability of the top-$K$ candidate tokens ($K=5$, making it compatible with commercial APIs).
- Boundary Windows: Instead of averaging across the whole sequence, they measure $C_{\text{initial}}$ (mean confidence of the first $W$ tokens, after skipping a tiny 5% prefix) and $C_{\text{final}}$ (mean confidence of the last $W$ tokens), typically setting $W = 20\%$ of sequence length.
- The Consilience Score: Computed simply as $S = C_{\text{final}} - \alpha C_{\text{initial}}$ (with penalty $\alpha = 3$), actively penalizing premature convergence while demanding final certainty.
- Reasoning-Phase Isolation (
-think): Modern reasoning models output a<think>trace followed by a final summary answer. Because summary tokens merely repeat an already-reached conclusion with artificially high certainty, the authors strip the final answer out via a simple string split and score only the active reasoning trace.
Datasets
Because Consilience is completely training-free, the paper evaluates across four challenging, reasoning-heavy benchmarks—importantly including open-ended coding where majority voting fails:
- LiveCodeBench-v6 (LCB): Free-form competitive code generation.
- SWE-bench Verified: Multi-turn, agentic repository-level software engineering.
- HMMT25: Advanced competition mathematics.
- GPQA-Diamond: Graduate-level scientific question answering.
No new datasets were introduced.
Key Insights and Ideas
- Premature Convergence vs. True Exploration: Uniformly high confidence isn't mastery; on hard problems, it is a symptom of overfitting to a knee-jerk, flawed premise. Exploring options requires early probabilistic uncertainty.
- Graceful Neutrality on Easy Tasks: What if a problem is trivially easy and the model should be confident right away? Stratifying by difficulty reveals that on easy tasks, almost all candidate rollouts share similarly high initial confidence—leaving nothing to penalize and making Consilience harmlessly neutral while concentrating big gains on medium and hard problems.
- Purely Internal & API-Friendly: Computing Consilience requires zero training, zero extra forward passes, and works using just the top-5 token log-probs exposed by standard commercial APIs.
Key Results
Across open-weight thinking and instruction models (GPT-OSS-120B/20B, Qwen3-80B, DeepSeek-R1-Distill-7B), maximizing mean or tail-only confidence frequently performs worse than picking a single random rollout (Pass@1):
- Rescuing Code Generation: On LiveCodeBench ($n=64$), standard confidence baselines degrade GPT-OSS-120B from 65.7% (Pass@1) down to 61.9%. Consilience (
Cns-think) lifts accuracy to 69.7%. Similarly, Qwen3-80B jumps from 55.3% to 60.4% (or 60.9% on the full-2K variant). - Math & Science Gains: On HMMT25 with GPT-OSS-20B, naive Self-Certainty crashes accuracy from 76.5% to 68.0%, whereas Consilience pushes it to 80.7%.
- Scaling Without Collapsing: As sample size $n$ grows up to 128, standard confidence methods curve downward as they inevitably sample extreme-tail hallucinations, while Consilience scales steadily upward.
- Agentic Coding: Triggering Consilience ($n=32$) selectively on major file-edit steps inside
mini-SWE-agentimproves SWE-bench Verified resolution rates from 23.0% to 26.9% on GPT-OSS-120B and from 65.3% to 67.3% on Qwen3-Coder-Next.
Limitations and Future Work
The authors note that $S = C_{\text{final}} - \alpha C_{\text{initial}}$ is a fixed linear heuristic rather than a universal law—certain tasks or models might exhibit multiple valid confidence shapes (for instance, oscillating uncertainty across multi-part subproblems). Furthermore, their agentic SWE-bench integration relies on a coarse, bash-keyword trigger to decide when to scale compute, still roughly doubling wall-clock runtime. Future directions include training lightweight selectors over full confidence trajectories, using Consilience to prune/select shallow trees in tree search, building smarter agentic triggers, and using Consilience as an intrinsic reward for verifier-free reinforcement learning.
Summary updated