EasySpec: Layer-Parallel Speculative Decoding for Efficient Multi-GPU Utilization

Yize Wu, Ke Gao, Ling Li, Yanjun Wu

Introduction

Large Language Model (LLM) inference is fundamentally limited by its auto-regressive nature, where tokens are generated sequentially, one at a time. Speculative decoding has emerged as a leading solution to this bottleneck, employing a small "draft" model to predict a sequence of tokens that a larger "base" model then verifies in a single parallel pass. However, a significant inefficiency persists in multi-GPU environments: while the massive base model utilizes Tensor Parallelism (TP) to distribute work across all available GPUs, the tiny draft model is often too small to benefit from high TP degrees. Spreading a small model across many GPUs frequently introduces communication overhead that outweighs the computation gains, leading to a scenario where most GPUs sit idle during the drafting phase.

EasySpec introduces a novel "layer-parallel" approach to speculative decoding designed specifically to eliminate this GPU idling. By breaking the sequential dependencies of the draft model's layers, EasySpec allows multiple layers to execute simultaneously across different GPUs, achieving up to a 4.17x speedup over vanilla decoding without requiring any additional training or fine-tuning.

The Multi-GPU Bottleneck

In standard speculative decoding, the draft model must finish its entire prediction sequence before the base model begins verification. In a cluster of eight GPUs, the base model might use all eight (TP=8). However, the draft model might only run efficiently on one (TP=1). This means seven expensive GPUs remain idle while the draft model works. EasySpec addresses this by repurposing those idle resources to execute draft model layers in parallel rather than in sequence.

Methodology

EasySpec achieves concurrency through three primary technical innovations:

1. Fuzzy Speculation

Traditionally, Transformer layers must run sequentially (Layer $i$ must complete before Layer $i+1$ begins). EasySpec challenges this by observing that hidden states between consecutive layers in a Transformer often exhibit high cosine similarity. By utilizing the same input hidden state for a block of $N$ layers, EasySpec can run those layers simultaneously across different GPUs. While this "fuzzy" approximation introduces minor errors, it drastically reduces the latency of the drafting phase.

2. Bonus Calibration

To prevent approximation errors from "Fuzzy Speculation" from accumulating and degrading the draft's quality, EasySpec introduces a calibration mechanism. Once the base model verifies the proposed tokens, the draft model performs a single, precise sequential pass using the accepted tokens. Because this step processes all accepted tokens in parallel, its latency is negligible—essentially the cost of processing a single token. This step "resets" the Key-Value (KV) cache with exact values, ensuring the next round of speculation begins from a high-fidelity state.

3. Tree Attention

EasySpec integrates tree-based speculation, allowing the draft model to propose multiple potential token paths simultaneously. This increases the probability that the base model will find a valid sequence to accept, further boosting the effective tokens-per-second.

Experimental Evaluation

The researchers evaluated EasySpec across a diverse suite of benchmarks, including MMLU (general knowledge), HumanEval (coding), MATH (reasoning), and Spec-Bench (speculative performance). Testing was conducted on mainstream open-source model families such as Llama-3 (8B/70B), Llama-3.3 (70B), and Qwen2 (7B/72B) using NVIDIA A100 GPUs.

Key Results

  • Total Throughput: EasySpec achieved a peak speedup of 4.17x compared to standard auto-regressive decoding.
  • Drafting Acceleration: By utilizing idle GPUs, the drafting stage itself was accelerated by up to 1.62x.
  • Accuracy and Robustness: Despite the "fuzzy" nature of the parallel layers, the speculation acceptance rate dropped by a maximum of only 7%. The speed gains from parallelism significantly outweighed this minor reduction in per-step efficiency.
  • Deployment: As a training-free, plug-and-play method, EasySpec can be integrated into existing inference pipelines immediately.

Discussion and Future Work

The core insight of EasySpec is that for speculative drafting, speed is often more valuable than precision. A "good enough" draft produced rapidly is more efficient for total system throughput than a perfect draft produced slowly.

While the current implementation shows significant gains on A100 systems, future work will explore how different hardware interconnects (like H100s or InfiniBand) affect the acceleration ratio. Additionally, the authors noted that the first and last layers of models are more sensitive to approximation; future iterations of EasySpec may employ more granular, non-uniform parallelization strategies to further optimize the balance between "fuzziness" and speed.

Summary updated

BibTeX
@inproceedings{wu2025easyspec,
  author = {Yize Wu and KE GAO and Ling Li and Yanjun Wu},
  title = {{EasySpec: Layer-Parallel Speculative Decoding for Efficient Multi-GPU Utilization}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=RGUcF6pIZN},
}
Figure