Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Sparse Logit Sampling: Accelerating Knowledge Distillation in LLMs

About

Knowledge distillation can be a cost-effective technique to distill knowledge in Large Language Models, if the teacher output logits can be pre-computed and cached. However, successfully applying this to pre-training remains largely unexplored. In this work, we prove that naive approaches for sparse knowledge distillation such as caching Top-K probabilities, while intuitive, provide biased estimates of teacher probability distribution to the student, resulting in suboptimal performance and calibration. We propose an importance-sampling-based method `Random Sampling Knowledge Distillation', which provides unbiased estimates, preserves the gradient in expectation, and requires storing significantly sparser logits. Our method enables faster training of student models with marginal overhead (<10%) compared to cross-entropy based training, while maintaining competitive performance compared to full distillation, across a range of model sizes from 300M to 3B.

Anshumann, Mohd Abbas Zaidi, Akhil Kedia, Jinwoo Ahn, Taehwak Kwon, Kangwook Lee, Haejun Lee, Joohyung Lee• 2025

Related benchmarks

TaskDatasetResultRank
Language ModelingLAMBADA (test)--
71
Instruction FollowingSelfInst--
50
Instruction FollowingIFEval (test)
IFEval Score20.9
45
Instruction FollowingDolly
Score71.3
18
Instruction FollowingVicuna
Score58.2
18
General Knowledge EvaluationGeneral-purpose benchmarks average (test)
Accuracy64.7
12
Language ModelingFineweb-edu distillation 8B to 300M
LM Loss2.74
7
Speculative DecodingFineweb-edu distillation 8B to 300M
Spec. Accept %62
7
Instruction FollowingInstruction Following SFT 1.0 (eval)
SFT Score59.4
6
Language ModelingFineweb-edu 1.0 (test)
LM Loss2.32
6
Showing 10 of 18 rows

Other info

Follow for update