Abstract
Large Language Models (LLMs) often struggle with factual accuracy in complex reasoning tasks, frequently generating "hallucinations" despite using Chain-of-Thought (CoT) prompting. We present the Verify-and-Edit (VE) framework, which improves factual correctness by post-editing reasoning chains. VE identifies uncertain predictions via self-consistency, generates targeted verification questions, retrieves external knowledge, and refines the reasoning process. Our experiments on knowledge-intensive benchmarks demonstrate significant performance gains, with VE outperforming standard CoT and existing retrieval-augmented methods.
Introduction
While Large Language Models (LLMs) have revolutionized natural language processing, they possess a significant flaw: a propensity for factual incorrectness. Even with Chain-of-Thought (CoT) prompting—where models are encouraged to output step-by-step reasoning—they often "hallucinate" plausible but false information. In multi-hop reasoning tasks, a single factual error early in the chain can derail the entire prediction. Current research often focuses on improving logical structure or calibrating final answer probabilities, but rarely addresses the underlying factual errors within the reasoning chain itself.
The Verify-and-Edit (VE) Framework
The authors propose the Verify-and-Edit (VE) framework, designed to mimic human self-correction. The process follows five key steps:
- Deciding When to Edit: The system employs Self-Consistency by sampling multiple reasoning paths. If there is no clear majority agreement among the answers, the prediction is flagged as "uncertain."
- Generating Verifying Questions: For uncertain rationales, the LLM generates specific questions to verify the facts it stated (e.g., "What team did John Nyskohus play for?").
- External Knowledge Retrieval: These questions are used to query external systems like Wikipedia or Google Search for ground-truth information.
- Editing Rationales: The LLM integrates the retrieved facts with its original rationale to produce a corrected, "informed" reasoning chain.
- New Prediction: A final answer is generated based on the corrected chain.
This approach is more natural than "always-on" retrieval methods like ReAct, as it only intervenes when the model demonstrates uncertainty.
Experimental Evaluation
The framework was evaluated using GPT-3 (text-davinci-003) on three challenging benchmarks: Adversarial HotpotQA, 2WikiMultihopQA, and FEVER. These datasets were chosen for their complexity and the requirement for multi-hop reasoning.
Key Results
The VE framework demonstrated substantial improvements across all metrics. On Adversarial HotpotQA, VE using Google Search achieved a 37.7% Exact Match (EM) score, compared to 31.2% for standard CoT with Self-Consistency.
Key findings include:
- Consistency as a Proxy for Truth: Low self-consistency is a strong indicator of factual inaccuracy, allowing the framework to efficiently target only ~40% of instances for editing.
- Logic vs. Fact: LLMs often maintain sound logical structures even when facts are wrong. Replacing incorrect facts allows the model's internal reasoning to reach the correct conclusion.
- Outperforming Baselines: VE demonstrated a 3.8x accuracy improvement (in terms of performance gain) compared to similar retrieval-augmented models like ReAct on the AdvHotpot dataset.
- Human Validation: In human studies, VE-produced reasoning chains were found factually consistent 53% of the time, a significant improvement over the 17% observed in standard CoT.
Limitations and Future Work
Despite its success, the VE framework faces challenges such as "confident hallucinations," where a model is consistently wrong across all sampled paths, and "retrieval noise," where irrelevant search results can disrupt reasoning. Future work will focus on reducing noise during rationale editing and exploring more structured knowledge bases to further enhance factual reliability.
Summary updated