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

MixMAE:用于高效预训练分层视觉Transformer的混合与掩码自编码器

MixMAE: Mixed and Masked Autoencoder for Efficient Pretraining of Hierarchical Vision Transformers

CUHK(香港中文大学);SenseTime Research(商汤科技研究院);CPII under InnoHK(香港创新香港旗下的计算机视觉与模式识别创新中心)

Jihao Liu, Xin Huang, Jinliang Zheng, Yu Liu, Hongsheng Li

AI总结:

本文提出MixMAE预训练方法,通过将一张图像的掩码token替换为另一张图像的可见token生成混合图像并进行双重重建,解决了分层视觉Transformer中[MASK]符号导致的训练慢与不一致问题,显著提升了预训练效率与表示质量。

摘要:

在本文中,我们提出了Mixed and Masked AutoEncoder(MixMAE),这是一种简单但高效的预训练方法,适用于各种分层Vision Transformers。现有的用于分层Vision Transformers的masked image modeling(MIM)方法用特殊的[MASK]符号替换输入token的随机子集,旨在从损坏的图像中重建原始图像token。然而,我们发现使用[MASK]符号会大大减慢训练速度,并由于较大的掩码比例(例如SimMIM中的60%)导致预训练与微调不一致。另一方面,MAE在其编码器中完全不引入[MASK]token,但不适用于分层Vision Transformers。为了解决该问题并加速分层模型的预训练,我们将一张图像的掩码token替换为另一张图像的可见token,即创建一张混合图像。然后,我们进行双重重建,从混合输入中重建两张原始图像,这显著提高了效率。虽然MixMAE可应用于各种分层Transformers,但本文探索使用具有大窗口尺寸的Swin Transformer,并将其扩展到巨大的模型尺寸(达到600M参数)。实验结果表明,MixMAE能够高效地学习高质量的视觉表示。值得注意的是,采用Swin-B/W14的MixMAE在ImageNet-1K上经过600个epoch的预训练后,达到了85.1%的top-1准确率。此外,它在其他6个数据集上的迁移性能表明,与以往流行的MIM方法相比,MixMAE具有更好的FLOPs/性能权衡。代码可在https://github.com/Sense-X/MixMIM获取。

英文摘要:

In this paper, we propose Mixed and Masked AutoEncoder (MixMAE), a simple but efficient pretraining method that is applicable to various hierarchical Vision Transformers. Existing masked image modeling (MIM) methods for hierarchical Vision Transformers replace a random subset of input tokens with a special [MASK] symbol and aim at reconstructing original image tokens from the corrupted image. However, we find that using the [MASK] symbol greatly slows down the training and causes pretraining-finetuning inconsistency, due to the large masking ratio (e.g., 60% in SimMIM). On the other hand, MAE does not introduce [MASK] tokens at its encoder at all but is not applicable for hierarchical Vision Transformers. To solve the issue and accelerate the pretraining of hierarchical models, we replace the masked tokens of one image with visible tokens of another image, i.e., creating a mixed image. We then conduct dual reconstruction to reconstruct the two original images from the mixed input, which significantly improves efficiency. While MixMAE can be applied to various hierarchical Transformers, this paper explores using Swin Transformer with a large window size and scales up to huge model size (to reach 600M parameters). Empirical results demonstrate that MixMAE can learn high-quality visual representations efficiently. Notably, MixMAE with Swin-B/W14 achieves 85.1% top-1 accuracy on ImageNet-1K by pretraining for 600 epochs. Besides, its transfer performances on the other 6 datasets show that MixMAE has better FLOPs / performance tradeoff than previous popular MIM methods. Code is available at https://github.com/Sense-X/MixMIM.

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

↑