arXiv:2605.13360cs.LG2026-05被引 1

让大模型在实时交互中快速响应,支持边等待边思考。

Speculative Interaction Agents: Building Real-Time Agents with Asynchronous I/O and Speculative Tool Calling

论文配图:Speculative Interaction Agents: Building Real-Time Agents with Asynchronous I/O and Speculative Tool Calling
图 1 · 摘自论文原文
  • 用异步输入输出分离思考与等待过程,实现并行处理。
  • 提出推测性工具调用,在信息未全时提前执行任务,提速1.3-2.2倍。
  • 适配小模型的时钟训练法,适合边缘设备上的实时应用。

随着智能体在客服、个人助手等场景的应用增长,实时低延迟交互成为关键需求,例如语音应用需低于1秒延迟以保证流畅体验。然而,大语言模型进行多轮工具调用时可能引入数秒延迟,难以满足实时要求。本文提出「推测性交互智能体」,通过异步I/O将核心推理与动作线程与外部等待解耦,实现等待期间的并行处理;并引入推测性工具调用机制,应对用户信息可能后续到达的情况。对于强云模型,该方法可直接部署于现有实时云接口,带来1.3–1.7×加速,仅轻微精度损失。针对小型边缘模型,提出基于时钟的训练策略,使其适应流式输入与异步响应,并设计合成数据生成方案用于监督微调。整体在多个工具调用基准上,使Qwen2.5-3B-Instruct与Llama-3.2-3B-Instruct模型获得1.6–2.2×加速。

原文摘要 · Abstract (English)

There is a growing demand for agentic AI technologies for a range of downstream applications like customer service and personal assistants. For applications where the agent needs to interact with a person, real-time low-latency responsiveness is required; for example, with voice-controlled applications, under 1 second of latency is typically required for the interaction to feel seamless. However, if we want the LLM to reason and execute an agentic workflow with tool calling, this can add several seconds or more of latency, which is prohibitive for real-time latency-sensitive applications. In our work, we propose Speculative Interaction Agents to enable real-time interaction even for agents with complex multi-turn tool calling. We propose Asynchronous I/O, which decouples the core agent reason-and-act thread from waiting for additional information from either the user or environment, thereby allowing for overlapping agentic processing while waiting on external delays. We also propose Speculative Tool Calling as a method to manage task execution when the agent is still unsure if it has received the full information or if additional user information may later be provided. For strong cloud models, our method can be applied out-of-the-box to existing real-time cloud APIs, providing 1.3-1.7$\times$ speedups with minor accuracy loss. To enable real-time interaction with small edge-scale models, we also present a clock-based training methodology that adapts the model to handle streaming inputs and asynchronous responses, and demonstrate a synthetic data generation strategy for SFT. Altogether, this approach provides 1.6-2.2$\times$ speedups with the Qwen2.5-3B-Instruct and Llama-3.2-3B-Instruct models across multiple tool calling benchmarks.

智能体实时交互工具调用异步处理

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。