arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2311.03149cs.CV
收藏

用于预训练小型基础模型的非对称掩码蒸馏

Asymmetric Masked Distillation for Pre-Training Small Foundation Models

State Key Laboratory for Novel Software Technology, Nanjing University(南京大学计算机软件新技术国家重点实验室);Shanghai AI Lab(上海人工智能实验室)

Zhiyu Zhao, Bingkun Huang, Sen Xing, Gangshan Wu, Yu Qiao, Limin Wang

AI总结:

本文提出非对称掩码蒸馏框架AMD,通过让教师模型以低掩码比率看到更多上下文并指导学生模型高掩码自编码预训练,使小型ViT在图像和视频分类任务上显著超越原始MAE。

摘要:

自监督基础模型由于掩码自编码的预训练范式,在计算机视觉中展现出巨大潜力。规模是影响这些基础模型性能的主要因素。然而,这些大型基础模型通常带来高昂的计算成本。本文聚焦于预训练相对较小的视觉Transformer模型,使其能够高效地适配下游任务。具体而言,受模型压缩中知识蒸馏的启发,我们提出了一种新的非对称掩码蒸馏(AMD)框架,用于以自编码方式预训练相对较小的模型。AMD的核心是设计一种非对称掩码策略,使教师模型能够以较低的掩码比率看到更多上下文信息,而学生模型仍保持较高的掩码比率。我们设计了教师编码器和学生编码器之间定制的多层特征对齐,以正则化学生MAE的预训练。为了证明AMD的有效性和通用性,我们将其应用于ImageMAE和VideoMAE,以预训练相对较小的ViT模型。AMD使用ViT-B模型在IN1K上取得了84.6%的分类准确率。AMD使用ViT-B模型在Something-something V2数据集上取得了73.3%的分类准确率,比VideoMAE的原始ViT-B模型提高了3.7%。我们还将AMD预训练模型迁移到下游任务,并获得了相对于原始掩码自编码的一致性能提升。代码和模型可在https://github.com/MCG-NJU/AMD获取。

英文摘要:

Self-supervised foundation models have shown great potential in computer vision thanks to the pre-training paradigm of masked autoencoding. Scale is a primary factor influencing the performance of these foundation models. However, these large foundation models often result in high computational cost. This paper focuses on pre-training relatively small vision transformer models that could be efficiently adapted to downstream tasks. Specifically, taking inspiration from knowledge distillation in model compression, we propose a new asymmetric masked distillation (AMD) framework for pre-training relatively small models with autoencoding. The core of AMD is to devise an asymmetric masking strategy, where the teacher model is enabled to see more context information with a lower masking ratio, while the student model is still equipped with a high masking ratio. We design customized multi-layer feature alignment between the teacher encoder and student encoder to regularize the pre-training of student MAE. To demonstrate the effectiveness and versatility of AMD, we apply it to both ImageMAE and VideoMAE for pre-training relatively small ViT models. AMD achieved 84.6% classification accuracy on IN1K using the ViT-B model. And AMD achieves 73.3% classification accuracy using the ViT-B model on the Something-in-Something V2 dataset, a 3.7% improvement over the original ViT-B model from VideoMAE. We also transfer AMD pre-trained models to downstream tasks and obtain consistent performance improvement over the original masked autoencoding. The code and models are available at https://github.com/MCG-NJU/AMD.

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

↑