Verba/Rapida

Explainers

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
written

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

See it in the atlas

Want to see what these experiments produced? Lesto, the Gemma 4 inference engine for Apple silicon Macs, is on lestoengine.com

Made by Federico Andrioli, @fedeandri on X A research lab's own measurements, generated from its files. Data built