Speculative decoding
Writing a reply one token at a time wastes the big model: each step does the same heavy work for one token. A small drafter guesses several tokens ahead, and the big model checks them all in a single pass, keeping the ones that are right.
EXSpeculative decodingillustrative
Press the button to play one step at a time. The tokens are illustrative.
Press next
big-model passes: 0 / tokens written: 0
The picture and its numbers are illustrative.
The takeaway
When the guesses are good, several tokens arrive for the price of one big-model step. The answer never changes: a wrong guess is replaced by what the big model would have written anyway.
What the lab knows
Google ships paired assistant drafters for Gemma 4 (the E4B one has four layers and shares the big model's memory of the prompt). reported