Only Accepted Tokens Count: An Energy Accounting of Speculative Decoding Under Latency Targets
Organizations: Erlangen National High Performance Computing Center, Erlangen, Germany
Abstract
Large language model serving is limited by facility power. Energy per token determines how many tokens a datacenter can serve, while a latency target bounds how quickly each user receives them. During decode, every weight is read from memory for every generated token. Batching amortizes this read across users but makes no individual user faster. Speculative decoding does: a drafter proposes several future tokens, and the target model verifies them in a single forward pass that reuses the same weight read. Because every drafted token must be verified whether or not it is accepted, the energy speculation saves depends on how many drafted tokens are accepted. This saving is hard to pin down. It varies across target models from different attention families and across drafting schemes, and it depends on the text being served. Every drafter we evaluate accepts fewer tokens on conversation than on code, and every trained drafter accepts fewer on Romansh, a low-resource language, than on English. We measure speculative decoding under production serving conditions (SGLang, CUDA graphs enabled) on H100 and H200 GPUs, at batch sizes up to 64 across 5 corpora. On dense models, verification, not drafting, dominates the energy cost. The saving shrinks as the batch grows, because batching has already shared the weight read that speculation would divide among the accepted tokens. At large batch sizes, block drafters push verification past the balance point between arithmetic and memory traffic into the compute-bound regime, where the saving becomes a loss, and a drafter with low acceptance raises energy per token. Meeting a tighter latency target with speculation then costs additional energy. Larger batches lower energy per token without speculation. Speculation adds to that saving only when acceptance is high, and on the model we tested it leaves little headroom for latency-preserving DVFS.
Figures & tables
| family | model | GPU | n-gram | MTP head | EAGLE3 | DFlash | DSpark |
|---|---|---|---|---|---|---|---|
| GQA | Qwen3-4B | H100 | 4 | – | 8 t | 16 t , 7 t | 7 t |
| Qwen3-8B | H100 | 4 | – | 8 t | 16 t , 7 t | 7 t | |
| Qwen3-14B | H100 | 4 | – | 8 t | 7 t | 7 t | |
| Qwen3-Coder-30B-A3B-Instruct ∗ | H100 | 4 | – | – | 16 t | – | |
| GQA+SWA | gemma-4-12B-it | H100 | 4 | 6 v | – | 16 t | 7 t |
| gemma-4-26B-A4B-it ∗ | H100 | 4 | 6 v | – | 16 t | – |
| family | model | |||||||
|---|---|---|---|---|---|---|---|---|
| GDN GA | Qwen3.6-27B | +65 5 DF | +61 2 DF | +54 1 DF | +48 1 MTP | +45 1 MTP | +38 1 MTP | – |
| Qwen3.6-35B-A3B | +38 4 MTP | +31 8 MTP | +26 2 MTP | +25 2 MTP | +31 3 MTP | +31 1 MTP | +25 1 MTP | |
| GQA | Qwen3-14B | +54 1 DS | +53 3 DS | +49 2 DS | +41 1 DS | +35 1 DS | +34 0 DS | +18 1 DS |
| Qwen3-4B | +56 5 DS | +53 4 DS | +48 1 DS | +41 1 DS | +29 2 DS | +25 1 DS | +19 1 DS | |
| Qwen3-8B | +62 3 DS | +55 3 DS | +50 2 DS | +41 2 DS | +37 1 DS | +34 0 DS | +24 1 DS | |
| Qwen3-Coder-30B-A3B-Instruct | +32 10 DF | +35 5 DF | +41 10 DF | +48 7 DF | +49 3 DF | +51 1 DF | +51 2 DF |
| baseline (J/token) | speculative (J/token) | saving (%) | |||||
| model | scheme | off | on | off | on | off | on |
| gemma-4-31B-it | DFlash | 12.80 | 12.65 | 2.96 | 2.91 | ||
| gemma-4-12B-it | DFlash | 6.33 | 4.92 | 1.50 | 1.23 | ||
| Qwen3.6-27B | DFlash | 11.60 | 10.51 | 3.43 | 3.04 | ||
| Qwen3-8B | DSpark | 3.79 | 3.10 | 1.60 | 1.23 | ||
| baseline (ms) | fastest speculative scheme (ms) | |||||
|---|---|---|---|---|---|---|
| model | ||||||
| GLM-4.7-Flash | 8.2 | 23.4 | 28.0 | 6.2 MTP | 18.2 MTP | 21.5 MTP |
| JoyAI-LLM-Flash † | 4.2 | 15.4 | 20.1 | 3.0 MTP | 10.8 MTP | 13.6 MTP |
| Qwen3-14B | 15.4 | 16.9 | 17.9 | 7.3 DS | 9.8 DS | 14.7 DS |
| Qwen3-4B | 5.7 | 6.8 | 7.7 | 2.7 DS | 4.3 DS | 6.0 DS |
| Qwen3-8B | 9.4 | 10.2 | 11.3 | 3.8 DS | 6.2 DS | 8.7 DS |
Speculative Decoding
Speculative decoding accelerates generation by drafting multiple tokens and verifying them in parallel with a larger target model.
See all 314 papers