Chain-of-Verification Reduces Hallucination in Large Language Models

Shehzaad Dhuliawala, Mojtaba Komeili, Jing Xu, Roberta Raileanu, Xian Li, Asli Celikyilmaz, Jason Weston · DOI

Abstract

Large Language Models (LLMs) frequently generate plausible but factually incorrect "hallucinations," particularly when dealing with long-tail information. This paper introduces Chain-of-Verification (CoVe), a four-step prompting method designed to mitigate these errors. By breaking down initial responses into independent verification questions and answering them in a factored context, LLMs can identify and rectify their own mistakes. Our evaluation across multiple benchmarks demonstrates that CoVe significantly improves factual accuracy, even surpassing some retrieval-augmented systems.

Introduction

Despite their remarkable performance in natural language tasks, LLMs suffer from a persistent lack of factual reliability. This issue is exacerbated by "exposure bias," where a model doubles down on an initial error to maintain internal consistency. Chain-of-Verification (CoVe) addresses this by forcing the model to deliberate on its own claims through a structured verification process.

The Chain-of-Verification Method

The CoVe process consists of four distinct stages:

  1. Baseline Response Generation: The model provides an initial answer to a given query.
  2. Verification Planning: The model identifies factual claims within its baseline and generates specific questions to verify them.
  3. Verification Execution: The model answers these questions. The authors emphasize "Factored Verification," where questions are answered independently to prevent the original hallucinated context from biasing the results.
  4. Final Verified Response: The model synthesizes the original draft and the verification answers into a corrected final output.
The four-step Chain-of-Verification (CoVe) pipeline, illustrating the transition from a hallucinated baseline to a corrected final response.

Experimental Evaluation

The effectiveness of CoVe was tested on four benchmarks:

  • Wikidata & Wiki-Category List: Tasks requiring the generation of lists (e.g., politicians born in a specific city).
  • MultiSpanQA: A closed-book reading comprehension task.
  • Longform Biography Generation: Evaluated using FACTSCORE, which decomposes biographies into atomic facts for verification.

Key Results and Insights

CoVe demonstrated substantial improvements across all tasks. On the Wikidata benchmark, precision for Llama 65B more than doubled. A critical insight is the "Siloed Knowledge Paradox": models often possess the correct information but fail to retrieve it during long-form generation. By querying facts individually during the verification step, accuracy improved from ~17% to ~70%.

FactScore performance across varying levels of entity rarity. CoVe variants (green) consistently outperform baseline Llama models and competitive systems like ChatGPT and Perplexity.ai.

Furthermore, CoVe-augmented Llama 65B achieved a FACTSCORE of 71.4 on biographies, outperforming ChatGPT (58.7) and PerplexityAI (61.6), highlighting the power of structured internal deliberation over simple retrieval.

Discussion and Future Work

While CoVe significantly reduces hallucinations, it is not a panacea. It increases computational overhead due to multiple inference passes and cannot correct errors if the underlying model lacks the necessary knowledge. Future research will explore integrating external tools, such as search engines, into the verification phase to ground the model's internal knowledge in real-time data.

Summary updated

BibTeX
@inproceedings{dhuliawala2024chain,
  author = {Shehzaad Dhuliawala and Mojtaba Komeili and Jing Xu and Roberta Raileanu and Xian Li and Asli Celikyilmaz and Jason Weston},
  title = {{Chain-of-Verification Reduces Hallucination in Large Language Models}},
  booktitle = {R2-FM @ ICLR},
  year = {2024},
  url = {https://openreview.net/forum?id=ek3GqAs2uO},
}
Figure