arXiv(opens in a new tab)cs.PFAug 2026Cited by 3 papers on PaperVantage

Manuscript Offprint

arXiv:2608.28044

Characterization of Request and Token Energy Costs for LLM Inference Workloads on GPU Platforms

Prabhu Vellaisamy, Vanessa Lam, Shawn Blanton, John Paul Shen

Prabhu Vellaisamy, Vanessa Lam, Shawn Blanton, and John Paul Shen

Electrical and Computer Engineering Department

Carnegie Mellon University

Pittsburgh, PA, USA

Abstract—Large language model (LLM) inference serving is priced by tokens, but GPU energy is consumed over inference windows. This accounting mismatch makes token-normalized metrics incomplete, since average output-token energy can decrease even when total request energy increases. We characterize this behavior with a decomposed energy model: a fixed one-time prefill with a fixed generation setup cost, while each output-token generation step adds marginal step energy. We evaluate this LLM inference energy model on NVIDIA H100 and H200 GPUs across dense and mixture-of-experts (MoE) models, reporting both request energy and token energy as functions of model type (M), phase (P), batch size (B), context length (C), and output length (N). For Llama-3.2-1B on H200 at batch-16 and context-4K, increasing output length from 10 to 512 tokens reduces token energy from 7.46 to 0.72 J/token while total batched inference-window energy increases from 1.19 to 5.93 kJ. Batching also reduces token energy, but the gain is context-bounded: at 10 output tokens, the batch-16 to batch-1 gain falls from 6.31×6.31 \times at context-512 to 1.17×1.17 \times at context-4K. MoE models amplify this effect: sparse routing and fragmented expert execution increase fixed energy at low concurrency, while batching spreads that energy across more generated tokens and substantially narrows the dense-vs.-MoE token-energy gap. These results show that energy-aware serving should jointly optimize both request energy and token energy, rather than only reducing per-token energy cost.

Index Terms—large language model inference, GPU energy efficiency, request energy, token energy, reasoning efficiency

I. INTRODUCTION

Large language model (LLM) inference is priced as a token-accounted service. Commercial APIs charge for input and output tokens [1], while serving systems report time-to-first-token (TTFT), time-per-output-token (TPOT), throughput, and “goodput” over token streams [2]–[5]. Production schedulers also make decisions based on token-visible quantities, such as batch size, prompt length, and generated output length. However, GPU energy is consumed during inference windows in which the GPU is allocated, kernels are launched, memory is accessed, synchronization occurs, and the CPU orchestrates the host/runtime to keep the GPU device actively utilized [6]–[8]. Therefore, there is an accounting mismatch: the service-visible unit is the token generated, but the hardware-visible unit for energy is the inference window. A scalar unit like Joules-per-token (J/token) is useful but paints an incomplete picture, since it does not reveal whether an efficiency gain comes from reducing total energy, or from spreading a fixed inference-window energy cost across more generated tokens. For example, a longer output generation sequence can improve J/token while consuming more total Joules.

Recent industry-based economic model describes AI "tokenomics" through token utility, demand, supply, and monetization [9]. It identifies throughput per MW (TPS/MW) and cost per token as key supply-side metrics, which further motivates the understanding of what token-normalized metrics conceal. A token is an economic accounting unit, whereas GPU energy is incurred over a request execution window. Hence, an equal number of tokens need not impose the same physical costs, and a lower average cost per token need not indicate a lower total request cost. We ask: When does a lower token-normalized energy cost represent a true reduction in GPU energy, and when does it reflect amortization of request-window energy?

We describe each evaluated operating point using (M,P,B,C,N)(M, P, B, C, N), where M is the model and P denotes the inference phase: TTFT-oriented for the prefill-dominated window, or decode-oriented for a long-output window. Batch size (B)(B) specifies how many requests share an inference window [3], context length (C)(C) determines prompt-processing work and KV-cache state, and output length (N)(N) determines how many autoregressive decode steps are executed. These parameters are already visible to serving systems, but a single token-normalized metric does not capture their energy impact.

Our energy model decomposes the total energy for each inference request into two components based on the two servicing phases: prefill phase processes the prompt, and decode phase generates output tokens [4], [5]. The central abstraction in this paper is a decomposed energy model for inference request energy (see Fig. 1 and Fig. 2):

Erequest(s)(N)=Efixed+N×Edecode,step(1)E_{request(s)}(N)=E_{fixed}+N\times E_{decode,step} \tag{1}

where Erequest(s)(N)E_{\text{request}(s)}(N) is the measured GPU energy of the complete inference window containing B requests, each generating N output tokens. EfixedE_{\text{fixed}} is the request-level energy independent of output length, and Edecode,stepE_{\text{decode,step}} is the marginal energy added per output token generation step for the complete batch. Conceptually,

Efixed=Eprefill+Edecode,fixed(2)E_{fixed}=E_{prefill}+E_{decode,fixed} \tag{2}

where EprefillE_{prefill} is the one-time energy used to process the prompt and construct the initial KV cache, and Edecode,fixedE_{decode,fixed} represents generation-window setup and other costs that do not grow with output length.

© 2026 IEEE. Personal use of this material is permitted. Permission from IEEE must be obtained for all other uses, in any current or future media, including reprinting/republishing this material for advertising or promotional purposes, creating new collective works, for resale or redistribution to servers or lists, or reuse of any copyrighted component of this work in other works.

Prior Works

This Work

Figure

Benchmarks

Reports only total energy, power,

J/token, or token/J

Serving Optimization

Optimizes latency, throughput, and scheduling for performance

Energy Modeling

Predicts energy across hardware and workload settings

Host-Bound Analysis

