TreeHop:高效的嵌入层查询重写器
TreeHop: Efficient Embedding-Level Query Rewriter
AI总结:
TreeHop是一种无需LLM的嵌入层MHQA框架,通过精简循环降低计算开销,在四个开放域MHQA数据集上性能与先进RAG相当,参数仅为现有方案2.2%-29.4%,延迟降低92.8%-97.8%。
摘要:
检索增强生成(RAG)系统在多跳问答(MHQA)中面临重大挑战,复杂查询需要综合多个文档块的信息。现有方法通常依赖基于大型语言模型(LLM)的迭代查询重写与路由,因重复调用LLM及多阶段流程导致计算成本高昂。为解决这些局限,我们提出TreeHop,一种无需LLM的嵌入层查询优化框架。TreeHop通过融合先前查询与已检索文档的语义信息动态更新查询嵌入,仅通过嵌入空间操作即可实现迭代检索。该方法将传统的“检索-重写-向量化-检索”循环替换为精简的“检索-嵌入-检索”循环,大幅降低计算开销。此外,引入基于规则的停止准则以进一步剪枝冗余检索,平衡效率与召回率。实验结果表明,TreeHop在四个开放域MHQA数据集上可与先进RAG方法媲美,仅需现有方案2.2%-29.4%的参数规模即可达到相当性能,且查询延迟降低92.8%-97.8%,使其成为资源有限或对延迟敏感部署场景下更快、更具成本效益的解决方案。为便于复现,代码与数据可通过指定链接获取。
英文摘要:
Retrieval-augmented generation (RAG) systems face significant challenges in multi-hop question answering (MHQA), where complex queries require synthesizing information across multiple document chunks. Existing approaches typically rely on iterative LLM-based query rewriting and routing, resulting in high computational costs due to repeated LLM invocations and multi-stage processes. To address these limitations, we propose TreeHop, an embedding-level framework without the need for LLMs in query refinement. TreeHop dynamically updates query embeddings by fusing semantic information from prior queries and retrieved documents, enabling iterative retrieval through embedding-space operations alone. This method replaces the traditional "Retrieve-Rewrite-Vectorize-Retrieve" cycle with a streamlined "Retrieve-Embed-Retrieve" loop, significantly reducing computational overhead. Moreover, a rule-based stopping criterion is introduced to further prune redundant retrievals, balancing efficiency and recall rate. Experimental results show that TreeHop rivals advanced RAG methods across four open-domain MHQA datasets, achieving comparable performance with only 2.2\%-29.4\% of the parameter size of concurrent solutions and reducing the query latency by 92.8\%-97.8\%. This makes TreeHop a faster and more cost-effective solution for low-resource or latency-sensitive deployment. For reproducibility purposes, codes and data are available here: https://github.com/allen-li1231/TreeHop-RAG
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。