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

用于改进微小数据集上的视觉Transformer的局部指导

Locality Guidance for Improving Vision Transformers on Tiny Datasets

Peking University(北京大学);Peng Cheng Laboratory(鹏城实验室)

Kehan Li, Runyi Yu, Zhennan Wang, Li Yuan, Guoli Song, Jie Chen

摘要:

虽然视觉Transformer(VT)架构在计算机视觉中越来越流行,但纯VT模型在微小数据集上的表现很差。为了解决这个问题,本文提出了局部性指导,以提高性能的小数据集上的VT。我们首先分析了由于虚拟机中自我注意力机制的高度灵活性和内在的全局性,使得对于理解图像至关重要的局部信息难以在有限的数据下学习。为了促进本地信息,我们通过模仿已经训练好的卷积神经网络(CNN)的特征来实现VT的本地指导,其灵感来自CNN的内置本地到全局层次结构。在我们的双任务学习范式下,在低分辨率图像上训练的轻量级CNN提供的局部指导足以加速收敛并在很大程度上提高VT的性能。因此,我们的局部指导方法是非常简单和有效的,可以作为一个基本的性能增强方法的小数据集上的VT。大量的实验表明,我们的方法可以显着改善VT时,从零开始训练的微小数据集,并兼容不同类型的VT和数据集。例如,我们提出的方法可以提高各种VT在微小数据集上的性能(例如,DeiT为13.07%,T2T为8.98%,PVT为7.85%),并将更强的基线PVTv2增强1.86%至79.30%,显示了VT在微小数据集上的潜力。该代码可在https://github.com/lkhl/tiny-transformers上获得。

英文摘要:

While the Vision Transformer (VT) architecture is becoming trendy in computer vision, pure VT models perform poorly on tiny datasets. To address this issue, this paper proposes the locality guidance for improving the performance of VTs on tiny datasets. We first analyze that the local information, which is of great importance for understanding images, is hard to be learned with limited data due to the high flexibility and intrinsic globality of the self-attention mechanism in VTs. To facilitate local information, we realize the locality guidance for VTs by imitating the features of an already trained convolutional neural network (CNN), inspired by the built-in local-to-global hierarchy of CNN. Under our dual-task learning paradigm, the locality guidance provided by a lightweight CNN trained on low-resolution images is adequate to accelerate the convergence and improve the performance of VTs to a large extent. Therefore, our locality guidance approach is very simple and efficient, and can serve as a basic performance enhancement method for VTs on tiny datasets. Extensive experiments demonstrate that our method can significantly improve VTs when training from scratch on tiny datasets and is compatible with different kinds of VTs and datasets. For example, our proposed method can boost the performance of various VTs on tiny datasets (e.g., 13.07% for DeiT, 8.98% for T2T and 7.85% for PVT), and enhance even stronger baseline PVTv2 by 1.86% to 79.30%, showing the potential of VTs on tiny datasets. The code is available at https://github.com/lkhl/tiny-transformers.

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

↑