mlsanityData to 14 Oct 2026

Understanding the Energy Scaling of Large Language Model Inference Across Context Lengths and Attention Architectures

arXiv 2608.25096 ↗First posted 25 Aug 2026cs.LG cs.AIcited by 0

Not on the map. Why?

Abstract (arXiv)

The growing adoption of large language models (LLMs) has raised increasing concerns about the energy consumption and environmental impact of inference. This paper presents a systematic empirical study of decode-phase energy consumption across representative open-source LLMs employing Multi-Head Attention (MHA), Grouped Query Attention (GQA), and Grouped Query Attention with Sliding Window Attention (SWA) to characterize how attention architecture influences decode-phase energy consumption under varying inference workloads. We evaluate four models across different context lengths, batch sizes, and generation workloads while measuring GPU energy using NVIDIA hardware counters. We examine the effects of context length, attention mechanism, Key-Value (KV) cache growth, and batching on decode-phase energy consumption. Results show that attention mechanism is the primary factor governing how decode energy scales with context length. MHA models exhibit substantially steeper energy growth than GQA models, whereas GQA with SWA maintains nearly constant energy consumption. We further show that model size primarily determines absolute energy consumption, while batching reduces both energy per generated token and request latency by up to 87%. These findings provide practical guidance for selecting energy-efficient LLM architectures and inference configurations.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 20 of its 21 references that are in the map. First posted on arXiv 25 Aug 2026.

Builds on

20 of 21 references.

References · 20

  1. 2017Attention Is All You Needcited by 60,361
  2. 2020Language Models are Few-Shot Learnerscited by 32,419
  3. 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,512
  4. 2020Longformer: The Long-Document Transformercited by 3,413
  5. 2023Mistral 7Bcited by 3,164
  6. 2024Gemma 2: Improving Open Language Models at a Practical Sizecited by 1,998
  7. 2024Phi-3 Technical Report: A Highly Capable Language Model Locally on Your Phonecited by 1,917
  8. 2023GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpointscited by 1,346
  9. 2021Carbon Emissions and Large Neural Network Trainingcited by 567
  10. 2022Efficiently Scaling Transformer Inferencecited by 539
  11. 2021Sustainable AI: Environmental Implications, Challenges and Opportunitiescited by 242
  12. 2023Power Hungry Processing: Watts Driving the Cost of AI Deployment?cited by 191
8 more
  1. 2023From Words to Watts: Benchmarking the Energy Costs of Large Language Model Inferencecited by 170
  2. 2024Towards Greener LLMs: Bringing Energy-Efficiency to the Forefront of LLM Inferencecited by 61
  3. 2024The Price of Prompting: Profiling Energy Use in Large Language Models Inferencecited by 23
  4. 2025TokenPowerBench: Benchmarking the Power Consumption of LLM Inferencecited by 22
  5. 2025Towards Sustainable NLP: Insights from Benchmarking Inference Energy in Large Language Modelscited by 11
  6. 2026Where Do the Joules Go? Diagnosing Inference Energy Consumptioncited by 10
  7. 2025Toward Green Code: Prompting Small Language Models for Energy-Efficient Code Generationcited by 2
  8. 2025RefactorCoderQA: Benchmarking LLMs for Multi-Domain Coding Question Solutions in Cloud and Edge Deploymentcited by 2

Built on by

Not cited yet.