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

Magneton: 通过微分能量调试优化机器学习系统的能效

Magneton: Optimizing Energy Efficiency of ML Systems via Differential Energy Debugging

University of Washington(华盛顿大学);Boston University(波士顿大学);Shanghai Jiao Tong University(上海交通大学)

Yi Pan, Wenbo Qian, Dedong Xie, Ruiyan Hu, Yigong Hu, Baris Kasikci

AI总结:

Magneton 通过微分能量调试技术,识别并诊断 ML 系统中的能耗低效问题,发现多个已知和未知的能耗浪费案例。

摘要:

机器学习(ML)模型的训练和部署已成为极其耗能的过程。尽管现有优化努力主要集中在硬件能效上,但一个显著但被忽视的低效来源是软件能效浪费,这通常包括冗余或设计不佳的操作,这些操作消耗更多能量而没有提升性能。这些低效现象出现在广泛使用的ML框架和应用中,但开发者往往缺乏检测和诊断它们的可见性和工具。我们提出了微分能量调试,一种新的方法,利用观察到的 competing ML 系统往往实现相似功能但能耗差异巨大的现象。基于这一见解,我们设计并实现了 Magneton,一个能耗分析工具,它在操作层面比较相似的 ML 系统的能耗,并自动定位导致过度能耗的代码区域和配置选择。应用于9种流行的 ML 系统,涵盖大语言模型推理、通用 ML 框架和图像生成,Magneton 检测并诊断了16个已知的软件能耗低效案例,并进一步发现了8个之前未知的案例,其中7个已由开发者确认。

英文摘要:

The training and deployment of machine learning (ML) models have become extremely energy-intensive. While existing optimization efforts focus primarily on hardware energy efficiency, a significant but overlooked source of inefficiency is software energy waste caused by poor software design. This often includes redundant or poorly designed operations that consume more energy without improving performance. These inefficiencies arise in widely used ML frameworks and applications, yet developers often lack the visibility and tools to detect and diagnose them. We propose differential energy debugging, a novel approach that leverages the observation that competing ML systems often implement similar functionality with vastly different energy consumption. Building on this insight, we design and implement Magneton, an energy profiler that compares energy consumption between similar ML systems at the operator level and automatically pinpoints code regions and configuration choices responsible for excessive energy use. Applied to 9 popular ML systems spanning LLM inference, general ML frameworks, and image generation, Magneton detects and diagnoses 16 known cases of software energy inefficiency and further discovers 8 previously unknown cases, 7 of which have been confirmed by developers.

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

↑