Speculative Decoding
Accelerates autoregressive sampling by validating draft tokens with a target model.
Method
Draft a block; score it with the target; accept each token with probability min(1,p/q); at rejection sample from normalized positive residual (p−q), then continue.
Applications
Autoregressive model serving.
Advantages
Preserves the target sampling distribution under exact arithmetic and the stated algorithm.
Limitations
Speed depends on acceptance and hardware overhead; exactness requires the correction procedure, not merely matching independently sampled tokens.
Alternatives
Standard decoding, early exit, model compression.
Example
Use a small model to draft tokens for a larger model.
Editorial clarification
Reviewed against method-specific primary or specialist reference; guarantees are conditional.
Sources
Educational reference only, not professional advice.
All algorithms