NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

VeriCoT: Neuro-symbolic Chain-of-Thought Validation via Logical Consistency Checks

Yu Feng, Nathaniel Weir, Kaj Bostrom, Sam Bayless, Darion Cassel, Sapana Chaudhary, Benjamin Kiesl-Reiter, Huzefa Rangwala · DOI

Abstract

While Chain-of-Thought (CoT) prompting has significantly enhanced the reasoning capabilities of Large Language Models (LLMs), it faces a persistent "trust" problem: models frequently generate logically flawed reasoning paths even when they arrive at the correct final answer. We present VeriCoT, a neuro-symbolic framework that validates the logical consistency of LLM reasoning by translating CoT steps into formal logic. By using an SMT solver to verify these steps against source documents and commonsense, VeriCoT identifies "right for the wrong reasons" hallucinations and provides a structured signal to help models self-correct or improve through fine-tuning.

Introduction

In high-stakes domains like law or medicine, a correct answer based on a false premise or a logical leap is unacceptable. Current verification methods often rely on execution (limited to code or math) or other LLMs to "judge" reasoning, which can lead to circular hallucinations. VeriCoT addresses this by introducing a general-purpose, domain-agnostic mechanism that verifies if the entirety of a reasoning chain is logically sound and grounded in the provided context.

Methodology: The VeriCoT Pipeline

VeriCoT combines the linguistic flexibility of LLMs with the rigorous "truth-checking" of symbolic logic through a multi-stage pipeline:

  1. Autoformalization: An LLM translates each natural language reasoning step into a first-order logic formula using the SMT-LIB standard.
  2. Premise Grounding: For each step, VeriCoT identifies the necessary premises—from the source document, the question, or general commonsense—required to make that step logically valid.
  3. Symbolic Verification: The system uses the Z3 SMT solver to perform three critical checks:
  4. Entailment: Does this step follow logically from what we already know?
  5. Contradiction: Does this step conflict with previous steps or the source text?
  6. Ungroundedness: Is the step consistent but lacks any supporting evidence in the context?
  7. LLM-as-Judge: A separate LLM evaluates whether the generated premises are actually attributable to the source text to prevent the system from "inventing" its own facts to satisfy the logic.
The VeriCoT pipeline: translating natural language reasoning into symbolic logic for verification.

Key Insights: The "Ungrounded" Epidemic

A major finding of this research is that the most common failure mode for LLMs isn't necessarily a direct contradiction, but "ungroundedness"—making plausible-sounding assumptions that simply aren't in the text. VeriCoT is particularly effective at catching these "hallucinated premises."

Distribution of outcome scenarios before and after self-reflection, highlighting the reduction in ungrounded steps.

As illustrated in Figure 2, the framework's ability to categorize these failures allows for targeted self-reflection. By providing the model with specific feedback (e.g., "Step 3 is ungrounded"), the system can shift reasoning paths from ungrounded or contradictory states into valid, verified chains.

Experimental Results

The framework was evaluated on three diverse reasoning benchmarks: ProofWriter (synthetic logic), LegalBench-SARA (statutory reasoning), and BioASQ (biomedical QA). Key results include:

  • Superior Detection: VeriCoT significantly outperformed baselines like Explanation-Refiner in identifying flawed reasoning across all datasets.
  • Self-Correction Boost: Using VeriCoT for inference-time self-reflection led to a 46% relative improvement in the CoT verification pass rate and a 41% relative gain in producing accurate, verifiable outcomes.
  • Fine-Tuning Success: Applying Direct Preference Optimization (DPO) based on VeriCoT signals improved the logical consistency of a Qwen-2.5-7B model by 18% while maintaining base task accuracy.
  • High Precision: In the ProofWriter dataset, VeriCoT achieved a verifier precision of 94.1%, indicating that a "Verified" status is a highly reliable predictor of a correct answer.

Conclusion and Future Work

VeriCoT demonstrates the power of neuro-symbolic synergy: the LLM handles the messy task of understanding language, while the SMT solver handles the rigid task of checking logic. While the system is currently dependent on the accuracy of the autoformalization step and the constraints of specific logic fragments, it paves the way for more reliable and transparent AI reasoning. Future work will explore expanding the logic fragments supported and integrating symbolic solvers more deeply into the model's training loop.

Summary updated

BibTeX
@inproceedings{feng2026vericot,
  author = {Yu Feng and Nathaniel Weir and Kaj Bostrom and Sam Bayless and Darion Cassel and Sapana Chaudhary and Benjamin Kiesl-Reiter and Huzefa Rangwala},
  title = {{VeriCoT: Neuro-symbolic Chain-of-Thought Validation via Logical Consistency Checks}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=zHuV3Vatov},
}
Figure