PosS:Position Specialist Generates Better Draft for Speculative Decoding

Langlin Huang, Chengsong Huang, Jixuan Leng, Di Huang, Jiaxin Huang

TL;DR

This paper introduces "Position Specialists" (PosS), a novel approach to accelerate Large Language Model (LLM) inference by using specialized draft models for different token positions. PosS significantly improves the accuracy of draft predictions at later positions, leading to higher token acceptance rates, longer average acceptance lengths, and ultimately, faster inference speeds compared to existing methods.

What Problem Does This Paper Address?

Speculative decoding is a powerful technique for speeding up LLM inference by using a smaller "draft" model to predict multiple tokens ahead, which are then verified in parallel by the larger "target" model. The core challenge lies in the accuracy of the draft model's predictions, especially for tokens further down the sequence. As the draft model generates tokens, errors can accumulate in its internal representations (features). Existing methods, which use a single draft model, struggle to maintain accuracy as these feature deviations grow, leading to lower token acceptance rates and diminishing speedups. This paper tackles this "error accumulation" problem by proposing a way to make draft models more robust to these deviations at later positions.

Methods

The paper introduces Position Specialists (PosS), a framework that replaces the single draft model with multiple "position specialists." Each specialist is a small, dedicated draft model trained to predict tokens at a specific position or a small range of positions within the draft sequence.

Here's how it works:

  • Position-Specialized Draft Layers: Instead of one draft model trying to handle all positions, PosS uses several. For example, PosS-1 would have one specialist for position 1, another for position 2, and so on. PosS-n means each specialist handles 'n' positions.
  • Mitigating Feature Deviation: The key insight is that feature deviation from the target model's true features increases with position. By training specialists for specific positions, each specialist only needs to handle an "expected level" of feature deviation for its assigned position, rather than the varying levels a single model would face. This allows for more accurate predictions.
  • Training: PosS employs a combination of token-level and feature-level losses. The feature-level loss specifically encourages the specialist's generated features to be close to the target model's features, further aiding in mitigating deviation. They also adopt a Top-K distillation loss from prior work for fair comparison.

Datasets

The paper evaluates PosS on six standard datasets:

  • MT-Bench: For multi-turn conversation.
  • Alpaca: For instruction following.
  • GSM8K: For mathematical reasoning.
  • Natural Questions: For question answering.
  • CNN/Daily Mail (CNN/DM): For summarization.
  • HumanEval: For code generation.

The training data for the draft models is based on the ShareGPT dataset and its distilled version.

Key Insights and Ideas

  • Position Matters: The accuracy of draft predictions degrades significantly at later positions due to accumulated errors in the draft model's internal features. This is a fundamental limitation of using a single draft model.
  • Specialization is Key: By creating position-specific draft models (specialists), each model can focus on handling a narrower, more predictable range of feature deviations, leading to much higher accuracy at those positions.
  • Pos-acc as a Metric: The paper introduces "position-wise acceptance rate" (pos-acc) as a crucial metric to analyze the quality of draft predictions at each specific position. This metric clearly shows the limitations of existing methods and the improvements offered by PosS.
  • Reduced Rounds, Not Just Faster Rounds: While PosS improves the accuracy of each draft prediction, the most significant efficiency gains come from needing fewer overall draft-verification rounds due to consistently higher acceptance rates.

Key Results

  • Improved Acceptance Length: PosS consistently achieves higher average acceptance lengths (tokens accepted per round) across various datasets and models. For example, on Llama-3-8B-Instruct, PosS-1, PosS-2, and PosS-3 achieve an average acceptance length of 4.54, 4.55, and 4.54 respectively, compared to 4.06 for EAGLE-2 and 4.39 for HASS (at Temperature=0).
  • Faster Inference: PosS leads to significant speed-up ratios. For Llama-3-8B-Instruct, PosS-2 achieves a speed-up of 2.98x, outperforming EAGLE-2 (2.68x) and HASS (2.89x). Even with Llama-2-13B-Chat, PosS-3 achieves a speed-up of 3.34x, compared to 3.01x for EAGLE-2 and 3.33x for HASS.
  • Stable Pos-acc: Figure 4 demonstrates that PosS variants maintain a high position-wise acceptance rate (pos-acc) even at deeper draft positions (up to 8), whereas EAGLE-2 and HASS see a sharp decline.

Limitations and Future Work

  • Memory Overhead: PosS requires slightly more GPU memory due to the additional position-specialized layers. However, the paper argues this overhead is minimal compared to the target model size and is outweighed by the efficiency gains.
  • KV Cache Sharing: The specialized layers cannot share their key-value cache, which contributes to the memory overhead.
  • Future Work: The paper's findings suggest that further exploring the optimal number of specialists and their responsibilities (e.g., PosS-n where 'n' is greater than 1) could lead to even better trade-offs between performance and computational cost. Investigating more sophisticated ways to manage the KV cache across specialists could also be a fruitful direction.

Summary updated

BibTeX
@inproceedings{huang2025poss,
  author = {Langlin Huang and Chengsong Huang and Jixuan Leng and Di Huang and Jiaxin Huang},
  title = {{PosS:Position Specialist Generates Better Draft for Speculative Decoding}},
  booktitle = {ER @ NeurIPS},
  year = {2025},
  url = {https://openreview.net/forum?id=0uGIo7wcX0},
}
Figure