Approximate Speculative Decoding

Yuannuo Feng, Zegang Peng, Yuxin Xie, Yubing Ye, Yizhe Chen +3 more
8/4/2026
cs.LGcs.AI

Official code: Kissmetothemoon/ASD (6 stars, Python, Apache-2.0, last commit 2026-10-10).

Abstract

Speculative decoding accelerates autoregressive generation by verifying a draft block with a target model in parallel. Under standard greedy verification, decoding stops at the first draft token that differs from the target argmax, discarding the remaining target-scored suffix.

Show full abstract

Although accepting such a mismatch changes the decoding trajectory, it can make a contiguous suffix reusable when its tokens remain target-greedy under the realized prefix. In this paper, we introduce \textbf{Approximate Speculative Decoding (ASD)}, a training-free verifier that replaces binary first-mismatch truncation with budgeted longest-prefix selection. ASD accepts selected mismatches subject to a local target-logit regret gate, a per-block exception cap, and a persistent request-level regret budget, then reuses the contiguous target-greedy suffix without additional approximate decisions or target-model forward passes. ASD requires neither a new draft model nor fine-tuning, and exactly reduces to standard greedy verification when the budget is zero. Experiments show that ASD improves fixed-workload throughput by $3.05\%$--$15.26\%$ over matched strict verification and averages a $7.78\%$ gain across seven Qwen3-14B + DSpark-14B tasks. On DeepSeek-V4-Flash (284B) with DSpark it also raises verifier-side acceptance by roughly $10\%$--$16\%$ on GSM8K and MATH-500 in an FP4-to-FP8 compatibility setting. The source code is publicly available at: https://github.com/Kissmetothemoon/ASD

View on arXivView PDF

Code Implementations(1)

Apache-2.0
60PythonJul 25, 20261 months agoApache-2.0

Similar Papers

Cite this paper

@article{feng2026approximate,
  title  = {Approximate Speculative Decoding},
  author = {Yuannuo Feng and Zegang Peng and Yuxin Xie and Yubing Ye and Yizhe Chen and Wenshuai Yao and Wenyong Zhou and Wang Kang},
  year   = {2026},
  eprint = {2608.03447},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2608.03447v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2608.03447.svg)](https://codeofpaper.com/paper/2608.03447)

Discussion