arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2212.05677cs.CV
收藏

掩码自编码器是解决Transformer数据饥渴问题的有效解决方案

Masked autoencoders are effective solution to transformer data-hungry

Hangzhou Dianzi University(杭州电子科技大学)

Jiawei Mao, Honggu Zhou, Xuesong Yin, Yuanqi Chang. Binling Nie. Rui Xu

摘要:

视觉Transformer(ViTs)凭借其全局建模能力在多个视觉任务中优于卷积神经网络(CNN)。然而,ViT缺乏卷积固有的归纳偏差,这使得它需要大量的数据进行训练。这导致ViT在医学和科学等小数据集上的表现不如CNN。我们通过实验发现,掩码自编码器(MAE)可以使Transformer更专注于图像本身,从而在一定程度上缓解了ViT的数据饥饿问题。然而,目前的MAE模型过于复杂,导致小数据集上的过拟合问题。这导致在小数据集上训练的MAE和高级CNN模型之间仍然存在差距。因此,我们研究了如何降低MAE中的解码器复杂度,并找到了更适合小数据集的架构配置。此外,我们还设计了一个位置预测任务和一个对比学习任务来引入MAE的局部性和不变性。我们的对比学习任务不仅使模型能够学习高级视觉信息,而且还允许训练MAE的类令牌。这是大多数MAE改进工作都没有考虑到的。大量的实验表明,与当前流行的小数据集的掩码图像建模(MIM)和视觉Transformer相比,我们的方法在标准小数据集以及具有少量样本的医学数据集上显示出最先进的性能。代码和模型可在https://github.com/Talented-Q/SDMAE上获得。

英文摘要:

Vision Transformers (ViTs) outperforms convolutional neural networks (CNNs) in several vision tasks with its global modeling capabilities. However, ViT lacks the inductive bias inherent to convolution making it require a large amount of data for training. This results in ViT not performing as well as CNNs on small datasets like medicine and science. We experimentally found that masked autoencoders (MAE) can make the transformer focus more on the image itself, thus alleviating the data-hungry issue of ViT to some extent. Yet the current MAE model is too complex resulting in over-fitting problems on small datasets. This leads to a gap between MAEs trained on small datasets and advanced CNNs models still. Therefore, we investigated how to reduce the decoder complexity in MAE and found a more suitable architectural configuration for it with small datasets. Besides, we additionally designed a location prediction task and a contrastive learning task to introduce localization and invariance characteristics for MAE. Our contrastive learning task not only enables the model to learn high-level visual information but also allows the training of MAE's class token. This is something that most MAE improvement efforts do not consider. Extensive experiments have shown that our method shows state-of-the-art performance on standard small datasets as well as medical datasets with few samples compared to the current popular masked image modeling (MIM) and vision transformers for small datasets.The code and models are available at https://github.com/Talented-Q/SDMAE.

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

↑