T2D: Target-to-Draft Model Pruning & Adaptation for Efficient Speculative Decoding
Organizations: Bellini College of AI, Cybersecurity, and Computing, University of South Florida · School of Computing and Augmented Intelligence, Arizona State University · Department of Computer Science, University of California, Davis
Abstract
Speculative decoding significantly accelerates autoregressive text generation in Large Language Models (LLMs), but its efficacy depends largely on two key factors: the distributional alignment between the draft and the target model, and the draft model's latency during inference. However, existing approaches typically utilize independently pretrained small draft models or seek to prune the target model to a manually chosen architecture, thereby failing to explicitly balance the trade-off between draft model alignment and token generation efficiency. To address this gap, we formulate draft model design as an optimization problem and propose T2D, a framework that constructs draft models directly from the target model using latency-aware structured pruning and knowledge distillation. In this manner, T2D obtains draft models that are jointly optimized for both measured inference latency and cross-entropy loss on the target model's responses, resulting in superlative speculative decoding performance. Through extensive experiments on multi-domain speculative decoding benchmarks and across several target model families of differing scale, we demonstrate how T2D prunes up to 92% of the target model to obtain highly performant draft models compared to competitive baselines. Moreover, draft models obtained via T2D can also be utilized by other speculative decoding token-alignment and knowledge distillation methods in a plug-and-play fashion, leading to further gains. Our findings underscore the importance of jointly navigating the draft model architecture-alignment frontier to unlock the full potential of speculative decoding for LLMs.
Figures & tables
| Target Model | Draft | Code | Hum. | Math | Multilin. | QA | RAG | Reason. | Role. | Stem | Summ. | Writing | Overall |
| Llama-2-7B-Chat | ShortGPT | 1.72 | 1.30 | 1.57 | 1.46 | 1.06 | 1.57 | 1.66 | 1.20 | 1.43 | 1.41 | 1.41 | 1.45 |
| Wide | 1.82 | 1.46 | 1.74 | 1.83 | 1.34 | 1.63 | 1.73 | 1.25 | 1.58 | 1.43 | 1.50 | 1.59 | |
| T2D | 1.98 | 1.59 | 1.92 | 2.03 | 1.46 | 1.79 | 1.90 | 1.35 | 1.72 | 1.60 | 1.62 | 1.74 | |
| Vicuna-13B-v1.5 | ShortGPT | 1.95 | 1.66 | 1.82 | 2.22 | 1.40 | 1.74 | 1.86 | 1.30 | 1.70 | 1.73 | 1.62 | 1.74 |
| Wide | 2.06 | 1.67 | 1.92 | 2.22 | 1.44 | 1.79 | 1.91 | 1.33 | 1.72 | 1.74 | 1.66 | 1.78 | |
| T2D | 2.13 | 1.79 | 1.99 | 2.46 | 1.47 | 1.97 | 2.04 | 1.39 | 1.83 | 1.88 | 1.73 | 1.89 |
| Draft Model | Speedup |
| ShortGPT | 1.43 |
| Wide | 1.59 |
| T2D | 1.79 |
| Draft Model | Size (B) | Speedup |
| Sheared-Llama-1.3B-ft | 1.27 | 1.18 |
| T2D | 0.86 | 1.74 |
Appendix figures & tables11 assets
Supplementary material from the paper’s appendix.
Appendix
| Code | Hum. | Math | Multilin. | QA | RAG | Reason. | Role. | STEM | Summ. | Writing | Total |
| 80 | 80 | 80 | 80 | 80 | 71 | 51 | 48 | 80 | 78 | 70 | 798 |
| Target Model | Total Response Tokens (B) | Avg. Response Length |
| Llama-2-7B-Chat | 0.147 | 588 |
| Vicuna-13B-v1.5 | 0.144 | 577 |
| Qwen2.5-7B-Instruct | 0.142 | 567 |
| Qwen3-14B | 0.144 | 577 |
| Nemotron-32B | 0.147 | 588 |
| Hyperparameter | Value |
| Target modules | Layers, attention heads, FFN channels |
| Reference CE loss ( ) | |
| Cross-entropy loss weight ( ) | |
| Latency loss weight ( ) | |
| Joint optimization epochs | |
| Continual fine-tuning epochs |
| T2D Draft Model | Params (B) | Layers | Hidden Size | Num Heads | FFN Size |
| Llama-2-7B-Chat | 0.86 | 3 | 4096 | 32 | 10752 |
| Vicuna-13B-v1.5 | 1.21 | 4 | 4480 | 35 | 11264 |
| Qwen2.5-7B-Instruct | 1.54 | 2 | 3584 | 28 | 18432 |
| Qwen3-14B | 2.20 | 2 | 5120 | 40 | 16896 |
| Nemotron-32 | 2.51 | 2 | 5120 | 40 | 27136 |
| Draft Model | Size (B) | Code | Hum. | Math | Multilin. | QA | RAG | Reason. | Role. | Stem | Summ. | Writing | Overall |
| Sheared-Llama-1.3B-ft | 1.27 | 1.32 | 1.11 | 1.29 | 1.16 | 0.90 | 1.36 | 1.40 | 1.12 | 1.20 | 0.73 | 1.27 | 1.18 |
| T2D | 0.86 | 1.98 | 1.59 | 1.92 | 2.03 | 1.46 | 1.79 | 1.90 | 1.35 | 1.72 | 1.60 | 1.62 | 1.74 |
| Prompt | T2D Draft Model Response (excerpt) | Observation |
| How are you? | I’m just an AI, I don’t have personal experiences or emotions, so I don’t have a physical body or a specific situation. However, I can provide information on a wide range of topics, including but not limited to: 1. Travel and exploration: I can provide information on different cultures, languages, and landscapes, and I can also provide information on different cultures and landscapes. 2. Culture and traditions: I can provide information on different cultures and traditions […] | Relevant and appropriate framing (correctly disclaims lacking emotions) repetition. |
| What is the capital of France? | The capital of France is Paris. | Fully correct and relevant; concise factual answer. |
| Can you help me in my study? | Of course! I’d be happy to help you in your study. Here are some steps you can take to help me improve my study skills: 1. Identify the type of study: Determine which type of study you want to focus on, such as studies that you want to study for a specific purpose or subject. 2. Research the topic: Identify the topic or subject you want to focus on, such as the impact of social media on mental health […] | Relevant and largely coherent, giving actionable study advice. |
| What is a computer? | A computer is a type of computer that is designed to perform specific tasks, such as image processing, data analysis, and machine learning. It is typically used in a variety of applications, including: 1. Image processing: A computer can process images, such as images of objects, scenes, or time-series data, and can be used to perform tasks such as image compression, feature extraction, and image processing […] | Topically relevant (stays within computing/AI applications) but the core definition is circular. |
| What is Artificial Intelligence? | Artificial Intelligence (AI) is a rapidly growing field that has the potential to revolutionize various industries, including healthcare, finance, transportation, and education. Here are some of the key aspects of AI: 1. Machine Learning: AI systems can be used to analyze large datasets, identify patterns, and make predictions, and optimize them for better decision-making. 2. Natural Language Processing (NLP): AI systems can be used to analyze large amounts of text data, such as customer reviews, marketing campaigns, and customer feedback, to understand their context and make more informed decisions […] | Correct and directly relevant; accurately defines AI and enumerates coherent, describes the subfields (ML, NLP), demonstrating strong topical grounding. |
Speculative Decoding
Speculative decoding accelerates generation by drafting multiple tokens and verifying them in parallel with a larger target model.
See all 308 papers