Latent Veracity Inference for Identifying Errors in Stepwise Reasoning

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

TL;DR

This paper introduces a framework to automatically detect errors in a language model's (LM) step-by-step reasoning by treating the correctness of each step as a "latent" (hidden) variable. By using a discrete search algorithm called Veracity Search (VS) to find the most likely truth labels for a reasoning chain, and then "amortizing" this process into a fine-tuned model (Amortized Veracity Inference, or AVI), the authors enable LMs to identify their own mistakes and self-correct without requiring expensive human-labeled datasets.

What Problem Does This Paper Address?

Chain-of-Thought (CoT) reasoning has significantly advanced the capabilities of large language models on complex tasks. However, there is a major catch: if a model makes a single mistake in an early step, that error often propagates, leading to a "hallucinated" or incorrect final answer.

Detecting these stepwise errors is notoriously difficult. Existing solutions usually fall into two camps:

  1. Supervised Learning: Training a "verifier" on human-annotated reasoning steps. This is incredibly expensive and scales poorly.
  2. Outcome-based Reward: Training models based only on whether the final answer is right. This often fails to capture why a step was wrong, sometimes even rewarding "useful but incorrect" logic.

The authors aim to bridge this gap by creating a method that allows a model to infer the veracity (truthfulness) of its own reasoning steps using only its internal probability distributions and the final answer as a guiding signal.

Methods

The core idea is to treat the correctness of each reasoning step as a binary latent variable ($V_z \in \{0, 1\}$). The authors propose a two-stage approach to infer these variables:

Overview of Veracity Search and Amortized Veracity Inference
  1. Veracity Search (VS): This is a test-time discrete search algorithm. Given a question, a reasoning chain, and the correct answer, VS uses a Metropolis algorithm with Simulated Annealing to flip the truth labels of various steps. It looks for the assignment of "True/False" labels that maximizes the joint likelihood of the reasoning chain and the final answer. Essentially, it asks: "Which steps must be wrong for this specific chain to result in this final answer?"
  2. Amortized Veracity Inference (AVI): Since running a search for every question is computationally expensive, the authors use the labels generated by VS as "pseudo-labels" to fine-tune the LM. This creates an AVI "machine"—a model that can predict the correctness of reasoning steps in a single forward pass (zero-shot), even when the final answer is unknown.

A key technical highlight is the Greedy-Tree Initialization, which provides a "warm start" for the search, significantly improving sample efficiency compared to random bit-flipping.

Datasets

The authors evaluated their approach across three distinct reasoning domains:

  • PRONTOQA: A synthetic logical reasoning benchmark. It is particularly useful because the authors can inject controlled, "synthetic" errors into perfect proofs to see if the system can find them.
  • GSM8K: A standard benchmark for grade-school math word problems, testing arithmetic and multi-step quantitative logic.
  • COMMONSENSEQA: A dataset for world knowledge and commonsense reasoning.

To test "natural" errors, they also used GPT-4 to generate reasoning chains and then used VS/AVI to identify the mistakes the model made on its own.

Key Insights and Ideas

  • Likelihood as a Proxy for Truth: The most striking insight is that an LM’s internal joint likelihood (how "probable" it thinks a sequence is) is a remarkably reliable signal for veracity. If a reasoning step is logically inconsistent with the final answer, the model's joint probability for that sequence will drop.
  • Search-to-Distill Pipeline: The paper demonstrates a powerful workflow: use an expensive, high-quality search (VS) to generate labels, then distill that "reasoning" into a faster model (AVI). This allows the model to "learn" how to verify itself.
  • Verification is Easier than Generation: The results suggest that models are often better at recognizing a mistake than they are at avoiding it in the first place. This makes "verification" a potent bottleneck-breaker for improving LM reliability.

Key Results

Performance of Veracity Search vs. Baselines across different models and hop counts
  • Superior Error Detection: In PRONTOQA, Veracity Search (VS) achieved near-perfect error identification, outperforming standard prompting baselines (like "Many2Many" or "Recursive" prompting) by 20–25 points in Hamming similarity across multiple model sizes.
  • Zero-Shot Generalization: The AVI model, despite being trained only on 4-hop logic proofs, successfully generalized to 5-hop proofs and different reasoning styles, maintaining high accuracy without needing a test-time search.
  • Effective Self-Correction: By using AVI to identify and then negate (flip) incorrect steps in PRONTOQA, the authors improved the final answer accuracy of a Qwen-4B model from 52% to 72%.
  • Efficiency: VS is surprisingly fast because it uses "teacher-forcing" (parallelized likelihood calculation) rather than sequential token generation, making it more efficient than many other search-based verification methods.

Limitations and Future Work

  • Synthetic vs. Natural Errors: Much of the evaluation relied on "synthetic" corruption (randomly negating steps). While the authors showed some success on naturally occurring errors, more work is needed to see how this handles the subtle, nuanced hallucinations found in the wild.
  • The "How to Fix" Problem: Identifying a step is "False" is only half the battle. In math (GSM8K), simply knowing a step is wrong doesn't tell the model how to recalculate it. The authors note that the bottleneck often shifts from finding the error to regenerating a correct alternative.
  • Binary Constraints: Currently, the model mostly uses binary (True/False) labels. While they experimented with an "Unrelated" category, expanding this to more complex categorical labels (e.g., "Calculation Error" vs. "Logical Flaw") remains a future direction.

Summary updated

BibTeX
@inproceedings{kim2026latent,
  author = {Minsu Kim and Jean-Pierre R. Falet and Oliver Ethan Richardson and Xiaoyin Chen and Moksh Jain and Sungjin Ahn and Sungsoo Ahn and Yoshua Bengio},
  title = {{Latent Veracity Inference for Identifying Errors in Stepwise Reasoning}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=eux1cp8GqC},
}
Figure