The Energy Consumption of Transformer Fine-Tuning: A Roofline-Inspired Scaling Model

Mansour Zoubeirou a Mayaki
6/22/2026
cs.LGcs.AIcs.AR

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

Transformer-based models underpin modern natural language processing but incur rapidly growing computational and energy costs. As training scales in both model size and parallelism, accurately predicting energy consumption has become critical for sustainable and cost-aware system design. We present a framework for modeling the energy consumption of Transformer training on multiple GPUs. Using controlled architectural sweeps of BERT models, we relate measured energy to lightweight proxies for compute, memory traffic, and hardware efficiency. Inspired by roofline models, our approach incorporates a speedup-based hardware-efficiency factor that captures the effects of tensor parallelism and fully sharded data parallelism. We derive a scaling law model that accurately predicts training energy across heterogeneous configurations.

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. 1 weaker match is hidden by default — 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{mayaki2026energy,
  title  = {The Energy Consumption of Transformer Fine-Tuning: A Roofline-Inspired Scaling Model},
  author = {Mansour Zoubeirou a Mayaki},
  year   = {2026},
  eprint = {2606.23546},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.23546v1}
}

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/2606.23546.svg)](https://codeofpaper.com/paper/2606.23546)

Discussion