Speeding up Speculative Decoding via Sequential Approximate Verification

Meiyu Zhong, Noel Teku, Ravi Tandon
2/6/2025
cs.LGcs.IT

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

Speculative Decoding (SD) is a recently proposed technique for faster inference using Large Language Models (LLMs). SD operates by using a smaller draft LLM for autoregressively generating a sequence of tokens and a larger target LLM for parallel verification to ensure statistical consistency. However, periodic parallel calls to the target LLM for verification prevent SD from achieving even lower latencies. We propose SPRINTER, which utilizes a low-complexity verifier trained to predict if tokens generated from a draft LLM would be accepted by the target LLM. By performing sequential approximate verification, SPRINTER does not require verification by the target LLM and is only invoked when a token is deemed unacceptable. This reduces the number of calls to the larger LLM, achieving further speedups and lower computation cost. We present a theoretical analysis of SPRINTER, examining the statistical properties of the generated tokens, as well as the expected reduction in latency as a function of the verifier. We evaluate SPRINTER on several datasets and model pairs, demonstrating that approximate verification can still maintain high quality generation while further reducing latency.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{zhong2025speeding,
  title  = {Speeding up Speculative Decoding via Sequential Approximate Verification},
  author = {Meiyu Zhong and Noel Teku and Ravi Tandon},
  year   = {2025},
  eprint = {2502.04557},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.04557v3}
}

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/2502.04557.svg)](https://codeofpaper.com/paper/2502.04557)

Discussion