NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

SSSD: Simply-Scalable Speculative Decoding

Michele Marzollo, Jiawei Zhuang, Niklas Roemer, Lorenz K. Müller, Lukas Cavigelli · OpenReview

TL;DR

This paper introduces SSSD (Simply-Scalable Speculative Decoding), a training-free method that significantly speeds up Large Language Model (LLM) inference by combining lightweight n-gram matching with hardware-aware speculation. SSSD achieves up to 2.9x latency reduction, matching the performance of leading training-based approaches without the associated complexity, and demonstrates superior robustness across various domains and languages.

What Problem Does This Paper Address?

Large Language Models (LLMs) are increasingly powerful but computationally expensive, posing a challenge for low-latency and cost-efficient inference, especially in production environments. While speculative decoding (SD) offers a promising solution by using a smaller "draft" model to predict future tokens, most existing methods either require a separate, trained draft model (adding deployment complexity and limiting adaptability) or fail to deliver significant speedups at practical batch sizes. This gap highlights the need for a speculative decoding approach that is both effective and easy to integrate, without the overhead of training or specialized hardware.

Methods

SSSD tackles the problem by proposing a training-free, hardware-aware speculative decoding method. The core innovation lies in its approach to generating candidate tokens:

  • Lightweight N-gram Matching: Instead of a trained draft model, SSSD uses a combination of the prompt and the model's own generated tokens (self-output) as an n-gram source. This is integrated with a large, dynamically updated text datastore.
  • Datastore: This datastore is built from any available corpus or populated during serving by storing past conversations. It uses suffix arrays for efficient retrieval of continuations for given prefixes. The datastore is continuously updated with the model's outputs, ensuring alignment and eliminating the need for precomputation.
  • Hardware-Aware Speculation: SSSD introduces a rule to dynamically adjust the speculation length (the number of candidate tokens to verify) based on the current batch size and hardware characteristics. This optimizes the trade-off between speculation overhead and verification efficiency, particularly important for batching.
  • CPU-Based Drafting: The drafting phase runs entirely on the CPU, avoiding the need for additional accelerators and simplifying deployment.

Datasets

The paper evaluates SSSD on several standard benchmarks:

  • MT-Bench: Used for evaluating conversational AI performance.
  • GSM8k: A dataset for mathematical reasoning problems.
  • HumanEval (Code): A benchmark for code generation tasks.
  • MATH-500: Used for evaluating reasoning models on math problems.
  • PG-19: Used for long-context summarization tasks.
  • German-language questions: Used to test cross-lingual adaptation.

The datastore is constructed using publicly available data, including model-generated data and general-domain language data. For multilingual experiments, data from French and Russian are also included.

Key Insights and Ideas

  • Training-Free is Viable and Effective: The paper demonstrates that a training-free approach, relying on n-grams and a datastore, can achieve performance comparable to or better than trained methods, significantly reducing adoption effort.
  • Datastore Complementarity: Combining candidates from the prompt/self-output and the external datastore provides complementary information, leading to higher speculation quality.
  • Hardware-Awareness is Crucial for Batching: Dynamically adjusting speculation length based on hardware (batch size, memory bandwidth, compute) is key to maximizing speedups in batched inference.
  • CPU-Based Drafting Simplifies Deployment: Offloading the drafting process to the CPU eliminates the need for specialized hardware, making SSSD highly deployable.
  • Robustness to Distribution Shifts: SSSD shows remarkable adaptability to new domains, languages, and even cold-start scenarios, outperforming methods that require domain-specific training.

Key Results

  • Latency Reduction: SSSD reduces latency by up to 2.9x compared to standard autoregressive decoding.
  • Performance Parity: It achieves performance on par with leading training-based approaches across a broad range of benchmarks.
  • Batching Efficiency: In continuous batching settings, SSSD achieves a 4x increase in throughput with no latency impact for short contexts, and 1.7-2x improvement in both latency and throughput for longer contexts.
  • Multilingual and Domain Adaptation: SSSD demonstrates superior robustness under language and domain shifts, and even in cold-start settings, achieving speedups of 1.6x-1.8x for lower-resource languages after just 1,000 conversations.
  • Long-Context Performance: In long-context settings, SSSD outperforms alternative methods on PG-19 and achieves up to 1.9x throughput and latency improvements over autoregressive decoding.
  • Reasoning Tasks: For reasoning models, SSSD achieves a 2.29x speedup at batch size 1 and 1.32x over the strongest alternative method, notably being the only method to achieve speedups at large batch sizes.

Limitations and Future Work

  • Mixture of Experts (MoE) Models: SSSD's performance might be affected in MoE models where increasing speculation length activates more experts, potentially increasing memory load.
  • MLA Attention: Models using MLA attention, which is compute-bound, might see limited speedups as they are less compatible with speculative decoding.
  • CPU Dependency: The drafting phase relies on CPU performance, which might limit applicability in certain deployment environments.
  • Future Work: The authors suggest further investigation into the impact of tensor parallelism communication costs and a more systematic study of cross-lingual variation drivers in speculation quality. They also highlight the potential for SSSD to align better with operational constraints of modern LLM serving.

Summary updated

BibTeX
@misc{marzollo2024sssd,
  author = {Michele Marzollo and Jiawei Zhuang and Niklas Roemer and Lorenz K. Müller and Lukas Cavigelli},
  title = {{SSSD: Simply-Scalable Speculative Decoding}},
  year = {2024},
  eprint = {2411.05894},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2411.05894},
}
Figure