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

剖析移动 DVFS 调控器对 LLM 推理性能与能效的影响

Dissecting the Impact of Mobile DVFS Governors on LLM Inference Performance and Energy Efficiency

Shanghai Jiao Tong University, Shanghai, China(上海交通大学);Purdue University(普渡大学)

Zongpu Zhang, Pranab Dash, Y. Charlie Hu, Qiang Xu, Jian Li, Haibing Guan

AI总结:

本文通过测量揭示移动端 CPU、GPU 和内存 DVFS 调控器相互独立导致 LLM 推理延迟最多增加 40.4%,并提出统一能量感知调控器 FUSE,在相同每 token 能耗下显著降低首 token 和每输出 token 延迟。

摘要:

大型语言模型(LLMs)正越来越多地集成到运行在数十亿移动设备上的各种应用和服务中。然而,在资源受限的移动设备上部署 LLM 面临重大挑战,因为其对计算、内存以及最终对能量都有很高需求。虽然当前面向移动端的 LLM 框架会使用三个高功耗组件——CPU、GPU 和内存——即使主要运行基于 GPU 的 LLM 模型时也是如此,但现代移动设备中为 CPU、GPU 和内存配备的经过优化的 DVFS 调控器却各自独立运行,彼此之间互不知晓。受上述观察启发,在本工作中,我们首先测量了由多种 LLM 模型组成的最先进 LLM 框架在手机上的能效,结果表明,在相同的能量消耗下,对于采样的预填充和解码长度,三元组移动调控器导致的预填充和解码延迟比 CPU、GPU 和内存频率的最优组合最多高出 40.4%。其次,我们开展了一项深入的测量研究,以揭示移动调控器之间复杂的相互作用(或缺乏相互作用)如何导致上述 LLM 推理低效问题。最后,基于这些见解,我们设计了 FUSE——一种统一的能量感知调控器,用于优化移动设备上 LLM 推理的能效。我们使用 ShareGPT 数据集进行的评估表明,对于各种移动 LLM 模型,在每 token 能量相同的情况下,FUSE 将首 token 时间和每输出 token 时间延迟平均降低了 7.0%–16.9% 和 25.4%–36.8%。

英文摘要:

Large Language Models (LLMs) are increasingly being integrated into various applications and services running on billions of mobile devices. However, deploying LLMs on resource-limited mobile devices faces a significant challenge due to their high demand for computation, memory, and ultimately energy. While current LLM frameworks for mobile use three power-hungry components-CPU, GPU, and Memory-even when running primarily-GPU LLM models, optimized DVFS governors for CPU, GPU, and memory featured in modern mobile devices operate independently and are oblivious of each other. Motivated by the above observation, in this work, we first measure the energy-efficiency of a SOTA LLM framework consisting of various LLM models on mobile phones which showed the triplet mobile governors result in up to 40.4% longer prefilling and decoding latency compared to optimal combinations of CPU, GPU, and memory frequencies with the same energy consumption for sampled prefill and decode lengths. Second, we conduct an in-depth measurement study to uncover how the intricate interplay (or lack of) among the mobile governors cause the above inefficiency in LLM inference. Finally, based on these insights, we design FUSE - a unified energy-aware governor for optimizing the energy efficiency of LLM inference on mobile devices. Our evaluation using a ShareGPT dataset shows FUSE reduces the time-to-first-token and time-per-output-token latencies by 7.0%-16.9% and 25.4%-36.8% on average with the same energy-per-token for various mobile LLM models.

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

↑