arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2503.20552cs.DCcs.LG
收藏

向LLM服务注入肾上腺素:通过注意力分解提升资源利用率和吞吐量

Injecting Adrenaline into LLM Serving: Boosting Resource Utilization and Throughput via Attention Disaggregation

Sun Yat-sen University(中山大学);Huawei Cloud(华为云)

Yunkai Liang, Zhangyu Chen, Pengfei Zuo, Zhi Zhou, Xu Chen, Zhou Yu

AI总结:

针对LLM服务中预填充与解码分离导致的资源利用率低问题,提出Adrenaline注意力分解与卸载机制,将解码阶段注意力计算卸载至预填充实例,提升内存与计算利用率,实现最高1.68倍吞吐量提升。

摘要:

在大语言模型(LLM)服务系统中,执行每个请求包含两个阶段:计算密集型的预填充阶段和内存密集型的解码阶段。为了防止两个阶段之间的性能干扰,当前的LLM服务系统通常采用预填充-解码分离架构,即将两个阶段分配到不同的机器上。然而,我们观察到这种方法会导致严重的资源利用率不足。具体来说,计算密集型的预填充实例内存利用率低,而内存密集型的解码实例计算利用率低。为了解决这个问题,本文提出了Adrenaline,一种注意力分解和卸载机制,旨在提升LLM服务系统的资源利用率和性能。Adrenaline的关键创新在于将解码阶段的部分注意力计算分解出来,并卸载到预填充实例上。解码阶段注意力计算的内存密集型特性天然支持有效的卸载策略,从而带来两个互补优势:1)提高预填充实例的内存容量和带宽利用率,2)增加解码批量大小,从而提升解码实例的计算利用率,共同提升整体系统性能。Adrenaline通过三项关键技术实现这些收益:低延迟解码同步、资源高效的预填充共置以及负载感知的卸载调度。实验结果表明,与最先进的系统相比,Adrenaline在预填充实例中实现了2.28倍的内存容量提升和2.07倍的内存带宽利用率提升,解码实例的计算利用率提升最高达1.67倍,整体推理吞吐量提升1.68倍。

英文摘要:

In large language model (LLM) serving systems, executing each request consists of two phases: the compute-intensive prefill phase and the memory-intensive decoding phase. To prevent performance interference between the two phases, current LLM serving systems typically adopt prefill-decoding disaggregation, where the two phases are split across separate machines. However, we observe this approach leads to significant resource underutilization. Specifically, prefill instances that are compute-intensive suffer from low memory utilization, while decoding instances that are memory-intensive experience low compute utilization. To address this problem, this paper proposes Adrenaline, an attention disaggregation and offloading mechanism designed to enhance resource utilization and performance in LLM serving systems. Adrenaline's key innovation lies in disaggregating part of the attention computation in the decoding phase and offloading them to prefill instances. The memory-bound nature of decoding-phase attention computation inherently enables an effective offloading strategy, yielding two complementary advantages: 1) improved memory capacity and bandwidth utilization in prefill instances, and 2) increased decoding batch sizes that enhance compute utilization in decoding instances, collectively boosting overall system performance. Adrenaline achieves these gains through three key techniques: low-latency decoding synchronization, resource-efficient prefill colocation, and load-aware offloading scheduling. Experimental results show that Adrenaline achieves 2.28x higher memory capacity and 2.07x better memory bandwidth utilization in prefill instances, up to 1.67x improvements in compute utilization for decoding instances, and 1.68x higher overall inference throughput compared to state-of-the-art systems.

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

↑