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

TL;DR

CoV-RAG introduces a "Chain-of-Verification" (CoV) module to Retrieval-Augmented Generation, enabling models to self-critique their answers and refine their search queries. By unifying question-answering and verification through multi-task training, it significantly reduces hallucinations and improves retrieval accuracy across multiple LLM backbones.

What Problem Does This Paper Address?

Retrieval-Augmented Generation (RAG) is the standard way to ground Large Language Models (LLMs) in external facts. However, standard RAG pipelines often fail in two specific ways:

  1. External Retrieval Errors: User queries are often vague or incomplete, leading the retriever to return irrelevant or incorrect documents.
  2. Internal Generation Errors: Even with the right documents, LLMs can still hallucinate due to their own internal knowledge biases or an inability to properly cite the provided context.

Existing solutions often try to fix these in isolation. The authors of this paper argue for a unified approach that allows the model to "rethink" its output and "revise" its search strategy when things go wrong.

Methods

The core of the proposal is the CoV-RAG framework, which adds a verification step into both the inference and training phases.

CoV-RAG Inference

As shown in Figure 2, the inference process is an iterative loop:

  • Retrieve & Generate: The system performs a standard RAG step.
  • Chain-of-Verification (CoV): A dedicated module performs three sub-tasks:
  • Score: It assigns scores to the references and the generated answer based on criteria like truthfulness, bias, and citation accuracy.
  • Judge: It makes a binary "True/False" judgment on whether the answer is factually sound.
  • Revise: If the judgment is "False," it generates a new, refined search query.
  • Re-retrieve & Re-generate: If needed, the system uses the revised query to fetch better documents and generate a final, corrected answer.
Figure 2: Structure of CoV-RAG comprises: retriever, generator, and chain of verification. In our method, the retriever recalls the top-5 most relevant paragraphs as references. Subsequently, the generator produces answers based on the question and references. Additionally, the verification assesses the accuracy of the references and answer through scoring and judgment, and, if necessary, revises to improve retrieval, refining factuality in multi- iteration RAG. Moreover, CoV-RAG model also enhances the quality and consistency of single-iteration RAG.

CoV-RAG Training

To make the model capable of self-verification, the authors use Verified Augmented Training. They take a standard RAG dataset and split it. One half is used for standard QA training. For the other half, they use ChatGPT to synthesize "negative" samples—answers with common errors like repeated phrases, wrong citations, or bad retrieval results. The model is then trained to generate not just the answer, but the full verification rationale (the scores, judgment, and revision).

Figure 3: The CoV-RAG training dataset is derived from WebGLM (Liu et al., 2023). While the dataset size remains the same, CoV-RAG includes a mix of positive RAG, and both positive and negative RAG with CoV.

Datasets

The model was evaluated on four popular open-domain question-answering benchmarks:

  • Natural Questions (NQ)
  • WebQuestions (WebQ)
  • TriviaQA
  • Mintaka

The training data was derived and augmented from the WebGLM dataset.

Key Insights and Ideas

  • Unified Multi-tasking: By training the model to perform QA and verification simultaneously, the model develops a better "internal compass" for factuality. Even in single-iteration mode (without re-retrieval), the verification training helps the model stay grounded.
  • Query Refinement as a Second Chance: The model often knows what it doesn't know. By allowing it to rewrite the query after a failed generation attempt, it can specifically target the missing information it needs to be accurate.
  • Learning from Mistakes: The inclusion of synthesized negative samples is critical. LLMs rarely see "bad" examples during standard SFT (Supervised Fine-Tuning); showing them exactly how RAG can fail allows them to recognize those patterns during inference.

Key Results

CoV-RAG consistently outperformed strong baselines like WebGLM and Self-RAG across various model backbones (Llama2, Vicuna, and ChatGLM2).

  • Accuracy Gains: On average, CoV-RAG achieved a 75.1% accuracy with Llama2-13b, surpassing the previous state-of-the-art WebGLM (73.8%).
  • Model Agnostic: The performance boost was consistent regardless of model size. As seen in Figure 4, CoV-RAG (green bars) consistently leads over vanilla WebGLM (sky blue bars).
  • Qualitative Superiority: Using GPT-4 as an automated evaluator for fine-grained metrics, CoV-RAG ranked highest in citation accuracy, truthfulness, and conciseness.
Figure 4: Performance comparison of CoV-RAG (single and multi-iteration) and the state-of-the-art RAG method WebGLM across multiple models (ChatGLM2-6b, Vicuna-7b/13b, Llama2-7b/13b). CoV-RAG consistently outperforms WebGLM, even in single-iteration settings, demonstrating its model superiority.

Limitations and Future Work

  • Efficiency: The multi-iteration process (retrieving twice) naturally increases latency and computational cost. The authors suggest using the single-iteration version (CoV-RAG-S) for applications where speed is paramount.
  • Teacher Model Dependency: The quality of the verification rationales depends on the "teacher" model (GPT-4) used to generate the training data.
  • Multi-round Validation: Currently, the system only performs one revision. The authors note that some complex queries might benefit from a second or third round of validation, which they leave for future research.

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