LeOCLR: Leveraging Original Images for Contrastive Learning of Visual Representations
Mohammad Alkhalefi, Georgios Leontidis, Mingjun Zhong
TL;DR
LeOCLR tackles semantic loss in contrastive self-supervised learning caused by random crops by introducing the original uncropped image as a semantic anchor. It forms three views per instance (X, X^1, X^2), encodes X with a query encoder and the crops with a momentum encoder, and trains to pull each crop toward X while maintaining discriminative power against negatives. The method uses a tailored loss that aligns X^1 and X^2 with X and leverages stop-gradient, leading to improved semantic feature learning. Across ImageNet-1K linear evaluation, transfer, and object-detection tasks, LeOCLR delivers consistent gains over SOTA contrastive methods, demonstrating enhanced robustness to augmentations and better transferability.
Abstract
Contrastive instance discrimination methods outperform supervised learning in downstream tasks such as image classification and object detection. However, these methods rely heavily on data augmentation during representation learning, which can lead to suboptimal results if not implemented carefully. A common augmentation technique in contrastive learning is random cropping followed by resizing. This can degrade the quality of representation learning when the two random crops contain distinct semantic content. To tackle this issue, we introduce LeOCLR (Leveraging Original Images for Contrastive Learning of Visual Representations), a framework that employs a novel instance discrimination approach and an adapted loss function. This method prevents the loss of important semantic features caused by mapping different object parts during representation learning. Our experiments demonstrate that LeOCLR consistently improves representation learning across various datasets, outperforming baseline models. For instance, LeOCLR surpasses MoCo-v2 by 5.1% on ImageNet-1K in linear evaluation and outperforms several other methods on transfer learning and object detection tasks.
