Preserving Angles Improves Feature Distillation
Not on the map. Why?
Abstract (arXiv)
Knowledge distillation methods compress models by training a student network using the classification outputs of a high quality teacher model, but can fail to effectively transfer the properties of computer vision foundation models from the teacher to the student. While it has been recently shown that feature distillationunicodex2013where a teacher model's output features are replicated insteadunicodex2013can reproduce performance for foundation models across numerous downstream tasks, they fall short in matching critical properties such as robustness and out-of-distribution (OOD) detection performance. This paper overcomes this shortcoming by introducing Cosine-similarity Preserving Compression (CosPress), a feature distillation technique that learns a mapping to compress the latent space of the teacher model into the smaller latent space of the student, by preserving the cosine similarities between image embeddings. This enables direct optimisation of the student network and produces a more faithful reproduction of the teacher's properties. It is shown that distillation with CosPress on a variety of datasets, including ImageNet, produces more accurate models with greater performance on generalisability, robustness and OOD detection benchmarks, and that this technique provides a competitive pathway for training highly performant lightweight models on small datasets. Code is available at github.com/emannix/cospress.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 48 of its 72 references that are in the map. First posted on arXiv 22 Nov 2024.
Builds on
48 of 72 references.
References · 48
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2015Distilling the Knowledge in a Neural Networkcited by 10,076
- 2014ImageNet Large Scale Visual Recognition Challengecited by 8,441
- 2023DINOv2: Learning Robust Visual Features without Supervisioncited by 7,764
- 2021Emerging Properties in Self-Supervised Vision Transformerscited by 6,893
- 2016Layer Normalizationcited by 5,579
- 2016SGDR: Stochastic Gradient Descent with Warm Restartscited by 4,993
- 2018MobileNetV2: Inverted Residuals and Linear Bottleneckscited by 4,773
- 2020Bootstrap your own latent: A new approach to self-supervised Learningcited by 4,712
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
36 more
- 2019CutMix: Regularization Strategy to Train Strong Classifiers with Localizable Featurescited by 2,875
- 2019RandAugment: Practical automated data augmentation with a reduced search spacecited by 2,261
- 2013Describing Textures in the Wildcited by 2,110
- 2020The Many Faces of Robustness: A Critical Analysis of Out-of-Distribution Generalizationcited by 1,842
- 2018Unsupervised Feature Learning via Non-Parametric Instance-level Discriminationcited by 1,838
- 2013Fine-Grained Visual Classification of Aircraftcited by 1,701
- 2019Do ImageNet Classifiers Generalize to ImageNet?cited by 1,507
- 2019Natural Adversarial Examplescited by 1,401
- 2019Learning Robust Global Representations by Penalizing Local Predictive Powercited by 1,010
- 2021Scaling Vision Transformerscited by 993
- 2021iBOT: Image BERT Pre-Training with Online Tokenizercited by 891
- 2023Vision Transformers Need Registerscited by 844
- 2014Deep Neural Networks are Easily Fooled: High Confidence Predictions for Unrecognizable Imagescited by 774
- 2022Fine-Tuning can Distort Pretrained Features and Underperform Out-of-Distributioncited by 722
- 2022Out-of-Distribution Detection with Deep Nearest Neighborscited by 596
- 2022ViM: Out-Of-Distribution with Virtual-logit Matchingcited by 404
- 2021Open-Set Recognition: a Good Closed-Set Classifier is All You Need?cited by 351
- 2022OpenOOD: Benchmarking Generalized Out-of-Distribution Detectioncited by 267
- 2021Knowledge distillation: A good teacher is patient and consistentcited by 255
- 2021Incorporating Convolution Designs into Visual Transformerscited by 248
- 2021Are Transformers More Robust Than CNNs?cited by 187
- 2022SatlasPretrain: A Large-Scale Dataset for Remote Sensing Image Understandingcited by 164
- 2023On the Challenges and Perspectives of Foundation Models for Medical Image Analysiscited by 135
- 2024Interpreting CLIP with Sparse Linear Concept Embeddings (SpLiCE)cited by 116
- 2022Masked Generative Distillationcited by 107
- 2020Neural Architecture Transfercited by 59
- 2021Drawing Multiple Augmentation Samples Per Image During Training Efficiently Decreases Test Errorcited by 32
- 2023Understanding the Role of the Projector in Knowledge Distillationcited by 31
- 2020Circumventing Outliers of AutoAugment with Knowledge Distillationcited by 29
- 2021Minimum-Distortion Embeddingcited by 26
- 2024VkD: Improving Knowledge Distillation using Orthogonal Projectionscited by 24
- 2023CIFAR-10-Warehouse: Broad and More Realistic Testbeds in Model Generalization Analysiscited by 12
- 2021An Introduction to Johnson-Lindenstrauss Transformscited by 10
- 2024Accessing Vision Foundation Models via ImageNet-1Kcited by 9
- 2023Rethinking Evaluation Protocols of Visual Representations Learned via Self-supervised Learningcited by 4
- 2024Sailing in high-dimensional spaces: Low-dimensional embeddings through angle preservationcited by 2
Built on by
Not cited yet.