Abstract
Retrieval-Augmented Generation (RAG) has become a cornerstone for grounding Large Language Models (LLMs) in external knowledge. However, these systems often suffer from "blind trust," where the generator fails to distinguish between high-quality evidence and retrieval defects—such as noisy, irrelevant, or counterfactual documents. This paper introduces Robust Fine-Tuning (RbFT), a dual-task training strategy that equips LLMs with intrinsic defensive capabilities. By training models to perform defect detection and utility extraction simultaneously, RbFT achieves state-of-the-art performance across multiple benchmarks while maintaining significantly higher inference efficiency than existing multi-step reasoning frameworks.
Introduction
Retrieval-Augmented Generation (RAG) effectively mitigates hallucinations by providing LLMs with relevant context. Despite its success, the performance of RAG is heavily dependent on the quality of the retriever. In real-world applications, retrievers frequently return "defective" documents: content that is tangentially related but lacks the answer (noisy), completely off-topic (irrelevant), or intentionally misleading (counterfactual).
Standard LLMs often struggle to navigate these defects, leading them to incorporate misinformation into their responses. While current solutions attempt to solve this via complex inference-time reasoning loops or multi-step verification, these methods introduce substantial latency and cost. RbFT addresses this by shifting the burden of robustness from the pipeline architecture to the model's internal weights.
The RbFT Framework
Robust Fine-Tuning (RbFT) transforms the standard generation task into a multi-faceted objective. Rather than simply predicting the next token based on a prompt, the model is fine-tuned to execute two specialized sub-tasks:
- Defects Detection: The model learns to categorize retrieved documents based on their quality. It identifies whether a document is helpful, irrelevant, or counterfactual. This process forces the model to develop a critical understanding of the input context before utilizing it.
- Utility Extraction: The model is trained to extract only the relevant information necessary to answer the query. Crucially, it learns to fall back on its internal parametric knowledge when the provided external documents are deemed untrustworthy or contradictory.
Implementation Details
The researchers implemented RbFT using Low-Rank Adaptation (LoRA) on Llama-3.2-3B and Qwen2.5-3B. To facilitate training, a synthetic data pipeline was developed where a teacher LLM rewrote high-quality documents into plausible but false "counterfactual" versions. This provided the necessary negative examples to train the model's discriminative capabilities.
Experimental Evaluation
Datasets and Difficulty Tiers
The framework was evaluated on three primary Question Answering (QA) benchmarks:
- Natural Questions (NQ): Factoid-based queries from search logs.
- HotpotQA (HQA): Questions requiring multi-hop reasoning.
- TriviaQA (TQA): Complex trivia across various domains.
To test robustness, the researchers established three difficulty levels: Clean (standard retrieval), Normal (40% defective documents), and Hard (100% defective documents).
Key Findings
- Resilience to Gaslighting: Counterfactual information proved to be the most significant threat to vanilla RAG systems. RbFT demonstrated remarkable resilience in these adversarial scenarios, outperforming competing methods by over 70% in specific "Hard" settings.
- The "Clean" Setting Advantage: Surprisingly, RbFT improved performance even when the retrieved documents were supposedly high-quality. This suggests that the model's learned skepticism helps it filter out subtle noise present even in "clean" retrieval results.
- Inference Efficiency: Unlike methods like AstuteRAG or RobustRAG, which require multiple rounds of generation or intermediate reasoning steps, RbFT maintains the inference speed of a standard RAG system. It was found to be approximately 17x faster than AstuteRAG and 6x faster than RobustRAG.
- Attention Mechanisms: Qualitative analysis of the model's attention heads revealed that RbFT produces smoother attention distributions. While vanilla models often hyper-focus on misleading keywords, RbFT considers a broader context to verify information consistency.
Conclusion and Future Work
RbFT represents a significant shift in RAG design, moving from external verification loops to intrinsic model robustness. By training models to detect defects and extract utility, RbFT provides a high-performance, low-latency defense against the inherent imperfections of document retrieval.
Future research directions include expanding the RbFT framework to long-form generation tasks, such as summarization, and exploring hybrid approaches that combine RbFT's weight-based defense with lightweight inference-time verification for maximum reliability.
Summary updated