NeurIPS 2026QuestionsPapersAreasAboutMarkdown

The 1/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

NeurIPS page · Open on the map

Category: Efficient LLM Inference & Training › Efficient LLM Serving Scaling · Type: new method · Keywords: LLM inference efficiency, energy consumption, context window, KV-cache, GPU power model, fleet-level optimization

Areas: Long Context › Long-context mechanisms › Efficient long-context attention

Summary

The 1/W Law reveals that serving context window size dominates energy efficiency in LLM inference fleets, showing tokens per watt scale inversely with context length and enabling up to 5.76× fleet-level gains through context-length routing, hardware upgrades, and MoE weight streaming.

Explained to a 5-year-old

When a computer talks a lot, it uses memory to remember what it said before. If we ask it to remember more words, it can only talk to fewer people at the same time. So the more it remembers, the slower it works and the more energy it uses. By splitting the work into two groups-one for short talks and one for long talks-we can make the computer use less energy and run faster.

Explained to a 5-year-old, longer

Imagine a big robot that answers questions. It has a notebook where it writes down everything it says. If we ask it to write down a huge story, its notebook gets full quickly, so it can only answer a few questions at once. This means it takes longer to answer each question and uses more electricity. The researchers found that the size of the notebook (the context window) is the most important thing for saving energy. They showed that by using two different notebooks-one for short questions and one for long questions-the robot can answer more questions quickly while using less power. They also found that newer robots (better hardware) and special tricks for big robots can make it even more energy-efficient.

For a technical reader

Our analysis shows that KV-cache capacity and GPU power together dictate tokens per watt, leading to a 1/W scaling law. Empirically, varying the context window from 2K to 128K changes efficiency by 40× on H100 GPUs. Fleet-level gains are achieved by splitting workloads based on context length, upgrading to newer GPUs, and exploiting MoE weight streaming, with combined improvements up to 5.76×.

Problem

It is unclear which system variable most strongly influences energy efficiency in LLM inference fleets, especially under decode-dominated serving conditions.

Method

The approach models KV-cache memory constraints and GPU power to show that tokens per watt scale inversely with serving context window, validates this scaling empirically across a wide range of context lengths using Llama-3.1-70B, and analyzes fleet-level energy efficiency through context-length routing, hardware upgrades, and active-parameter weight streaming in MoE models.

Results

Tokens per watt vary by up to 40× across 2K-128K context lengths on H100 hardware, context-length routing yields up to 2.5× improvement on Azure trace, hardware upgrade yields 2.0×, combined optimizations reach 5.76×, and MoE weight streaming could provide an upper-bound gain of 5.1×.

Contributions

Identifies serving context window as the primary driver of LLM inference energy efficiency, derives a scaling law linking tokens per watt to context length, and provides empirical validation and practical deployment recommendations for fleet-level optimizations.

Limitations and assumptions

The analysis focuses on decode-dominated serving and assumes continuous batching; hardware power models are approximated and may not capture all real-world variations.

Practical relevance

Operators can achieve substantial energy savings by routing requests based on context length, upgrading hardware, and leveraging sparse architectures in LLM serving fleets.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction