重新思考大语言模型推理瓶颈:来自潜在注意力和专家混合的见解
Rethinking LLM Inference Bottlenecks: Insights from Latent Attention and Mixture-of-Experts
AI总结:
本文提出通过潜在注意力和专家混合架构优化大语言模型推理瓶颈,转向高带宽互连和负载平衡以提升性能
摘要:
传统变换器模型的计算负载呈现出鲜明的二元分化。多头注意力(MHA)和分组查询注意力由于算力强度低而成为内存瓶颈,而前馈网络则属于计算瓶颈。这种二元分化长期以来推动了对专用硬件的研究,以缓解注意力瓶颈。本文认为,最近变换器模型的架构进步——多头潜在注意力(MLA)和专家混合(MoE)——引入了新的主导瓶颈,将挑战从内存密集型注意力转移出去。我们有两个关键观察。首先,MLA的算力强度比MHA高两个数量级,使其向计算密集型领域迈进,与现代加速器如GPU高度匹配。其次,将MoE专家分布在加速器池中,可以批量处理以调节其算力强度至密集层水平,产生更平衡的计算配置。因此,硬件和系统优化的重点应从注意力加速转向高带宽互连和在加速器之间平衡专家工作负载。
英文摘要:
Computational workloads composing traditional transformer models are starkly bifurcated. Multi-Head Attention (MHA) and Grouped-Query Attention are memory-bound due to low arithmetic intensity, while FeedForward Networks are compute-bound. This dichotomy has long motivated research into specialized hardware to mitigate the attention bottleneck. This paper argues that recent architectural advances in transformer models -- Multi-head Latent Attention (MLA) and Mixture of Experts (MoE) -- introduce new dominant bottlenecks, shifting the challenge away from memory-intensive attention. We make two key observations. First, the arithmetic intensity of MLA is over two orders of magnitude higher than that of MHA, moving it toward a compute-bound regime well-matched to modern accelerators such as GPUs. Second, distributing MoE experts across a pool of accelerators allows batching to tune their arithmetic intensity to that of dense layers, producing a more balanced computational profile. Consequently, the focus of hardware and system optimization should shift from attention acceleration to high-bandwidth interconnects and balancing expert workloads across accelerators.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。