Papers › Switchable Online Knowledge Distillation

Switchable Online Knowledge Distillation

12 Sep 2022arXiv:2209.04996archive 2025-07-28

Biao Qian, Yang Wang, Hongzhi Yin, Richang Hong, Meng Wang

Online Knowledge Distillation (OKD) improves the involved models by reciprocally exploiting the difference between teacher and student. Several crucial bottlenecks over the gap between them -- e.g., Why and when does a large gap harm the performance, especially for student? How to quantify the gap between teacher and student? -- have received limited formal study. In this paper, we propose Switchable Online Knowledge Distillation (SwitOKD), to answer these questions. Instead of focusing on the accuracy gap at test phase by the existing arts, the core idea of SwitOKD is to adaptively calibrate the gap at training phase, namely distillation gap, via a switching strategy between two modes -- expert mode (pause the teacher while keep the student learning) and learning mode (restart the teacher). To possess an appropriate distillation gap, we further devise an adaptive switching threshold, which provides a formal criterion as to when to switch to learning mode or expert mode, and thus improves the student's performance. Meanwhile, the teacher benefits from our adaptive switching threshold and keeps basically on a par with other online arts. We further extend SwitOKD to multiple networks with two basis topologies. Finally, extensive experiments and analysis validate the merits of SwitOKD for classification over the state-of-the-arts. Our code is available at https://github.com/hfutqian/SwitOKD.

PaperPDFCodeCode Syntology ran

In Syntology 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="2209.04996")

Code

Syntology Ran 9 of 13 code samples harvested from 1 repository linked to this paper; 4 have no recorded run. Of those that ran: 1 ran · violated contract; 4 ran · our draft was wrong; 4 ran with no contract checked.

By repository: official repository: 13 samples from 1 repository, 9 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

hfutqian/SwitOKD officialmentioned in paperpytorchApache-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

13 samples harvested; 9 ran; 0 honoured the contract we drafted; 4 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · violated contract
4ran · our draft was wrong
4ran
4unverified

Licence: 0 of the 13 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 hfutqian/SwitOKD. “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.

conv1x1 hfutqian/SwitOKD/SwitOKD_code/ImageNet/ResNet18_34/models/resnet18.py official repository ran · our draft was wrong Apache-2.0 (permissive) · d9def42110729a85 · report
conv3x3 hfutqian/SwitOKD/SwitOKD_code/ImageNet/ResNet18_34/models/resnet18.py official repository ran · our draft was wrong Apache-2.0 (permissive) · 160bb14bd76201b4 · report
conv3x3 hfutqian/SwitOKD/SwitOKD_code/CIFAR-10/WRN-16-1_8/models/wrnet16_1.py official repository ran · our draft was wrong Apache-2.0 (permissive) · 00e569acd6b45ef0 · report
conv_1x1_bn hfutqian/SwitOKD/SwitOKD_code/CIFAR-100/WRN16-2_0.5mobilenetv2/models/mobilenetv2.py official repository ran Apache-2.0 (permissive) · 7765583b9e540679 · report
conv_bn hfutqian/SwitOKD/SwitOKD_code/CIFAR-100/WRN16-2_0.5mobilenetv2/models/mobilenetv2.py official repository ran · our draft was wrong Apache-2.0 (permissive) · 2f7853ff01cbbc29 · report
find_classes hfutqian/SwitOKD/SwitOKD_code/Tiny-ImageNet/Train/SwitOKD/tiny_imagenet.py official repository ran Apache-2.0 (permissive) · 403277d0bfbb477b · report
is_image_file hfutqian/SwitOKD/SwitOKD_code/Tiny-ImageNet/Train/SwitOKD/tiny_imagenet.py official repository ran · violated contract Apache-2.0 (permissive) · ab4109634b75ef8b · report
loadPILImage hfutqian/SwitOKD/SwitOKD_code/Tiny-ImageNet/Train/SwitOKD/tiny_imagenet.py official repository ran Apache-2.0 (permissive) · 27e7954cc9b19461 · report
mobilenetv2_T_w hfutqian/SwitOKD/SwitOKD_code/CIFAR-100/WRN16-2_0.5mobilenetv2/models/mobilenetv2.py official repository ran Apache-2.0 (permissive) · 421fd14c036bc279 · report
dumps_pyarrow hfutqian/SwitOKD/SwitOKD_code/ImageNet/ResNet18_34/folder2lmdb.py official repository unverified Apache-2.0 (permissive) · 9e7bf674714e06d5 · report
loads_pyarrow hfutqian/SwitOKD/SwitOKD_code/ImageNet/ResNet18_34/folder2lmdb.py official repository unverified Apache-2.0 (permissive) · b4c154b6f0568b6b · report
raw_reader hfutqian/SwitOKD/SwitOKD_code/ImageNet/ResNet18_34/folder2lmdb.py official repository unverified Apache-2.0 (permissive) · 51738010a21f76a1 · report
resnet18 hfutqian/SwitOKD/SwitOKD_code/ImageNet/ResNet18_34/models/resnet18.py official repository unverified Apache-2.0 (permissive) · b5d3e2b97d86d2dd · report

Tasks

Knowledge Distillation

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Knowledge DistillationTest

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