Speculative Decoding
An LLM inference acceleration technique formally proposed by the Google Brain team in 2023. It introduces a small draft model to rapidly generate candidate token sequences, which are then verified in parallel by the main model, theoretically improving generation speed by a factor of two to four.
Core Facts
Speculative decoding generates candidate tokens through a lightweight draft model, with the main model verifying them in parallel in a single forward pass, accepting tokens that conform to the distribution and regenerating from the first rejected position.
Speculative decoding submits the candidate sequence generated by the draft model to the target model as a whole for one-shot batch verification, requiring only a single forward pass to determine whether each candidate token is correct.
A higher acceptance rate means the draft model's guesses are more accurate and the large model needs to redo less work, which directly determines the actual speedup achieved by speculative decoding.
Timeline (last 90 days)
As LLM inference costs continue to attract attention, soft optimization methods like this for speculative decoding are expected to become a standard part of the service optimization toolbox.
For service teams that have already deployed speculative decoding, introducing simple temperature scaling calibration requires almost no additional cost yet can bring considerable gains in acceptance length.
The speedup of speculative decoding depends heavily on the acceptance probability of draft tokens in target verification, which directly depends on the L1 distance between the target distribution p and the draft distribution q.
Hy4 comes with speculative decoding acceleration, which can significantly reduce inference latency and VRAM pressure.
Common AI inference optimization techniques include model quantization, operator fusion and graph optimization, KV cache management, continuous batching and speculative decoding.
Acceptance rate refers to the proportion of tokens proposed by the draft model that are verified as acceptable by the target model, and it is the core lever for speculative decoding gains.
Sightline shows that in vector graphics generation, speculative decoding should verify as far as the drafter's horizon allows.
In SVG tasks, drafter errors in speculative decoding are very rare and exhibit a clustered distribution, and the distances over which accuracy is maintained within a block are much deeper than in natural language.
Speculative decoding can accelerate rendering-based sample selection, and its effect is better than likelihood-based selection.
The choice of baseline (whether engineering optimizations such as KV caching, quantization, and speculative decoding are enabled) significantly changes the efficiency comparison results.
40 more timeline events
All Facts (20)
Speculative decoding generates candidate tokens through a lightweight draft model, with the main model verifying them in parallel in a single forward pass, accepting tokens that conform to the distribution and regenerating from the first rejected position.
90%VerifiedSpeculative decoding submits the candidate sequence generated by the draft model to the target model as a whole for one-shot batch verification, requiring only a single forward pass to determine whether each candidate token is correct.
90%VerifiedA higher acceptance rate means the draft model's guesses are more accurate and the large model needs to redo less work, which directly determines the actual speedup achieved by speculative decoding.
90%VerifiedMTP is a technique that allows the model to predict multiple subsequent tokens in a single forward pass, reducing the number of inference computation rounds.
90%VerifiedSpeculative decoding is a lossless acceleration technique that does not alter the model's output distribution; it uses a draft model with far fewer parameters than the target model to generate candidate tokens, which the target model then verifies in parallel.
90%VerifiedSpeculative decoding generates candidate tokens via a small draft model and verifies them in parallel with a large model, improving throughput by 2–3× without quality loss
90%VerifiedThe MTP (Multi-Token Prediction) auxiliary training objective allows the model to be used with speculative decoding during inference to improve throughput
90%VerifiedSpeculative Decoding uses a small, fast draft model to predict multiple tokens in advance, which are then verified in parallel all at once by the large model.
90%VerifiedSpeculative Decoding is one of the most mainstream inference acceleration approaches for large models, using a small draft model to rapidly generate candidate tokens that are then verified in parallel by the main model.
90%VerifiedNVIDIA's TensorRT-LLM deeply optimizes inference speed for its hardware architecture.
85%VerifiedSpeculative decoding typically delivers a 2–3× speedup in practical applications.
80%VerifiedTraditional speculative decoding relies on an independent, smaller draft model to serially generate candidate tokens, which are then verified in parallel by the large model.
80%VerifiedCommon optimization methods for inference latency include quantization, pruning, operator fusion, and inference engine replacement.
75%VerifiedSpeculative decoding is a technique that accelerates generation without changing the output distribution.
75%VerifiedInference throughput optimization relies on technologies such as KV Cache management and Continuous Batching, which directly determine response speed and service cost under concurrent user loads.
75%VerifiedOnline inference scenarios with high latency requirements can be routed to lightweight models, while complex offline analysis tasks invoke larger-parameter models with greater capability but higher cost, in order to control inference costs.
75%VerifiedInference optimization is the core technical direction for reducing AI's per-use cost, with common methods including model quantization (representing weights at lower precision such as INT8/FP8 to reduce memory footprint and computation), knowledge distillation (using a large model to guide a small model), KV cache reuse and batching (merging requests to improve GPU utilization), and speculative decoding (a small model drafts and a large model verifies to speed up generation).
65%VerifiedMethods for compressing the KV Cache include quantization, low-rank approximation, and evicting old tokens by importance; their direct effect is to increase the number of tokens (capacity) that a unit of GPU memory can hold, rather than to save compute or transfer.
65%VerifiedSpeculative decoding's rejection-sampling-based verification algorithm ensures that the output distribution is exactly equivalent to—rather than merely an approximation of—running the main model alone.
65%VerifiedThe combination of Multi-Token Prediction and speculative decoding can achieve a 2–4x inference speed improvement without compromising generation quality.
65%