Abstract
Large Language Models (LLMs) often generate factually incorrect information, a phenomenon known as hallucination. While Retrieval-Augmented Generation (RAG) aims to mitigate this by providing external evidence, existing methods frequently suffer from a "citation gap"—where models fail to accurately attribute claims to retrieved passages. This paper introduces AGREE (Adaptation for GRounding EnhancEment), a framework designed to bridge this gap. AGREE fine-tunes LLMs to inherently understand grounding by including inline citations and identifying unsupported claims. Combined with an iterative Test-Time Adaptation (TTA) strategy for active retrieval, AGREE significantly improves reliability and citation accuracy over traditional prompting and post-hoc methods.
Introduction: Addressing the Citation Gap
The integration of LLMs into high-stakes applications requires high levels of trustworthiness. Retrieval-Augmented Generation (RAG) has become the standard for grounding LLM outputs in external knowledge. However, current RAG implementations often struggle with precise citation. Simple prompting techniques typically yield mediocre citation accuracy, while post-hoc methods—which add citations after text generation—often rely too heavily on the model's internal memory rather than the actual retrieved text.
The fundamental challenge lies in teaching an LLM to recognize which parts of its response are supported by evidence and which require further research. The AGREE framework addresses this by treating self-grounding as a learnable skill, enabling models to generate responses that are both accurate and transparently cited.
The AGREE Framework
The AGREE framework consists of two primary stages: Training Adaptation and Test-Time Adaptation.
1. Training Adaptation: Learning to Self-Ground
To avoid the high costs of human annotation, AGREE utilizes an automated data construction pipeline. A "teacher" Natural Language Inference (NLI) model is used to identify support relationships between LLM-generated sentences and retrieved passages.
The base LLM is fine-tuned on this synthetic data to perform two tasks:
- Inline Citation: Inserting citations directly after supported claims.
- Identifying Gaps: Explicitly listing "Claims Not Supported" at the end of the response.
2. Test-Time Adaptation (TTA)
TTA is an iterative inference strategy that leverages the model's ability to identify its own knowledge gaps. When the adapted LLM generates a response containing unsupported claims, the system treats these claims as new search queries. It retrieves "supplementing passages" from the corpus and prompts the model to re-generate the response. This loop continues until the response is fully grounded or a predefined computational budget is reached.
Experimental Setup
The framework was evaluated using a diverse set of benchmarks to test both reasoning and fact-checking capabilities:
- In-Distribution: Natural Questions (NQ), FEVER (fact verification), and StrategyQA (multi-hop reasoning).
- Out-of-Distribution (OOD): ASQA (ambiguous questions), QAMPARI (multi-answer questions), and a proprietary Enterprise dataset for customer support.
The primary corpus used was a 2018 Wikipedia snapshot, except for the Enterprise task, which utilized a specialized domain-specific corpus.
Key Results and Insights
The evaluation of AGREE revealed several critical findings:
- Tuning vs. Prompting: Self-grounding is a skill that benefits significantly from fine-tuning. An AGREE-tuned Llama-2-13B model outperformed much larger models that relied solely on few-shot prompting.
- Improved Citation Quality: AGREE achieved substantial gains in citation recall and precision, often exceeding prompting-based baselines by more than 20%.
- The Utility of "I Don't Know": By training the model to label unsupported statements, the framework turns potential hallucinations into actionable signals for further retrieval. This transparency is key to the success of the TTA mechanism.
- Generalization Across Domains: Models tuned on Wikipedia-based QA showed significant performance improvements when applied to the Enterprise customer support dataset. This suggests that the linguistic skill of grounding is highly generalizable.
- Efficiency: While TTA adds an iterative step, the base AGREE model is more efficient than standard RAG pipelines that require external NLI models for every claim during inference.
Conclusion and Future Work
The AGREE framework demonstrates that fine-tuning LLMs for self-grounding and iterative retrieval is a powerful approach to reducing hallucinations. By making the grounding process explicit, AGREE provides a path toward more reliable and interpretable AI systems.
Future research will focus on extending AGREE to long-form generation and multi-lingual contexts. Additionally, researchers must address the risk of "plausible errors," where highly convincing citations might inadvertently mislead users if the underlying claim is subtly incorrect. Improving the robustness of the "teacher" NLI models used for training data construction remains a priority to ensure the highest quality of grounded outputs.
Summary updated