Search-Based Correction of Reasoning Chains for Language Models

Minsu Kim, Jean-Pierre R. Falet, Oliver E. Richardson, Xiaoyin Chen, Moksh Jain, Sungjin Ahn, Sungsoo Ahn, Yoshua Bengio · OpenReview

TL;DR

This paper introduces a novel framework for identifying and correcting errors in the step-by-step reasoning (Chain-of-Thought or CoT) of large language models (LLMs). By treating the correctness of each reasoning step as a latent variable, they develop a search algorithm (Veracity Search) and a fine-tuning method (Amortized Veracity Inference) that significantly improve the accuracy of identifying flawed reasoning, leading to better final answers.

What Problem Does This Paper Address?

Large language models have shown impressive capabilities in generating step-by-step reasoning (Chain-of-Thought or CoT) to solve complex problems. While CoT offers a degree of transparency, these generated reasoning chains often contain factual inaccuracies or logical flaws. These errors can propagate through the reasoning process, ultimately leading to incorrect final answers and undermining the trustworthiness of LLMs. Existing methods for improving CoT correctness are often limited by the need for extensive labeled data or struggle with the inherent complexity of identifying errors in long, multi-step reasoning processes. This paper aims to address this by developing a more efficient and accurate method for identifying errors within CoT.

Methods

The core of this work lies in framing error identification as a latent variable model (LVM) problem. Each reasoning step in a CoT is augmented with a latent veracity variable (binary: true/false) indicating its correctness. The authors propose Veracity Search (VS), a discrete search algorithm that efficiently explores the space of possible veracity assignments. VS leverages the LLM's joint likelihood over the veracity assignments and the final answer as a proxy reward to guide its search, effectively performing approximate inference in the posterior distribution of veracity.

To enable zero-shot inference without needing the true answer during deployment, they introduce Amortized Veracity Inference (AVI). AVI fine-tunes an LLM using pseudo-labels generated by VS. This trained model, the "Amortized Corrector," can then predict veracity assignments for new reasoning chains without requiring the true answer or the search process. This approach allows for efficient, inference-time verification and correction.

Datasets

The authors evaluate their methods on several established benchmarks:

  • PRONTOQA: A logical reasoning benchmark.
  • GSM8K: A mathematical reasoning task.
  • COMMONSENSEQA: A commonsense reasoning benchmark.

For these datasets, they either use existing ground truth reasoning chains or generate them using LLMs (like GPT-4.1) and then synthetically corrupt them to introduce controlled errors.

Key Insights and Ideas

  • Disentangling Identity from Veracity: The key innovation is treating the identity of the reasoning steps (the actual text) separately from their veracity (whether they are correct). This allows for more targeted error detection.
  • Veracity as a Latent Variable: By modeling veracity as a latent variable, the problem becomes one of inference, which can be tackled with search and learned models.
  • Proxy Reward for Efficient Search: Using the LLM's joint likelihood of the veracity and the final answer as a reward signal is a clever way to guide the search for correct veracity assignments without needing explicit ground truth for each step.
  • Amortized Inference for Practicality: AVI bridges the gap between the computationally intensive search (VS) and practical deployment by learning a lightweight model that can perform zero-shot veracity inference.
  • Correction is More Effective with Accurate Veracity: The results strongly suggest that simply trying to correct errors without accurately identifying them can be detrimental. Accurate veracity identification is a prerequisite for effective self-correction.

Key Results

  • High Veracity Identification Accuracy: VS consistently outperforms baseline methods in identifying the correct veracity of reasoning steps, achieving near-perfect Hamming similarity on PRONTOQA and significantly higher accuracy on GSM8K and COMMONSENSEQA. For example, on PRONTOQA, VS achieves >0.91 Hamming similarity, while baselines are around 0.6-0.7.
  • Improved Answer Accuracy: Using AVI for self-correction leads to significant improvements in the final answer accuracy. On PRONTOQA, AVI-based correction boosts accuracy by up to 25% compared to using raw, uncorrected CoTs.
  • Robustness to Error Distributions: VS demonstrates robustness to different patterns of errors within reasoning chains (front-loaded, uniform, back-loaded).
  • Scalability: The method scales to longer reasoning chains (up to 5 hops in PRONTOQA) and different LLM sizes.
  • Efficiency: VS is sample-efficient, achieving good results with relatively few samples, and is computationally efficient compared to other search-based methods.

Limitations and Future Work

  • Sensitivity to Error Distribution: The performance of VS can be sensitive to the distribution of errors, and most analysis is based on synthetically corrupted CoTs. While preliminary results show promise on naturally occurring errors, more extensive testing is needed.
  • Identity Still Matters: While veracity is crucial, the identity of the reasoning steps is still important. The paper prototypes integrating AVI with self-improvement methods to resample erroneous statements, but designing more powerful systems that combine veracity inference with iterative correction remains an open area.
  • Potential for New Training Signals: The authors suggest that their method could provide a new training signal for LLMs, potentially by using EM to jointly update generative models with veracity samples or by providing a veracity-specific process-level training signal for process reward models.
  • Extending to Categorical Veracity: The framework can be extended beyond binary veracity to handle more nuanced labels (e.g., "unrelated"), which could be useful for tasks like relevance assessment.

Summary updated

BibTeX
@inproceedings{kim2026search,
  author = {Minsu Kim and Jean-Pierre R. Falet and Oliver E. Richardson and Xiaoyin Chen and Moksh Jain and Sungjin Ahn and Sungsoo Ahn and Yoshua Bengio},
  title = {{Search-Based Correction of Reasoning Chains for Language Models}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=eux1cp8GqC},
}
Figure