arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2302.14771cs.CV
收藏

掩码自编码器的类属到特定的提取

Generic-to-Specific Distillation of Masked Autoencoders

University of Chinese Academy of Sciences(中国科学院大学);Microsoft Research(微软研究院)

Wei Huang, Zhiliang Peng, Li Dong, Furu Wei, Jianbin Jiao, Qixiang Ye

摘要:

由自我监督的预训练机制驱动的大型视觉Transformer(ViTs)取得了前所未有的进展。然而,受模型容量限制的轻量级ViT模型从这些预训练机制中获益甚少。知识蒸馏定义了一种范式,将表示从大型(教师)模型转移到小型(学生)模型。然而,传统的单级蒸馏容易卡在特定任务的转移,未能保留关键的模型泛化的任务不可知的知识。在这项研究中,我们提出了通用到特定的蒸馏(G2 SD),挖掘潜力的小型ViT模型的监督下,预先训练的大型模型的掩码自编码器。在通用蒸馏中,鼓励小模型的解码器将特征预测与大模型的隐藏表示对齐,以便可以传输与任务无关的知识。在具体的蒸馏中,小模型的预测被约束为与大模型的预测一致,以转移保证任务性能的任务特定的特征。使用G2 SD,vanilla ViT-Small模型在图像分类、目标检测和语义分割方面分别实现了其老师(ViT-Base)的98.7%、98.1%和99.3%的性能,为两阶段视觉蒸馏奠定了坚实的基础。代码将在https://github.com/pengzhiliang/G2SD上提供。

英文摘要:

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 pre-trained 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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