TL;DR
This paper tackles the critical issue of "hallucination" in Large Language Models (LLMs) by focusing on their ability to generate accurate citations within responses. The authors introduce a novel "Generate-then-Refine" method that significantly improves citation quality by adding missing citations and removing irrelevant ones, demonstrating its effectiveness across multiple datasets and LLMs.
What Problem Does This Paper Address?
Large Language Models (LLMs) are powerful tools, but they often "hallucinate," meaning they generate fabricated or incorrect information. Retrieval-Augmented Generation (RAG) is a promising approach to combat this by grounding LLM responses in external, factual knowledge. However, a crucial aspect of RAG is the accurate attribution of claims to their sources through citations. While much research has focused on improving the overall quality of LLM-generated responses, the specific capability of generating accurate and relevant citations has been largely overlooked. This paper aims to systematically analyze LLMs' citation generation abilities and propose a method to enhance them, ensuring that LLM outputs are not only informative but also trustworthy and verifiable.
Methods
The paper proposes a "Generate-then-Refine" approach to improve citation quality. This method combines elements of both pre-hoc (generating citations during response generation) and post-hoc (adding/correcting citations after initial generation) techniques.
- Analysis and Evaluation: The authors first conduct a systematic analysis of existing LLMs' citation generation capabilities using few-shot and fine-tuning methods on benchmark datasets. They also introduce new evaluation metrics for citation recall and precision to address limitations in existing metrics, particularly their tendency to over-penalize responses with necessary but not strictly required citations, or those with multiple supporting citations.
- Generate-then-Refine: This core method involves:
- Generation: An LLM generates an initial response.
- Refinement: A separate, fine-tuned "refiner" LLM then processes this response. The refiner is trained to:
- Keep relevant citations.
- Add missing citations where necessary.
- Remove irrelevant citations. The refiner outputs only the IDs of the references that should be cited for each statement, minimizing computational overhead. This approach decouples generation and refinement, allowing the refiner to enhance citations from any generation method.
Datasets
The experiments were conducted on three long-form question-answering (LFQA) datasets:
- WebGLM-QA: A dataset where answers and citations were generated by GPT-3, with subsequent filtering to improve quality.
- ASQA: A factoid QA dataset designed to handle ambiguous questions requiring synthesis of information from multiple sources. The ALCE benchmark provided a test set derived from ASQA.
- ELI5: A dataset of "How" and "Why" questions from the Reddit forum "Explain Like I'm Five," requiring detailed answers. The ALCE benchmark also provided a test set for ELI5.
The authors also constructed a specialized dataset for training the refiner, containing question, references, statement, and target citations, by using an NLI model to identify supporting references.
Key Insights and Ideas
- Citation is a distinct capability: LLMs' ability to generate accurate citations is not a direct byproduct of their general language generation prowess; it requires specific focus and training.
- Existing metrics are flawed: Current citation evaluation metrics can be overly strict, penalizing valid citation practices like using multiple sources or omitting citations for commonsense statements. The proposed metrics offer a more nuanced evaluation.
- Refinement is key: A dedicated refinement step can significantly improve citation quality, even for models that initially struggle with citation generation. This suggests a modular approach to enhancing LLM trustworthiness.
- Generalization is challenging for fine-tuning: Models fine-tuned on one dataset may not perform well on others with different data distributions, highlighting the need for more robust methods like the proposed refiner.
- NLI models can be biased: While useful for training, relying solely on NLI models for evaluation might introduce biases. The paper validates findings using GPT-3.5-turbo as an alternative evaluator.
Key Results
- LLM performance varies: Early LLMs (e.g., Llama-2) showed poor citation generation in few-shot settings, while newer models (e.g., Llama-3, GPT-3.5-turbo) demonstrated better capabilities.
- Fine-tuning helps, but generalization is limited: Fine-tuning improved citation quality for open-source models on WebGLM-QA, but performance on other datasets like ASQA was less consistent.
- Generate-then-Refine significantly boosts citation quality: The proposed method consistently improved citation F1 scores across all tested LLMs and datasets, often by substantial margins (e.g., over 20% increase for Llama-2 series on ASQA).
- Refiner excels in precision: The refiner primarily improved citation precision, indicating its effectiveness in accurately identifying relevant supporting references.
- Refiner shows strong generalization: Even when LLMs fine-tuned on WebGLM-QA performed poorly on ASQA, the refiner still provided significant improvements, suggesting its robustness to data distribution shifts.
Limitations and Future Work
- Conciseness vs. Comprehensiveness: The paper notes that their redefined citation precision allows for more comprehensive citations, but the preference for conciseness versus comprehensiveness might depend on the specific application scenario.
- Few-shot refiner limitations: Attempts to use a few-shot method for the refiner were unsuccessful, indicating that fine-tuning is necessary for effective refinement.
- Future work: The authors suggest further exploration into optimizing the refiner and its integration into RAG pipelines. They also implicitly point to the need for more robust evaluation methodologies that can capture nuanced aspects of citation quality.
Summary updated