Speculative Decoding
An LLM inference acceleration technique formally proposed by Google DeepMind in 2023. A smaller draft model rapidly generates candidate tokens, which a larger target model then verifies in parallel. This approach can significantly reduce inference latency and computational cost.
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)
In long-context, multimodal scenarios, the draft budget allocation strategy may affect end-to-end efficiency more than the tree topology itself.
Practical deployment recommendation: if a diffusion model is used as the draft for speculative decoding, one should not fix single-step diffusion or only adjust leniency, but should jointly search K and λ and select a configuration on the Pareto frontier according to business latency and quality requirements (e.g., real-time chat can choose high K and high λ, while high-quality code generation can choose low K and low λ).
The acceptance rate ceiling of speculative decoding is limited by the total variation distance between the draft model and the verifier model distributions, which can be approximated as 1 - TV(P, Q).
The paper "Speculative Diffusion is a Tale of Two Trade-offs" combines diffusion language models with speculative decoding and proposes a dual trade-off optimization framework.
Unlike traditional speculative decoding, SpecCTMC does not require a separate draft model and instead directly reuses the main diffusion model's own predictive distributions as the proposal distribution.
CoRD's method reuses the ready-made mechanism of speculative decoding, its replacement rule has the theoretical guarantee of an exact sampler, and the intervention strength automatically decays over training, and these properties favor engineering deployment.
CoRD uses the maximal coupling mechanism from speculative decoding to sample trajectories: at token positions where the two distributions agree, the student's own token is kept, and at positions where they disagree, one token is replaced from the part of the target distribution that the student underestimates.
SpecCompact borrows the idea of speculative decoding, extending the speculation unit from tokens to semantic slots and changing the verification criterion from probabilistic acceptance to semantic plausibility judgment, and therefore does not guarantee complete equivalence with serial generation.
Speculative decoding can make a certain number-intensive test about 5 times faster on an M4 Max.
Key technologies of inference platforms include continuous batching, KV cache management, quantization and speculative decoding.
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%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%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%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%VerifiedSpeculative decoding is a technique that accelerates generation without changing the output distribution.
75%VerifiedModel quantization, speculative decoding, and continuous batching are software techniques used to reduce inference latency.
75%VerifiedWhen speed improvements and price reductions occur simultaneously, they typically point to underlying inference architecture optimization, with possible paths including model distillation, quantization, speculative decoding, and streaming processing architectures.
75%VerifiedThe main optimization approaches in the industry for reducing LLM inference costs include model quantization, speculative decoding, and semantic caching mechanisms.
75%VerifiedSpeculative decoding was formally proposed by Google DeepMind in 2023; overall throughput can be improved by 2–3 times, and the output quality is completely equivalent to that of the original large model.
75%VerifiedCompared to speculative decoding, MTP's predictive capability is built into the model itself, requiring no additional draft model.
65%VerifiedSpeculative decoding was formally proposed by Google in 2023, using a draft model with 1/10 to 1/50 the parameters of the target model to generate multiple candidate tokens at once, which are then verified in parallel by the large model.
65%VerifiedSpeculative decoding uses a small local model to rapidly generate draft tokens, which are then verified and corrected by a large cloud-based model.
65%VerifiedThe combination of Multi-Token Prediction and speculative decoding can achieve a 2–4x inference speed improvement without compromising generation quality.
65%Unverified推测解码、模型蒸馏、KV Cache优化等推理优化技术的持续进步正在使单位推理成本快速下降
85%Unverified推测解码技术已被Google、Meta等公司广泛应用于生产环境
80%