Model and Inference EngineeringTransformer and model mechanicsPrincipal
Why do multi-token prediction drafts still need verification before streaming?
By Amit Kumar3 min readWorked answer includedReviewed 28 Sept 2026
The question
Interview question
A model checkpoint contains multi-token prediction heads that propose A,B,C,D in one speculative block. The team wants to stream all four immediately. Explain whether those predictions equal the base decoder’s conditional outputs, show what happens if the target rejects B, and design a correct commit/cache protocol for greedy and stochastic modes.
Draft your approach first
Take a few minutes before you read the answer. Name the constraint that matters most, the failure you are designing for and how you would know it worked.
Reveal the worked answerWorked answer
A draft token is a proposed continuation. A committed token is one the server has accepted under its output algorithm and can expose to the client. Multi-token prediction improves the source of proposals, but does not erase that distinction.
Ask what those extra predictions represent. A multi-token prediction head can propose tokens beyond the immediate next one, but that does not make each proposal an exact sample from the base model's next-token distribution after the earlier proposed tokens. The base model may choose a different first token. Then the later draft tokens were made under a continuation that never happened. DeepSeek-V 3's technical report describes a multi-token prediction objective, while vLLM's MTP serving documentation treats the head's tokens as drafts verified by the target model.
For a simple example, the draft proposes A B C D. If the target rejects B, the server cannot continue by emitting C D as though the sequence were still A B C D. It must follow the target's accepted or corrected continuation and rebuild subsequent speculation from that state. Even if all four are accepted under the verification algorithm, the precise sampling rule matters. Greedy matching and distribution-preserving speculative sampling have different acceptance machinery. Do not promise exact target-model output by merely taking the argmax of four heads.
I would test target-only decoding against MTP-assisted decoding using fixed weights, tokenization, sampling settings and prompts. For greedy mode, compare output tokens across varied rejection positions. For sampling mode, check the implemented acceptance and correction rule against the intended target distribution, then measure statistical behavior and quality. Inspect whether rejected drafts polluted KV state or token positions, and measure accepted tokens per verification pass against the extra head's latency.
The interviewer might say the MTP head is part of the same checkpoint, so it is "the same model." That tells us how it was trained, not that its proposal distribution equals the base decoder's conditional distribution at every later position. MTP can improve the proposal quality and reduce external draft-model cost. Verification is still what makes this a correctness-preserving serving path under the documented algorithm. A speculative decoder gets faster by sampling from the wrong model covers using the wrong target distribution in speculative sampling. This question asks why a future-token training objective does not itself authorize four committed output tokens.
The target’s verification pass can compute several conditional distributions in parallel under a causal mask over the proposed continuation. That batching reduces sequential target calls. It does not make later distributions valid after an earlier proposal is rejected. Keep an accepted-prefix length, commit only that prefix and the required corrected token, and invalidate cache entries belonging to the discarded suffix. The next iteration must begin from the corrected history.
Streaming before verification creates an external state problem. Once a client has acted on B, silently replacing it is not ordinary token generation. Either wait to emit committed tokens or define an explicit provisional protocol that consumers understand. Such a protocol does not turn provisional drafts into exact target samples.
Measure both acceptance rate and user-visible timing. A long draft block can waste work when early rejection is common and can delay the first committed token. A shorter lookahead may deliver better latency even if it accepts fewer tokens per successful block. Test rejection at every position, including the first token, and verify that stop tokens and length limits cannot expose unverified suffixes.
For greedy verification, compare each proposed token with the target argmax under the accepted history, stopping at the first mismatch and emitting the target choice there. For stochastic verification, use the actual proposal probabilities with the algorithm’s acceptance ratio and residual correction. Accepting every proposal merely because the target assigns it nonzero probability is insufficient. Which MTP head supplies a distribution, and what history it conditions on, must match that implementation’s verification rule.
Related questions
Keep practising model and inference engineering
Follow another question in this area, or search the complete library.
Get my essays on AI engineering and distributed systems by email. Subscribe to ArchCrux