用对话级调度取代逐轮预测,显著降低大模型代理服务延迟
Observation, Not Prediction: Conversation-Level Disaggregated Scheduling for Agentic Serving

- 以整个对话为调度单位,避免对后续轮次的不可观测行为进行预测
- 相比逐轮调度,首有效词延迟降低51.08%,能效提升7.51%
- 无需学习解码开销模型,适合高并发大模型代理服务场景
基于大语言模型的智能体通过多轮依赖推理和工具调用完成用户任务,其总成本在任务到达时未知。现有系统以轮次为调度单元,逐轮决定是否将预填充与解码分离,但该决策依赖于无法提前观测的解码长度、工具行为和KV缓存增长。我们发现,这种依赖预测的本质源于调度单元过细。将调度单元从轮次提升至对话层级,可将不规则的多轮结构转化为稳定的两阶段模式:1)计算密集型的第一轮预填充;2)长期内存密集型的后续尾部。因此,以对话为单位调度时,只需观测首轮输入长度和每解码器的KV占用,均为直接可得。我们在ConServe中实现该思想:将首轮预填充路由至高吞吐预填充器,仅传输一次KV缓存,并全程绑定单个解码器处理尾部,无需学习解码侧成本模型。相较于逐轮预测基线,ConServe将对话首有效词延迟(p95)降低51.08%,能效提升7.51%,同时保持末轮吞吐和SLO。若将两阶段映射至异构GPU层级,能效再增22.75%。
原文摘要 · Abstract (English)
LLM-based agents resolve a user task through many turns of dependent inference and tool calls, producing a workload whose total cost is unknown when the task arrives. Existing multi-turn systems keep the turn as the scheduling unit and decide, turn by turn, whether to disaggregate prefill from decode. That decision rests on the turn's decode length, tool behavior, and KV growth, quantities that are not observable when the scheduler must act, forcing the system to predict them. We show this dependence on prediction is imposed by the scheduling unit, not the workload. Raising the scheduling unit from the turn to the conversation converts turn-level irregularity into a stable, two-phase structure: 1) a compute-bound turn-1 prefill followed by 2) a long, memory-bound tail. Thus, with the conversation as the scheduling unit, placement reduces to reading the first-turn input length and per-decoder KV occupancy, both directly observable. We instantiate this principle in ConServe, which routes the first-turn prefill to a high-throughput prefiller, transfers the KV cache exactly once, and pins the conversation to a single decoder for its entire tail, with no learned model of decode-side cost. Against a per-turn prediction baseline, ConServe reduces p95 time-to-first-effective-token (the latency of a conversation's first user-visible output) by 51.08% and improves energy efficiency by 7.51% while preserving last-turn TBT and SLOs; mapping the two phases onto heterogeneous GPU tiers adds a further 22.75% in energy efficiency.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。