arXiv 2611.03330 · cs.AI · 2026-11-02
The SIMPLE Law for Energy Cost of LLM Inference
Hiari Pizzini Cavagna, Andrea Proia, Daniele Cesarini, Zeynep Kiziltan, Andrea Bartolini
ECS Lab
在最新榜 #433 本站收录于 2026-11-10
一句话要点
该论文针对大模型推理能耗提出 SIMPLE 定律:生成按 token 计费,但各 token 成本并不相同——每个 token 进入 KV 缓存并抬高后续 token 的开销,能耗沿序列非线性增长。现有最准的模型只是拟合而非定律,需逐模型拟合。作者推导了 MHA 与 GQA 推理计算量和访存量关于架构超参数的闭式表达,比较多个粒度递增的解析模型,得到 SIMPLE:一个四参数定律,区分预填充与解码,并把解码拆为 KV 缓存成本与下一 token 计算。评测基于 NVIDIA H100 上 6 个系列 13 个稠密模型的轨迹。摘要在库中被截断,精度数字以原文为准。
The paper proposes the SIMPLE law for LLM inference energy: generation is billed per token, but tokens are not equally expensive, since each token enters the KV-cache and raises the cost of later ones, so energy grows non-linearly along a sequence. The most accurate existing model is a fit rather than a law and needs per-LLM fitting. The authors derive closed-form compute and memory-access complexity in terms of architectural hyperparameters (MHA and GQA), compare analytical models of increasing granularity, and obtain SIMPLE, a four-parameter law separating prefill from decode and splitting decode into KV-cache cost and next-token computation. It is evaluated on traces of 13 dense LLMs from six families on NVIDIA H100 GPUs. The abstract is truncated in our store; accuracy figures follow the original paper.
要点
- LLM每个token的能耗不均,因后续token需共享KV缓存导致能量非线性增长,现有模型多为经验拟合,缺乏通用理论基础。
- 提出SIMPLE模型,基于架构超参数推导出推理计算与内存访问的闭式表达,将推理分为prefill和decode阶段,并进一步拆解为KV缓存成本与生成token计算成本。
- 在13个密集型LLM上测试,SIMPLE模型在NVIDIA H100上达到R²=0.969、MAPE为11.97%,显著优于现有最先进方法,且无需针对每个模型进行校准。
- 分析发现:增大输入长度使大模型能耗剧增;GQA结构可降低每token能耗达3倍;推理预算增加导致能耗超线性增长,能效在中等预算时达到峰值;代理服务因prefill和KV缓存增长使能耗上升13倍,前缀缓存虽减少93%的prefill成本,但KV缓存成本仍高,整体能耗仍为非缓存请求的4.8倍。
English overview
The paper derives a closed-form analytical model for LLM inference energy cost, introducing the SIMPLE law that separates prefill and decode phases and accounts for KV-cache and next-token computation. It outperforms existing models in accuracy and generalizability across 13 dense LLMs on H100 GPUs without per-model calibration. The model reveals key energy dynamics: quadratic growth with hidden dimension, GQA's efficiency gains, super-linear scaling beyond optimal reasoning budgets, and significant energy penalties from agentic serving despite prefix caching.
只根据 arXiv 官方摘要,由开源模型整理,经数字/专名自动核对(必须在摘要中出现),以论文原文为准。
阅读 arXiv 原文 PDF Hugging Face 讨论 项目页
相关论文
- 同主题 · Jeva: System One Models from First Principles 2026-10-13
- 同主题 · Cache Engineering for Agents 2026-10-20
- 同期 · CoworkOS:Scaling Agent Coworkers for Real-world Automation 2026-11-02
数据说明
元数据来自 arXiv API(已核实);点赞来自 Hugging Face 每日论文;引用来自 Semantic Scholar。最近刷新 2026-11-30。
要点由本站根据摘要自写,不转载摘要原文,请阅读原文。