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

FastDraft: How to Train Your Draft

Ofir Zafrir, Igor Margulis, Dorin Shteyman, Shira Guskin, Guy BoudoukhACL 2025

Abstract

FastDraft is an efficient pipeline for training and aligning custom "draft" models to accelerate Large Language Model (LLM) inference via speculative decoding. By using a combination of strategic pre-training and alignment with synthetic data, the authors can produce high-quality draft models in under 24 hours that deliver up to 2x real-world speedups on consumer hardware like AI-PCs.

Introduction

Large Language Models (LLMs) are notoriously slow during inference because they generate text one token at a time, a process limited by memory bandwidth rather than raw computing power. Speculative Decoding (SD) offers a solution: a tiny, fast "draft" model guesses the next few tokens, and the large "target" model verifies them all at once in parallel.

However, SD has a major bottleneck: the draft model must share the exact same vocabulary as the target model. Because most popular LLMs (like Llama-3 or Phi-3) use unique, incompatible vocabularies, researchers often lack off-the-shelf draft models. Existing methods to create them are either computationally expensive or require complex architectural changes. FastDraft aims to make "building your own draft" accessible, fast, and hardware-efficient.

Methods

The authors propose a three-stage training recipe:

  1. Efficient Pre-training: Instead of training for trillions of tokens, draft models only need a few billion tokens (e.g., 5BT–10BT) to become effective speculators.
  2. Continued Pre-training (CP): To handle specialized tasks like coding, pre-training is extended using a mixture of natural language and code. A balanced mix is superior to training on code alone, as it prevents the model from forgetting natural language patterns.
  3. Target-Draft Alignment: This is the "secret sauce." The draft model is fine-tuned using Knowledge Distillation (KD).
  4. Sequence-level KD: The draft is trained on synthetic responses generated by the target model itself.
  5. Token-level KD: The draft learns from the target model's probability distributions (logits). To save memory, only a small subset of the most significant logits (top-k) is used, reducing dataset size by 6x–9x.
Figure 2: Block efficiency improvement through continued pre-training with mixed code and text data.

Key Insights and Results

Alignment and Data Strategy

For a draft model, mimicking the target model's specific distribution is more important than being a "smart" model on its own. Training on the target's synthetic output yielded better speculative performance than training on high-quality human data. Furthermore, performance gains from pre-training start to diminish after 5 billion tokens, making 5BT an ideal trade-off between training time and speculative accuracy.

As shown in Figure 2, maintaining a balance of text and code during continued pre-training is vital. Pure code training can degrade performance on general text tasks like summarization (CNN-DailyMail) or instruction following (Dolly), whereas a mixed approach maintains or improves performance across all domains.

Hardware-Aware Architecture and Scaling

In hardware-aware experiments, the authors found that increasing the number of layers (depth) increases latency much more significantly than increasing the hidden dimension (width). To keep the draft fast, it is better to design "wider and shallower" architectures.

Figure 1: Speculative performance (MBSU) for 50M and 120M draft models across various datasets.

Performance Benchmarks

  • Speed: The entire pipeline takes less than 24 hours on a single server with 8 Intel Gaudi 2 accelerators.
  • Real-World Gains: On an Intel Core Ultra (AI-PC), FastDraft achieved a 2x wall-clock speedup for code completion and a 1.5x speedup for summarization.
  • Efficiency: The draft models (50M to 150M parameters) are 32x to 76x smaller than their targets. Figure 1 illustrates that even at 50M parameters, the models achieve high Mean Block Size Units (MBSU) across diverse datasets.
  • Acceptance Rate: Alignment through synthetic data and KD improved the token acceptance rate by up to 10% on instruction-following tasks.

Conclusion

FastDraft demonstrates that high-performance draft models can be trained rapidly and efficiently. By prioritizing alignment with the target model and utilizing mixed-domain continued pre-training, researchers can significantly accelerate LLM inference on consumer-grade hardware without the need for massive computational resources.

Summary updated

BibTeX
@inproceedings{zafrir2025fastdraft,
  author = {Ofir Zafrir and Igor Margulis and Dorin Shteyman and Shira Guskin and Guy Boudoukh},
  title = {{FastDraft: How to Train Your Draft}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
}
Figure