Masked image modeling (MIM), an emerging self-supervised pre-training method, has shown impressive success across numerous downstream vision tasks with Vision transformers (ViT). Its underlying idea is simple: a portion of the input image is randomly masked out and then reconstructed via the pre-text task. However, why MIM works well is not well explained, and previous studies insist that MIM primarily works for the Transformer family but is incompatible with CNNs. In this paper, we first study interactions among patches to understand what knowledge is learned and how it is acquired via the MIM task. We observe that MIM essentially teaches the model to learn better middle-level interactions among patches and extract more generalized features. Based on this fact, we propose an Architecture-Agnostic Masked Image Modeling framework (A$^2$MIM), which is compatible with not only Transformers but also CNNs in a unified way. Extensive experiments on popular benchmarks show that our A$^2$MIM learns better representations and endows the backbone model with the stronger capability to transfer to various downstream tasks for both Transformers and CNNs.
翻译:蒙面图像建模(MIM)是一个新兴的自我监督的培训前先导方法,在与View变压器(View 变压器)合作的众多下游愿景任务中,显示了令人印象深刻的成功。其基本理念很简单:部分输入图像被随机遮蔽,然后通过文本前任务进行重建。然而,为何MIM工作良好,没有很好地解释,先前的研究坚持认为MIM主要为变压器家庭工作,但与CNN不相容。在本文中,我们首先研究补丁之间的互动,以了解通过MIM任务学到了什么知识以及如何获得知识。我们观察到,MIM基本上教授了模型,以学习补压器之间更好的中层互动,并提取更加普及的特征。基于这一事实,我们提议了一个建筑-Agnoric Maced图像建模框架(A$2$MIM),它不仅与变压器家庭是兼容的,而且与CNNIS一致的相容。关于流行基准的广泛实验表明,我们的A$2$MIM学会了更好的表现,并且将主干模型与更强大的能力转移到各种下游任务上。