Self-supervised learning (SSL) has delivered superior performance on a variety of downstream vision tasks. Two main-stream SSL frameworks have been proposed, i.e., Instance Discrimination (ID) and Masked Image Modeling (MIM). ID pulls together representations from different views of the same image, while avoiding feature collapse. It lacks spatial sensitivity, which requires modeling the local structure within each image. On the other hand, MIM reconstructs the original content given a masked image. It instead does not have good semantic alignment, which requires projecting semantically similar views into nearby representations. To address this dilemma, we observe that (1) semantic alignment can be achieved by matching different image views with strong augmentations; (2) spatial sensitivity can benefit from predicting dense representations with masked images. Driven by these analysis, we propose Siamese Image Modeling (SiameseIM), which predicts the dense representations of an augmented view, based on another masked view from the same image but with different augmentations. SiameseIM uses a Siamese network with two branches. The online branch encodes the first view, and predicts the second view's representation according to the relative positions between these two views. The target branch produces the target by encoding the second view. SiameseIM can surpass both ID and MIM on a wide range of downstream tasks, including ImageNet finetuning and linear probing, COCO and LVIS detection, and ADE20k semantic segmentation. The improvement is more significant in few-shot, long-tail and robustness-concerned scenarios. Code shall be released at https://github.com/fundamentalvision/Siamese-Image-Modeling.
翻译:自监督学习(SSL) 在一系列下游视觉任务中取得了优异的成绩。 已经提出了两个主要流的 SSL 框架, 即“ 情况歧视( ID) ” 和“ 蒙面图像模型( MIM) ) 。 ID 将同一图像的不同观点的表达方式结合在一起, 避免特征崩溃。 它缺乏空间敏感性, 需要在每张图像中建模本地结构。 另一方面, MIM 重建了隐藏图像的原始内容。 它没有良好的语义协调, 而这需要将语义观点投射到附近的表达方式上。 为了解决这一难题, 我们观察到:(1) 将不同的图像视图与强大的放大( IM ) 。 ID 能够从同一图像中建模( SS SS ), 和 遮固图像模型( SS ) ( SS ) ( NAME) ) ( ) ( SAIM ) ( ) ( ) ( SAIM) ( ) ( ) ( ) ( NAME ) ( ) ( ) ( CO) ( ) ( ) ( ) ( CO ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( CO) ( ) ( ) ( ) ( ) ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) (