arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2603.10353cs.DC
收藏

S-HPLB: 通过稀疏性感知的头部并行负载平衡实现高效的LLM注意力服务

S-HPLB: Efficient LLM Attention Serving via Sparsity-Aware Head Parallelism Load Balance

Shanghai Jiao Tong University(上海交通大学);Chinese Academy of Science(中国科学院);Shenzhen MSU-BIT University(深圳莫斯科国立技术大学)

Di Liu, Yifei Liu, Chen Chen, Zhibin Yu, Xiaoyi Fan, Quan Chen, Minyi Guo

AI总结:

S-HPLB通过稀疏性感知的头部并行负载平衡策略,有效提升了LLM服务中注意力计算的效率和质量。

摘要:

随着大语言模型(LLM)规模的增加和上下文长度的扩展,注意力计算已成为LLM服务中的关键性能瓶颈。为了加快注意力计算,最近的做法通常在多个GPU上并行化注意力头,并广泛采用注意力稀疏化来减少计算量--即在预设稀疏度预算下选择性地计算一部分注意力对。在本文中,我们注意到LLM模型中的注意力头往往表现出异质但稳定的稀疏弹性,这促使我们强制使用头部自适应稀疏度预算以在保持高质量推理的同时获得更好的效率。然而,从系统角度来看,由于异质稀疏度水平,不同头部的注意力计算时间会不一致,在头部并行部署时会导致跨GPU资源空洞。为进一步减少此类空洞,我们提出了一种新的注意力部署策略,称为稀疏性感知的头部并行负载平衡(S-HPLB)。在长上下文基准测试中,实验表明,S-HPLB可以在不降低质量的情况下将平均注意力计算延迟提高2.88倍。

英文摘要:

With the increasing volumes of Large Language Models (LLMs) and the expanding context lengths, attention computation has become a key performance bottleneck in LLM serving. For fast attention computation, recent practices often parallelize the attention heads on multiple GPUs, and also widely adopt attention sparsification to reduce the computation amount -- which selectively computes a subset of attention pairs under a preset sparsity budget. In this paper, we notice that attention heads of an LLM model often exhibit heterogeneous-yet-stable sparsity elasticities, which motivates us to enforce head-adaptive sparsity budgets to attain better efficiency while preserving high inference quality. Yet, from the system aspect, with heterogeneous sparsity levels, attention computation time on different heads would be inconsistent, yielding cross-GPU resource bubbles under head-parallel deployment. To further minimize such bubbles, we propose a novel attention deployment strategy called Sparsity-aware Head-Parallel Load Balance (S-HPLB). Experiments on long-context benchmark show that, S-HPLB can achieve a $2.88\times$ improvement in average attention computation latency without quality degradation.

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

↑