arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2107.01378cs.CV
收藏

通过细粒度流形蒸馏学习高效的视觉Transformer

Learning Efficient Vision Transformers via Fine-Grained Manifold Distillation

Beijing Institute of Technology(北京理工大学);Huawei Technologies(华为技术有限公司);Peking University(北京大学)

Zhiwei Hao, Jianyuan Guo, Ding Jia, Kai Han, Yehui Tang, Chao Zhang, Han Hu, Yunhe Wang

摘要:

在过去的几年里,Transformers在各种计算机视觉任务上取得了令人满意的性能。不幸的是,大多数现有的视觉Transformer的巨大推理开销阻止了它们在边缘设备(如手机和智能手表)上的部署。知识蒸馏是一种广泛使用的范例,用于通过将信息传递给紧凑的学生来压缩繁琐的架构。然而,这些方法大多是针对卷积神经网络(CNN)设计的,没有充分研究视觉Transformer(ViT)的特性。在本文中,我们利用块级信息,并提出了一个细粒度的流形蒸馏方法。具体来说,我们训练一个小的学生模型,以匹配一个预先训练的教师模型在补丁级流形空间。然后,我们将流形匹配损失解耦为三项,并进行了精心设计,以进一步降低补丁关系的计算成本。配备了所提出的方法,包含5 M参数的DeiT-Tiny模型在ImageNet-1 k上实现了76.5%的top-1准确度,比以前的蒸馏方法高出2.0%。其他分类基准和下游视觉任务的迁移学习结果也证明了我们的方法优于最先进的算法。

英文摘要:

In the past few years, transformers have achieved promising performances on various computer vision tasks. Unfortunately, the immense inference overhead of most existing vision transformers withholds their from being deployed on edge devices such as cell phones and smart watches. Knowledge distillation is a widely used paradigm for compressing cumbersome architectures via transferring information to a compact student. However, most of them are designed for convolutional neural networks (CNNs), which do not fully investigate the character of vision transformer (ViT). In this paper, we utilize the patch-level information and propose a fine-grained manifold distillation method. Specifically, we train a tiny student model to match a pre-trained teacher model in the patch-level manifold space. Then, we decouple the manifold matching loss into three terms with careful design to further reduce the computational costs for the patch relationship. Equipped with the proposed method, a DeiT-Tiny model containing 5M parameters achieves 76.5% top-1 accuracy on ImageNet-1k, which is +2.0% higher than previous distillation approaches. Transfer learning results on other classification benchmarks and downstream vision tasks also demonstrate the superiority of our method over the state-of-the-art algorithms.

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

↑