arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.11999cs.DCcs.AIcs.LGcs.PF
收藏

LLM解码中的功率限制幻觉:跨注意力架构的相位感知能耗分析

The Illusion of Power Capping in LLM Decode: A Phase-Aware Energy Characterisation Across Attention Architectures

Erlangen National High Performance Computing Center(埃朗根国家高性能计算中心);Friedrich-Alexander-Universität Erlangen-Nürnberg(埃朗根-纽伦堡弗里德里希-亚历山大大学)

Bole Ma, Ayesha Afzal, Jan Eitzinger, Gerhard Wellein

AI总结:

研究揭示LLM解码中功率限制的表面现象,通过分析四种注意力架构发现解码实际耗能较低,内存瓶颈导致带宽饱和而非计算瓶颈,钟速锁定比功率限制更有效,可提升解码能耗32%并最小化吞吐量损失。

摘要:

功率限制是LLM服务中的标准GPU能耗控制手段,看似有效:吞吐量下降、功率读数降低且能耗预算得以满足。本文证明在生产服务中占主导的自回归解码阶段,这种效果是虚幻的。在NVIDIA H200上,四种注意力架构(GQA、MLA、Gated DeltaNet和Mamba2)的解码仅消耗137-300W,远低于700W GPU的额定功率,因为内存受限的解码饱和了HBM带宽而非计算能力,从而未触发任何功率限制。固件引发的时钟 throttling加剧了这种幻觉:这些偏差可能破坏任何将它们归因于限制的吞吐量测量。SM时钟锁定消除了这两种混淆因素。通过针对实际关键路径上的杠杆,时钟锁定在普遍层面优于功率限制,可恢复高达32%的解码能耗,同时最小化吞吐量损失。研究识别出三种架构相关的DVFS行为类别,并表征了新型注意力替换中的共同能耗模式:通过高效的解码抵消了预填充成本,最终使总请求能耗相对于GQA在生产批量大小下减少一半。

英文摘要:

Power capping is a common GPU energy lever in LLM serving, and it appears to work: the cap is set, the GPU reports drawing less than it, and the energy budget is met. We show the cap does little for the phase that dominates LLM serving: autoregressive decode. Across four attention paradigms (GQA, MLA, Gated DeltaNet, and Mamba2) on an NVIDIA H200 under vLLM eager execution, decode kernels wait on HBM and the GPU idles between kernel launches, so decode draws less than half of the GPU's 700W rating and throughput stays within a few percent under every cap we set. The cap engages only when a large batch runs a long generation. Locking the SM clock instead lowers power without slowing memory-bound decode and recovers up to 32% of decode energy at minimal throughput loss. We identify three architecture-dependent frequency-scaling classes and find that, once prefill is measured without prefix caching, the recurrent architectures pay no prefill penalty: their linear-time mixing undercuts quadratic attention on long prompts, so their efficient decode adds to the prefill saving and lowers total request energy from the first output token at large batch.

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

↑