Generic-to-Specific Distillation of Masked Autoencoders

Wei Huang, Zhiliang Peng, Li Dong, Furu Wei, Jianbin Jiao +1 more
2/14/2026

No official code found. Best implementation: pengzhiliang/G2SD (86 stars, last commit 2023-08-31).

Abstract

Large vision Transformers (ViTs) driven by self-supervised pre-training mechanisms achieved unprecedented progress. Lightweight ViT models limited by the model capacity, however, benefit little from those pre-training mechanisms. Knowledge distillation defines a paradigm to transfer representations from large (teacher) models to small (student) ones. However, the conventional single-stage distillation easily gets stuck on task-specific transfer, failing to retain the task-agnostic knowledge crucial for model generalization. In this study, we propose generic-to-specific distillation (G2SD), to tap the potential of small ViT models under the supervision of large models pretrained by masked autoencoders. In generic distillation, decoder of the small model is encouraged to align feature predictions with hidden representations of the large model, so that task-agnostic knowledge can be transferred. In specific distillation, predictions of the small model are constrained to be consistent with those of the large model, to transfer task-specific features which guarantee task performance. With G2SD, the vanilla ViT-Small model respectively achieves 98.7%, 98.1% and 99.3% the performance of its teacher (ViT-Base) for image classification, object detection, and semantic segmentation, setting a solid baseline for two-stage vision distillation. Code will be available at https://github.com/pengzhiliang/G2SD

View on arXivView PDF

Code Implementations(1)

pengzhiliang/G2SDCommunity100%
863C++, CudaFeb 28, 20233 years ago

Similar Papers

Cite this paper

@article{huang2026generictospecific,
  title  = {Generic-to-Specific Distillation of Masked Autoencoders},
  author = {Wei Huang and Zhiliang Peng and Li Dong and Furu Wei and Jianbin Jiao and Qixiang Ye},
  year   = {2026},
  eprint = {2302.14771},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/pdf/2302.14771},
  journal = {CVPR 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2302.14771.svg)](https://codeofpaper.com/paper/2302.14771)

Discussion