Retrieving, Rethinking and Revising: The Chain-of-Verification Can Improve Retrieval Augmented Generation

Bolei He, Nuo Chen, Xinran He, Lingyong Yan, Zhenkai Wei, Jinchang Luo, Zhen-Hua Ling · DOI

Introduction

Retrieval-Augmented Generation (RAG) has become the standard for grounding Large Language Models (LLMs) in external, factual information. By providing models with relevant documents, RAG aims to mitigate the inherent tendency of LLMs to hallucinate. However, current RAG systems face two persistent challenges: external retrieval errors, where vague queries lead to noisy or irrelevant document sets, and internal generation errors, where a model's pre-trained biases override the provided context.

To address these issues, we introduce CoV-RAG, a framework that incorporates a "Chain-of-Verification" (CoV) module. Unlike previous approaches that treat query rewriting and self-reflection as isolated steps, CoV-RAG unifies these tasks into a single, cohesive process. This allows the model to self-score, judge, and revise its own outputs and queries, significantly improving retrieval precision and factual consistency.

The Chain-of-Verification Framework

The core innovation of CoV-RAG is its iterative inference process, which moves beyond the traditional "Retrieve -> Generate" loop. Instead, the model acts as its own critic through a multi-step verification chain.

1. CoV-RAG Inference Pipeline

When presented with a query, the system follows a rigorous path:

  • Initial Pass: The model performs a standard RAG operation to produce an initial answer.
  • Verification (Score & Judge): The model evaluates its own output across five dimensions: correctness, citation accuracy, truthfulness, bias, and conciseness. It then issues a final "True/False" verdict on the answer's factuality.
  • Revision: If the verdict is "False," the model does not simply try again; it generates a revised, more specific query designed to fill the information gaps identified during the scoring phase.
  • Re-retrieval: The system uses the revised query to pull a more relevant set of documents and produces a final, corrected answer.

2. The "End-Revise" Insight

A key finding of this work is the effectiveness of "End-Revise"—rewriting a query after an initial generation attempt. While many systems attempt to optimize queries before retrieval ("Start-Revise"), CoV-RAG demonstrates that the initial (even if incorrect) answer provides critical context. This context helps the model understand exactly what information is missing or contradictory, leading to much more effective secondary queries.

Training via Data Synthesis and Rationales

To enable these sophisticated self-correction capabilities, CoV-RAG employs a novel training pipeline focused on "learning from failure." Most RAG training relies solely on positive examples, but CoV-RAG is fine-tuned on a mix of "Golden RAG" data and synthesized negative samples.

Using ChatGPT, the authors generated "bad" RAG samples—answers characterized by logical fallacies, repeated phrases, or inaccurate citations. Crucially, the model is not just trained to recognize these errors but to generate the rationale for why an answer is deficient. This aligns the model's internal logic with the verification criteria, creating a synergy where the ability to generate an answer is inherently informed by the ability to critique one.

Experimental Evaluation

CoV-RAG was evaluated across four diverse open-domain QA benchmarks: Natural Questions (NQ), Web Questions (WebQ), TriviaQA, and Mintaka. The framework was tested using several LLM backbones, including Llama2, Vicuna, and ChatGLM.

Key Results

  • Superior Accuracy: On the Natural Questions (NQ) dataset, CoV-RAG (using Llama2-13b) achieved 66.0% accuracy, significantly outperforming the vanilla WebGLM baseline (62.8%) and the state-of-the-art Self-RAG (49.5%).
  • Cross-Dataset Consistency: Across all four benchmarks, CoV-RAG maintained an average accuracy of 75.1%, demonstrating robust performance across different types of reasoning and retrieval tasks.
  • Qualitative Gains: GPT-4 based evaluations confirmed that CoV-RAG produces answers with higher citation accuracy and lower bias compared to models lacking the verification chain.

Conclusion and Future Work

CoV-RAG represents a significant step forward in making RAG systems more reliable and self-aware. By unifying retrieval and verification, the model can effectively navigate noisy data and correct its own hallucinations.

While the multi-iteration process introduces higher latency and the training phase currently depends on high-quality data distillation from models like GPT-4, the results provide a clear path for future development. Future research will focus on optimizing the efficiency of the verification loop and expanding the framework into a more robust, multi-round validation system.

Summary updated

BibTeX
@inproceedings{he2024retrieving,
  author = {Bolei He and Nuo Chen and Xinran He and Lingyong Yan and Zhenkai Wei and Jinchang Luo and Zhen-Hua Ling},
  title = {{Retrieving, Rethinking and Revising: The Chain-of-Verification Can Improve Retrieval Augmented Generation}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2024},
  doi = {10.18653/v1/2024.findings-emnlp.607},
}
Figure