mlsanityData to 7 Oct 2026

ViTKD: Practical Guidelines for ViT feature knowledge distillation

arXiv 2209.02432 ↗First posted 6 Sep 2022cs.CVcited by 34

Not on the map. Why?

Abstract (arXiv)

Knowledge Distillation (KD) for Convolutional Neural Network (CNN) is extensively studied as a way to boost the performance of a small model. Recently, Vision Transformer (ViT) has achieved great success on many computer vision tasks and KD for ViT is also desired. However, besides the output logit-based KD, other feature-based KD methods for CNNs cannot be directly applied to ViT due to the huge structure gap. In this paper, we explore the way of feature-based distillation for ViT. Based on the nature of feature maps in ViT, we design a series of controlled experiments and derive three practical guidelines for ViT's feature distillation. Some of our findings are even opposite to the practices in the CNN era. Based on the three guidelines, we propose our feature-based method ViTKD which brings consistent and considerable improvement to the student. On ImageNet-1k, we boost DeiT-Tiny from 74.42% to 76.06%, DeiT-Small from 80.55% to 81.95%, and DeiT-Base from 81.76% to 83.46%. Moreover, ViTKD and the logit-based KD method are complementary and can be applied together directly. This combination can further improve the performance of the student. Specifically, the student DeiT-Tiny, Small, and Base achieve 77.78%, 83.59%, and 85.41%, respectively. The code is available at https://github.com/yzd-v/cls_KD.

Key facts. Cited by 34 papers in the map (data through 7 Oct 2026). Builds on 37 of its 42 references that are in the map. First posted on arXiv 6 Sep 2022.

Builds on

37 of 42 references.

References · 37

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  2. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  3. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
  4. 2014Microsoft COCO: Common Objects in Contextcited by 17,498
  5. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
  6. 2015Distilling the Knowledge in a Neural Networkcited by 10,076
  7. 2021Masked Autoencoders Are Scalable Vision Learnerscited by 7,339
  8. 2017Mask R-CNNcited by 7,259
  9. 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
  10. 2014FitNets: Hints for Thin Deep Netscited by 1,619
  11. 2021Tokens-to-Token ViT: Training Vision Transformers from Scratch on ImageNetcited by 1,096
  12. 2016Paying More Attention to Attention: Improving the Performance of Convolutional Neural Networks via Attention Transfercited by 1,059
25 more
  1. 2019Relational Knowledge Distillationcited by 873
  2. 2021Going deeper with Image Transformerscited by 759
  3. 2019Contrastive Representation Distillationcited by 734
  4. 2022Exploring Plain Vision Transformer Backbones for Object Detectioncited by 723
  5. 2021Transformer in Transformercited by 632
  6. 2019Patient Knowledge Distillation for BERT Model Compressioncited by 502
  7. 2022DeiT III: Revenge of the ViTcited by 417
  8. 2022Decoupled Knowledge Distillationcited by 380
  9. 2019A Comprehensive Overhaul of Feature Distillationcited by 341
  10. 2022Context Autoencoder for Self-Supervised Representation Learningcited by 297
  11. 2021Distilling Knowledge via Knowledge Reviewcited by 285
  12. 2019Structured Knowledge Distillation for Dense Predictioncited by 277
  13. 2020Channel-wise Knowledge Distillation for Dense Predictioncited by 161
  14. 2021Focal and Global Knowledge Distillation for Detectorscited by 138
  15. 2022Cross-Image Relational Knowledge Distillation for Semantic Segmentationcited by 117
  16. 2021Rethinking Soft Labels for Knowledge Distillation: A Bias-Variance Tradeoff Perspectivecited by 116
  17. 2022Masked Generative Distillationcited by 107
  18. 2019Knowledge Adaptation for Efficient Semantic Segmentationcited by 105
  19. 2022MiniViT: Compressing Vision Transformers with Weight Multiplexingcited by 88
  20. 2022Knowledge Distillation via the Target-aware Transformercited by 70
  21. 2021Localization Distillation for Dense Object Detectioncited by 55
  22. 2021Knowledge Distillation for Object Detection via Rank Mimicking and Prediction-guided Feature Imitationcited by 40
  23. 2022Prediction-Guided Distillation for Dense Object Detectioncited by 14
  24. 2022HEAD: HEtero-Assists Distillation for Heterogeneous Object Detectorscited by 12
  25. 2022Rethinking Knowledge Distillation via Cross-Entropycited by 9

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2023: 20; 2024: 11; 2025: 2; 2026: 1.

