Reliable Chain-of-Thought via Prefix Consistency

Naoto Iwase, Yuki Ichihara, Mohammad Atif Quamar, Junpei Komiyama

TL;DR

When large language models solve tough problems, they often generate multiple step-by-step reasoning paths and take a majority vote—a popular trick that unfortunately fails whenever the model is confidently wrong most of the time. This paper discovers a remarkably simple tell for truthfulness: if you chop a reasoning trace partway through and ask the model to finish it again, right answers reliably reappear while wrong answers tend to scatter. Weighting votes by this "prefix consistency" reaches peak accuracy using up to 21× fewer tokens, without needing internal model probabilities.

What Problem Does This Paper Address?

Asking a large language model (LLM) to "think step-by-step"—known as Chain-of-Thought (CoT) reasoning—dramatically boosts its problem-solving power. To squeeze out even more accuracy at test time, engineers typically sample dozens of independent reasoning traces and pick the most popular final answer, a technique called majority voting (or self-consistency).

There is a catch: democracy fails when the crowd is wrong. On genuinely hard problems where a model’s single-try success rate (Pass@1) drops below 50%, incorrect answers dominate the ballot.

Researchers have tried fixing this with weighted majority voting, giving louder megaphones to answers the model seems "confident" about—measured via internal token probabilities or by prompting the model to grade its own work. However, on difficult problems—precisely where majority voting needs saving—these traditional confidence signals go flat, assigning nearly identical scores to brilliant deductions and complete hallucinations. Worse, closed-source APIs often hide token probabilities altogether. How do you spot a reliable line of reasoning using only generated text?

Methods

The authors introduce Prefix Consistency and plug it into Prefix-Consistency-Weighted Majority Voting (PC-WMV). Instead of asking the model how confident it feels, they test the structural stability of its thought process:

  1. Generate & Truncate: Generate $N$ reasoning traces as usual. Take each trace and slice it off partway through (the paper fixes this at 75% of its token length), keeping the first part as a shared "prefix."
  2. Regenerate: Ask the LLM to finish the thought from that truncated prefix (even a single regeneration, $K=1$, works well).
  3. Score & Vote: Group the original answer and the regenerated answer(s) together. Each candidate answer in the group gets a prefix consistency score based on the fraction of times it appears, raised to a power (linear, quadratic, or cubic) to amplify consistent matches.
Figure 1: Overview of prefix consistency. Top: cost-equivalent accuracy of majority voting weighted by prefix consistency and baseline methods on two models and benchmark settings. Shaded bands and error bars show ±2× the Monte Carlo standard error. Bottom: Overview of our proposed method (prefix consistency). Correct reasoning traces exhibit greater reproducibility under regeneration.

What is standard here is aggregating answers via weighted votes; what is novel is deriving weights from regeneration stability—and allowing newly regenerated answers to enter the ballot box even if they never appeared in the initial batch of samples.

Datasets

Because this is strictly a test-time inference technique, no training datasets are used. The authors evaluate five open-weight reasoning LLMs (ranging from 9B to 120B parameters across the GPT-OSS, NVIDIA Nemotron, and Ministral families) on four challenging benchmarks:

  • Science: FrontierScience-Olympiad
  • Competition Math: HMMT Feb 2026, AIME 2025, and Brumo 2025 (sourced via MathArena, designed to evaluate models on uncontaminated competitions).

Key Insights and Ideas

  • Tolstoy’s Anna Karenina Principle for LLMs: Happy families are all alike; unhappy ones are unhappy in their own way. Solid reasoning paths build sturdy foundations, meaning regenerating the final 25% usually lands on the exact same answer ($r_C$). Flawed reasoning relies on brittle leaps or lucky guesses—regenerate from the 75% mark, and the model often wanders off to a completely different wrong answer ($r_W$). Across every single model and benchmark tested, $r_C > r_W$.
  • Beating the 50% Barrier: Because correct answers reproduce more faithfully than wrong ones, amplifying consistent answers mathematically allows PC-WMV to crown the right winner even when correct traces are in the minority (Pass@1 < 50%), a regime where standard majority voting is guaranteed to fail.
  • Rescue via Regeneration: Unlike standard reweighting methods that merely shuffle weights among initial answers, PC-WMV lets regenerated continuations cast votes too—meaning a trace that originally fumbled at the finish line can still surface the right answer on its second try.

Key Results

Crucially, because regenerating continuations costs extra tokens, the authors evaluate all methods under strict cost-equivalent token budgets:

  • Superior Correctness Prediction: Prefix consistency achieves the best within-problem correctness discrimination (macro-averaged AUROC of .63–.80) in 15 out of 20 model-benchmark pairings, cleanly separating right from wrong traces where probability-based baselines hover near random guessing (0.50).
  • Massive Token Savings: To hit 99% of standard majority voting's plateau accuracy, PC-WMV (with cubic weighting) uses a median of 4.6× fewer tokens, peaking at 21.7× fewer tokens on FrontierScience-Olympiad (GPT-OSS-120B) and 20.9× fewer on AIME 2025 (Ministral3-14B).
  • Higher Accuracy Ceilings: At a fixed 5M-token budget on Ministral3-14B, PC-cubic lifts accuracy from 56.9% to 62.1% on AIME 2025, and from 69.9% to 75.9% on Brumo 2025.

Limitations and Future Work

  • Diminishing Returns on Easy Tasks: When a model already nails a benchmark on the first try (e.g., Pass@1 around 90%, right near its ceiling), spending extra tokens on regenerations yields little benefit—simple early-stopping rules save more compute there.
  • Orthogonal to Early Stopping: Right now, PC-WMV uses a fixed pool size rather than deciding dynamically when to stop sampling. Combining prefix-consistency weighting with adaptive early-stopping rules is highlighted as a natural next step to get the best of both worlds on easy and hard problems alike.
  • Unverified Error Mechanics: Interestingly, wrong math answers reproduce more stubbornly (~25–60%) than wrong science answers (~15–40%). The authors hypothesize that math errors stem from internally consistent miscalculations early in the prefix, whereas science errors reflect diffuse knowledge gaps, leaving mechanistic verification to future work.

Summary updated

BibTeX
@inproceedings{iwase2026reliable,
  author = {Naoto Iwase and Yuki Ichihara and Mohammad Atif Quamar and Junpei Komiyama},
  title = {{Reliable Chain-of-Thought via Prefix Consistency}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=9zfyYpgXhy},
}
Figure