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

Yi Pan, Wenbo Qian, Dedong Xie, Ruiyan Hu, Yigong Hu +1 more
12/9/2025
cs.DCcs.LG

No confident code implementation found for this paper.

Abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{pan2025magneton,
  title  = {Magneton: Optimizing Energy Efficiency of ML Systems via Differential Energy Debugging},
  author = {Yi Pan and Wenbo Qian and Dedong Xie and Ruiyan Hu and Yigong Hu and Baris Kasikci},
  year   = {2025},
  eprint = {2512.08365},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2512.08365v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2512.08365.svg)](https://codeofpaper.com/paper/2512.08365)

Discussion