arXiv:2504.08744cs.IRcs.AI2025-04被引 7

让大模型按需调用知识库或专家,提升问答效率与准确性。

ExpertRAG: Efficient RAG with Mixture of Experts -- Optimizing Context Retrieval for Adaptive LLM Responses

  • 根据问题需求动态选择调用外部知识或内部专家
  • 理论证明可节省计算成本并提升知识利用效率
  • 适合需要精准、高效响应的智能客服与知识系统

ExpertRAG 是一种将混合专家(MoE)架构与检索增强生成(RAG)融合的新框架,旨在提升知识密集型语言模型的效率与准确性。通过动态检索门控机制与专家路由,模型可根据查询需求选择性调用外部知识库或专用内部专家。论文建立了概率化理论基础,将检索与专家选择视为潜在决策,并推导出计算成本节约与稀疏专家利用带来的容量增益公式。对比分析显示,ExpertRAG 在参数化知识与非参数化检索间取得独特平衡,优于传统 RAG(始终开启检索)与纯 MoE 模型(如 Switch Transformer、Mixtral)。研究提出实验验证方案,涵盖事实召回率、泛化能力与推理效率的评测基准。该框架虽以理论为主,但基于已有 RAG 与 MoE 研究,为实现更准确、高效、自适应的生成提供了新思路与实证路径。

原文摘要 · Abstract (English)

ExpertRAG is a novel theoretical framework that integrates Mixture-of-Experts (MoE) architectures with Retrieval Augmented Generation (RAG) to advance the efficiency and accuracy of knowledge-intensive language modeling. We propose a dynamic retrieval gating mechanism coupled with expert routing, enabling the model to selectively consult an external knowledge store or rely on specialized internal experts based on the query's needs. The paper lays out the theoretical foundations of ExpertRAG, including a probabilistic formulation that treats retrieval and expert selection as latent decisions, and mathematical justifications for its efficiency in both computation and knowledge utilization. We derive formulae to quantify the expected computational cost savings from selective retrieval and the capacity gains from sparse expert utilization. A comparative analysis positions ExpertRAG against standard RAG (with always-on retrieval) and pure MoE models (e.g., Switch Transformer, Mixtral) to highlight its unique balance between parametric knowledge and non-parametric retrieval. We also outline an experimental validation strategy, proposing benchmarks and evaluation protocols to test ExpertRAG's performance on factual recall, generalization, and inference efficiency. The proposed framework, although presented theoretically, is supported by insights from prior work in RAG and MoE, and is poised to provide more factual, efficient, and adaptive generation by leveraging the best of both paradigms. In summary, ExpertRAG contributes a new perspective on scaling and augmenting language models, backed by a thorough analysis and a roadmap for empirical validation.

RAGMoE知识增强高效推理

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。