arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2511.20048cs.AIcs.LGcs.PF
收藏

通过基于猜测的算法-系统联合设计降低LLM搜索代理的延迟

Reducing Latency of LLM Search Agent via Speculation-based Algorithm-System Co-Design

Tsinghua University(清华大学);Infinigence;Lenovo(联想);Shanghai Jiao Tong University(上海交通大学)

Zixiao Huang, Wen Zeng, Tianyu Fu, Tengxuan Liu, Yizhou Sun, Ke Hong, Xinhao Yang, Chengchun Liu, Yan Li, Quanlu Zhang, Guohao Dai, Zhenhua Zhu, Yu Wang

AI总结:

SPAgent通过基于猜测的算法-系统联合设计框架,减少LLM搜索代理的延迟,实现端到端加速并保持高准确性。

摘要:

基于LLM的搜索代理在性能方面表现出色,但存在严重的延迟问题,因为每一步都需要顺序执行LLM推理,然后执行工具操作。我们通过猜测的视角重新审视这一瓶颈。虽然传统的预测-验证猜测范式可以打破顺序执行,但其收益仍然有限,因为它保留了完整的原始工作量并增加了额外的推理开销。我们观察到早期的代理步骤往往涉及简单的证据收集,其中正确的操作往往可以在不完全推理的情况下预测。基于这些观察,我们提出了SPAgent,一种算法-系统联合设计框架,旨在通过扩展猜测在搜索代理中的作用来减少延迟。算法上,SPAgent引入了一种两阶段自适应猜测机制,该机制在安全时选择性地省略验证。系统上,两级调度器根据引擎负载调节猜测请求,以确保猜测仍然有益。我们将在现实系统中实现SPAgent。在广泛的实验设置中,SPAgent实现了高达1.65倍的端到端加速,同时保持相同或甚至更高的准确性,从而实现了多步骤搜索代理的实用部署。

英文摘要:

LLM-based search agents achieve strong performance but suffer from severe latency, as each step requires serialized LLM reasoning followed by action of tool execution. We revisit this bottleneck through the lens of speculation. While traditional predict-verify speculation paradigm can break serial execution, its benefit remains limited, as it retains the full original workload and adds extra inference overhead. We observe that early agent steps often involve simple evidence-gathering, where correct actions can often be predicted without full reasoning. Building on these observations, we present SPAgent, an algorithm-system co-design framework that expands the role of speculation in search agents to reduce latency. Algorithmically, SPAgent introduces a two-phase adaptive speculation mechanism that selectively omits verification when safe. System-wise, a two-level scheduler regulates speculative requests based on engine load to ensure speculation remains beneficial. We implement SPAgent in real-world systems. Across extensive experimental settings, SPAgent achieves up to $1.65\times$ end-to-end speedup while maintaining same or even achieving higher accuracy, enabling practical deployment of multi-step search agents.

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

↑