Retrieval-Augmented Generation (RAG) is the industry standard for reducing hallucinations in Large Language Models (LLMs). By tethering a model to external documents, we expect it to be more factual. However, a nagging problem remains: LLMs often ignore the provided text in favor of their own "parametric knowledge" (what they learned during training), or they fail to admit when the provided documents don't actually contain the answer.
A new paper, "Measuring and Enhancing Trustworthiness of LLMs in RAG through Grounded Attributions and Learning to Refuse," introduces a holistic framework to measure and fix these exact issues.
TL;DR
The authors propose TRUST-SCORE, a comprehensive metric that evaluates how well an LLM uses provided documents, provides accurate citations, and—crucially—refuses to answer when information is missing. They also introduce TRUST-ALIGN, an alignment method using Direct Preference Optimization (DPO) that significantly boosts RAG performance across 26 out of 27 tested model configurations.
What Problem Does This Paper Address?
Current RAG evaluations often suffer from "retriever conflation"—if the system fails, it’s hard to tell if the search engine (retriever) found bad documents or if the LLM failed to process good ones. Furthermore, LLMs exhibit several "trustworthiness" failures in RAG:
- Over-Responsiveness: Answering a question even when the documents lack the necessary information (hallucinating based on internal memory).
- Improper Citation: Making a claim but citing a document that doesn't actually support it.
- Excessive Refusal: Getting "scared" by strict prompts and refusing to answer even when the answer is present in the text.
The authors argue that simply prompting a model to "be grounded" isn't enough; we need to fundamentally align their behavior to prioritize external evidence over internal bias.
Methods
The paper contributes two major innovations to address these challenges:
1. TRUST-SCORE
This is a holistic metric calculated as the average of three components:
- Grounded Refusals ($F1_{GR}$): Does the model correctly identify unanswerable questions?
- Answer Correctness ($F1_{AC}$): Is the answer factually correct based only on the provided documents?
- Grounded Citations ($F1_{GC}$): Do the inline citations actually support the claims made?
2. TRUST-ALIGN
To improve these scores, the authors developed an alignment pipeline:
- Data Augmentation: They created a dataset of 19,000 samples. For each question, they generated "positive" (grounded and cited) and "negative" (hallucinated, over-cited, or incorrectly refused) responses.
- DPO Training: Instead of just Supervised Fine-Tuning (SFT), they used Direct Preference Optimization (DPO). This teaches the model to prefer the grounded response over the hallucinated one, effectively "penalizing" the model for relying on its internal memory when it should be looking at the provided text.
Datasets
The researchers evaluated their approach on four major benchmarks:
- ASQA: Factoid questions requiring long-form, multi-faceted answers.
- QAMPARI: Questions with multiple short-form answers.
- ELI5: Complex "Explain Like I'm Five" long-form responses.
- ExpertQA: Used for out-of-domain (OOD) generalization testing.
They also released the TRUST-ALIGN dataset, a 19K sample collection specifically designed to trigger and then correct RAG-specific hallucinations.
Key Insights and Ideas
- Prompting is a Double-Edged Sword: The authors found that "refusal prompting" (telling a model to say "I don't know") often makes models overly sensitive, leading them to refuse answerable questions. Alignment is more robust than prompting.
- The "Parametric Memory" Trap: Even high-end models occasionally fall back on their training data rather than the provided documents, leading to lower TRUST-SCOREs than expected in strict RAG settings.
- Learning to Refuse is Key: The biggest performance gains came from teaching models to discern "answerability." By including "hard negatives" (documents that look relevant but don't contain the answer), the models became much better at grounded refusal.
Key Results
The results for TRUST-ALIGN were impressive across the LLaMA-3, Qwen-2.5, and Phi-3.5 families:
- Massive Score Boosts: In LLaMA-3-8b, TRUST-ALIGN outperformed the leading baseline (FRONT) by 12.56 points on ASQA, 36.04 on QAMPARI, and 17.69 on ELI5.
- Refusal Mastery: The ability to correctly refuse unanswerable questions ($F1_{GR}$) saw the most dramatic improvement, with LLaMA-3-8b showing a 47.95% increase on QAMPARI compared to the baseline.
- Citation Quality: Citation groundedness improved in 24 out of 27 configurations, proving that the model wasn't just "guessing" where the info came from.
- Beating the Giants: On the ExpertQA dataset, the aligned LLaMA-3-8b achieved a TRUST-SCORE of 54.85%, actually surpassing GPT-4 (54.69%).
Limitations and Future Work
- Decomposition Errors: The authors noted that breaking down long-form answers into individual "claims" for evaluation can sometimes be imperfect, potentially missing nuance or creating redundant checks.
- Base Model Limits: While alignment helps, the model's underlying reasoning capability is still a bottleneck. Smaller models (like the 0.5B Qwen) improved significantly but still struggle with complex synthesis compared to larger models.
- Retriever Quality: While TRUST-SCORE isolates the LLM, a real-world system still lives or dies by the retriever. Future work could involve joint alignment of both the retriever and the LLM.
For those interested in implementing these techniques, the authors have released their code and dataset at https://github.com/declare-lab/trust-align.
Summary updated