TL;DR
When serving Large Language Models (LLMs), doubling the maximum context window roughly halves your energy efficiency (tokens per watt)—not because the math gets harder, but because memory limits force the GPU to process fewer requests at once while burning almost the same amount of power. By simply routing short prompts to GPU pools configured for short contexts instead of running a one-size-fits-all fleet, operators can slash energy costs by 2.5× without buying a single new chip or sacrificing model quality.
What Problem Does This Paper Address?
Data centers are increasingly hungry for power, and LLM inference is a massive culprit. Usually, when engineers try to improve tokens per watt (tok/W), they reach for smaller models, quantization, or shiny new GPU generations.
However, GPUs have an awkward quirk during the decode phase (when generating tokens one by one): they have terrible "idle" manners. An NVIDIA H100 serving just a single request already burns ~43% of its peak thermal power, while a massive batch burns ~86%. Because power draw is relatively flat, energy efficiency comes down to a simple question: how many sequences can you pack onto a GPU at the same time?
That concurrency is bottlenecked by the KV cache—the chunk of GPU memory reserved to store past tokens' attention states. If you configure a GPU fleet to support 64K-token contexts just in case a long prompt arrives, you severely restrict how many concurrent requests fit in memory. Meanwhile, in real-world traffic, the vast majority of requests are short. Making short prompts sit in giant, empty parking spaces wastes massive amounts of power.
Methods
The authors combine analytical physics-style modeling with fleet-level simulation:
- Deriving the $1/\mathcal{W}$ Law: They pair a standard roofline throughput model (which tracks memory bandwidth limits) with an empirical logistic GPU power model (which captures how GPU wattage saturates quickly as batch size grows). From this, they mathematically prove that
tok/Wscales inversely with the serving context window $\mathcal{W}$, following a log-log slope of $-1 + \varepsilon$ (where $\varepsilon$ is a small, predictable correction for low-batch power drop-offs). - Closed-Form & Simulated Fleet Routing: Building on standard queueing sizing, they model context-length routing—splitting a GPU cluster into dedicated short-window and long-window pools. Crucially, they derive a closed-form harmonic mean equation that predicts fleet-wide energy gains purely from prompt-length distributions, no heavy simulation required.
- Batch-Level MoE Coverage: For Mixture-of-Experts (MoE) models, which only activate a fraction of weights per token, they introduce a probabilistic model to count how many total unique experts get woken up across an entire batch of concurrent requests.
Datasets
No new datasets were introduced; instead, the authors grounded their models in established production traces and hardware benchmarks:
- ML.ENERGY Benchmark v3.0: Used to calibrate real H100 power curves, supplemented by a single-concurrency empirical anchor run on an 8×B200 node.
- Azure LLM Inference Trace: Production traffic where 89% of requests fit within 4K tokens (short-context dominant).
- LMSYS-Chat-1M: A conversational trace with most traffic under 1.5K tokens, alongside a dispersed long tail.
Key Insights and Ideas
- Memory Limits Become Energy Limits: Doubling a GPU's context window halves the number of sequences (
n_max) it can hold, cutting throughput in half. Yet because GPU power saturates around ~18 concurrent sequences on an H100, wattage barely drops. Between 4K and 64K windows, work per iteration drops by 16× while power drops by just 1.36×. - Routing and Hardware Stack Multiplicatively: Routing topology chooses where on the power curve your GPUs sit; upgrading hardware shifts the whole curve upward. Because they act on orthogonal dimensions, you don't have to choose—doing both multiplies the gains, and routing is free to implement first.
- The Single-Node MoE Trap: On paper, a sparse MoE model like Qwen3-235B-A22B only uses 22B parameters per token, promising a 5.1× energy win over a dense 70B model. In reality, once a batch hits just ~5 concurrent requests on a single node, different tokens trigger different experts until nearly the entire 235B model is streamed from memory anyway! MoEs only save energy if deployed across massive clusters using Expert Parallelism (spreading experts across dozens of GPUs).
- Bigger Chips Aren't Always Greener: In analytical projections, NVIDIA's GB200-NVL actually yields lower
tok/Wthan the B200-SXM (18.49 vs. 21.39) for 70B models—its 1,200W power budget inflates the denominator more than its slightly larger memory boosts concurrency.
Key Results
- Nearly 40× Efficiency Spread: On identical H100 hardware running Llama-3.1-70B,
tok/Wswings by nearly 40× across 2K to 128K context windows. Predicted log-log slopes match empirical fits across four models (1B to 70B) to within 0.003. - 5.76× Fleet Efficiency Boost: On the Azure trace, two-pool context routing improves H100 fleet
tok/Wby 2.52×. Upgrading to calibrated B200 GPUs adds 2.05×. Combined, they achieve a 5.76× improvement (32.12 vs. 5.58tok/W). On LMSYS, the combined gain hits 3.83×.
Limitations and Future Work
- Decode-Only Focus: The $1/\mathcal{W}$ law governs token generation. For prompt-heavy workloads (like RAG or code completion) where the compute-bound prefill phase dominates energy use, routing gains dilute—dropping Azure's 2.52× decode gain down to 1.32× for typical RAG and 1.16× for code completion.
- Hardware Calibration Gaps: While H100 numbers rely on full empirical sweeps, B200 figures rely on a single measured operating point (±15% band), and H200/GB200 numbers are pure projections.
- Next Steps: The authors point toward full power-versus-concurrency measurements on next-gen chips, real-world Expert-Parallel MoE power profiling (accounting for all-to-all network overhead), and integrating prefix-cache-aware routing.
Summary updated