34 papers.

Sort:

By area:

  1. 2023Effective Whole-body Pose Estimation with Two-stages Distillationcited by 307
  2. 2023From Knowledge Distillation to Self-Knowledge Distillation: A Unified Approach with Normalized Loss and Customized Soft Labelscited by 69
  3. 2023MixFormerV2: Efficient Fully Transformer Trackingcited by 56
  4. 2023NORM: Knowledge Distillation via N-to-One Representation Matchingcited by 44
  5. 2024A Survey on Transformer Compressioncited by 44
  6. 2024Knowledge Distillation Based on Transformed Teacher Matchingcited by 37
  7. 2023Is Synthetic Data From Diffusion Models Ready for Knowledge Distillation?cited by 21
  8. 2023Boost Vision Transformer with GPU-Friendly Sparsity and Quantizationcited by 20
  9. 2023Categories of Response-Based, Feature-Based, and Relation-Based Knowledge Distillationcited by 19
  10. 2024PILoRA: Prototype Guided Incremental LoRA for Federated Class-Incremental Learningcited by 19
  11. 2023Generic-to-Specific Distillation of Masked Autoencoderscited by 18
  12. 2023Distilling Efficient Vision Transformers from CNNs for Semantic Segmentationcited by 18
22 more
  1. 2024Rethinking Centered Kernel Alignment in Knowledge Distillationcited by 17
  2. 2025Turbo-VAED: Fast and Stable Transfer of Video-VAEs to Mobile Devicescited by 15
  3. 2024AMD: Automatic Multi-step Distillation of Large-scale Vision Modelscited by 12
  4. 2024General Compression Framework for Efficient Transformer Object Trackingcited by 10
  5. 2023PELA: Learning Parameter-Efficient Models with Low-Rank Approximationcited by 9
  6. 2023Are Large Kernels Better Teachers than Transformers for ConvNets?cited by 8
  7. 2023Augmentation-Free Dense Contrastive Knowledge Distillation for Efficient Semantic Segmentationcited by 8
  8. 2024ViT-1.58b: Mobile Vision Transformers in the 1-bit Eracited by 7
  9. 2023DLIP: Distilling Language-Image Pre-trainingcited by 5
  10. 2023RingMo-lite: A Remote Sensing Multi-task Lightweight Network with CNN-Transformer Hybrid Frameworkcited by 4
  11. 2023Group Multi-View Transformer for 3D Shape Analysis with Spatial Encodingcited by 4
  12. 2023Compressing Vision Transformers for Low-Resource Visual Learningcited by 2
  13. 2023Asymmetric Masked Distillation for Pre-Training Small Foundation Modelscited by 2
  14. 2024GCI-ViTAL: Gradual Confidence Improvement with Vision Transformers for Active Learning on Label Noisecited by 2
  15. 2023CINFormer: Transformer network with multi-stage CNN feature injection for surface defect segmentationcited by 1
  16. 2023Talking Models: Distill Pre-trained Knowledge to Downstream Models via Interactive Communicationcited by 1
  17. 2024Precise Knowledge Transfer via Flow Matchingcited by 1
  18. 2024SNN-PAR: Energy Efficient Pedestrian Attribute Recognition via Spiking Neural Networkscited by 1
  19. 2023Semi-supervised ViT knowledge distillation network with style transfer normalization for colorectal liver metastases survival predictioncited by 0
  20. 2024An Attention-based Representation Distillation Baseline for Multi-Label Continual Learningcited by 0
  21. 2025CoMAD: A Multiple-Teacher Self-Supervised Distillation Frameworkcited by 0
  22. 2026Lightweight Vision Transformer Compression for On-Device Plant Disease Detection in Resource-Constrained Agricultural Field Conditionscited by 0