Accelerate Speculative Decoding with Sparse Computation in Verification
Jikai Wang, Jianchao Tan, Yuxuan Hu, Jiayu Qin, Yerui Sun, Yuchen Xie, Xunliang Cai, Juntao Li, Min Zhang
TL;DR
This work tackles the high computational cost of speculative decoding by targeting the verification stage, identifying structured redundancy across attention, FFN, and MoE components. It proposes a unified sparse verification framework that sparsifies multiple modules during verification, augmented by inter-layer retrieval reuse and adaptive expert skipping, all without retraining. The approach yields substantial FLOPs reductions and favorable efficiency-accuracy trade-offs across long-context, QA, and math benchmarks, while maintaining stable acceptance lengths. These findings enable practical acceleration of autoregressive inference for large-scale LLMs with minimal degradation in generation quality.
Abstract
Speculative decoding accelerates autoregressive language model inference by verifying multiple draft tokens in parallel. However, the verification stage often becomes the dominant computational bottleneck, especially for long-context inputs and mixture-of-experts (MoE) models. Existing sparsification methods are designed primarily for standard token-by-token autoregressive decoding to remove substantial computational redundancy in LLMs. This work systematically adopts different sparse methods on the verification stage of the speculative decoding and identifies structured redundancy across multiple dimensions. Based on these observations, we propose a sparse verification framework that jointly sparsifies attention, FFN, and MoE components during the verification stage to reduce the dominant computation cost. The framework further incorporates an inter-draft token and inter-layer retrieval reuse strategy to further reduce redundant computation without introducing additional training. Extensive experiments across summarization, question answering, and mathematical reasoning datasets demonstrate that the proposed methods achieve favorable efficiency-accuracy trade-offs, while maintaining stable acceptance length.
