Dissecting Transformers: A CLEAR Perspective towards Green AI

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Jain, Hemang, Goyal, Shailender, Pandey, Divyansh, Vaidhyanathan, Karthik
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866908940364677120
author Jain, Hemang
Goyal, Shailender
Pandey, Divyansh
Vaidhyanathan, Karthik
author_facet Jain, Hemang
Goyal, Shailender
Pandey, Divyansh
Vaidhyanathan, Karthik
contents The rapid adoption of Large Language Models (LLMs) has raised significant environmental concerns. Unlike the one-time cost of training, LLM inference occurs continuously and dominates the AI energy footprint. Yet most sustainability studies report only coarse model-level metrics, treating energy efficiency as an afterthought rather than a primary objective. Addressing the limitation, we propose Component-Level Energy Assessment via Repetitions CLEAR, to overcome temporal mismatch between microsecond scale component execution and millisecond(ms) scale monitoring of energy sensors. Using CLEAR, we evaluate 15 models spanning four architecture types, keeping component-wise energy variance below 9.5% while capturing over 90% of total energy as individual components. We present the first comprehensive, fine-grained energy analysis of Transformer components across key parameters such as batch size, attention heads, hidden dimension, KV cache, and attention variants. Our findings reveal that Attention consumes significantly more Energy per FLOP as compared to the entire model, indicating that FLOPs alone fail to capture true component-level energy cost. CLEAR enables reliable fine-grained energy measurements and provides a strong formal foundation for predictive modelling of energy consumption.
format Preprint
id arxiv_https___arxiv_org_abs_2510_02810
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Dissecting Transformers: A CLEAR Perspective towards Green AI
Jain, Hemang
Goyal, Shailender
Pandey, Divyansh
Vaidhyanathan, Karthik
Machine Learning
Artificial Intelligence
Software Engineering
The rapid adoption of Large Language Models (LLMs) has raised significant environmental concerns. Unlike the one-time cost of training, LLM inference occurs continuously and dominates the AI energy footprint. Yet most sustainability studies report only coarse model-level metrics, treating energy efficiency as an afterthought rather than a primary objective. Addressing the limitation, we propose Component-Level Energy Assessment via Repetitions CLEAR, to overcome temporal mismatch between microsecond scale component execution and millisecond(ms) scale monitoring of energy sensors. Using CLEAR, we evaluate 15 models spanning four architecture types, keeping component-wise energy variance below 9.5% while capturing over 90% of total energy as individual components. We present the first comprehensive, fine-grained energy analysis of Transformer components across key parameters such as batch size, attention heads, hidden dimension, KV cache, and attention variants. Our findings reveal that Attention consumes significantly more Energy per FLOP as compared to the entire model, indicating that FLOPs alone fail to capture true component-level energy cost. CLEAR enables reliable fine-grained energy measurements and provides a strong formal foundation for predictive modelling of energy consumption.
title Dissecting Transformers: A CLEAR Perspective towards Green AI
topic Machine Learning
Artificial Intelligence
Software Engineering
url https://arxiv.org/abs/2510.02810