Speeding up Speculative Decoding via Approximate Verification

Meiyu Zhong, Noel Teku, Ravi Tandon · DOI

Introduction

Large Language Models (LLMs) are notoriously slow due to their autoregressive nature, generating text one token at a time. Speculative Decoding (SD) emerged as a solution, using a small "draft" model to propose token sequences that a large "target" model verifies in parallel. However, SD faces a bottleneck: frequent, expensive calls to the target model for exact verification still consume significant computational resources and introduce latency.

This paper introduces SPRINTER (Speeding up Speculative Decoding via Sequential Approximate Verification), a framework that addresses the "generation-verification gap." The core insight is that verifying a token's quality is significantly easier than generating it. By replacing exact verification with a tiny, low-complexity classifier, SPRINTER achieves substantial speedups and efficiency gains without sacrificing text quality.

Methodology: Sequential Approximate Verification

SPRINTER departs from the parallel verification paradigm of standard SD. Instead, it employs a sequential approach using three components: a small Draft Model ($M_q$), a large Target Model ($M_p$), and a tiny Verifier ($V$). The Verifier is a single-layer neural network with fewer than 1,000 parameters.

Comparison of SPRINTER's sequential approximate verification with standard Speculative Decoding.

In the SPRINTER workflow, the draft model generates a token, and the Verifier immediately predicts if the target model would likely accept it. If accepted, the draft model continues to the next token without invoking the target model. The target model is only called when the Verifier rejects a token or a maximum sequence length is reached. This approximate verification allows for longer drafting sequences and significantly fewer calls to the heavy target model.

Experimental Evaluation

The authors evaluated SPRINTER across several benchmarks, including Wiki-Summary, LM1B, and Spec-Bench (covering MT-Bench and GSM8K). Testing involved various model pairs such as GPT-Neo (125M/1.3B), GPT2 (Small/XL), and Vicuna (68M/7B).

Key findings include:

  • Verifier Efficiency: Despite its minimal size, the verifier achieves an AU-ROC of 0.8 to 0.9, demonstrating that a "tiny" model can effectively predict token acceptance.
  • Sequential Advantage: Sequential verification allows the system to utilize the draft model for longer stretches than the fixed lookahead windows typical of standard SD.
  • Theoretical Foundation: Mathematical analysis shows that the verifier's false-positive rate directly correlates with the statistical distance from the target model and expected latency.

Key Results

SPRINTER demonstrates a superior trade-off between quality, latency, and computation compared to standard Speculative Decoding.

Performance comparison between SPRINTER and standard Speculative Decoding across quality, latency, and computation metrics.

As shown in the results, SPRINTER achieves:

  • Speedups: 1.64x to 1.83x faster inference than standard SD.
  • Computational Efficiency: An 8x to 10x reduction in FLOPs compared to standard SD.
  • Quality Preservation: ROUGE-2 scores remain nearly identical. GPT-4 evaluations (win-tie rates) confirm that SPRINTER-generated text is of comparable quality to standard SD.
  • Generalization: Verifiers trained on one dataset (e.g., LM1B) transfer effectively to others (e.g., Wiki-Summary), indicating they learn general quality features.

Conclusion and Future Work

SPRINTER provides a practical path toward more efficient LLM inference by relaxing the requirement for exact distribution matching. While highly effective, the authors note that approximate verification can occasionally lead to information inaccuracies if the verifier is too lenient. Future research may explore slightly more complex verifier architectures and extend this sequential approximate verification to other domains like image and video generation.

Summary updated

BibTeX
@inproceedings{zhong2025speeding,
  author = {Meiyu Zhong and Noel Teku and Ravi Tandon},
  title = {{Speeding up Speculative Decoding via Approximate Verification}},
  booktitle = {ES-FoMo-III @ ICML},
  year = {2025},
  url = {https://openreview.net/forum?id=Y4KcfotBkf},
}
Figure