Only Accepted Tokens Count: Energy Accounting for Speculative Decoding Under Latency Targets
The paper measures the energy cost of speculative decoding under production serving conditions on H100 and H200 GPUs using SGLang with CUDA graphs, at batch sizes up to 64 across five corpora. It finds that on dense models verification, not drafting, dominates energy, and that the saving shrinks as batch size grows because batching has already shared the weight read that speculation would divide among accepted tokens. At large batch sizes block drafters push verification past the arithmetic-memory balance point into a compute-bound regime where the saving becomes a loss, and low acceptance rates raise energy per token. Meeting a tighter latency target with speculation therefore costs additional energy, while larger batches lower energy per token without speculation.
It gives inference engineers a measured, condition-specific account of when speculative decoding saves energy and when it loses it, directly informing batch-size and latency-target trade-offs in production serving.
Comments & Questions (0)
No comments yet
Be the first to comment!