Papers › Distilling the Knowledge in a Neural Network

Distilling the Knowledge in a Neural Network

9 Mar 2015arXiv:1503.02531archive 2025-07-28

Geoffrey Hinton, Oriol Vinyals, Jeff Dean

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. Unfortunately, making predictions using a whole ensemble of models is cumbersome and may be too computationally expensive to allow deployment to a large number of users, especially if the individual models are large neural nets. Caruana and his collaborators have shown that it is possible to compress the knowledge in an ensemble into a single model which is much easier to deploy and we develop this approach further using a different compression technique. We achieve some surprising results on MNIST and we show that we can significantly improve the acoustic model of a heavily used commercial system by distilling the knowledge in an ensemble of models into a single model. We also introduce a new type of ensemble composed of one or more full models and many specialist models which learn to distinguish fine-grained classes that the full models confuse. Unlike a mixture of experts, these specialist models can be trained rapidly and in parallel.

PaperPDFCodeCode Syntology ran

In Syntology View this paper on Syntology: its repositories, every harvested function with whether it ran, its licence and the call to fetch it.

Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="1503.02531")

Code

Syntology Ran 16 of 37 code samples harvested from 14 repositories linked to this paper; 21 have no recorded run. Of those that ran: 6 ran · honoured contract; 8 ran · our draft was wrong; 1 ran · fixture could not drive it; 1 ran with no contract checked.

By repository: community (archive-listed): 36 samples from 14 repositories, 16 ran; 1 identical to code first harvested elsewhere. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

64 repositories listed; official and paper-mentioned ones first.

Adlik/model_optimizer mentioned on GitHubpytorchApache-2.0 report
DunZhang/KnowledgeDistillation mentioned on GitHubpytorch report
KaiyuYue/mgd mentioned on GitHubpytorch report
NeelayS/Knowledge-Distillation mentioned on GitHubpytorch report
altndrr/persona mentioned on GitHubpytorchMIT report
aquvitae/aquvitae mentioned on GitHubtfMIT report
elasticdeeplearning/edl mentioned on GitHubpaddleApache-2.0 report
franknb/Text-Summarization mentioned on GitHub report
generation21/generation6011 mentioned on GitHubpytorch report
haysacks/spot-the-coin mentioned on GitHubtf report
hunto/image_classification_sota mentioned on GitHubpytorch report
jaychoi12/LG_KD mentioned on GitHubpytorch report
jchen98/compression mentioned on GitHubtf report
kaiyangzhou/on-device-dg mentioned on GitHubpytorchNOASSERTION report
knotgrass/Knowledge-Distillation mentioned on GitHubpytorchMIT report
markliou/model_distillation mentioned on GitHubtfMIT report
mckunkel/DistillingObjectDetector mentioned on GitHubMIT report
mkavim/finetune_bert mentioned on GitHubtf report
paddlepaddle/edl mentioned on GitHubpaddleApache-2.0 report
robertjkeck2/EmoNet mentioned on GitHub report
robertjkeck2/EmoTe mentioned on GitHub report
robertjkeck2/pwdl mentioned on GitHub report
satyakees/FaultNet mentioned on GitHubpytorch report
scy-x/d3still mentioned on GitHubpytorch report
see--/speech_recognition mentioned on GitHubtf report
shinome551/select_with_distillation mentioned on GitHubpytorch report
stdereka/knowledge-distillation mentioned on GitHubpytorch report
sungnyun/LG-knowledge-distillation mentioned on GitHubpytorch report
t0nyliang/EEGMobile mentioned on GitHubpytorch report
thaonguyen19/modeldistillation-pytorch mentioned on GitHubpytorch report
trqminh/knowledge-distillation mentioned on GitHubpytorch report
varungumma/fairseq mentioned on GitHubpytorch report
vrvlive/knowlege-distillation mentioned on GitHubpytorch report
wannabeOG/ExpertNet-Pytorch mentioned on GitHubpytorch report
yell/kaggle-camera mentioned on GitHubpytorchMIT report
yoshitomo-matsubara/torchdistill mentioned on GitHubpytorch report
yurangja99/Pytorch-Sketch-RNN mentioned on GitHubpytorch report
yzd-v/cls_KD mentioned on GitHubpytorchApache-2.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

