Introduction
Retrieval-Augmented Generation (RAG) has become the standard for grounding Large Language Models (LLMs) in external knowledge. However, these systems often struggle with a fundamental "trust" issue: they assume retrieved documents are accurate. In real-world scenarios, retrieved context is frequently noisy or contains semantically plausible fabrications. Traditional LLMs are vulnerable to these lies, often prioritizing them over internal knowledge. The Adversarial Tuning Multi-agent (ATM) system addresses this by training generators to discriminate between ground-truth evidence and deceptive noise.
The ATM Framework
The core of the ATM system is an adversarial loop between two specialized agents: an Attacker and a Generator.
Adversarial Agents
- The Attacker: This agent is designed to mislead the generator. It produces "fabrications"—documents that are semantically relevant to the user's query but contain incorrect information. Additionally, it employs List Permutation to shuffle document order, exploiting the "Lost in the Middle" phenomenon where models struggle with information buried in long contexts.
- The Generator: The goal of this agent is to remain robust. It must produce the correct "Golden Answer" regardless of how many deceptive documents the Attacker injects into the context.
Optimization Strategies
The system employs two distinct optimization techniques to refine these agents:
- Direct Preference Optimization (DPO): The Attacker is tuned to maximize the Generator's perplexity (uncertainty) regarding the correct answer.
- Multi-agent Iterative Tuning Optimization (MITO): This novel loss function trains the Generator to maintain a consistent output distribution whether it is viewing "clean" or "attacked" documents. By minimizing the KL Divergence between these states, the model learns to filter out adversarial noise at the token level.
Experimental Evaluation
The framework was tested across four major knowledge-intensive datasets: Natural Questions (NQ), TriviaQA, WebQuestions, and PopQA. To ensure a rigorous test, fabrications were generated using state-of-the-art models like Mixtral-8x7B and Llama3-70B.
Key Results and Robustness
ATM demonstrates significant improvements in robustness compared to existing baselines like RetRobust and RAAT. A key finding is the system's stability as the volume of misinformation increases.
As shown in the results, while standard RAG models experience a sharp decline in performance (Subspan EM) as the number of fabrications grows from 0 to 9, the ATM-tuned models maintain a much more stable performance curve. On the Natural Questions dataset, the ATM generator achieved a 7.27% improvement in Subspan EM over previous state-of-the-art methods.
Conclusion
The ATM system proves that adversarial training can effectively teach RAG systems to be skeptical of retrieved information. By pitting a sophisticated attacker against a generator, the system develops a "robust perspective" that prioritizes verified knowledge over plausible-sounding fabrications. Future work will explore joint optimization of the retriever and generator to create a fully end-to-end robust pipeline.
Summary updated