Effective Large Language Model Adaptation for Improved Grounding

Xi Ye, Ruoxi Sun, Sercan Ö. Arik, Tomas PfisterarXiv 2023 · DOI

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.

Overview of the AGREE framework compared to Prompting-Based and Post-Hoc Citing methods.

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.
The tuning process overview and a concrete example of the generated training data, including the "Claims Not Supported" section.

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

Abstract

Large language models (LLMs) have achieved remarkable advancements in natural language understanding and generation. However, one major issue towards their widespread deployment in the real world is that they can generate "hallucinated" answers that are not factual. Towards this end, this paper focuses on improving LLMs by grounding their responses in retrieved passages and by providing citations. We propose a new framework, AGREE, Adaptation for GRounding EnhancEment, that improves the grounding from a holistic perspective. Our framework tunes LLMs to selfground the claims in their responses and provide accurate citations to retrieved documents. This tuning on top of the pre-trained LLMs requires well-grounded responses (with citations) for paired queries, for which we introduce a method that can automatically construct such data from unlabeled queries. The selfgrounding capability of tuned LLMs further grants them a test-time adaptation (TTA) capability that can actively retrieve passages to support the claims that have not been grounded, which iteratively improves the responses of LLMs. Across five datasets and two LLMs, our results show that the proposed tuningbased AGREE framework generates superior grounded responses with more accurate citations compared to prompting-based approaches and post-hoc citing-based approaches

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
Natural Questions · NQAGREE Multi-dataset w/o TTAcitation recall (rec)67.9+15.8 vs baselinesplit: test · fine-tuned · backbone=text-bison-001 · evaluation=without-test-time-adaptation
Source quote
L231: Agree{}\SPSB{\bf Multi-dataset}{\sc w/o TTA} │ \bf 50.0 │ \bf 67.9 │ \bf 73.1 │ 74.1 │ \bf 33.4 │ \bf 50.5 │ \bf 39.5 │ \bf 65.9 │ \bf 70.5 │ \bf 20.1 │ \bf 60.1 │ \bf 64.5 │ \bf 55.8 │ \bf 67.1
ASQAAGREE Multi-dataset w/o TTAcitation recall (rec)65.9+18.6 vs baselinesplit: test · fine-tuned · backbone=text-bison-001 · evaluation=without-test-time-adaptation
Source quote
L231: Agree{}\SPSB{\bf Multi-dataset}{\sc w/o TTA} │ \bf 50.0 │ \bf 67.9 │ \bf 73.1 │ 74.1 │ \bf 33.4 │ \bf 50.5 │ \bf 39.5 │ \bf 65.9 │ \bf 70.5 │ \bf 20.1 │ \bf 60.1 │ \bf 64.5 │ \bf 55.8 │ \bf 67.1
EnterpriseAGREE Multi-dataset w/o TTAcitation recall (rec)55.8+25.6 vs baselinesplit: test · fine-tuned · backbone=text-bison-001 · evaluation=without-test-time-adaptation
Source quote
L231: Agree{}\SPSB{\bf Multi-dataset}{\sc w/o TTA} │ \bf 50.0 │ \bf 67.9 │ \bf 73.1 │ 74.1 │ \bf 33.4 │ \bf 50.5 │ \bf 39.5 │ \bf 65.9 │ \bf 70.5 │ \bf 20.1 │ \bf 60.1 │ \bf 64.5 │ \bf 55.8 │ \bf 67.1
Reported baseline / comparator measurements (3)
BenchmarkMethodMetricScoreProtocol / Evidence
Natural Questions · NQICLCite baselinecitation recall (rec)52.1split: test · few-shot · backbone=text-bison-001
Source quote
L229: ICLCite{} │ 47.6 │ 52.1 │ 56.3 │ \bf 74.5 │ 13.6 │ 27.8 │ 39.5 │ 47.3 │ 49.8 │ 20.3 │ 22.7 │ 24.5 │ 30.2 │ 40.5
ASQAICLCite baselinecitation recall (rec)47.3split: test · few-shot · backbone=text-bison-001
Source quote
L229: ICLCite{} │ 47.6 │ 52.1 │ 56.3 │ \bf 74.5 │ 13.6 │ 27.8 │ 39.5 │ 47.3 │ 49.8 │ 20.3 │ 22.7 │ 24.5 │ 30.2 │ 40.5
EnterpriseICLCite baselinecitation recall (rec)30.2split: test · few-shot · backbone=text-bison-001
Source quote
L229: ICLCite{} │ 47.6 │ 52.1 │ 56.3 │ \bf 74.5 │ 13.6 │ 27.8 │ 39.5 │ 47.3 │ 49.8 │ 20.3 │ 22.7 │ 24.5 │ 30.2 │ 40.5
BibTeX
@misc{ye2023effective,
  author = {Xi Ye and Ruoxi Sun and Sercan Ö. Arik and Tomas Pfister},
  title = {{Effective Large Language Model Adaptation for Improved Grounding}},
  year = {2023},
  eprint = {2311.09533},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2311.09533},
}
Figure