Abstract
Retrieval-Augmented Generation (RAG) often struggles with complex, multi-hop queries and document noise. We present MA-RAG, a training-free, multi-agent framework that orchestrates specialized AI agents—Planner, Step Definer, Extractor, and QA Agent—to decompose queries and filter evidence. Our collaborative Chain-of-Thought (CoT) approach enables smaller models like Llama3-8B to outperform massive models like Llama3-70B and GPT-4, setting new state-of-the-art benchmarks in open-domain and medical question answering.
Introduction
Standard RAG systems face two primary hurdles: retrieval mismatch and context inefficiency. Vague or complex queries often fail to retrieve relevant documents in a single pass, and the inclusion of entire text chunks introduces significant noise, leading to hallucinations or the "lost-in-the-middle" phenomenon. These challenges are particularly acute in multi-hop reasoning tasks where the answer to one sub-query is a prerequisite for the next. MA-RAG addresses these issues by transforming RAG into a collaborative, multi-agent reasoning process.
Methodology: The MA-RAG Framework
MA-RAG decomposes the RAG process into a team-based workflow involving four specialized agents:
- Planner Agent: The "architect" that analyzes the initial query and breaks it down into a structured, step-by-step reasoning plan.
- Step Definer Agent: The "translator" that converts high-level plan steps into precise search queries for retrieval tools.
- Extractor Agent: The "filter" that identifies and summarizes only the relevant sentences from retrieved documents, reducing noise.
- QA Agent: The "synthesizer" that takes filtered evidence to provide intermediate sub-answers, which inform subsequent reasoning steps.
The system utilizes Collaborative Chain-of-Thought (CoT) prompting, where agents communicate via structured JSON. This on-demand architecture ensures efficiency by invoking only the necessary agents and steps for a given query.
Evaluation and Results
MA-RAG was evaluated across a diverse set of benchmarks, including general QA (NQ, TriviaQA), multi-hop QA (HotpotQA, 2WikimQA), and specialized domains like medical QA (PubmedQA).
The framework demonstrates that modularity can compensate for model scale. Notably, a Llama3-8B model using MA-RAG achieved 52.5 Exact Match (EM) on the NQ dataset, significantly outperforming the standalone Llama3-70B (42.7 EM).
Key Insights
- Noise Reduction: Ablation studies confirmed the Extractor agent is a massive performance booster, preventing the QA agent from being overwhelmed by irrelevant data.
- State-of-the-Art Performance: MA-RAG set new SOTA records on 2WikimQA (47.5 EM) and HotpotQA (52.1 EM).
- Zero-Shot Domain Expertise: Without fine-tuning, MA-RAG (Llama3-70B) achieved 78.9% on PubmedQA, surpassing domain-specific models like Meditron-70B.
Discussion and Conclusion
While MA-RAG offers superior accuracy and interpretability, it introduces higher latency due to iterative agent calls. A single-hop query takes approximately 2.2 seconds, while complex multi-hop queries can take up to 4.1 seconds. Future work will focus on optimizing these interactions for speed and exploring the use of smaller, specialized models for specific agent roles. Overall, MA-RAG proves that structured, multi-agent collaboration is a powerful paradigm for solving complex information retrieval and reasoning tasks.
Summary updated