可持续性并非线性:在设备智能中量化性能、能耗和隐私的权衡
Sustainability Is Not Linear: Quantifying Performance, Energy, and Privacy Trade-offs in On-Device Intelligence
AI总结:
本文研究了将大语言模型从云集群迁移到边缘设备过程中性能、能耗和隐私之间的权衡,通过实验证明模型架构对电池寿命的影响大于量化方案,并发现中等大小模型在响应质量和可持续能耗之间达到最佳平衡。
摘要:
将大型语言模型(LLMs)从云集群迁移到边缘设备有望提高隐私性和离线访问性,但这一转变面临严峻现实:移动电池的物理限制、热限制以及最重要的是内存限制。为了应对这一挑战,我们构建了一个可复现的实验管道,用于分析移动设备上LLMs的能耗、延迟和质量之间的复杂相互作用。我们利用该管道对旗舰Android设备进行了实证案例研究,捕捉了从0.5B到9B参数的八个LLMs的细粒度指标,无需root权限,确保我们的发现反映了现实用户条件。研究结果突显了生成质量、性能、功率和资源消耗之间的权衡,揭示了哪些LLMs在不同条件下提供了最佳平衡。此外,我们发现了一个反直觉的量化能耗悖论:虽然现代重要性感知量化能够减少内存占用以适应更大的模型到RAM,但我们发现其能耗节省与标准混合精度方法相比微不足道。这证明了对于电池寿命而言,模型架构而非其量化方案是决定性因素。我们进一步发现,专家混合(MoE)架构违背了标准大小能耗趋势,提供了7B模型的存储容量,同时保持了1B到2B模型的较低能耗。最后,对这些多目标权衡的分析揭示了中等大小模型(如Qwen2.5-3B)的务实平衡点,这些模型在响应质量和可持续能耗之间实现了有效平衡。
英文摘要:
The migration of Large Language Models (LLMs) from cloud clusters to edge devices promises enhanced privacy and offline accessibility, but this transition encounters a harsh reality: the physical constraints of mobile batteries, thermal limits, and, most importantly, memory constraints. To navigate this landscape, we constructed a replicable and reproducible experimental pipeline to profile the complex interplay between energy consumption, latency, and quality of LLMs on mobile devices. We harness this pipeline to conduct an empirical case study on a flagship Android device, capturing granular metrics across eight LLMs ranging from 0.5B to 9B parameters without requiring root access, ensuring our findings reflect realistic user conditions. The findings highlight the trade-offs between generation quality, performance, power and resource consumption, revealing which LLMs offer the best balance across metrics and under different conditions. Besides, we uncovered a counter-intuitive quantization energy paradox: while modern importance-aware quantization successfully reduces memory footprints to fit larger models into RAM, we found it yields negligible energy savings compared to standard mixed-precision methods. This proves that for battery life, the architecture of the model, not its quantization scheme, is the decisive factor. We further identified that Mixture-of-Experts (MoE) architectures defy the standard size-energy trend, offering the storage capacity of a 7B model while maintaining the lower energy profile of a 1B to 2B model. Finally, an analysis of these multi-objective trade-offs reveals a pragmatic sweet spot of mid-sized models, such as Qwen2.5-3B, that effectively balance response quality with sustainable energy consumption.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。