Asymmetric Speculative Decoding: Unlocking In-Context Learning in Draft Models
Abstract
Speculative decoding addresses Large Language Model (LLM) inference latency by first drafting and then verifying in parallel. Yet practical speedups fall far short of theoretical bounds, especially on reasoning tasks. We identify the root cause as task isomorphism: existing methods provide identical prompts to both models, forcing the draft model to solve problems beyond its capacity. This produces high rejection rates that eliminate parallelization gains. We discover that acceptance rates increase monotonically during generation, revealing a latent in-context learning (ICL) effect wherein the draft model progressively aligns with the target distribution by learning from verified tokens. Controlled experiments with varying context window sizes confirm this improvement stems from ICL-driven alignment rather than token difficulty. Motivated by this finding, we propose Asymmetric Speculative Decoding (AsymSpec), a training-free framework that decouples the prompts provided to draft and target models. By supplying the draft model with task-relevant example solutions, we reformulate its objective from reasoning to simulation, amplifying the ICL effect from the first token. We prove AsymSpec produces exact samples and converges exponentially to the target distribution. Across reasoning, code generation, and summarization tasks, AsymSpec achieves 2.29 to 4.95 speedup over autoregressive decoding, outperforming standard speculative decoding without model retraining.
Create a lesson
Metadata
- Comments
- 28 pages
Related papers
AscMLA: Unlocking FP4 Efficiency for Long-Context MLA Decoding through Asymmetric Scaling
Shared title terminologycs.DCZechun Zhou, Zhiyong Zheng, Xiaomin Zhang et al.
GC-MoE K3: A Green-Context Role Graph for Latent Mixture-of-Experts Decode
Shared title terminologycs.DCYong Li, Haoyu Wang, Kan Liu et al.
CGSpec: Consistency-Guided Speculative Decoding with Overlap-Aware Verification Scheduling for Edge-Cloud Inference
Shared title terminologycs.DCYuanbing Ouyang, Xiaoli Liu, Shirong Wei et al.
Callo: Serving Cache-Miss Requests with Speculative Decoding on Invalidated KV under Prefill-Decode Disaggregation
Shared title terminologycs.DCJianjun Ou, Matthew Lentz
Norn: Context-Length-Aware Optimization of Weight and KV Cache Placement for Offloaded LLM Inference
Shared title terminologycs.DCNaoto Sugiura, Hiroki Matsutani
Contexture: Runtime Context Eviction for High-Throughput Agent Serving
Shared title terminologycs.DCColin Hong, Bryan Shan, Wei Siong Pang et al.