arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.12029cs.LGcs.DC
收藏

PrefillShare: 一种用于多语言模型解耦服务中KV重用的共享预填模块

PrefillShare: A Shared Prefill Module for KV Reuse in Multi-LLM Disaggregated Serving

Sunghyeon Woo, Hoseung Kim, Sunghwan Shim, Minjung Jo, Hyunjoon Jeong, Jeongtae Lee, Joonghoon Kim, Sungjae Lee, Jiwon Ryu, Baeseong Park, Se Jung Kwon, Dongsoo Lee

AI总结:

PrefillShare通过共享预填模块和KV缓存,减少多语言模型解耦服务中的冗余计算和延迟,提升吞吐量和准确性。

摘要:

多智能体系统越来越多地协调多个专门化的语言模型来解决复杂的真实世界问题,通常在共享上下文中调用它们。这种执行模式在多个模型上反复处理相同的提示前缀。因此,每个模型都会重复执行预填阶段,并维护自己的键值(KV)缓存,增加了总体预填负载,并通过加剧现有LLM服务堆栈中的预填-解码干扰而恶化尾部延迟。解耦服务通过将预填和解码放在不同的GPU上减少此类干扰,但解耦并不能从根本上消除相同提示中多个模型在计算和KV存储方面的冗余。为了解决这个问题,我们提出了PrefillShare,一种新的算法,使在解耦设置中多个模型能够共享预填阶段。PrefillShare将模型分解为预填和解码模块,冻结预填模块,并只微调解码模块。这种设计使多个任务特定的模型可以共享一个预填模块和为相同提示生成的KV缓存。我们进一步引入了一种路由机制,使基于vLLM的解耦系统能够在异构模型之间实现有效的预填共享。PrefillShare不仅在广泛的任务和模型上实现了全微调的准确性,而且在多模型智能体工作负载中提供了4.5倍更低的p95延迟和3.9倍更高的吞吐量。

英文摘要:

Multi-agent systems increasingly orchestrate multiple specialized language models to solve complex real-world problems, often invoking them over a shared context. This execution pattern repeatedly processes the same prompt prefix across models. Consequently, each model redundantly executes the prefill stage and maintains its own key-value (KV) cache, increasing aggregate prefill load and worsening tail latency by intensifying prefill-decode interference in existing LLM serving stacks. Disaggregated serving reduces such interference by placing prefill and decode on separate GPUs, but disaggregation does not fundamentally eliminate inter-model redundancy in computation and KV storage for the same prompt. To address this issue, we propose PrefillShare, a novel algorithm that enables sharing the prefill stage across multiple fine-tuned models in a disaggregated setting. PrefillShare factorizes the model into prefill and decode modules, freezes the prefill module, and fine-tunes only the decode module. This design allows multiple task-specific models to share a prefill module and the KV cache generated for the same prompt. We further introduce a routing mechanism that enables effective prefill sharing in a vLLM-based disaggregated system. PrefillShare not only matches full fine-tuning accuracy on a broad range of tasks and models, but also delivers 4.5x lower p95 latency and 2.0x higher throughput in multi-model agent workloads.

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

↑