RepSpec: Structural Re-parameterized Draft Model Training for Speculative Decoding

Feiye Huo, Jianchao Tan, Jiahao Liu, Zixu Jiang, Jiacheng Li, Jingang Wang, Xunliang Cai, Shengli SunICLR 2026

Introduction

Large Language Models (LLMs) are notoriously slow during autoregressive inference because they are "memory-bound." To generate a single token, the hardware must load billions of parameters from memory, even though the actual mathematical operations are relatively light. Speculative Decoding (SD) addresses this by using a tiny, fast "draft model" to guess several tokens in advance. A large "target model" then verifies these guesses in a single parallel step.

However, this introduces the Draft Model Gap: if the draft model is too small, its guesses are frequently wrong, forcing the target model to discard them and redo the work. Conversely, if the draft model is enlarged to improve accuracy, it becomes too slow, negating the time savings.

To break this trade-off, researchers introduce RepSpec, a "training-time only" architectural boost. By adding redundant linear branches during training and mathematically merging them into a single layer for inference, RepSpec improves draft model accuracy—and thus overall LLM generation speed—with zero additional computational cost at runtime.

Methods: The RepSpec Approach

The authors propose two main strategies under the RepSpec framework to make the draft model "smarter" during training without making it "heavier" during inference.

1. Pure Linear Rep-parameterization

During training, every linear layer in the draft model (across both Attention and MLP blocks) is augmented with extra structures:

  • Pre/Post layers: Sequential linear layers added before and after the main layer.
  • Bypass branches: Parallel linear paths alongside the main layer.

Because these additions are strictly linear operations, they can be collapsed into a single weight matrix ($W_{new}$) after training using standard matrix algebra. This results in an inference model that is identical in structure to the baseline but possesses better-optimized weights.

RepSpec Training and Inference Architecture

2. Hybrid Method

Recognizing that non-linearity is the key to increasing a model's representational capacity, the authors also experiment with adding a tiny, non-mergeable non-linear bottleneck (using a LoRA-like structure with a ReLU activation). While this adds a negligible amount of overhead during inference, the resulting boost in guess accuracy (acceptance length) often yields a higher net speedup for the entire system.

To ensure training stability across both methods, the authors use Identity Initialization. They initialize the extra branches such that the model starts with the exact same behavior as the pre-trained baseline, preventing "gradient explosion" in the early stages of training.

Key Insights

  • The "Free Lunch" of Linear Algebra: Complex, multi-branch topologies can be used to find better local minima during optimization, and then "baked" into a simple, flat architecture for deployment.
  • Gradient Variance Reduction: Parallel "Bypass" branches act like an ensemble during training. This reduces the noise in the gradients, allowing the model to converge faster and support higher learning rates.
  • Implicit Spectral Regularization: Adding sequential "Pre/Post" layers encourages the model to find lower-rank solutions with sharper spectral decay, which typically leads to better generalization.
  • The SD Efficiency Paradox: In standard LLM serving, any extra FLOP is a penalty. However, in Speculative Decoding, the draft model is so much faster than the target model that adding a tiny bit of non-linear complexity (the Hybrid method) is a winning trade-off if it saves the target model from even one extra verification cycle.

Results and Performance

The models were trained on ShareGPT and UltraChat-200k, and evaluated across standard benchmarks including MT-bench, HumanEval, GSM8K, and Alpaca. Target models included LLaMA-3.1-8B, LLaMA-2-13B, Vicuna-7B, and LLaMA-3.3-70B.

  • Speed Gains: On LLaMA-3.1-8B, the Pure Linear method accelerated the state-of-the-art EAGLE-1 baseline by 7–10% and EAGLE-3 by 4–6% with zero inference overhead.
  • Hybrid Superiority: On larger models like LLaMA-2-13B, the Hybrid method was the clear winner. It provided a 5–9% speedup over EAGLE-1 by significantly increasing the average number of tokens accepted per guess.
Structure Ablation: Baseline vs Linear vs Hybrid

Furthermore, RepSpec proved to be highly versatile and "plug-and-play." The authors successfully integrated it into multiple different speculative decoding architectures, including EAGLE, Medusa, and Hydra, observing consistent improvements across the board.

Limitations and Future Work

While inference is "free," training is not. RepSpec increases the number of trainable parameters and the size of the computational graph during the training phase, leading to higher GPU memory usage and slower training steps. Additionally, the authors noted that RepSpec requires doubling the learning rate compared to baseline training to see the full benefits, which might require extra hyperparameter tuning for new architectures.

Looking ahead, the authors suggest applying these principles to Multi-Token Prediction (MTP), a newer paradigm where models are trained from scratch to predict multiple future tokens, potentially moving the benefits of RepSpec even earlier into the model's lifecycle.

Summary updated

BibTeX
@inproceedings{huo2026repspec,
  author = {Feiye Huo and Jianchao Tan and Jiahao Liu and Zixu Jiang and Jiacheng Li and Jingang Wang and Xunliang Cai and Shengli Sun},
  title = {{RepSpec: Structural Re-parameterized Draft Model Training for Speculative Decoding}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=bqEi97qzzz},
}
Figure