atlas

Research map / Large language models / Reasoning and chain of thought

DistillSpec: Improving Speculative Decoding via Knowledge Distillation

ICLR 2024 · Large language models › Reasoning and chain of thought · approach: Speculative decoding · 4 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes DistillSpec, which distills a small draft model from a larger target model using on-policy data and tailored divergences so that speculative decoding achieves higher acceptance rates and 10-45% speedups.

Problem

Speculative decoding speedup depends on how well the small draft model's token distribution matches the large target model, and off-the-shelf small models are poorly aligned, limiting acceptance rates and wall-clock gains.

Approach

Use white-box knowledge distillation to align the draft model with the target model specifically for speculative decoding, finding that on-policy (draft-generated) data is sufficient and that the best divergence (FKL, JSD, RKL, TVD) is task- and decoding-strategy dependent; also extends to lossy SD with lenience functions and to combining distillation of the target with SD in a model garden.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
White-box KD of draft model using on-policy (draft-generated) data with target logits, versus standard SDT5 draft models for speculative decoding · XSum, CNN/DM, WMT, GSM8K, LM1Blatency speedup / block efficiency: 10-46% speedup improvementHelped
Using model-generated data (draft or target generated) for KD instead of fixed ground-truth data (Supervised KD) (ablation)draft model distillation · block efficiency across datasetsblock efficiencyHelped
Using SeqKD (black-box, teacher-sample only, no teacher logits) instead of white-box distillation (ablation)draft model distillation · block efficiencyblock efficiencyHurt
Using draft-model on-policy data for KD instead of target-generated data (ablation)draft model distillation (GKD) · XSum, GSM8Kblock efficiency / wall-time speedupNo clear effect
Directly minimizing TVD as the KD divergence (ablation)draft distillation for SD · XSum and GSM8K recipe searchblock efficiencyNo clear effect
Combining KD on target with SD using distilled draft (DistillSpec) vs raw target latencyT5 model garden, XSum · XSum Rouge2 and relative latencyrelative latency: 6.4x speedupHelped
Combining KD on target with SD using distilled draft (DistillSpec) vs raw target latencyT5 model garden, GSM8K · GSM8K accuracy and relative latencyrelative latency: 10.7x speedup; accuracy 33.1 to 34.8Helped
Distilling draft on GSM8K and transferring to 23 unseen BigBenchHard tasksT5-Small draft with T5-XL target · BigBenchHard average speedupaverage speedup: 1.93x to 2.21x (greedy); 1.78x to 2.02x (non-greedy)Helped
Lossy SD with leniency combined with distilled draft (vs. non-distilled) quality-latency trade-offGSM8K with lenience functions · GSM8K quality vs latencyquality-latency trade-offHelped
Choice of divergence (FKL, JSD, RKL, TVD) for KD is task- and decoding-dependent (ablation)draft distillation recipe · XSum greedy, GSM8K greedy and non-greedyblock efficiencyMixed

Surprising findings

Limitations

Experimental setup

Datasets: XSum CNN/DM WMT14 EnDe GSM8K LM1B BigBenchHard

Benchmarks: XSum CNN/DM WMT14 EnDe GSM8K LM1B BigBenchHard

Metrics: block efficiency acceptance rate wall-clock speedup ROUGE-2 BLEU accuracy

Baselines: standard speculative decoding SeqKD Supervised KD ImitKD f-Distill GKD

Builds on: speculative sampling generalized knowledge distillation (GKD) f-distill SeqKD lossy speculative decoding

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy