arXiv(opens in a new tab)cs.LGOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.28576

The Token-Energy Law of LLM Decode: Active Bytes and Realized Time Account for Joules per Token

Chenxu Niu, Batuhan Sencer, Wei Zhang, Yong Chen

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

CHENXU NIU, NVIDIA Corporation, USA

BATUHAN SENCER, Texas Tech University, USA

WEI ZHANG, Texas Advanced Computing Center, USA

YONG CHEN, Texas Tech University, USA

Energy-efficient deployment of large language models requires understanding how model architecture, hardware, and serving settings shape energy per generated token. We introduce the Token-Energy Law, a compact, interpretable model of GPU-board energy per output token for dense, full-history decoding. It relates token energy to two core dimensions: active bytes and realized decode time. Active bytes describe logical byte demand per output, separating dense weights shared within a decode iteration from private key-value (KV) histories read and updated for each request. Realized decode time is the elapsed decode duration divided by the number of output tokens produced. We combine the two byte coordinates and time in a common affine form, with coefficients calibrated for each model and hardware/runtime configuration. This formulation explains how batching amortizes shared-weight work, longer attended histories increase private KV demand, and throughput determines the time-associated cost per output. Our experiments cover three models under BF16 decoding on NVIDIA Hopper and Blackwell GPUs, including two-GPU tensor parallelism on Hopper. Using fixed coefficients and observed decode time, held-out condition-mean energy estimates differ from measurements by at most 3.73%. Controlled request-departure tests further show that previously identified model-specific coefficients remain effective as batch membership changes, without recalibration for departure patterns. The central contribution is a reusable work-time relationship whose structure remains consistent across configurations while its coefficients describe local energy responses. It provides researchers and practitioners with a quantitative basis for interpreting inference energy and comparing serving trade-offs. Combined with independently validated performance models, the law can also support prospective energy estimation and energy-efficient deployment planning.

Additional Key Words and Phrases: large language model inference, energy measurement, scaling law, decode inference, KV cache, data movement

1 Introduction

Large language models (LLMs) are increasingly deployed in applications ranging from information retrieval to code generation and conversational systems. The scale of this activity is growing rapidly. Google reports processing over 3.2 quadrillion tokens per month across its products in May 2026 [32], compared with approximately 480 trillion a year earlier. At sufficient serving volume, cumulative inference energy can rival the energy invested in training; Luccioni et al. place this crossover at hundreds of millions of requests for the BLOOMz models they study [25]. Understanding the energy cost of inference is therefore an increasingly important problem in the design and operation of LLM services. This raises a fundamental systems question: Can a common law explain how energy per generated token varies across models, hardware platforms, and deployment configurations?

Research on inference energy spans benchmarking, workload-based estimation, and production measurement. TokenPowerBench [28] and ML.ENERGY [5] characterize energy across models and serving configurations. Fernandez et al. examine the effects of workload geometry and execution configuration and develop measurement-based energy estimates for offline workloads [12]. Google's production measurements account for the broader system costs of delivering AI services [10]. These

Authors' Contact Information: Chenxu Niu, NVIDIA Corporation, USA, chenxun@nvidia.com; Batuhan Sencer, Texas Tech University, USA, batuhan.sencer@ttu.edu; Wei Zhang, Texas Advanced Computing Center, USA, wei.zhang@tacc.utexas.edu; Yong Chen, Texas Tech University, USA, yong.chen@ttu.edu.

Niu et al.

studies provide an empirical foundation for understanding inference energy across models and serving configurations. Building on this foundation, we seek a common analytical law that relates energy per generated token to the underlying execution characteristics, providing a systematic explanation of how model and deployment choices affect energy consumption.

The difficulty of such an effort is that inference energy consumption depends on several interacting dimensions - (1) model architecture and numerical representation determine the weights and KV state used during generation; (2) hardware and kernels determine how that work is executed; (3) optimization strategies applied to deployment - such as batching, tensor parallelism, and pipeline parallelism - may affect work sharing, resource occupancy, communication, and execution time. Context length changes the history processed by attention. Nominal configuration parameters, however, do not always reflect the work performed during execution: quantization changes stored bytes without changing parameter count [23]; iteration-level scheduling allows the active batch size to differ from the configured maximum [45]; and allocated KV-cache capacity does not directly indicate the amount of history processed by attention [19]. A useful energy model must identify execution quantities that capture these effects while retaining a consistent interpretation across configurations.

