arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.17280cs.DC
收藏

1/W定律:上下文长度路由拓扑和GPU生成增益对LLM推理能效的分析研究

The 1/W Law: An Analytical Study of Context-Length Routing Topology and GPU Generation Gains for LLM Inference Energy Efficiency

vLLM Semantic Router Project(vLLM语义路由项目);University of Chicago(芝加哥大学);Tensormesh Inc(Tensormesh公司);MBZUAI(穆罕默德·本·扎耶德人工智能大学);McGill University(麦吉尔大学)

Huamin Chen, Xunzhuo Liu, Yuhan Liu, Junchen Jiang, Bowei He, Xue Liu

AI总结:

本文通过分析上下文窗口对GPU能效的影响,推导出1/W定律,指出通过优化路由拓扑可显著提升推理能效,且结合更高级的GPU可进一步提升性能。

摘要:

如何在每瓦特下GPU推理集群能提供多少个token?在相同硬件部署中,答案相差40倍,这并非由于软件效率低下,而是由于服务的上下文窗口。我们推导出1/W定律:每次上下文窗口加倍,每瓦特token数减半。较大的上下文窗口会缩小KV缓存并发限制,同时GPU功率消耗基本不变。在64K上下文下,H100能维持16个序列(tok/W=1.5);在4K上下文下,同样的H100能维持256个序列(tok/W=17.6)。路由拓扑——决定每个GPU服务的有效上下文窗口——比购买更新型号的硬件更具能量优势。基于发布的H100功率测量、校准的逻辑功率模型和屋顶吞吐量模型,我们使用推理舰队模拟框架推导出这些结果;没有进行新的硬件实验。双池上下文长度路由(FleetOpt)在同质舰队上可提供约2.5倍的tok/W提升,升级到B200则提供约1.7倍。这些增益是独立的:结合FleetOpt与B200可获得H100同质基线的4.25倍提升。B200/H200的数字是分析性预测(±20%不确定性);H100的结果是校准到发布的测量数据。对于MoE模型,活跃参数权重流添加了第三个杠杆。Qwen3-235B-A22B(22B活跃)在H100上在8K上下文下达到约37.8 tok/W——比Llama-3.1-70B好5.1倍,因为解码时间与激活权重成正比,而非总参数。MoE调度开销被排除,因此这是上限。

英文摘要:

How many tokens can a GPU inference cluster deliver per watt? Across deployments of identical hardware, the answer varies by 40x -- not because of software inefficiency, but because of the serving context window. We derive the 1/W law: tokens per watt halves every time the context window doubles. A larger context window shrinks the KV-cache concurrency limit while leaving GPU power draw roughly unchanged. At 64K context, an H100 holds 16 sequences in flight (tok/W = 1.5); at 4K context, the same H100 holds 256 sequences (tok/W = 17.6). Routing topology -- which determines the effective context window each GPU services -- is a more powerful energy lever than buying newer hardware. Working from published H100 power measurements, a calibrated logistic power model, and a roofline throughput model, we derive these results analytically using the inference-fleet-sim framework; no new hardware experiments were conducted. Two-pool context-length routing (FleetOpt) delivers roughly 2.5x better tok/W over a homogeneous fleet, while upgrading from H100 to B200 delivers roughly 1.7x. The gains are independent: combining FleetOpt with B200 yields 4.25x over the H100 homogeneous baseline. B200/H200 numbers are analytical projections (+-20% uncertainty); H100 results are calibrated to published measurements. For MoE models, active-parameter weight streaming adds a third lever. Qwen3-235B-A22B (22B active) reaches roughly 37.8 tok/W at 8K context on H100 -- 5.1x better than Llama-3.1-70B -- because decode time scales with activated weights, not total parameters. MoE dispatch overhead is excluded, so this is an upper bound.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