Interview Lab
What happens when the target rejects a draft token?
A draft model proposes four tokens in 3 ms: “the small red boat.” The target verifies the draft in one 9 ms pass. Under greedy decoding it agrees on “the” and chooses “blue” at the second position. Without drafting, each target step takes 8 ms.
Which tokens does this round emit? How much time does it save versus generating those same tokens with the target alone?
Animated solution
Verify the draft against the target
Draft tokens
- theCandidate
- smallCandidate
- redCandidate
- boatCandidate
Verified outputWaiting for verification
Target only16 ms
Speculative3 ms
■ Drafting ■ Verification
The draft model proposes four tokens.
It takes 3 ms total. The four candidates are tentative until the target verifies them.
Worked solution
It emits “the blue” and saves 4 ms.
- Accept the matching draft token “the.” At the first mismatch, emit the target’s greedy choice “blue.”
- Discard “red” and “boat.” They were drafted assuming the previous token was “small.” The next round starts from the corrected output.
- Speculative decoding takes 3 + 9 = 12 ms. The target alone takes 2 × 8 = 16 ms for the same two tokens.
The result depends on how many tokens survive verification and how much the draft and verification cost. This example uses greedy decoding. Assisted decoding guide