SharpDraft: Accelerating Long-Context Speculative Decoding with Cardinality-Aware Query Scaling
Abstract
Long-form reasoning makes inference expensive, and speculative decoding mitigates this cost by verifying multiple draft tokens in parallel. Its speedup, however, can fade as context grows and draft acceptance declines. We focus on attention-mass dilution: as softmax normalizes over more visible Keys, the mass concentrated on the highest-scoring Keys can decrease. We introduce SharpDraft, a training-free method that counteracts this effect through cardinality-aware Query scaling, without the computational overhead of online adaptation. Under explicit assumptions, we derive an exact top- mass correction and deploy a closed-form fixed-slope approximation. Across AIME-26, GPQA-Diamond, and LongGenBench Diary, SharpDraft achieves - geometric-mean end-to-end speedups over target-only autoregressive decoding when applied to DFlash, PARD, and EAGLE 3.1. With DFlash, it improves decoding speed and outperforms full-parameter and LoRA-based online adaptation in end-to-end speedup, while matching the unmodified drafter's reported peak allocated GPU memory.
Create a lesson
Metadata
- Comments
- 19 pages, 7 figures
Related papers
DMC-5: Dual-Model Collaboration with Cache-aware Context Compression for Long-horizon Agents
Shared title terminologycs.AIHaochen Li, Xiaobing Tu, Yinggui Wang et al.
When Does Optical Context Compression Pay Off? A Decode-Aware Cost Analysis of Reasoning VLMs
Shared title terminologycs.AIZiqing Ge
Wavefront: Low-Rank Drafting with Parallel Causal Refinement for Speculative Decoding
Shared title terminologycs.AIHuy Huu Nguyen, Xin Huang
Trajectory-Retrieval Speculative Decoding: When Does a Model's Own History Help?
Shared title terminologycs.AIYuyang Dai, Yushun Dong
The Right Memory in the Wrong Context: Verifying Retrieval Admissibility in Long-Term Agent Memory
Shared title terminologycs.AIZi Wang, Xingqiao Wang, Emmanuel Addai et al.
CASE: Cost-Aware Stopping for Efficient Long-Video Agents
Shared title terminologycs.AIYiming Du, Chenghao Liu, Zhiyuan Liu et al.