Recent analytical approaches already make progress toward this goal. SweetSpot [33] and From Tokens to Watt-hours [40] relate inference energy to workload complexity and memory access; two frameworks named EnergyLens [30, 39] develop closed-form and operator-level models for deployment choices. Request-level analyses also show why average token energy depends on the work included in the measurement window [41]. We address a specific question within this broader effort: can the sharing structure of decode supply a small set of interpretable work coordinates that, together with execution time, explain energy per useful output token across models and systems? Our approach connects a trace-level accounting identity, an independently tested relationship to physical memory traffic, and a compact energy response.

Our starting point is exact decoding with dense weights and full attention history. Within an iteration, all useful outputs share the dense weight operators, while each output attends to its own KV history. To capture this sharing structure, we define active bytes as the logical byte demand of shared dense-weight and private KV-cache accesses per useful output token. Let MwM_w denote the shared dense-weight footprint in bytes, BeffB_{\text{eff}} the realized mean number of useful outputs per iteration, KKVK_{\text{KV}} the combined key and value bytes per cached token (summed over layers), and Lˉtoken\bar{L}_{\text{token}} the mean attended history length, weighted by useful tokens. The logical read demand per useful output from the weight and KV components is then Atoken=Mw/Beff+KKVLˉtokenA_{\text{token}} = M_w / B_{\text{eff}} + K_{\text{KV}} \bar{L}_{\text{token}}. The first term is shared work amortized by batch; the second is private work growing with context. Batch and context therefore affect per-token work in fundamentally different ways. Accounting for the write of one new KV entry per output gives the read-write demand Atokenrw=Mw/Beff+KKV(Lˉtoken+1)A_{\text{token}}^{\text{rw}} = M_w / B_{\text{eff}} + K_{\text{KV}} (\bar{L}_{\text{token}} + 1). These coordinates describe the trace's dense-weight and KV demand, not all resident memory or all operator accesses. Indexed embedding and positional lookups lie outside this principal account and require separate access accounting (Section 4); physical HBM measurements characterize how the principal coordinates are realized by an implementation.

Energy depends on both active bytes and realized decode time. We express the weight and KV components in decimal GB as qw=Mw/(109Beff)q_{\mathrm{w}} = M_{\mathrm{w}} / (10^9 B_{\mathrm{eff}}) and qKV=KKV(Lˉtoken+1)/109q_{\mathrm{KV}} = K_{\mathrm{KV}} (\bar{L}_{\mathrm{token}} + 1) / 10^9, where the latter includes one new KV-record write per output. For decode duration DD and TT useful outputs, the realized time per token is τ=D/T\tau = D / T. The Token-Energy Law is

egross,σ=cσ+ασqw+βσqKV+Pτ,στ+uσ.(1)e_{\mathrm{g r o s s},\sigma}=c_{\sigma}+\alpha_{\sigma}q_{\mathrm{w}}+\beta_{\sigma}q_{\mathrm{K V}}+P_{\tau,\sigma}\tau+u_{\sigma}. \tag{1}

Here egross,σe_{\text{gross}, \sigma} is GPU-board energy in joules per useful output token. The coefficients ασ\alpha_{\sigma}, βσ\beta_{\sigma}, and Pτ,σP_{\tau, \sigma} describe effective energy responses to weight demand, KV demand, and time; cσc_{\sigma} is an approximately constant per-token overhead within execution setting σ\sigma, and uσu_{\sigma} is the residual.

Generality lies in this reusable work–time structure, rather than universal energy-per-byte constants. We identify coefficients for each specified model and hardware–runtime setting σ\sigma and test the empirical relationship on held-out workload configurations without refitting. The model provides an interpretable basis for comparing deployment choices under a common energy boundary. Our evaluation uses observed decode duration; prospective deployment estimates can combine the law with a separately validated duration model.

Contributions.

• Trace-based active-byte accounting. We derive active-byte coordinates from iteration-level weight sharing and token-weighted KV history. Their accounting accommodates changing request membership, and independent HBM measurements assess their correspondence with physical reads.

  • A unified work–time energy model. We formulate a locally calibrated energy response over shared-weight demand, private-KV demand, and realized decode time. Frozen-coefficient evaluations test whether this response remains predictive across workload changes, including heterogeneous request departures.

• Validation across models and execution settings. Across three models on NVIDIA Hopper and Blackwell GPUs, our evaluation covers single-node tensor parallelism, same-SKU device transfer, and controlled request departures. All evaluated condition means from 374 held-out energy executions are within 3.73% of measurement. Separately, 177 HBM profiles support the physical relevance of the byte coordinates, while matched GB300 ablations assess the contributions of realized time and separate weight/KV terms.

References (17)