Reliable Chain-of-Thought via Prefix Consistency

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

TL;DR

This paper introduces "prefix consistency," a novel method to improve the reliability of Chain-of-Thought (CoT) reasoning in Large Language Models (LLMs). By checking how often an answer reappears after regenerating a CoT from its prefix, the method effectively weights different reasoning paths, leading to significant accuracy improvements and token efficiency gains, especially on challenging tasks.

What Problem Does This Paper Address?

Large Language Models (LLMs) have shown impressive capabilities in complex reasoning tasks when prompted to generate step-by-step "Chain-of-Thought" (CoT) reasoning. A common technique to boost accuracy is "self-consistency" (SC), which involves sampling multiple CoT traces and taking the majority vote on the final answer. However, standard SC treats all sampled traces equally and can fail when the correct answer is in the minority. Existing methods to improve SC, known as Weighted Majority Voting (WMV), rely on signals like token log-probabilities or self-reported confidence, which can be unreliable, especially on difficult problems where SC is most needed. This paper addresses the challenge of reliably identifying correct reasoning traces and improving the aggregation of multiple CoT outputs, particularly in scenarios where standard methods struggle.

Methods

The core innovation is prefix consistency, a new reliability signal. The authors observe that correct CoT traces are more likely to reproduce their original answer when regenerated from an intermediate prefix compared to incorrect traces. To measure this, they:

  1. Truncate each sampled CoT at a specific fraction (e.g., 75% of tokens).
  2. Regenerate the continuation of the CoT from this prefix.
  3. Compare the original answer with the answer derived from the regenerated continuation.

The "prefix consistency score" quantifies how often the original answer is reproduced. This score is then used to weight the votes of each CoT trace in a Weighted Majority Voting (WMV) framework, creating Prefix-Consistency-Weighted Majority Voting (PC-WMV). Crucially, this method does not require access to token log-probabilities, making it broadly applicable.

Datasets

The paper evaluates their method on the following datasets:

  • Science: FrontierScience-Olympiad
  • Math: HMMT Feb 2026, AIME 2025, Brumo 2025

Key Insights and Ideas

  • Reproducibility as a Signal: The core insight is that the reproducibility of an answer when a reasoning trace is partially regenerated is a strong indicator of its correctness. Correct reasoning paths are more robust to this perturbation.
  • Discrimination Gap: The paper identifies a "discrimination gap" ($D = r_c - r_w$) where $r_c$ is the probability of reproducing a correct answer and $r_w$ is the probability of reproducing an incorrect answer. A larger gap means prefix consistency is more effective at distinguishing correct from incorrect traces.
  • Beyond Per-Sample Signals: Unlike previous WMV methods that assign a single quality score to an entire trace, prefix consistency generates a per-candidate score. This allows PC-WMV to potentially assign positive weight to regenerated answers that were not present in the initial samples, offering more flexibility.
  • Cost-Efficiency: PC-WMV achieves significant improvements in accuracy and token efficiency, reaching standard performance levels with substantially fewer tokens compared to existing methods.

Key Results

  • Accuracy Improvement: Prefix consistency is shown to be a strong correctness predictor, outperforming existing WMV baselines in most settings.
  • Token Efficiency: PC-WMV achieves standard WMV plateau accuracy with a median of 4.6x fewer tokens, and up to 21x fewer tokens compared to Standard MV.
  • Robustness: The effectiveness of prefix consistency is demonstrated across five different LLMs and four benchmarks, showing consistent improvements.
  • Discrimination Gap: The paper empirically verifies that the discrimination gap ($D = r_c - r_w$) is consistently positive across models and benchmarks, validating the core assumption of prefix consistency.

Limitations and Future Work

  • Dependence on Discrimination Gap: The effectiveness of prefix consistency relies on a sufficiently large discrimination gap ($D > 0$). If incorrect answers are also highly reproducible or correct answers are not reliably reproduced from prefixes, the advantage diminishes.
  • CoT Requirement: The method assumes access to an explicit Chain-of-Thought trace that can be truncated and continued. This might not be applicable to closed models or systems where the internal reasoning trace is hidden. Future work could explore extending the method to such settings.
  • Hyperparameter Tuning: Prefix consistency introduces hyperparameters like truncation fraction ($\tau$) and number of regenerations ($K$), though the paper shows the default settings are robust.
  • Origin of Asymmetry: While the paper establishes the behavioral regularity of prefix consistency, the underlying mechanistic explanation for why correct traces are more reproducible than incorrect ones remains an open question.
  • Domain Generalization: The current evaluation is focused on math and science reasoning tasks. Further research is needed to see if the phenomenon holds for other domains.

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