Generative AI is billed per token, yet tokens are not equally expensive. Each token enters the KV-cache and raises the cost of those that follow, so energy grows non-linearly along a sequence whose tokens look identical. No analytical model states what a token costs, and the most accurate SOTA model is a fit, not a law: it absorbs architecture into fitted coefficients, requiring per-LLM fitting. We derive closed-form expressions of the computational and memory-access complexity of LLM inference in terms of architectural hyperparameters, covering MHA and GQA, and compare a family of analytical models of increasing granularity. From these, we obtain the SIMPLE Inference Model to Predict LLMs Energy (SIMPLE), a four-parameter law that separates prefill from decode, and decode into KV-cache cost and next-token computation. Over traces of 13 dense LLMs from six families on NVIDIA H100 GPUs, it attains R2 = 0.969 and 11.97% MAPE, 3.1-3.5x below the SOTA, without per-LLM calibration. The SIMPLE law explains as well as predicts: prefill energy grows quadratically with the hidden dimension, so larger LLMs suffer most from long inputs; and more aggressive GQA KV grouping reduces the per-token energy by up to 3x relative to standard MHA. Increasing the reasoning token budget pushes output length beyond the analytically derived energy minimum, driving super-linear energy growth; although accuracy grows with the budget, energy grows faster, so Intelligence per Joule peaks at an intermediate budget and falls by up to 3.14x across a 4.0x reasoning-budget range. Agentic serving raises energy per request by 13.0x relative to non-agentic ones, driven by the growth of both the prefill and the KV-cache terms with input length; while prefix caching removes most of the prefill cost (-93%), the KV-cache term is unaffected, so even a cached agentic request costs 4.8x more.
Figures & tables
Model
Etot Form
Analytical
LLM-agnostic
Attention-aware
Vellaisamy et al., 2026 [ 38 ]
Linear
×
×
×
Zhan et al., 2026 [ 43 ]
Linear
×
×/✓
×
Delavande et al., 2026 [ 11 ]
Bilinear
✓
×
×
Wilkins et al., 2025 [ 40 ]
Bilinear
×
×
×
Oviedo et al., 2026 [ 24 ]
Power-law
×
×
×
SweetSpot, 2026 [ 26 ]
Quadratic
✓
×
×
Table 1: Comparison of existing energy models for LLM inference.
Figure 2
Symbol
Dimension
Description
Symbol
Dimension
Description
Scalars
Prefill Phase
τin
N1×1
Number of input tokens
XP
Rτin×d
Input
τout
N1×1
Number of output tokens
QP,OP
Rτin×d
Query, Output projections
nq
N1×1
Number of query heads
KP,VP
Rτin×dkv
Key, Value projections
nkv
N1×1
Number of KV heads
SP
Rτin×τin
Attention scores
L
N1×1
Number of layers
AP
Rτin×d
Attention output
Table 2: Decoder-only LLM inference symbols and tensor dimensions.
Table 3: Summary of the proposed energy models and selected baselines for predicting the energy per generated token, Etok . SweetSpot is included for direct comparison. For the LLM-agnostic SweetSpot model, ϕ0,…,ϕ5 denote architecture-dependent analytical coefficients, whose explicit expressions are given in Equation 20 .
Name
Size (B)
Attention
nq
R
d
L
Llama 3.2
1
GQA
32
1/4
2048
16
OPT
1.3
MHA
32
1
2048
24
Qwen 2
1.5
GQA
12
1/6
1536
28
Gemma 2
2
GQA
8
1/2
2304
26
OPT
2.7
MHA
32
1
2560
32
Llama 3.2
3
GQA
24
1/3
3072
28
Table 4: LLM test set grouped into size-based families (1B–9B parameters), with architectural hyperparameters for each model.
Figure 1: Average energy efficiency across the evaluated LLMs, highlighting the adopted attention architecture.
Figure 2: Aggregated energy efficiency across the dataset as a function of input and output sequence length.
Figure 3: Graphical comparison of the results in Table 5 . Error bars denote standard deviation across folds.
Table 6: Comparison of R2 and MAPE between SIMPLE and LLM-specific baseline models, all fitted with WLS ( w=1/y2 ) on Etok . SIMPLE is fitted once across all LLMs. As LLM-specific models are fitted separately for each LLM, we report their mean and standard deviation across LLMs.
Figure 10
Figure 4: Term-wise decomposition of the predicted Etok under the SIMPLE law, varying hidden dimension d (a), number of layers L (b), and KV head ratio R (c), using Llama 3.1 8B architectural hyperparameters, with τin=τout=512 . Each band represents the additive contribution of one term of the SIMPLE law.
Figure 5: Term-wise decomposition of the predicted Etok under the SIMPLE law, using Llama 3.2 1B, Qwen2 1.5B, OPT 1.3B, and Llama 3.1 8B, with τin=τout=512 .
Figure 13
Figure 6: Estimated Etok contour maps generated by the SIMPLE law of Qwen3-1.7B (a) and DeepSeek-R1-Distill-Llama-8B (b).
Figure 7: Etok additive components of DeepSeek-R1-Distill-Llama-8B predicted by the SIMPLE law, with τin=64 .
Reasoning
Acc.
Etok
Etot
IPJ
[tok]
[%]
[mJ/tok]
[J]
[%/kJ]
Qwen3-1.7B
2048 ( 1.0× )
3.0 ( 1.00× )
43.6 ( 1.00× )
89.3 ( 1.00× )
33.7 ( 1.00× )
4063 ( 2.0× )
14.0 ( 4.67× )
73.6 ( 1.69× )
298.9 ( 3.35× )
46.8 ( 1.39× )
6978 ( 3.4× )
27.0 ( 9.00× )
117.0 ( 2.68× )
816.5 ( 9.14× )
33.1 ( 0.98× )
9510 ( 4.6× )
38.0 ( 12.67× )
154.8 ( 3.55× )
1471.9 ( 16.48× )
25.8 ( 0.77× )
Table 7: Accuracy on AIME-24 dataset from [ 30 ] and SIMPLE estimation of Etok and Etot for Qwen3-1.7B and DeepSeek-R1-Distill-Llama-8B as a function of reasoning token budgets. Ratios (in parentheses) are relative to the minimum budget, corresponding to τout=2048 . Intelligence per Joule (IPJ) is computed as accuracy (%) divided by Etot (J). For both models, the mean τin of the dataset is used ( τin=105 ).
Figure 8: Graphical comparison of the accuracy (a), Etot (b) and Intelligence per Joule (c) results reported in Table 7 .
Figure 18
Term [J]
Non-Agentic τin=5 K, τc=0 ,
Agentic τin=68 K, τc=0
Agentic Cached τin=68 K, τc=63 K
Prefill
88.8 ( 1.0× )
1207.8 ( 13.6× )
88.8 ( 1.0× )
KV-cache
43.2 ( 1.0× )
573.8 ( 13.3× )
573.8 ( 13.3× )
Next-token
6.1 ( 1.0× )
6.1 ( 1.0× )
6.1 ( 1.0× )
Etok [J/tok]
0.56 ( 1.0× )
7.24 ( 12.9× )
2.71 ( 4.8× )
Total Etot
138.1 ( 1.0× )
1787.7 ( 13.0× )
668.7 ( 4.8× )
ΔEtot (+1 tok)
0.20 ( 1.0× )
2.35 ( 11.8× )
2.35 ( 11.8× )
Table 8: SIMPLE law estimation of the per-request energy, decomposed by contributions, for Llama-3.1-8B on the median GitHub Copilot coding-agent request from [ 18 ] ( τout=247 ). In parentheses, the ratio w.r.t. the non-agentic case. ΔEtot is the energy cost of one additional token ( τout=248 ).
Figure 20
Appendix figures & tables1 asset
Supplementary material from the paper’s appendix.
Appendix
Coeff.
Estimate
Std. Err.
t
P>∣t∣
SIMPLE
θ0
−1.866×10−3
0.000
−4.412
<0.001
θ1
3.308×10−11
6.80×10−13
48.631
<0.001
θ2
1.041×10−9
1.24×10−11
84.004
<0.001
θ3
2.020×10−7
8.01×10−9
25.208
<0.001
FLOPs-MemOPs
Appendix
Table 9: Fitted coefficients of the SIMPLE Law ( R2=0.969 , MAPE =11.974% ) and of the OPs-centric FLOPs-MemOPs model ( R2=0.581 , MAPE =39.384% ).