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

自监督视觉Transformer学习到了什么?

What Do Self-Supervised Vision Transformers Learn?

Prescient Design, Genentech(基因泰克公司Prescient Design部门);NAVER AI Lab(NAVER人工智能实验室)

Namuk Park, Wonjae Kim, Byeongho Heo, Taekyung Kim, Sangdoo Yun

AI总结:

该研究对比了对比学习(CL)与掩码图像建模(MIM)训练的自监督视觉Transformer的表征差异,揭示了二者在注意力模式、频率偏好、作用层级上的不同特性,发现二者可互补,简单融合即可结合双方优势。

摘要:

我们针对对比学习(CL)与掩码图像建模(MIM)在表征形式及下游任务表现上的差异及成因开展了对比研究。具体而言,我们证明自监督Vision Transformers(ViTs,视觉Transformer)具备以下特性:(1)CL训练得到的自注意力机制比MIM能捕捉更长距离的全局模式,例如物体的形状,这一特性在ViT架构的深层尤为明显。CL的该属性有助于ViT在其表征空间中实现图像的线性可分,但也会导致自注意力针对所有查询token和注意力头坍缩为同质化状态。自注意力的这种同质化会降低表征的多样性,损害可扩展性和密集预测性能。(2)CL利用表征的低频信号,而MIM利用高频信号。由于低频和高频信息分别对应形状和纹理,因此CL更偏向形状导向,MIM更偏向纹理导向。(3)CL在网络深层发挥关键作用,而MIM主要作用于浅层。基于这些分析,我们发现CL与MIM可以互补,并且观察到即便是最简单的协调方式也能同时利用两种方法的优势。相关代码可在https://github.com/naver-ai/cl-vs-mim获取。

英文摘要:

We present a comparative study on how and why contrastive learning (CL) and masked image modeling (MIM) differ in their representations and in their performance of downstream tasks. In particular, we demonstrate that self-supervised Vision Transformers (ViTs) have the following properties: (1) CL trains self-attentions to capture longer-range global patterns than MIM, such as the shape of an object, especially in the later layers of the ViT architecture. This CL property helps ViTs linearly separate images in their representation spaces. However, it also makes the self-attentions collapse into homogeneity for all query tokens and heads. Such homogeneity of self-attention reduces the diversity of representations, worsening scalability and dense prediction performance. (2) CL utilizes the low-frequency signals of the representations, but MIM utilizes high-frequencies. Since low- and high-frequency information respectively represent shapes and textures, CL is more shape-oriented and MIM more texture-oriented. (3) CL plays a crucial role in the later layers, while MIM mainly focuses on the early layers. Upon these analyses, we find that CL and MIM can complement each other and observe that even the simplest harmonization can help leverage the advantages of both methods. The code is available at https://github.com/naver-ai/cl-vs-mim.

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

↑