arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.02388cs.CL
收藏

学习路由:一种基于规则的代理框架用于混合源检索增强生成

Learning to Route: A Rule-Driven Agent Framework for Hybrid-Source Retrieval-Augmented Generation

Arizona State University(亚利桑那州立大学);NEC Laboratories America(NEC美国实验室)

Haoyue Bai, Haoyu Wang, Shengyu Chen, Zhengzhang Chen, Lu-An Tang, Wei Cheng, Haifeng Chen, Yanjie Fu

AI总结:

本文提出基于规则的路由框架,通过系统规则选择合适来源提升检索增强生成的准确性和效率。

摘要:

大型语言模型(LLMs)在通用问答(QA)任务上表现出色,但在需要准确且最新信息的领域特定场景中常常遇到困难。检索增强生成(RAG)通过向LLMs添加外部知识来解决这一限制,但现有系统主要依赖于非结构化文档,而忽视了关系数据库,这些数据库提供了精确、及时且可高效查询的事实信息,在金融、医疗和科学研究等领域中不可或缺。受这一差距的启发,我们进行了系统分析,揭示了三个核心观察:(i)数据库和文档在查询中具有互补的优势,(ii)简单地结合两种来源会引入噪声和成本,而没有带来一致的准确性提升,(iii)为每个查询选择最合适的来源对于平衡有效性和效率至关重要。我们进一步发现,查询类型在与检索路径的对齐上显示出一致的规律性,表明可以通过系统规则来有效引导路由决策,以捕捉这些模式。基于这些见解,我们提出了一种基于规则的路由框架。路由代理根据显式规则评分候选增强路径并选择最合适的路径;规则制定专家代理利用问答反馈不断优化规则以保持适应性;路径级元缓存重用过去路由决策以减少相似语义查询的延迟和成本。在三个QA基准测试中,我们的框架在准确率方面始终优于静态策略和学习路由基线,同时保持适度的计算成本。

英文摘要:

Large Language Models (LLMs) have shown remarkable performance on general Question Answering (QA), yet they often struggle in domain-specific scenarios where accurate and up-to-date information is required. Retrieval-Augmented Generation (RAG) addresses this limitation by enriching LLMs with external knowledge, but existing systems primarily rely on unstructured documents, while largely overlooking relational databases, which provide precise, timely, and efficiently queryable factual information, serving as indispensable infrastructure in domains such as finance, healthcare, and scientific research. Motivated by this gap, we conduct a systematic analysis that reveals three central observations: (i) databases and documents offer complementary strengths across queries, (ii) naively combining both sources introduces noise and cost without consistent accuracy gains, and (iii) selecting the most suitable source for each query is crucial to balance effectiveness and efficiency. We further observe that query types show consistent regularities in their alignment with retrieval paths, suggesting that routing decisions can be effectively guided by systematic rules that capture these patterns. Building on these insights, we propose a rule-driven routing framework. A routing agent scores candidate augmentation paths based on explicit rules and selects the most suitable one; a rule-making expert agent refines the rules over time using QA feedback to maintain adaptability; and a path-level meta-cache reuses past routing decisions for semantically similar queries to reduce latency and cost. Experiments on three QA benchmarks demonstrate that our framework consistently outperforms static strategies and learned routing baselines, achieving higher accuracy while maintaining moderate computational cost.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