What Should Not Be Contrastive in Contrastive Learning
Tete Xiao, Xiaolong Wang, Alexei A. Efros, Trevor Darrell
TL;DR
The paper tackles the problem that fixed augmentation invariances in contrastive self-supervised learning can impair downstream performance. It proposes Leave-one-out Contrastive Learning (LooC), a multi-embedding approach where each subspace is sensitive to a single augmentation while invariant to others, allowing task-driven combination of factors of variation. Across ImageNet-100 and diverse datasets, LooC and its concatenated variant LooC++ show superior transferability, few-shot performance, and robustness to corruptions compared to MoCo and various ablations. The work highlights the importance of modeling augmentation-dependent information rather than enforcing global invariances, with practical benefits for broad vision tasks.
Abstract
Recent self-supervised contrastive methods have been able to produce impressive transferable visual representations by learning to be invariant to different data augmentations. However, these methods implicitly assume a particular set of representational invariances (e.g., invariance to color), and can perform poorly when a downstream task violates this assumption (e.g., distinguishing red vs. yellow cars). We introduce a contrastive learning framework which does not require prior knowledge of specific, task-dependent invariances. Our model learns to capture varying and invariant factors for visual representations by constructing separate embedding spaces, each of which is invariant to all but one augmentation. We use a multi-head network with a shared backbone which captures information across each augmentation and alone outperforms all baselines on downstream tasks. We further find that the concatenation of the invariant and varying spaces performs best across all tasks we investigate, including coarse-grained, fine-grained, and few-shot downstream classification tasks, and various data corruptions.
