arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2411.06786cs.CVcs.AIcs.LG
收藏

ScaleKD:强视觉Transformer可成为优秀教师

ScaleKD: Strong Vision Transformers Could Be Excellent Teachers

Intel Labs China(英特尔中国实验室);iMotion Automotive Technology(智动汽车科技)

Jiawei Fan, Chao Li, Xiaolong Liu, Anbang Yao

AI总结:

提出ScaleKD知识蒸馏方法,通过交叉注意力投影器、双视角特征模仿和教师参数感知对齐特征计算、模型规模和知识密度差异,实现跨CNN、MLP和ViT架构的高效蒸馏,显著提升学生模型性能并减少训练样本。

摘要:

在本文中,我们探讨了在利用大规模数据集进行评估的背景下,预训练良好的视觉Transformer(ViT)模型是否可以作为教师,展现出可扩展的特性,以推动跨架构知识蒸馏(KD)研究。为实现这一目标,我们的分析强调了寻找有效策略以对齐(1)特征计算范式差异、(2)模型规模差异以及(3)知识密度差异的重要性。通过结合三个耦合组件,即交叉注意力投影器、双视角特征模仿和教师参数感知,我们提出了一种简单而有效的知识蒸馏方法,称为ScaleKD。我们的方法能够在图像分类数据集上训练跨越多种卷积神经网络(CNN)、多层感知机(MLP)和ViT架构的学生骨干网络,实现最先进的蒸馏性能。例如,以预训练良好的Swin-L作为教师模型,我们的方法在ImageNet-1K数据集上从零训练MobileNet-V1|ResNet-50|ConvNeXt-T|Mixer-S/16|Mixer-B/16|ViT-S/16|Swin-T|ViT-B/16模型时,分别获得了75.15%|82.03%|84.16%|78.63%|81.96%|83.93%|83.80%|85.53%的top-1准确率,相较于各自独立训练的对应模型,绝对增益分别为3.05%|3.39%|2.02%|4.61%|5.52%|4.03%|2.62%|3.73%。有趣的是,当扩大教师模型的规模或其预训练数据集的规模时,我们的方法展现出理想的扩展特性,为学生模型带来越来越大的增益。通过我们的方法训练的学生骨干网络在下游MS-COCO和ADE20K数据集上具有良好的迁移性能。更重要的是,如果存在强大的预训练ViT,我们的方法可以作为任何目标学生模型耗时的预训练范式的更高效替代方案,将所查看的训练样本数量减少高达195倍。

英文摘要:

In this paper, we question if well pre-trained vision transformer (ViT) models could be used as teachers that exhibit scalable properties to advance cross architecture knowledge distillation (KD) research, in the context of using large-scale datasets for evaluation. To make this possible, our analysis underlines the importance of seeking effective strategies to align (1) feature computing paradigm differences, (2) model scale differences, and (3) knowledge density differences. By combining three coupled components namely cross attention projector, dual-view feature mimicking and teacher parameter perception tailored to address the above problems, we present a simple and effective KD method, called ScaleKD. Our method can train student backbones that span across a variety of convolutional neural network (CNN), multi-layer perceptron (MLP), and ViT architectures on image classification datasets, achieving state-of-the-art distillation performance. For instance, taking a well pre-trained Swin-L as the teacher model, our method gets 75.15%|82.03%|84.16%|78.63%|81.96%|83.93%|83.80%|85.53% top-1 accuracies for MobileNet-V1|ResNet-50|ConvNeXt-T|Mixer-S/16|Mixer-B/16|ViT-S/16|Swin-T|ViT-B/16 models trained on ImageNet-1K dataset from scratch, showing 3.05%|3.39%|2.02%|4.61%|5.52%|4.03%|2.62%|3.73% absolute gains to the individually trained counterparts. Intriguingly, when scaling up the size of teacher models or their pre-training datasets, our method showcases the desired scalable properties, bringing increasingly larger gains to student models. The student backbones trained by our method transfer well on downstream MS-COCO and ADE20K datasets. More importantly, our method could be used as a more efficient alternative to the time-intensive pre-training paradigm for any target student model if a strong pre-trained ViT is available, reducing the amount of viewed training samples up to 195x.

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

↑