Organizations: Key Laboratory of Multimedia Trusted Perception and Efficient Computing, Ministry of Education of China, Xiamen University, 361005, P.R. China · Institute of Artificial Intelligence (TeleAI), China Telecom · Shanghai Innovation Institute · University of Science and Technology of China (USTC)
Speculative decoding accelerates LLM inference but suffers from performance degradation when target models are fine-tuned for specific domains. A naive solution is to retrain draft models for every target model, which is costly and inefficient. To address this, we introduce a parameter- and data-efficient framework named Efficient Draft Adaptation, abbreviated as EDA, for efficiently adapting draft models. EDA introduces three innovations: (1) a decoupled architecture that utilizes shared and private components to model the shared and target-specific output distributions separately, enabling parameter-efficient adaptation by updating only the lightweight private component;(2) a data regeneration strategy that utilizes the fine-tuned target model to regenerate training data, thereby improving the alignment between training and speculative decoding, leading to higher average acceptance length;(3) a sample selection mechanism that prioritizes high-value data for efficient adaptation. Our experiments show that EDA effectively restores speculative performance on fine-tuned models, achieving superior average acceptance lengths with significantly reduced training costs compared to full retraining. Code is available at https://github.com/Lyn-Lucy/Efficient-Draft-Adaptation.
Figures & tables
Figure 1: The comparison of average acceptance length on GSM8K under different draft-target pairings. We refer to the target models as TBase (Qwen2.5-7B) and TMath (Qwen2.5-Math-7B). The target model TBase ’s draft model DBase achieves high average acceptance length when paired together ( DBase→TBase ), while suffers a substantial acceptance drop when paired with TMath ( DBase→TMath ). Our EDA framework can restore performance through efficient, lightweight adaptation.
Figure 2: The EDA framework for efficient draft model adaptation, combining shared–private draft decomposition, domain-specific self-generation, and representation-shift–based data selection to restore speculative decoding performance with minimal training cost.
GSM8K
AIME_2024
SVAMP
Hendrycks-MATH
MathQA
Avg
Method
τ
Speedup
τ
Speedup
τ
Speedup
τ
Speedup
τ
Speedup
τ
Speedup
Temperature T=0
Training-Free
1.17
0.85 ×
1.18
0.76 ×
1.19
0.85 ×
1.20
0.82 ×
1.23
0.91 ×
1.19
0.84 ×
Full-FT
4.37
2.88 ×
5.05
3.14 ×
4.40
2.91 ×
4.98
3.23 ×
4.66
3.19 ×
4.69
3.07 ×
LoRA
4.32
2.84 ×
4.90
2.93 ×
4.36
2.75 ×
4.92
3.18 ×
4.55
3.00 ×
4.61
2.94 ×
EDA (Base)
4.40
2.89 ×
5.02
3.12 ×
4.42
2.92 ×
5.00
3.24 ×
4.70
3.16 ×
4.71
3.07 ×
Table 1: Main results on five math tasks (GSM8K, AIME_2024, SVAMP, Hendrycks-MATH, MathQA) on Qwen2.5-Math-7B target model [ 39 ] . We report average acceptance length τ and decoding speedup.
HumanEval
APPS
BigCodeBench
HumanEval+
MBPP
Avg
Method
τ
Speedup
τ
Speedup
τ
Speedup
τ
Speedup
τ
Speedup
τ
Speedup
Temperature T=0
Training-Free
1.75
1.21 ×
1.69
1.14 ×
1.74
1.24 ×
1.74
1.08 ×
1.85
1.21 ×
1.75
1.18 ×
Full-FT
4.79
3.10 ×
4.87
2.91 ×
3.66
2.38 ×
4.70
2.62 ×
4.93
2.82 ×
4.59
2.76 ×
LoRA
4.70
3.05 ×
4.80
2.88 ×
3.60
2.35 ×
4.62
2.58 ×
4.78
2.76 ×
4.50
2.72 ×
EDA (Base)
4.75
3.08 ×
4.92
2.90 ×
3.68
2.40 ×
4.72
2.63 ×
4.90
2.80 ×
4.59
2.76 ×
Table 2: Main results on five code tasks (HumanEval, APPS, BigCodeBench, HumanEval+, MBPP) on Qwen2.5-Coder-7B target model [ 14 ] . We report average acceptance length τ and decoding speedup.
MedMCQA
MedQA-USMLE
PubMedQA
MedQA
MMLU
Avg
Method
τ
Speedup
τ
Speedup
τ
Speedup
τ
Speedup
τ
Speedup
τ
Speedup
Temperature T=0
Training-Free
2.20
1.47 ×
2.17
1.40 ×
1.92
1.29 ×
2.14
1.29 ×
2.33
1.49 ×
2.15
1.39 ×
Full-FT
3.97
2.35 ×
3.97
2.28 ×
3.86
2.34 ×
3.97
2.35 ×
3.67
3.03 ×
3.89
2.47 ×
LoRA
3.85
2.30 ×
3.90
2.25 ×
3.78
2.18 ×
3.92
2.28 ×
3.50
2.80 ×
3.79
2.36 ×
EDA (Base)
3.95
2.33 ×
3.94
2.26 ×
3.85
2.32 ×
3.96
2.34 ×
3.66
3.00 ×
3.87
2.45 ×
Table 3: Main results on five medical tasks (MedMCQA, MedQA-USMLE, PubMedQA, MedQA, MMLU) on Meditron3-Qwen2.5-7B target model [ 27 ] . We report average acceptance length τ and decoding speedup.
Figure 3: Comparison of different data selection strategies under varying data budgets. Draft adaptation from Qwen2.5-7B to Qwen2.5-Math-7B , measured on 4 × NVIDIA H200 GPUs; τ is evaluated on GSM8K under this setup.
Method
Trainable Size (MB)
Training Time (h)
Avg. Acceptance ( τ )
Re-Train
462
5.1
4.22
EDA
127 (27.5%)
2.0 (39.2%)
4.79 (+13.5%)
Table 4: Overhead analysis on math transfer. We follow the same experimental setup as in Sec. 5.3 .
Figure 4: Qualitative example comparing direct transfer and EDA-adapted drafts on Qwen2.5-Coder-7B. Red tokens indicate incorrect predictions, while black tokens indicate correct predictions.
State Key Laboratory for Novel Software Technology, Nanjing University · School of Artificial Intelligence, Nanjing University · Huawei Foundation Model Dept