Explains launch, runtime, and orchestration costs

Open Question

When does lower J/token reflect true energy reduction, and when is it only a fixed-cost amortization?

Request Shape (M, P, B, C, N)

M: Model

P: Phase

B: Batch Size

C: Context Length

N: Output Length

Energy Abstraction & Attribution Model

Request Energy

Prefill Energy

Decode Energy

Fixed Decode Energy

Step Based

Decode Energy

Central Distinction

Request energy and decode-token energy can move in opposite directions. Batching or longer outputs can reduce decode token energy while increasing request energy

Fig. 1. Request-shape energy abstraction for LLM inference. Prior work reports aggregate energy, power, J/token, tokens/J, serving performance, energy models, or host-side overheads. This work focuses on when lower J/token reflects true energy reduction versus spreading fixed energy across more tokens. We characterize each request shape with five parameters, (M,P,B,C,N)(M, P, B, C, N), denoting model, phase, batch size, context length, and output length. Request energy decomposes into prefill and decode energy. Decode energy contains fixed energy paid once for the decode window and step energy added by each decode step. Our proposed energy abstraction explains why batching or longer outputs can reduce token energy while increasing total request energy. Both token energy and request energy must be considered in overall system optimizations.

Host/runtime orchestration, synchronization, model residency, and kernel-launch activity can contribute to both the fixed and step terms [7], [8]. One-time setup activity contributes to EfixedE_{fixed}, whereas residency energy and orchestration or launch activity that grow with inference-window duration are represented through Edecode,stepE_{decode,step}. This decomposition holds model, batch size, initial context length, platform, and runtime fixed while output length varies. It is used as a local affine approximation over the measured output-length range, and for very long outputs, growing KV-cache traffic can cause marginal step energy to increase.

The corresponding average per-request energy is

Ereq=Erequest(s)(N)B(3)E_{req}=\frac{E_{request(s)}(N)}{B} \tag{3}

This model explains why request energy and average token energy can move in opposite directions. We define average token energy as:

Etoken=Erequest(s)(N)B×N(4)E_{token}=\frac{E_{request(s)}(N)}{B\times N} \tag{4}

This normalizes total batched request energy by B×NB \times N generated tokens and therefore includes fixed request-level energy amortized across those tokens. Increasing output length N can reduce energy per output token by amortizing fixed request costs, while still increasing total and per-request energy. Increasing batch size B can reduce token energy by sharing fixed costs across requests, although its effect on total and per-request energy depends on the request shape and platform. Energy-aware serving must therefore track both request energy ( EreqE_{req}) and token energy ( EtokenE_{token}). Modern serving systems already manipulate request shape for latency and throughput [3]–[5]. We study the same surface as an energy-control surface, asking when a shape reduces token energy by spreading fixed energy across more tokens and when this can lead to increasing the total request energy.

Prior LLM energy studies establish that inference energy depends on model, platform, runtime, and workload configuration, and commonly report average power, total energy, J/token, or tokens/J [10]–[16]. Energy modeling and serving-optimization studies further show that input length, output length, hardware choice, runtime configuration, and service level objective (SLO) constraints shift the energy operating point [17]–[22]. Host-side characterization studies show that framework dispatch, CUDA-library overhead, and kernel launch costs can dominate short decode regimes [7], [8], while execution-idle studies show that allocated GPUs can remain in elevated-power states even when visible activity is low [6]. These results motivate careful energy measurement, but do not separate request energy from token energy. We measure LLM inference energy using the GPU cumulative NVML energy counter [23], which gives total energy over the inference window. We evaluate dense and mixture-of-experts (MoE) models on NVIDIA H100 and H200 GPUs across eager and FlashAttention runtimes [24], TTFT-oriented and long-output request regimes, batch sizes B, context lengths C, and output lengths N up to 8K tokens. This paper makes the following contributions:

• A fixed energy and step energy model. We formulate measured request energy as fixed request-level energy plus marginal step energy. The fixed term includes one-time prefill and fixed generation setup, while each output-token generation step contributes marginal energy. This model explains why token energy can decrease even when request energy increases (see Fig. 1 and Fig. 2).

• A request-shape characterization of LLM inference energy. We measure how analysis regime, batch size, context length, and output length affect request and token energy. Across platforms, H200 consistently lowers dense-model token energy, while MoE differences depend on model and request shape.

• Evidence that output length and batching spread fixed energy. We show that longer outputs and larger batches can reduce average token energy ( EtokenE_{token}), but gains shrink with context length, and very long outputs can enter a regime where step energy dominates. We also show that MoE models are especially sensitive to batching, consistent with substantial routing, dispatch, and fragmented expert-execution overheads being amortized across request shape.

• Attribution of floor- and kernel-active energy. We combine NVML request-energy measurements with resident-floor and isolated-kernel replay measurements to explain why short, low-concurrency inference windows can be dominated by floor energy and orchestration rather than active kernel work.

• Free batching for Perf/W. We report prompt tokens/J to identify the free-batching regime, where additional batched prompt work fits into an already-open TTFT-oriented window and improves energy efficiency, and the point where larger contexts move the request into a compute-heavy regime. This exposes transitions that are not visible from TN=1T_{N=1}, the complete N = 1 window time, alone.

• Utility-aware reasoning-budget characterization. We evaluate Qwen3-8B, DeepSeek-R1-Distill-Qwen-7B, and DeepSeek-R1-Distill-Llama-8B on MATH-500 and ARC-Challenge under 64-, 256-, and 1024-token reasoning caps to show that utility/J-maximizing reasoning budget is model- and workload-dependent, and need not coincide with accuracy-maximizing budget.

References (36)