37 samples harvested; 16 ran; 6 honoured the contract we drafted; 21 have no recorded run. Read from Syntology's graph 2026-09-25; that is when this build read the record, not when the samples ran.

6ran · honoured contract
8ran · our draft was wrong
1ran · fixture could not drive it
1ran
21unverified

Licence: 10 of the 37 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 14 repositories linked to this paper, official or community; each sample names its own and says which. Some samples are identical code Syntology first harvested from another repository; for those, this paper's copy is not located and its licence is not recorded. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

compute_accuracy yoshitomo-matsubara/torchdistill/examples/torchvision/image_classification.py community (archive-listed) ran · fixture could not drive it MIT (permissive) · a427a6169de8f607 · report
compute_mean_and_std MasLiang/Learning-without-Forgetting-using-Pytorch/dataset.py community (archive-listed) ran · honoured contract no licence file found · pointer only · 2cbf06e40dbf54ee · report
conv_block wonbeomjang/Knowledge-Distilling-PyTorch/models.py community (archive-listed) ran · our draft was wrong MIT (permissive) · 0a330946ecfac712 · report
d3_loss scy-x/d3still/AIR_Distiller/distillers/D3.py community (archive-listed) ran · our draft was wrong fingerprinted no licence file found · pointer only · 274528b19a06a729 · report
eval_epoch stdereka/knowledge-distillation/training.py community (archive-listed) ran · honoured contract MIT (permissive) · 7308ca9b35a3b212 · report
fetch_teacher_outputs KellyYutongHe/Knowledge-Distillation-Net-with-Swish/kd.py community (archive-listed) ran · honoured contract no licence file found · pointer only · 7ee88cf415894459 · report
fit_epoch stdereka/knowledge-distillation/training.py community (archive-listed) ran · honoured contract MIT (permissive) · 62f639fec5cb08e5 · report
loss_fn_kd KellyYutongHe/Knowledge-Distillation-Net-with-Swish/kd.py community (archive-listed) ran · our draft was wrong no licence file found · pointer only · 8a5635108617215c · report
obtain_avg_forward_time chumingqian/Model_Compression_For_YOLOV3-V4/normal_prune.py community (archive-listed) ran · our draft was wrong Apache-2.0 (permissive) · 9c20329610d8c5e5 · report
obtain_filters_mask chumingqian/Model_Compression_For_YOLOV3-V4/normal_prune.py community (archive-listed) ran · our draft was wrong Apache-2.0 (permissive) · acb7b29614f1a161 · report
output_adaptor DunZhang/KnowledgeDistillation/Examples/example_multi_layer_based_model/distill_bert.py community (archive-listed) ran · our draft was wrong licence not identified · pointer only · 0bd196791b1b86e6 · report
preprocess_input mckunkel/DistillingObjectDetector/models/microxception.py community (archive-listed) ran fingerprinted MIT (permissive) · bee766c6e15044c2 · report
prune_and_eval chumingqian/Model_Compression_For_YOLOV3-V4/normal_prune.py community (archive-listed) ran · our draft was wrong Apache-2.0 (permissive) · ec78bec91ac01396 · report
softmax knotgrass/Knowledge-Distillation/distiller/loss.py community (archive-listed) ran · honoured contract fingerprinted MIT (permissive) · cb5cbea0e8219ff5 · report
train stdereka/knowledge-distillation/training.py community (archive-listed) ran · honoured contract MIT (permissive) · 00a58257f6886584 · report
train_data_adaptor DunZhang/KnowledgeDistillation/Examples/example_multi_layer_based_model/distill_bert.py community (archive-listed) ran · our draft was wrong licence not identified · pointer only · 95712f5d0bd66d34 · report
SqueezeNet mckunkel/DistillingObjectDetector/models/squeezenet.py community (archive-listed) unverified MIT (permissive) · f0854de100bbea76 · report
SqueezeNet mckunkel/DistillingObjectDetector/models/squeezenet_model.py community (archive-listed) unverified MIT (permissive) · 6300eb91406d21bf · report
albumen_loader knotgrass/Knowledge-Distillation/distiller/datasets.py community (archive-listed) unverified MIT (permissive) · 77551a1423d80be3 · report
check_same_order knotgrass/Knowledge-Distillation/distiller/sorted_same_order.py community (archive-listed) unverified MIT (permissive) · 00c0d849e940be32 · report
conv2d_bn mckunkel/DistillingObjectDetector/models/inceptionV3.py community (archive-listed) unverified MIT (permissive) · f14f766b7e289b16 · report
desc knotgrass/Knowledge-Distillation/distiller/print_utils.py community (archive-listed) unverified MIT (permissive) · 671c7f056497a8b6 · report
fire_module mckunkel/DistillingObjectDetector/models/squeezenet.py community (archive-listed) unverified MIT (permissive) · 1b249ba85d8cf4ba · report
get_mobilenet mckunkel/DistillingObjectDetector/models/mobilenet.py community (archive-listed) unverified MIT (permissive) · 978081881d93f4be · report
get_order knotgrass/Knowledge-Distillation/distiller/sorted_same_order.py community (archive-listed) unverified MIT (permissive) · a8b17275da494ca9 · report
loss_fn_kd knotgrass/Knowledge-Distillation/distiller/loss.py community (archive-listed) unverified MIT (permissive) · 240a91c16bc48dd5 · report
mean_std knotgrass/Knowledge-Distillation/distiller/pseudo_label.py community (archive-listed) unverified MIT (permissive) · 9f00b79fbcd75706 · report
microXception mckunkel/DistillingObjectDetector/models/microxception.py community (archive-listed) unverified MIT (permissive) · 2d50b69c5762cfbe · report
miniXception mckunkel/DistillingObjectDetector/models/minixception.py community (archive-listed) unverified MIT (permissive) · 3ec85b13b3da58a4 · report
preprocess_input mckunkel/DistillingObjectDetector/models/squeezenet.py community (archive-listed) unverified MIT (permissive) · 9eb8ac7c03e9b11b · report
sort_by_order knotgrass/Knowledge-Distillation/distiller/sorted_same_order.py community (archive-listed) unverified MIT (permissive) · 37db7f404db2f6ab · report
train knotgrass/Knowledge-Distillation/distiller/distiller.py community (archive-listed) unverified MIT (permissive) · f7005e3d307e1c00 · report
train_body yangze01/Distilling_the_Knowledge_in_a_Neural_Network_pytorch/joint_main.py community (archive-listed) unverified no licence file found · pointer only · c3041253233293ca · report
train_student_model trqminh/knowledge-distillation/train/train_student.py community (archive-listed) unverified no licence file found · pointer only · b7e8ebfd9b3a5233 · report
validate KaiyuYue/mgd/cls/main_mgd.py community (archive-listed) unverified MIT (permissive) · 41bcf9c6e97f30d5 · report
validate JunzWu/Distilling-the-Knowledge-in-a-Neural-Network/main_imagenet.py community (archive-listed) unverified no licence file found · pointer only · 5b365f68a2be17aa · report
accuracy identical code first harvested elsewhere unverified licence of this copy not recorded · 9b8289076669fe4f · report

