TL;DR
This paper introduces Collab-RAG, a novel framework that enhances Retrieval-Augmented Generation (RAG) for complex question answering by fostering collaboration between a small, white-box language model (SLM) and a larger, black-box LLM. By having the SLM decompose complex queries into simpler sub-questions and then using the LLM's feedback to refine this decomposition, Collab-RAG significantly improves retrieval accuracy and reasoning capabilities, even outperforming larger models in question decomposition.
What Problem Does This Paper Address?
Large Language Models (LLMs) are powerful, but they often struggle with complex, multi-hop question-answering (QA) tasks. This is partly because standard RAG systems can retrieve irrelevant information and lack sophisticated reasoning abilities to synthesize knowledge from multiple sources. While RAG aims to mitigate these issues by incorporating external knowledge, it often faces "low-recall" problems, especially when questions require piecing together information from various documents. Existing methods for improving RAG either focus on single-step retrieval, are training-free and thus limited in capability, or require expensive fine-tuning of large, black-box LLMs, which is impractical. The core challenge is to effectively leverage the reasoning and retrieval capabilities of LLMs for complex QA without prohibitive costs or resource demands.
Methods
Collab-RAG introduces a collaborative training framework with two main components:
- White-Box SLM as Query Decomposer: A small, interpretable language model (SLM) is used to break down complex questions into a sequence of simpler, atomic sub-questions. This decomposition aims to improve the precision of retrieved information.
- Black-Box LLM as Context Reader: A larger, black-box LLM acts as the reader, processing the retrieved context for each sub-question and synthesizing the final answer.
The key innovation lies in their iterative preference optimization (DPO) training strategy. Instead of relying on human annotations or distilling knowledge from frontier LLMs, Collab-RAG uses feedback from an affordable black-box LLM (like GPT-40-mini) to train the SLM. The RAG system is framed as an environment where the SLM generates sub-questions, and the LLM reader provides feedback on the quality of these decompositions based on the final answer's accuracy. This feedback is used to iteratively refine the SLM's decomposition strategy through a process inspired by Reinforcement Learning from Human Feedback (RLHF). The training involves a "warm-up" phase using supervised fine-tuning on self-generated data, followed by iterative DPO to enhance the SLM's decomposition skills.
Datasets
The paper evaluates Collab-RAG on five representative multi-hop QA datasets:
- HotpotQA: Requires reasoning over multiple Wikipedia passages for fact-based questions.
- 2WikiMQA: Extends HotpotQA, demanding reasoning across two distinct Wikipedia articles.
- MusiQue: Features challenging multi-hop questions requiring reasoning across sentences scattered across documents.
- StrategyQA: Focuses on implicit reasoning and strategic multi-step inference rather than direct fact lookup.
- Bamboogle: Designed to test LLMs on adversarial and compositional questions, emphasizing decomposition and reasoning.
For training, they sampled 10,000 question-answer pairs from HotpotQA, MusiQue, and 2WikiMQA.
Key Insights and Ideas
- Collaboration is Key: The core idea is that a smaller, specialized model (SLM) can effectively decompose queries, enabling a larger LLM to focus on reasoning and synthesis, leading to better overall performance.
- Feedback Loop for Improvement: Using the black-box LLM's output as a supervisory signal for the white-box SLM is a cost-effective way to improve decomposition capabilities without expensive human labeling or distillation.
- Decomposition Enhances Retrieval: Breaking down complex questions into smaller, targeted queries significantly improves the relevance of retrieved documents, directly addressing the "low-recall" problem in RAG.
- Parameter Efficiency: A fine-tuned 3B SLM can outperform a much larger, frozen 32B LLM in question decomposition, demonstrating the efficiency of the Collab-RAG approach.
- Generalization: The framework shows strong generalization capabilities across different black-box LLMs, suggesting its broad applicability.
Key Results
Collab-RAG demonstrated substantial improvements over existing baselines on five multi-hop QA datasets, achieving an average gain of 1.8%-14.2%.
- It outperformed existing black-box-only and SLM fine-tuning baselines.
- A fine-tuned 3B SLM using Collab-RAG surpassed a frozen 32B LLM in question decomposition accuracy.
- The framework showed robust generalization across various black-box LLMs.
- Ablation studies indicated that both the format and accuracy rewards, as well as the iterative DPO process, are crucial for achieving optimal performance.
Limitations and Future Work
- Sensitivity to Parameters: While generally robust, the paper notes that performance can degrade if the number of retrieved passages (k) is set too large or too small.
- Future Work: The authors suggest extending Collab-RAG for online reinforcement learning, which could allow for continuous adaptation and improvement in dynamic environments.
Summary updated