MARS: Unleashing the Power of Speculative Decoding via Margin-Aware Verification
Jingwei Song, Xinyu Wang, Hanbin Wang, Xiaoxuan Lei, Bill Shi, Shixin Han, Eric Yang, Xiao-Wen Chang, Lynn Ai
TL;DR
This work tackles inference latency in autoregressive LLMs by addressing inefficiencies in speculative decoding's verification step. It introduces Margin-Aware Speculative Verification (MARS), a training-free, plug-and-play strategy that adapts verification to the target model's local decisiveness using the logit margin, accepting plausible runner-up tokens in low-margin regimes. Across 8B–235B models and diverse benchmarks, MARS delivers substantial end-to-end speedups (e.g., up to $\4.76\times$) while preserving generation quality to near-baseline levels (recovery ~100%). The findings show that margin-aware, adaptive verification is a practical, scalable improvement for lossy speculative decoding, enabling faster, reliable LLM inference in real-world settings.
Abstract
Speculative Decoding (SD) accelerates autoregressive large language model (LLM) inference by decoupling generation and verification. While recent methods improve draft quality by tightly coupling the drafter with the target model, the verification mechanism itself remains largely unchanged, relying on strict token-level rejection sampling. In practice, modern LLMs frequently operate in low-margin regimes where the target model exhibits weak preference among top candidates. In such cases, rejecting plausible runner-up tokens yields negligible information gain while incurring substantial rollback cost, leading to a fundamental inefficiency in verification. We propose Margin-Aware Speculative Verification, a training-free and domain-agnostic verification strategy that adapts to the target model's local decisiveness. Our method conditions verification on decision stability measured directly from the target logits and relaxes rejection only when strict verification provides minimal benefit. Importantly, the approach modifies only the verification rule and is fully compatible with existing target-coupled speculative decoding frameworks. Extensive experiments across model scales ranging from 8B to 235B demonstrate that our method delivers consistent and significant inference speedups over state-of-the-art baselines while preserving generation quality across diverse benchmarks.
