AgentWeave:基于流分解的高效分布式智能体服务系统
AgentWeave: Efficient Distributed Agent Serving via Flow Decomposition
AI总结:
针对分布式智能体服务的请求阻塞问题,提出基于聚合架构的AgentWeave系统,通过流分解与流自适应调度器提升吞吐量、降低延迟,在四类应用上实现1.81倍吞吐量提升等性能增益。
摘要:
智能体应用正演变为由大语言模型(LLM)调用和工具调用(称为模块)组成的工作流。现有分布式智能体系统通常采用拆分架构,将不同模块部署在不同设备上,虽能实现流水线并行,但模块延迟失衡会产生严重的流水线气泡,限制吞吐量。自然的替代方案是聚合架构,将所有模块共同部署在所有设备上,通过保持每个设备持续活动消除气泡,但这会引发请求阻塞:短请求必须与同批次的长请求同步推进,新到达的请求需等待整个正在进行的批次完成完整工作流。为解决该问题,我们提出AgentWeave,一种基于聚合架构构建的高效分布式智能体服务系统,其核心机制流分解将长智能体请求分解为细粒度执行单元,同时保留智能体语义,使短请求和新到达的请求无需被长运行请求阻塞。与之互补的流自适应调度器动态权衡分解带来的吞吐量增益与调度开销。在四个代表性智能体应用上的实验表明,AgentWeave相较于最先进的基线,吞吐量提升1.81倍,平均延迟降低2.45倍,P90延迟降低2.04倍。
英文摘要:
Agent applications are evolving into workflows composed of large language model (LLM) calls and tool invocations, termed modules. Existing distributed agent systems typically adopt a disaggregated architecture, deploying different modules on separate devices. While this enables pipeline parallelism, imbalanced module latencies introduce severe pipeline bubbles that limit throughput. A natural alternative is an aggregated architecture that co-deploys all modules across all devices, eliminating bubbles by keeping every device continuously active. However, this introduces request blocking: short requests are forced to progress in lockstep with longer ones in the same batch, and newly arriving requests must wait until the entire ongoing batch completes the full workflow. To address this, we propose AgentWeave, an efficient distributed serving system for agent applications built on the aggregated architecture. Its core mechanism, flow decomposition, decomposes long agent requests into fine-grained execution units while preserving agent semantics, allowing short and newly arriving requests to proceed without being stalled by long-running ones. Complementing this, a flow-adaptive scheduler dynamically balances the throughput gains of decomposition against its scheduling overhead. Experiments across four representative agent applications demonstrate that AgentWeave improves throughput by 1.28-1.81x, reduces average latency by 2.08-2.45x, and reduces P90 latency by 1.56-2.04x over state-of-the-art baselines.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。