Introduction
Large Language Models (LLMs) have revolutionized human-computer interaction but remain prone to "hallucinations"—the generation of factually incorrect information presented with high confidence. While existing strategies like Retrieval-Augmented Generation (RAG) attempt to ground models by providing context before generation, they often fail when models ignore the context or hallucinate despite it. To address this, researchers from Tsinghua University introduced Citation-Enhanced Generation (CEG), a post-hoc, training-free framework designed to verify and correct LLM outputs through targeted retrieval and natural language inference.
The CEG Framework
The CEG framework functions as a "plug-and-play" module that can be integrated with any existing LLM. Unlike traditional RAG, CEG operates after the initial response is generated, following a four-stage pipeline:
- Generation & Segmentation: The model produces an initial response, which is then partitioned into individual sub-claims (typically sentences) for granular verification.
- Post-hoc Retrieval: For each claim, a dense retriever—specifically SimCSE BERT—searches a curated corpus (e.g., Wikipedia) to find the most relevant supporting evidence.
- Citation Generation (Verification): An NLI-based module evaluates the claims against the retrieved documents, labeling them as either "Factual" or "Nonfactual."
- Response Regeneration: If a claim is flagged as nonfactual, the system triggers a regeneration cycle, providing the model with the original query, the incorrect claim, and the correct evidence.
Experimental Setup and Datasets
The efficacy of CEG was evaluated across four distinct benchmarks:
- WikiBio GPT-3: Focused on detecting hallucinations in biographical summaries.
- FELM: A cross-domain fact-checking benchmark.
- HaluEval: A large-scale dataset for testing discernment and regeneration capabilities.
- WikiRetr: A new dataset introduced by the authors to evaluate retrieval and citation annotation specifically.
Key Insights
A critical finding of the study involves the relationship between the quantity of retrieved information and model performance. The researchers observed that providing too many documents can lead to "attention dispersion," where irrelevant information obscures the ground truth.
As shown in the figure above, performance peaked when retrieving approximately 4 documents. Beyond this point, the accuracy began to decline, suggesting that a focused retrieval strategy is more effective than a broad one.
Results and Performance
CEG demonstrates state-of-the-art (SOTA) performance in hallucination detection and correction:
- Detection Accuracy: On the WikiBio GPT-3 dataset, CEG achieved a 77.59% Balanced Accuracy, outperforming existing baselines.
- Regeneration Success: When applied to the HaluEval benchmark, CEG (using GPT-3.5) improved the generation of correct responses by 8.1% compared to standard pre-hoc retrieval methods, reaching an accuracy of 69.45%.
- Model Agnostic: The framework showed consistent performance gains across various backbone models, including GPT-4 and Vicuna-33B.
Conclusion and Future Work
CEG offers a flexible, effective solution for reducing hallucinations without the need for expensive fine-tuning or architectural changes. By treating verification as a formal logical task (NLI) and applying it post-hoc, the system ensures higher factual integrity. Future research will focus on expanding the supporting corpora beyond Wikipedia and optimizing prompt engineering to reduce the latency and cost associated with multiple regeneration cycles.
Summary updated