ViTKD: Practical Guidelines for ViT feature knowledge distillation
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
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
- 2014Microsoft COCO: Common Objects in Contextcited by 17,498
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
- 2015Distilling the Knowledge in a Neural Networkcited by 10,076
- 2021Masked Autoencoders Are Scalable Vision Learnerscited by 7,339
- 2017Mask R-CNNcited by 7,259
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
- 2014FitNets: Hints for Thin Deep Netscited by 1,619
- 2021Tokens-to-Token ViT: Training Vision Transformers from Scratch on ImageNetcited by 1,096
- 2016Paying More Attention to Attention: Improving the Performance of Convolutional Neural Networks via Attention Transfercited by 1,059
25 more
- 2019Relational Knowledge Distillationcited by 873
- 2021Going deeper with Image Transformerscited by 759
- 2019Contrastive Representation Distillationcited by 734
- 2022Exploring Plain Vision Transformer Backbones for Object Detectioncited by 723
- 2021Transformer in Transformercited by 632
- 2019Patient Knowledge Distillation for BERT Model Compressioncited by 502
- 2022DeiT III: Revenge of the ViTcited by 417
- 2022Decoupled Knowledge Distillationcited by 380
- 2019A Comprehensive Overhaul of Feature Distillationcited by 341
- 2022Context Autoencoder for Self-Supervised Representation Learningcited by 297
- 2021Distilling Knowledge via Knowledge Reviewcited by 285
- 2019Structured Knowledge Distillation for Dense Predictioncited by 277
- 2020Channel-wise Knowledge Distillation for Dense Predictioncited by 161
- 2021Focal and Global Knowledge Distillation for Detectorscited by 138
- 2022Cross-Image Relational Knowledge Distillation for Semantic Segmentationcited by 117
- 2021Rethinking Soft Labels for Knowledge Distillation: A Bias-Variance Tradeoff Perspectivecited by 116
- 2022Masked Generative Distillationcited by 107
- 2019Knowledge Adaptation for Efficient Semantic Segmentationcited by 105
- 2022MiniViT: Compressing Vision Transformers with Weight Multiplexingcited by 88
- 2022Knowledge Distillation via the Target-aware Transformercited by 70
- 2021Localization Distillation for Dense Object Detectioncited by 55
- 2021Knowledge Distillation for Object Detection via Rank Mimicking and Prediction-guided Feature Imitationcited by 40
- 2022Prediction-Guided Distillation for Dense Object Detectioncited by 14
- 2022HEAD: HEtero-Assists Distillation for Heterogeneous Object Detectorscited by 12
- 2022Rethinking Knowledge Distillation via Cross-Entropycited by 9
Built on by
Citing papers per year: 2023: 20; 2024: 11; 2025: 2; 2026: 1.
34 papers.
Sort:
By area:
- 2023Effective Whole-body Pose Estimation with Two-stages Distillationcited by 307
- 2023From Knowledge Distillation to Self-Knowledge Distillation: A Unified Approach with Normalized Loss and Customized Soft Labelscited by 69
- 2023MixFormerV2: Efficient Fully Transformer Trackingcited by 56
- 2023NORM: Knowledge Distillation via N-to-One Representation Matchingcited by 44
- 2024A Survey on Transformer Compressioncited by 44
- 2024Knowledge Distillation Based on Transformed Teacher Matchingcited by 37
- 2023Is Synthetic Data From Diffusion Models Ready for Knowledge Distillation?cited by 21
- 2023Boost Vision Transformer with GPU-Friendly Sparsity and Quantizationcited by 20
- 2023Categories of Response-Based, Feature-Based, and Relation-Based Knowledge Distillationcited by 19
- 2024PILoRA: Prototype Guided Incremental LoRA for Federated Class-Incremental Learningcited by 19
- 2023Generic-to-Specific Distillation of Masked Autoencoderscited by 18
- 2023Distilling Efficient Vision Transformers from CNNs for Semantic Segmentationcited by 18
22 more
- 2024Rethinking Centered Kernel Alignment in Knowledge Distillationcited by 17
- 2025Turbo-VAED: Fast and Stable Transfer of Video-VAEs to Mobile Devicescited by 15
- 2024AMD: Automatic Multi-step Distillation of Large-scale Vision Modelscited by 12
- 2024General Compression Framework for Efficient Transformer Object Trackingcited by 10
- 2023PELA: Learning Parameter-Efficient Models with Low-Rank Approximationcited by 9
- 2023Are Large Kernels Better Teachers than Transformers for ConvNets?cited by 8
- 2023Augmentation-Free Dense Contrastive Knowledge Distillation for Efficient Semantic Segmentationcited by 8
- 2024ViT-1.58b: Mobile Vision Transformers in the 1-bit Eracited by 7
- 2023DLIP: Distilling Language-Image Pre-trainingcited by 5
- 2023RingMo-lite: A Remote Sensing Multi-task Lightweight Network with CNN-Transformer Hybrid Frameworkcited by 4
- 2023Group Multi-View Transformer for 3D Shape Analysis with Spatial Encodingcited by 4
- 2023Compressing Vision Transformers for Low-Resource Visual Learningcited by 2
- 2023Asymmetric Masked Distillation for Pre-Training Small Foundation Modelscited by 2
- 2024GCI-ViTAL: Gradual Confidence Improvement with Vision Transformers for Active Learning on Label Noisecited by 2
- 2023CINFormer: Transformer network with multi-stage CNN feature injection for surface defect segmentationcited by 1
- 2023Talking Models: Distill Pre-trained Knowledge to Downstream Models via Interactive Communicationcited by 1
- 2024Precise Knowledge Transfer via Flow Matchingcited by 1
- 2024SNN-PAR: Energy Efficient Pedestrian Attribute Recognition via Spiking Neural Networkscited by 1
- 2023Semi-supervised ViT knowledge distillation network with style transfer normalization for colorectal liver metastases survival predictioncited by 0
- 2024An Attention-based Representation Distillation Baseline for Multi-Label Continual Learningcited by 0
- 2025CoMAD: A Multiple-Teacher Self-Supervised Distillation Frameworkcited by 0
- 2026Lightweight Vision Transformer Compression for On-Device Plant Disease Detection in Resource-Constrained Agricultural Field Conditionscited by 0
- 2026Lightweight Vision Transformer Compression for On-Device Plant Disease Detection in Resource-Constrained Agricultural Field Conditions4 Sep 2026
- 2025Turbo-VAED: Fast and Stable Transfer of Video-VAEs to Mobile Devices12 Aug 2025
- 2025CoMAD: A Multiple-Teacher Self-Supervised Distillation Framework6 Aug 2025
- 2024GCI-ViTAL: Gradual Confidence Improvement with Vision Transformers for Active Learning on Label Noise8 Nov 2024
- 2024SNN-PAR: Energy Efficient Pedestrian Attribute Recognition via Spiking Neural Networks10 Oct 2024
- 2024General Compression Framework for Efficient Transformer Object Tracking26 Sep 2024
- 2024An Attention-based Representation Distillation Baseline for Multi-Label Continual Learning19 Jul 2024
- 2024AMD: Automatic Multi-step Distillation of Large-scale Vision Models5 Jul 2024
- 2024ViT-1.58b: Mobile Vision Transformers in the 1-bit Era26 Jun 2024
- 2024Knowledge Distillation Based on Transformed Teacher Matching17 Feb 2024
- 2024A Survey on Transformer Compression5 Feb 2024
- 2024Precise Knowledge Transfer via Flow Matching3 Feb 2024
22 more
- 2024Rethinking Centered Kernel Alignment in Knowledge Distillation22 Jan 2024
- 2024PILoRA: Prototype Guided Incremental LoRA for Federated Class-Incremental Learning4 Jan 2024
- 2023Group Multi-View Transformer for 3D Shape Analysis with Spatial Encoding27 Dec 2023
- 2023Augmentation-Free Dense Contrastive Knowledge Distillation for Efficient Semantic Segmentation7 Dec 2023
- 2023Semi-supervised ViT knowledge distillation network with style transfer normalization for colorectal liver metastases survival prediction17 Nov 2023
- 2023Asymmetric Masked Distillation for Pre-Training Small Foundation Models6 Nov 2023
- 2023PELA: Learning Parameter-Efficient Models with Low-Rank Approximation16 Oct 2023
- 2023Distilling Efficient Vision Transformers from CNNs for Semantic Segmentation11 Oct 2023
- 2023Talking Models: Distill Pre-trained Knowledge to Downstream Models via Interactive Communication4 Oct 2023
- 2023CINFormer: Transformer network with multi-stage CNN feature injection for surface defect segmentation22 Sep 2023
- 2023RingMo-lite: A Remote Sensing Multi-task Lightweight Network with CNN-Transformer Hybrid Framework16 Sep 2023
- 2023Compressing Vision Transformers for Low-Resource Visual Learning5 Sep 2023
- 2023DLIP: Distilling Language-Image Pre-training24 Aug 2023
- 2023Effective Whole-body Pose Estimation with Two-stages Distillation29 Jul 2023
- 2023Categories of Response-Based, Feature-Based, and Relation-Based Knowledge Distillation19 Jun 2023
- 2023Are Large Kernels Better Teachers than Transformers for ConvNets?30 May 2023
- 2023MixFormerV2: Efficient Fully Transformer Tracking25 May 2023
- 2023NORM: Knowledge Distillation via N-to-One Representation Matching23 May 2023
- 2023Is Synthetic Data From Diffusion Models Ready for Knowledge Distillation?22 May 2023
- 2023Boost Vision Transformer with GPU-Friendly Sparsity and Quantization18 May 2023
- 2023From Knowledge Distillation to Self-Knowledge Distillation: A Unified Approach with Normalized Loss and Customized Soft Labels23 Mar 2023
- 2023Generic-to-Specific Distillation of Masked Autoencoders28 Feb 2023
- 2023DLIP: Distilling Language-Image Pre-trainingcited by 5
- 2023DLIP: Distilling Language-Image Pre-training24 Aug 2023
- 2023Effective Whole-body Pose Estimation with Two-stages Distillationcited by 307
- 2023From Knowledge Distillation to Self-Knowledge Distillation: A Unified Approach with Normalized Loss and Customized Soft Labelscited by 69
- 2023MixFormerV2: Efficient Fully Transformer Trackingcited by 56
- 2023NORM: Knowledge Distillation via N-to-One Representation Matchingcited by 44
- 2024A Survey on Transformer Compressioncited by 44
- 2024Knowledge Distillation Based on Transformed Teacher Matchingcited by 37
- 2023Boost Vision Transformer with GPU-Friendly Sparsity and Quantizationcited by 20
- 2023Categories of Response-Based, Feature-Based, and Relation-Based Knowledge Distillationcited by 19
- 2024PILoRA: Prototype Guided Incremental LoRA for Federated Class-Incremental Learningcited by 19
- 2023Generic-to-Specific Distillation of Masked Autoencoderscited by 18
- 2023Distilling Efficient Vision Transformers from CNNs for Semantic Segmentationcited by 18
- 2024Rethinking Centered Kernel Alignment in Knowledge Distillationcited by 17
12 most cited of 31 All 31 (JSON)
- 2026Lightweight Vision Transformer Compression for On-Device Plant Disease Detection in Resource-Constrained Agricultural Field Conditions4 Sep 2026
- 2025Turbo-VAED: Fast and Stable Transfer of Video-VAEs to Mobile Devices12 Aug 2025
- 2025CoMAD: A Multiple-Teacher Self-Supervised Distillation Framework6 Aug 2025
- 2024GCI-ViTAL: Gradual Confidence Improvement with Vision Transformers for Active Learning on Label Noise8 Nov 2024
- 2024SNN-PAR: Energy Efficient Pedestrian Attribute Recognition via Spiking Neural Networks10 Oct 2024
- 2024General Compression Framework for Efficient Transformer Object Tracking26 Sep 2024
- 2024An Attention-based Representation Distillation Baseline for Multi-Label Continual Learning19 Jul 2024
- 2024AMD: Automatic Multi-step Distillation of Large-scale Vision Models5 Jul 2024
- 2024ViT-1.58b: Mobile Vision Transformers in the 1-bit Era26 Jun 2024
- 2024Knowledge Distillation Based on Transformed Teacher Matching17 Feb 2024
- 2024A Survey on Transformer Compression5 Feb 2024
- 2024Rethinking Centered Kernel Alignment in Knowledge Distillation22 Jan 2024
12 newest of 31 All 31 (JSON)