Distilling Knowledge by Mimicking Features
Abstract
Domain fit: AI-adjacent · Paper appears method- or tooling-adjacent to AI workflows with partial ecosystem coverage.
Knowledge distillation (KD) is a popular method to train efficient networks ("student") with the help of high-capacity networks ("teacher"). Traditional methods use the teacher's soft logits as extra supervision to train the student network. In this paper, we argue that it is more advantageous to make the student mimic the teacher's features in the penultimate layer. Not only the student can directly learn more effective information from the teacher feature, feature mimicking can also be applied for teachers trained without a softmax layer. Experiments show that it can achieve higher accuracy than traditional KD. To further facilitate feature mimicking, we decompose a feature vector into the magnitude and the direction. We argue that the teacher should give more freedom to the student feature's magnitude, and let the student pay more attention on mimicking the feature direction. To meet this requirement, we propose a loss term based on locality-sensitive hashing (LSH). With the help of this new loss, our method indeed mimics feature directions more accurately, relaxes constraints on feature magnitudes, and achieves state-of-the-art distillation accuracy. We provide theoretical analyses of how LSH facilitates feature direction mimicking, and further extend feature mimicking to multi-label recognition and object detection.
Results and benchmarks
Knowledge distillation (KD) is a popular method to train efficient networks ("student") with the help of high-capacity networks ("teacher").
Benchmark evidence is limited
Evidence graph: 3 refs, 3 links.
Utility signals: depth 70/100, grounding 75/100, status medium.
Implementation
No direct implementation yet
Maintained implementation evidence is not confirmed for this paper yet.
Use the implementation status and reproduction sections for the current action plan.
No verified maintained repo yet
There is no verified maintained implementation yet. Use this baseline plan to decide whether to prototype now or defer.
- No maintained paper-verified implementation was found; start with the closest related repositories below.
- Compare repo methods against the paper equations/algorithm before trusting metrics.
- Create a minimal baseline implementation from the paper and use adjacent repos as references.
Time to first repro: a few days
dkozlov/awesome-knowledge-distillation is the closest maintained adjacent implementation (Matches contextual method/domain keyword: knowledge distillation). It is not paper-verified; validate algorithm and evaluation setup against the paper before trusting reported metrics. Community adoption signal: 3918 GitHub stars.
- Adjacent implementations are not paper-verified
- Recommended repository is adjacent and not paper-verified.
Reproduction readiness
No repo
No verified implementation available
- No maintained repository has been identified for this paper. Check adjacent implementations or HF artifacts below.
Hardware requirements
- Expect multi-day setup/compute for meaningful reproduction based on current guidance.
Validation caveat
Framework baselines
- Hugging Face Transformers training guide
Modern transformer training baseline.
- PyTorch nn.Transformer docs
Reference transformer building block implementation.
- TorchVision object detection finetuning tutorial
Baseline setup for object detection workflows.
Repositories and ecosystem
Closest related implementations
These are not paper-verified. Use them as reference points when no direct implementation is available.
- dkozlov/awesome-knowledge-distillation Adjacent · Confidence: Medium · 3,918 stars
Matches contextual method/domain keyword: knowledge distillation
- AberHu/Knowledge-Distillation-Zoo Adjacent · Confidence: Medium · 1,762 stars
Matches contextual method/domain keyword: knowledge distillation
No additional verified repositories beyond the primary recommendation.
Hugging Face artifacts
No trustworthy direct or curated related Hugging Face artifacts were found yet. Use targeted searches to quickly locate candidate models, datasets, and demos.
Tip: start with models, then check datasets and spaces if you need evaluation data or demos.
Research context
42
Citations
41
References
Tasks
Softmax function, Feature (linguistics), Computer science, Pattern recognition (psychology), Feature vector, Feature extraction, Feature learning, Semantic feature
Methods
knowledge distillation, teacher-student models
Domains
Artificial intelligence, Machine learning, Computer Vision and Pattern Recognition
Related papers
- Augmentation Invariant and Instance Spreading Feature for Softmax EmbeddingSearch on Paper2Code
2020 · Semantic similarity
- Robust Deep Feature Extraction Method for Acoustic Scene ClassificationSearch on Paper2Code
2019 · Semantic similarity
- Group Softmax Loss with Discriminative Feature GroupingSearch on Paper2Code
2021 · Semantic similarity
- Multi-scale Feature Mergence Reinforced Network for Person Re-IdentificationSearch on Paper2Code
2021 · Semantic similarity
- A Comparative Study on Deep Feature Extraction Approaches for Visual Tracking of Industrial RobotsSearch on Paper2Code
2022 · Semantic similarity
- Feat2Vec: Dense Vector Representation for Data with Arbitrary FeaturesSearch on Paper2Code
2018 · Semantic similarity
Open this paper in HFEPX to review benchmark signals, evaluation modes, and human-feedback protocol context.
Open in HFEPXJump to Paper2Code search queries derived from this paper's research context.