Efficiently Aligning Draft Models via Parameter- and Data-Efficient Adaptation

Luxi Lin, Zhihang Lin, Zhanpeng Zeng, Yuhao Chen, Qingyu Zhang, Jixiang Luo, Xuelong Li, Rongrong Ji

TL;DR

Speculative decoding significantly accelerates LLM inference, but its efficiency plummets when target models are fine-tuned for specialized domains. This paper introduces EDA (Efficient Draft Adaptation), a parameter- and data-efficient framework that rapidly realigns draft models to fine-tuned targets. By updating only a lightweight "private" expert on a small subset of target-selected data, EDA restores speculative decoding speedups while slashing training costs by roughly 60% compared to full retraining.

What Problem Does This Paper Address?

Speculative decoding is a popular lossless acceleration technique where a small, fast "draft" model proposes candidate tokens, and a large "target" model verifies them in parallel. This works beautifully—provided the draft model's output distribution closely matches the target's.

However, in real-world deployments, base LLMs are frequently subjected to Supervised Fine-Tuning (SFT) for specific domains like mathematics, coding, or medicine. This fine-tuning drastically shifts the target model's distribution. As a result, the original draft model becomes misaligned, causing the average acceptance length ($\tau$) of tokens to drop sharply, which destroys the inference speedup. Retraining a monolithic draft model from scratch for every single fine-tuned target model is computationally prohibitive. EDA tackles this bottleneck by making draft model adaptation both parameter- and data-efficient.

Average acceptance length drop and recovery across different draft-target pairings.

Methods

The EDA framework introduces three main innovations to adapt draft models with minimal overhead:

  1. Shared-Private Gated Draft Architecture: Instead of modifying the entire draft model, EDA decouples the feed-forward networks (FFNs) within the Transformer blocks into a two-expert mixture. A Shared Expert is frozen and retains general language regularities, while a lightweight Private Expert is trained to capture domain-specific shifts. A learnable gating mechanism dynamically balances their contributions.
  2. Domain-Specific Self-Generation: Traditional draft models are trained on static ground-truth datasets. EDA forces the fine-tuned target model to autoregressively generate its own training completions. Training the draft model to mimic the target's actual generation trajectory eliminates the objective mismatch between training and runtime speculative decoding.
  3. Representation-Shift-Based Data Selection: To minimize data requirements, EDA introduces a training-free data selection strategy. It extracts the target model's hidden states during self-generation, applies Principal Component Analysis (PCA), and computes a Mahalanobis distance score against a general reference dataset. Only the top-K highest-deviation (most informative) samples are used to train the private expert.
Overview of the EDA framework showing the shared-private architecture, self-generation, and data selection.

Datasets

The authors evaluated EDA across three distinct specialized domains using a unified budget of 68,000 training samples per domain:

  • Base Pre-training: ShareGPT.
  • Mathematical Reasoning: Adapted using DeepMath-103K; evaluated on GSM8K, AIME2024, SVAMP, Hendrycks-MATH, and MathQA.
  • Code Generation: Adapted using Magicoder-Evol-Instruct-110K; evaluated on HumanEval, APPS, BigCodeBench, HumanEval+, and MBPP.
  • Medical Question Answering: Adapted using an extracted English medical QA dataset; evaluated on MedMCQA, MedQA-USMLE, PubMedQA, MedQA, and MMLU.

The target models utilized were from the Qwen2.5-7B family (Base, Math, Coder) and Meditron3-Qwen2.5-7B.

Key Insights and Ideas

  • Distribution Overlap Exploitation: Fine-tuned models do not completely rewrite their base language capabilities; they primarily alter formatting, style, and domain-specific logic. Reusing general knowledge via a frozen shared expert prevents catastrophic forgetting and drastically reduces the parameter footprint.
  • Alignment Trumps Capacity: Simply training a draft model on raw domain text is suboptimal. Aligning the draft model's training objective with the target model's specific generation path yields significantly higher token acceptance rates than increasing the draft model's capacity.
  • Data Specialization Manifests in Hidden States: Domain specialization causes structured shifts in the target model's representation space. Measuring these shifts via Mahalanobis distance allows engineers to discard redundant data, achieving performance saturation with only 50% of the training data budget.

Key Results

  • Superior Token Acceptance: On the GSM8K math benchmark (greedy decoding), a base draft model paired with a math target model achieves an average acceptance length of just 1.17. EDA restores this to 4.79, outperforming both full fine-tuning (4.37) and LoRA (4.32).
  • Substantial Speedups: Under greedy decoding ($T=0$), EDA delivers end-to-end wall-clock speedups of up to 3.27$\times$ in math, 3.11$\times$ in coding, and 2.66$\times$ in medical domains.
  • Drastically Reduced Overhead: For math domain transfer, EDA requires updating only 127 MB of parameters compared to 462 MB for full retraining. This slashes training time from 5.1 hours down to 2.0 hours (a 60.8% reduction in computational cost).

Limitations and Future Work

  • Model Family Dependency: The evaluation is restricted to variants within the Qwen2.5 architecture. The framework's efficacy when transferring across entirely different model families remains unverified.
  • Preprocessing Step: The representation-shift data selection requires an offline pass to calculate the mean and covariance matrix of a general reference dataset, adding a minor initial setup overhead.
  • Future Directions: The authors suggest extending this shared-private architecture to support multi-task speculative decoding, where a single draft model could dynamically route tokens to different private experts depending on the domain of the incoming prompt.

Summary updated

BibTeX
@inproceedings{lin2026efficiently,
  author = {Luxi Lin and Zhihang Lin and Zhanpeng Zeng and Yuhao Chen and Qingyu Zhang and Jixiang Luo and Xuelong Li and Rongrong Ji},
  title = {{Efficiently Aligning Draft Models via Parameter- and Data-Efficient Adaptation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=OTKY3Ftw6B},
}
Figure