paper-with-me

홈 › Papers

DistillSpec: Improving Speculative Decoding via Knowledge Distillation

2023-10-12 · Yongchao Zhou, Kaifeng Lyu, Ankit Singh Rawat, Aditya Krishna Menon, Afshin Rostamizadeh, Sanjiv Kumar, Jean-François Kagy, Rishabh Agarwal

Speculative decoding (SD) accelerates large language model inference by employing a faster draft model for generating multiple tokens, which are then verified in parallel by the larger target model, resulting in the text generated according to the target model distribution. However, identifying a compact draft model that is well-aligned with the target model is challenging. To tackle this issue, we propose DistillSpec that uses knowledge distillation to better align the draft model with the target model, before applying SD. DistillSpec makes two key design choices, which we demonstrate via systematic study to be crucial to improving the draft and target alignment: utilizing on-policy data generation from the draft model, and tailoring the divergence function to the task and decoding strategy. Notably, DistillSpec yields impressive 10 - 45% speedups over standard SD on a range of standard benchmarks, using both greedy and non-greedy sampling. Furthermore, we combine DistillSpec with lossy SD to achieve fine-grained control over the latency vs. task performance trade-off. Finally, in practical scenarios with models of varying sizes, first using distillation to boost the performance of the target model and then applying DistillSpec to train a well-aligned draft model can reduce decoding latency by 6-10x with minimal performance drop, compared to standard decoding without distillation.

📄 PDF Abstract BibTeX arXiv:2310.08461

Code (0)

등록된 구현이 없습니다.

Tasks

Knowledge DistillationLanguage ModellingLarge Language Model

Methods 이 논문이 사용한 방법론

ALIGN In the ALIGN method, visual and language representations are jointly trained from noisy image alt-text data. The image and text encoders are learned via contrastive loss…
Knowledge Distillation A very simple way to improve the performance of almost any machine learning algorithm is to train many different models on the same data and then to average their predictions.…

Similar Papers 제목 키워드 기반

AdaSPEC: Selective Knowledge Distillation for Efficient Speculative Decoders

2025-10-22 · Yuezhou Hu, Jiaxin Guo, Xinyu Feng, Tuo Zhao arxiv

Speculative Decoding (SD) accelerates large language model inference by employing a small draft model to generate predictions, which are then verified by a larger target model. The effectiveness of SD hinges on the align…

Knowledge DistillationArithmetic Reasoning

Temperature-Centric Investigation of Speculative Decoding with Knowledge Distillation

2024-10-14 · Siru Ouyang, Shuohang Wang, Minhao Jiang, Ming Zhong 외

Speculative decoding stands as a pivotal technique to expedite inference in autoregressive (large) language models. This method employs a smaller draft model to speculate a block of tokens, which the target model then ev…

Knowledge Distillation

Training Domain Draft Models for Speculative Decoding: Best Practices and Insights

2025-03-10 · Fenglu Hong, Ravi Raju, Jonathan Lingjie Li, Bo Li 외

Speculative decoding is an effective method for accelerating inference of large language models (LLMs) by employing a small draft model to predict the output of a target model. However, when adapting speculative decoding…

Knowledge Distillation

Boosting Lossless Speculative Decoding via Feature Sampling and Partial Alignment Distillation

2024-08-28 · Lujun Gui, Bin Xiao, Lei Su, WeiPeng Chen

Lossless speculative decoding accelerates target large language model (LLM) inference by employing a lightweight draft model for generating tree-structured candidates, which are subsequently verified in parallel by the t…

Knowledge DistillationLanguage ModellingLarge Language ModelMathematical Reasoning+2

Direct Alignment of Draft Model for Speculative Decoding with Chat-Fine-Tuned LLMs

2024-02-29 · Raghavv Goel, Mukul Gagrani, Wonseok Jeon, Junyoung Park 외

Text generation with Large Language Models (LLMs) is known to be memory bound due to the combination of their auto-regressive nature, huge parameter counts, and limited memory bandwidths, often resulting in low token rat…

Dataset GenerationKnowledge DistillationText Generation