Tasks

Knowledge DistillationMixture-of-Experts

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Knowledge Distillation CIFAR-100 resnet8x4 (T: resnet32x4 S: resnet8x4) Top-1 Accuracy (%) 73.33 #20 of 27 Archive leaderboard report
Knowledge Distillation CIFAR-100 vgg8 (T:vgg13 S:vgg8) Top-1 Accuracy (%) 72.98 #21 of 27 Archive leaderboard report
Knowledge Distillation CIFAR-100 resnet110 (T:resnet110 S:resnet20) Top-1 Accuracy (%) 70.67 #27 of 27 Archive leaderboard report
Knowledge Distillation ImageNet ADLIK-MO(T: ResNet101 S: ResNet50) CRD training setting ✘ #22 of 52 Archive leaderboard report
Knowledge Distillation ImageNet ADLIK-MO(T: ResNet101 S: ResNet50) Top-1 accuracy % 77.14 #22 of 52 Archive leaderboard report
Knowledge Distillation ImageNet ADLIK-MO(T: ResNet101 S: ResNet50) model size 99M #22 of 52 Archive leaderboard report
Knowledge Distillation ImageNet KD (T: ResNet-34 S:ResNet-18) CRD training setting ✓ #50 of 52 Archive leaderboard report
Knowledge Distillation ImageNet KD (T: ResNet-34 S:ResNet-18) Top-1 accuracy % 70.66 #50 of 52 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

Introduced by this paper: Knowledge Distillation

Knowledge Distillation

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections