Abstract
Retrieval-Augmented Generation (RAG) has emerged as a reliable external knowledge augmentation technique to mitigate hallucination issues and parameterized knowledge limitations in Large Language Models (LLMs). Existing adaptive RAG (ARAG) systems excel at in-depth exploration within a single source but struggle to effectively and controllably explore different retrieval sources, as they fail to foresee their internal knowledge features. We develop a novel multi-source ARAG system, PrefRAG, which enhances RAG by enabling in-depth and controllable exploration of diverse retrieval sources through preference-driven adaptive retrieval and self-reflection. PrefRAG first fully explores controllable local sources in adaptive retrieval and supplements with the web when appropriate, ultimately selecting the optimal source for knowledge observation. Subsequently, PrefRAG feeds answer quality feedback into the retrieval process, optimizing it from the generation perspective to produce higher-quality responses. Extensive experiments confirm its superiority, high retrieval efficiency, and knowledge controllability. PrefRAG outperforms Vanilla RAG and the leading MS-ARAG by up to 25.6% and 13.9% respectively. Additionally, PrefRAG trained with DPO achieves higher performance.
Introduction
Retrieval-Augmented Generation (RAG) is the current standard for reducing hallucinations in Large Language Models (LLMs). However, most existing systems are "monocultural," relying on either a single local corpus or the open web. The authors identify a major gap in Multi-Source Adaptive RAG (MS-ARAG): existing methods like ReAct struggle to "foresee" which source will be most useful, often leading to uncertain source selection or premature search abandonment.
PrefRAG addresses this by providing a controlled, orderly way to explore diverse sources. It implements a "local-first" philosophy, ensuring the model utilizes curated, reliable information before selectively supplementing with web data.
Methodology
PrefRAG introduces a two-pronged architecture designed for depth and controllability:
Preference-Driven Adaptive Retrieval (Pref-AR)
Instead of searching all sources simultaneously, PrefRAG follows a preference-driven logic. In each iteration, it retrieves from a curated local source. A "Decision" module then compares this new information against the existing context. If the local information is deemed insufficient, the system triggers a conditional switch to the web. This "foreseeing" capability allows the model to analyze whether current retrieved documents actually satisfy the query before moving to external sources.
Self-Reflection Loop
Once an answer is generated, the model critiques itself by assigning a token: CORRECT, PARTIALLY CORRECT, or INCORRECT. If the answer is anything less than correct, the system re-triggers the retrieval process, using the self-critique as feedback to find missing information.
DPO Alignment
To refine source selection, the authors developed an automated pipeline to create preference data. Using a larger model (GLM4-Plus) to label optimal retrieval decisions, they applied Direct Preference Optimization (DPO) to fine-tune the backbone model, teaching it to mimic high-quality source-selection decisions.
Key Results and Insights
PrefRAG was evaluated across four challenging benchmarks, including multi-hop QA (HotpotQA, MuSiQue) and domain-specific QA (BioASQ).
- Accuracy Boost: PrefRAG outperformed Vanilla RAG by up to 25.6% and the leading MS-ARAG (ReAct) by up to 13.9%.
- Retrieval Efficiency: By being more selective about web usage, PrefRAG achieved higher accuracy while requiring significantly fewer web retrieval steps compared to brute-force methods.
- Controllability: Qualitative case studies confirmed that PrefRAG successfully prioritized intended internal materials over potentially unfavorable external web content, a critical feature for enterprise applications.
- DPO Effectiveness: Models trained with DPO showed an average performance increase of 2.5% to 3.1%, proving that source-selection preference can be effectively learned.
Conclusion
PrefRAG represents a significant advancement in multi-source RAG by introducing a structured, preference-driven approach to knowledge acquisition. By combining local-first retrieval with a self-reflection loop and DPO-based alignment, it achieves a superior balance of accuracy, efficiency, and controllability. Future work will explore scaling the system to handle dozens of specialized databases and resolving potential preference conflicts in even more complex environments.
Summary updated