arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2602.05728cs.CLcs.AI
收藏

CompactRAG: 减少多跳问答中的LLM调用和令牌开销

CompactRAG: Reducing LLM Calls and Token Overhead in Multi-Hop Question Answering

State Key Laboratory for Novel Software Technology, Nanjing University(新型软件技术国家重点实验室,南京大学);Erik Jonsson School of Engineering and Computer Science, University of Texas at Dallas(埃里克·乔纳森工程与计算机科学学院,德克萨斯大学达拉斯分校);Isoftstone Information Technology (Group) Co.,Ltd.(伊软石信息技术(集团)有限公司);College of Electronic and Information Engineering, Tongji University(电子信息工程学院,同济大学);School of Electronic Information, Central South University(电子信息学院,中南大学)

Hao Yang, Zhiyu Yang, Xupeng Zhang, Wei Wei, Yunjie Zhang, Lin Yang

AI总结:

CompactRAG通过解耦离线语料重组与在线推理,减少多跳问答中的LLM调用和令牌消耗,提升效率。

摘要:

检索增强生成(RAG)已成为知识密集型问答的关键范式。然而,现有的多跳RAG系统仍然效率低下,因为它们在每一步都交替进行检索和推理,导致重复的LLM调用、高令牌消耗以及跨跳的实体定位不稳定。我们提出了CompactRAG,一个简单而有效的框架,将离线语料重组与在线推理解耦。在离线阶段,一个LLM一次性读取语料并将其转换为原子QA知识库,该知识库将知识表示为最小、细粒度的问题-答案对。在在线阶段,复杂查询被分解并仔细重写以保持实体一致性,并通过密集检索后接基于RoBERTa的答案提取进行解决。值得注意的是,在推理过程中,LLM总共只被调用两次——一次用于子问题分解,一次用于最终答案综合——无论推理跳数如何。在HotpotQA、2WikiMultiHopQA和MuSiQue上的实验表明,CompactRAG在准确性方面具有竞争力,同时相比迭代RAG基线显著减少了令牌消耗,突显了在大规模知识语料上进行多跳推理的一种成本高效且实用的方法。实现可在GitHub上获得。

英文摘要:

Retrieval-augmented generation (RAG) has become a key paradigm for knowledge-intensive question answering. However, existing multi-hop RAG systems remain inefficient, as they alternate between retrieval and reasoning at each step, resulting in repeated LLM calls, high token consumption, and unstable entity grounding across hops. We propose CompactRAG, a simple yet effective framework that decouples offline corpus restructuring from online reasoning. In the offline stage, an LLM reads the corpus once and converts it into an atomic QA knowledge base, which represents knowledge as minimal, fine-grained question-answer pairs. In the online stage, complex queries are decomposed and carefully rewritten to preserve entity consistency, and are resolved through dense retrieval followed by RoBERTa-based answer extraction. Notably, during inference, the LLM is invoked only twice in total - once for sub-question decomposition and once for final answer synthesis - regardless of the number of reasoning hops. Experiments on HotpotQA, 2WikiMultiHopQA, and MuSiQue demonstrate that CompactRAG achieves competitive accuracy while substantially reducing token consumption compared to iterative RAG baselines, highlighting a cost-efficient and practical approach to multi-hop reasoning over large knowledge corpora. The implementation is available at GitHub.

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

↑