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

用于对比学习的实例间相似性建模

Inter-Instance Similarity Modeling for Contrastive Learning

Central South University(中南大学)

Chengchao Shen, Dawei Liu, Hao Tang, Zhe Qu, Jianxin Wang

AI总结:

提出用于ViT对比学习的PatchMix方法,通过patch级别混合多张图像建模实例间相似性,显著提升了自监督表示在分类及下游检测与分割任务上的性能。

摘要:

现有的对比学习方法广泛采用one-hot实例判别作为自监督学习的代理任务,这不可避免地忽略了自然图像间丰富的实例间相似性,进而导致潜在的表示退化。在本文中,我们提出了一种新颖的图像混合方法PatchMix,用于Vision Transformer (ViT)中的对比学习,以建模图像间的实例间相似性。遵循ViT的特性,我们在patch级别随机混合来自mini-batch的多张图像,为ViT构建混合图像patch序列。与现有的样本混合方法相比,我们的PatchMix可以灵活高效地混合两张以上的图像,并模拟自然图像间更复杂的相似性关系。通过这种方式,我们的对比框架可以显著缩小对比目标与现实中真实情况之间的差距。实验结果表明,我们提出的方法在ImageNet-1K和CIFAR数据集上均显著优于先前的state-of-the-art,例如,在ImageNet-1K上线性准确率提升3.0%,在CIFAR100上kNN准确率提升8.7%。此外,我们的方法在下游任务(即COCO数据集上的目标检测和实例分割)上实现了领先的迁移性能。代码可在https://github.com/visresearch/patchmix获取。

英文摘要:

The existing contrastive learning methods widely adopt one-hot instance discrimination as pretext task for self-supervised learning, which inevitably neglects rich inter-instance similarities among natural images, then leading to potential representation degeneration. In this paper, we propose a novel image mix method, PatchMix, for contrastive learning in Vision Transformer (ViT), to model inter-instance similarities among images. Following the nature of ViT, we randomly mix multiple images from mini-batch in patch level to construct mixed image patch sequences for ViT. Compared to the existing sample mix methods, our PatchMix can flexibly and efficiently mix more than two images and simulate more complicated similarity relations among natural images. In this manner, our contrastive framework can significantly reduce the gap between contrastive objective and ground truth in reality. Experimental results demonstrate that our proposed method significantly outperforms the previous state-of-the-art on both ImageNet-1K and CIFAR datasets, e.g., 3.0% linear accuracy improvement on ImageNet-1K and 8.7% kNN accuracy improvement on CIFAR100. Moreover, our method achieves the leading transfer performance on downstream tasks, object detection and instance segmentation on COCO dataset. The code is available at https://github.com/visresearch/patchmix

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

↑