Manuscript Offprint

arXiv:2610.40287

Only Accepted Tokens Count: An Energy Accounting of Speculative Decoding Under Latency Targets

Bole Ma, Ayesha Afzal, Jan Eitzinger, Harald Koestler, Gerhard Wellein

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

BOLE MA, Erlangen National High Performance Computing Center, Germany

AYESHA AFZAL, Erlangen National High Performance Computing Center, Germany

JAN EITZINGER, Erlangen National High Performance Computing Center, Germany

HARALD KOESTLER, Erlangen National High Performance Computing Center, Germany

GERHARD WELLEIN, Erlangen National High Performance Computing Center, Germany

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.

Additional Key Words and Phrases: speculative decoding, energy efficiency, LLM inference, attention, GPU

1 Introduction

Language model serving is limited by facility power. NVIDIA presents its Vera Rubin systems against a fixed facility power budget and names performance per watt the defining metric of AI infrastructure [20, 27], and from the operator side SemiAnalysis reports that OpenAI is limited by datacenter power rather than by budget or floor space, which makes tokens per megawatt the quantity it buys [36]. Tokens per megawatt is energy per token inverted, so every joule a serving configuration saves per token is capacity a power-limited facility gains [2]. The same comparisons already mix systems served with and without speculative decoding [36], which is the setting whose energy this paper measures.

Energy is not the only target. A service is also held to latency objectives that its users feel: the time to the first token of a response, and the time between the tokens that follow. A service that saves energy by streaming tokens more slowly loses its users, so the configuration an operator wants is one that meets both targets at once. Choosing the lowest-energy configuration that still meets a latency objective is the framing of cluster-level energy managers such as

Authors' Contact Information: Bole Ma, Erlangen National High Performance Computing Center, Erlangen, Germany, bole.ma@fau.de; Ayesha Afzal, Erlangen National High Performance Computing Center, Erlangen, Germany, ayesha.afzal@fau.de; Jan Eitzinger, Erlangen National High Performance Computing Center, Erlangen, Germany, jan.eitzinger@fau.de; Harald Koestler, Erlangen National High Performance Computing Center, Erlangen, Germany, harald.koestler@fau.de; Gerhard Wellein, Erlangen National High Performance Computing Center, Erlangen, Germany, gerhard.wellein@fau.de. Manuscript submitted to ACM

B. Ma et al.

DynamoLLM [37]; this paper asks the same question of speculative decoding. The first token has several levers, among them prefix caching [45] and running prefill on separate machines [29]. The time between tokens is set by decode alone.

Decode generates text one token per forward pass. Every pass reads all of the model's weights to produce a single token, so the machine spends its time moving bytes while its arithmetic units wait on memory, and both the energy per token and the time between tokens follow the bytes.

That makes meeting both targets plausible. Reading a byte from off-chip memory costs far more energy than an arithmetic operation on it: on a GH200, a Hopper GPU like ours, a byte read from HBM costs about 93 pJ and a 16-bit tensor-core operation about 0.5 pJ [4], so a pass that produces more tokens per weight read should lower energy per token, and if those tokens belong to one user, such a pass should shorten the time between that user's tokens as well.

Batching is the first candidate. Running many sequences together reads the weights once and amortises that read, so energy per token falls and throughput rises. Batching does nothing for any individual user. On the dense models we measured, the time between a user's tokens grows by 9 to 34% from a batch of 1 to 32. On the Mixture-of-Experts models it grows 2.5 to 4.0 times, because each added request routes to the experts chosen for its tokens and adds their weights to the read.

The time-between-tokens objective is written in that quantity. When the objective is tight enough, no batch size meets it, and speculative decoding becomes the only remaining lever. A drafter proposes several tokens at low cost, the model verifies them in one pass, and the accepted ones are produced for the cost of a single weight read. On our models speculation shortens the mean time between tokens at single stream by 1.3 to 4.3× (Table 4). Without speculation, an objective of 25 ms per token is missed at every batch we ran by gemma-4-31B-it, the largest dense model, and an objective of 10 ms by 4 of our 11 models; speculation brings every one of them under the objective.

The remaining question is the energy cost of speculation. Where batching has already amortised the weight read, there is less for a drafter to recover, and the drafter still has to be paid for.

This paper measures that trade. We run 5 published drafting schemes against 11 models spanning 4 attention designs, sweeping the number of tokens verified per step and the batch. For every model, scheme and batch we also run a non-speculative baseline, the same model served at the same batch size without speculative decoding, and we add hardware performance counters for the roofline and a draft and verify split measured by removing the draft. The paper contributes (1) a paired energy measurement of speculative decoding as production engines serve it; (2) a mechanism, from the draft and verify split and from hardware-counter rooflines on two GPUs that show where verification crosses the balance point and the saving ends; (3) guidance on the choice of drafter and the number of drafted tokens across batch and GPU; and (4) measurement pitfalls that change the reported saving without any sign in the result file, among them a CUDA-graph bias of up to 39 percentage points on Mixture-of-Experts models.

References (24)