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

SpecHop:连续推测用于加速多跳检索代理

SpecHop: Continuous Speculation for Accelerating Multi-Hop Retrieval Agents

University of Maryland, College Park(马里兰大学学院公园分校)

Mehrdad Saberi, Keivan Rezaei, Soheil Feizi

AI总结:

本文研究如何在不改变最终轨迹的情况下加速多跳工具使用过程,提出了一种连续推测框架SpecHop,通过维护多个推测线程和异步验证预测观测来减少延迟。

摘要:

大型语言模型越来越多地使用外部工具如网络搜索和文档检索来解决信息密集型任务。然而,在复杂任务中多跳工具使用引入了显著的延迟,因为模型必须反复等待工具观察结果才能继续。我们研究如何在不改变最终轨迹的情况下加速此类轨迹,假设可以访问更快但更不可靠的推测工具。我们开发了一个理论框架用于多跳工具使用设置中的无损推测,表征了最佳可实现的延迟增益。我们提出了SpecHop,一种连续推测框架,维护多个推测线程,在目标工具输出到达时异步验证预测观测,提交正确的分支并回滚错误的分支。这在保持准确性的同时减少了实际时间延迟。我们证明,当有足够活跃线程时,SpecHop可以接近理想延迟增益。在检索增强的多跳任务中,Empirically,SpecHop接近理论预测,并在某些设置中将延迟减少高达40%。代码:https://github.com/mehrdadsaberi/spechop

英文摘要:

Large language models increasingly use external tools such as web search and document retrieval to solve information-intensive tasks. However, multi-hop tool use in complex tasks introduces substantial latency, since the model must repeatedly wait for tool observations before continuing. We study how to accelerate such trajectories without changing the final trajectory the model would have taken without acceleration, assuming access to faster but less reliable speculator tools. We develop a theoretical framework for lossless speculation in multi-hop tool-use settings, characterizing the optimal achievable latency gain. We propose SpecHop, a continuous speculation framework that maintains multiple speculative threads, verifies predicted observations asynchronously as target tool outputs arrive, commits correct branches, and rolls back incorrect ones. This preserves accuracy while reducing wall-clock latency. We show that SpecHop can approach oracle latency gains with enough active threads. Empirically, on retrieval-augmented multi-hop tasks, SpecHop closely matches theoretical predictions and reduces latency by up to 40\% in some settings. Code: https://github.com/mehrdadsaberi/spechop

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

↑