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

基于小数据集的可视化Transformers高效训练

Efficient Training of Visual Transformers with Small Datasets

University of Trento(特伦托大学);Fondazione Bruno Kessler(布鲁诺·凯斯勒基金会);Tencent AI Lab(腾讯AI实验室)

Yahui Liu, Enver Sangineto, Wei Bi, Nicu Sebe, Bruno Lepri, Marco De Nadai

摘要:

可视化Transformers(VT)正在成为卷积网络(CNN)的替代架构范式。与CNN不同,VT可以捕获图像元素之间的全局关系,并且它们可能具有更大的表示能力。然而,缺乏典型的卷积归纳偏差使得这些模型比普通CNN更需要数据。事实上,嵌入在CNN架构设计中的视觉域的一些局部属性,在VT中应该从样本中学习。在本文中,我们实证分析了不同的VT,比较了它们在小训练集制度下的鲁棒性,我们表明,尽管在ImageNet上训练时具有相当的准确性,但它们在较小数据集上的性能可能会有很大不同。此外,我们提出了一个自我监督的任务,可以提取额外的信息,从图像中只有一个微不足道的计算开销。该任务鼓励VT学习图像内的空间关系,并且在训练数据稀缺时使VT训练更加鲁棒。我们的任务与标准(监督)训练联合使用,它不依赖于特定的架构选择,因此它可以很容易地插入现有的VT。使用不同的VT和数据集进行广泛的评估,我们表明我们的方法可以提高(有时显着)VT的最终准确性。我们的代码可在https://github.com/yhlleo/VTs-Drloc上获得。

英文摘要:

Visual Transformers (VTs) are emerging as an architectural paradigm alternative to Convolutional networks (CNNs). Differently from CNNs, VTs can capture global relations between image elements and they potentially have a larger representation capacity. However, the lack of the typical convolutional inductive bias makes these models more data-hungry than common CNNs. In fact, some local properties of the visual domain which are embedded in the CNN architectural design, in VTs should be learned from samples. In this paper, we empirically analyse different VTs, comparing their robustness in a small training-set regime, and we show that, despite having a comparable accuracy when trained on ImageNet, their performance on smaller datasets can be largely different. Moreover, we propose a self-supervised task which can extract additional information from images with only a negligible computational overhead. This task encourages the VTs to learn spatial relations within an image and makes the VT training much more robust when training data are scarce. Our task is used jointly with the standard (supervised) training and it does not depend on specific architectural choices, thus it can be easily plugged in the existing VTs. Using an extensive evaluation with different VTs and datasets, we show that our method can improve (sometimes dramatically) the final accuracy of the VTs. Our code is available at: https://github.com/yhlleo/VTs-Drloc.

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

↑