The $1/\mathcal{W}$ Law: Context Length is the Dominant Energy Lever in LLM Inference Fleets
Huamin Chen ⋅ Xunzhuo Liu ⋅ Yuhan Liu ⋅ Junchen Jiang ⋅ Steve Liu ⋅ Chenxu Niu ⋅ Bowei He
Abstract
Energy efficiency in LLM inference is often treated as a property of the model, the hardware, or the serving software. We show that, for decode-dominated serving, a simpler systems variable dominates: the serving context window. Because KV-cache memory is finite, increasing the context window reduces the number of concurrent sequences a GPU can hold. Under continuous batching, this concurrency limit directly sets decode throughput, while GPU power remains nearly flat over most of the operating range. The result is a simple $1/\mathcal{W}$ law: tokens per watt scale inversely with the serving context window $\mathcal{W}$, with log-log exponent $-1$ in the power-saturated regime and a bounded, predictable shortfall outside it, as we derive from KV-cache capacity and a logistic GPU power model. On identical H100 hardware and software, Llama-3.1-70B tok/W varies by nearly $40\times$ across the 2K--128K context range, and fitted exponents for four model scales from 1B to 70B match predictions fixed before fitting to within $0.003$. The same mechanism determines fleet-level efficiency. On the short-context-dominant Azure trace, two-pool context-length routing improves tok/W by $2.5\times$ over a homogeneous NVIDIA H100 fleet under measured H100 power, a gain reproduced in closed form without simulation; an NVIDIA B200 estimate anchored at one measured operating point ($\pm 15\%$) adds $2.0\times$ at fixed topology, and the two levers combine approximately multiplicatively to $5.76\times$. Finally, sparse MoE weight streaming is a third lever whose sign is set by deployment topology: up to $5.1\times$ in a large expert-parallel deployment, but at or below $1\times$ in the single-node TP=8 configuration studied here once batch-level expert coverage is counted. These results suggest a deployment order for energy-efficient LLM serving: route by context length first, upgrade hardware second, and exploit sparse architectures where expert parallelism amortizes expert coverage.
Successful Page Load