Speeding up Speculative Decoding via Sequential Approximate Verification

Meiyu Zhong, Noel Teku, Ravi Tandon

TL;DR

This paper introduces SPRINTER, a novel method to accelerate Large Language Model (LLM) inference by using a lightweight "verifier" to sequentially check tokens generated by a smaller "draft" LLM. SPRINTER significantly reduces latency and computational cost compared to existing Speculative Decoding (SD) methods, while maintaining comparable generation quality.

What Problem Does This Paper Address?

Large Language Models (LLMs) are incredibly powerful but suffer from high computational costs during inference, making them slow and expensive to use, especially for real-time applications. Speculative Decoding (SD) was proposed to speed this up by using a smaller "draft" LLM to generate candidate tokens, which are then verified by a larger "target" LLM. However, SD's reliance on parallel verification by the target LLM still creates a bottleneck, preventing it from reaching its full potential in terms of speed and efficiency. The authors aim to overcome this by proposing a method that avoids frequent, parallel calls to the expensive target LLM.

Methods

The core innovation of SPRINTER is its sequential approximate verification approach. Instead of the target LLM verifying multiple draft tokens in parallel (as in standard SD), SPRINTER employs a low-complexity verifier. This verifier is trained to predict whether a token generated by the draft LLM is likely to be accepted by the target LLM.

Here's how it works:

  1. Draft Generation: A smaller "draft" LLM generates a sequence of tokens.
  2. Sequential Verification: Each generated token is passed to the lightweight verifier.
  3. Approximate Decision: The verifier makes an approximate decision:
  4. If the verifier predicts the token is likely acceptable, it's accepted, and the draft LLM generates the next token.
  5. If the verifier predicts the token is likely unacceptable, only then is the larger "target" LLM invoked to verify and potentially correct the token.

This sequential, approximate approach drastically reduces the number of times the computationally expensive target LLM needs to be called, leading to significant speedups and cost reductions. The verifier itself is a simple classifier, making its overhead negligible.

Datasets

The authors evaluated SPRINTER on the following datasets:

  • Wiki-Summary: A collection of Wikipedia article summaries for text summarization tasks.
  • LM1B (One Billion Word Benchmark): A large corpus for language modeling and text generation.
  • Spec-Bench: A benchmark that compiles questions from various LLM evaluation datasets, covering tasks like summarization and translation.

Key Insights and Ideas

  • The "Generation-Verification Gap" is Key: The authors leverage the observation that generating a high-quality token with a large LLM is often much more computationally expensive than verifying its acceptability. SPRINTER exploits this asymmetry.
  • Approximate Verification is Sufficient for Quality: Contrary to the strict requirement of matching the target LLM's distribution in SD, SPRINTER shows that approximate verification, guided by a trained verifier, can maintain high generation quality. This is a crucial insight for achieving speedups.
  • Verifier's Statistical Properties Matter: The theoretical analysis reveals that the false-positive rate (NFP) and true-positive rate (NTP) of the verifier directly influence the trade-off between latency, computational cost, and output quality.
  • Sequential is Better than Parallel for Verification: By moving from parallel to sequential verification, SPRINTER avoids the overhead of parallel processing by the target LLM, which is a major bottleneck in traditional SD.

Key Results

  • Significant Speedups: SPRINTER achieves substantial latency reductions. For example, it achieves 1.64x speedup over standard SD on the GPT-Neo model pair and 1.83x on the GPT2 model pair for Wiki-Summary.
  • Reduced Computational Cost: SPRINTER drastically cuts down on computation. It uses 8x fewer FLOPS compared to SD for generating 20 consecutive acceptable tokens.
  • Comparable Quality: Despite the speed and efficiency gains, SPRINTER maintains generation quality comparable to standard SD. Win-tie rates (where GPT-4 judges which response is better) show SPRINTER performing nearly as well as SD, with minimal quality degradation. ROUGE scores also demonstrate this.
  • Effective Verifier: The lightweight verifier, with fewer than 1k parameters, achieves high AU-ROC scores (up to 0.9) on datasets like Wiki-Summary and LM1B, demonstrating its effectiveness.
  • Transferability: The verifier shows good generalization capabilities, performing comparably when trained on one dataset and evaluated on another.

Limitations and Future Work

  • Trade-off Management: While SPRINTER balances quality and speed, the authors acknowledge that the verifier's statistical properties (NFP, NTP) directly influence this trade-off. Fine-tuning these properties is crucial for optimal performance.
  • Verifier Training: The paper discusses verifier training methodology and architecture, suggesting that a simple linear layer is often sufficient. However, further exploration into optimal verifier architectures and training strategies could yield even better results.
  • Theoretical Analysis: The theoretical analysis provides insights into the behavior of SPRINTER, but further work could explore more complex scenarios or different theoretical frameworks for understanding the generation-verification gap.
  • Hyperparameter Tuning: The paper mentions the importance of hyperparameters like the acceptance threshold (λ) and prediction threshold (τ). While they found optimal values (e.g., λ=1.2, τ=0.5), exploring more sophisticated hyperparameter optimization techniques could be beneficial.

Summary updated

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