Skip to main content
QUICK REVIEW

[Paper Review] What Should Not Be Contrastive in Contrastive Learning

Tete Xiao, Xiao-Long Wang|arXiv (Cornell University)|Aug 13, 2020
Domain Adaptation and Few-Shot LearningComputer Science37 references92 citations
TL;DR

The paper proposes Leave-one-out Contrastive Learning (LooC), a multi-head contrastive framework that learns separate embedding spaces each invariant to all but one augmentation, improving transferability, robustness, and performance across diverse 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.

Motivation & Objective

  • Motivate reducing reliance on task-specific augmentation invariances in contrastive learning.
  • Develop a framework that learns both augmentation-invariant and augmentation-varying factors without hand-selecting augmentations.
  • Enable downstream tasks to selectively use different factors of variation by combining embedding spaces.
  • Evaluate the approach across diverse downstream tasks (coarse/fine-grained, few-shot) and corruption settings.
  • Demonstrate improved transferability over baseline MoCo under multiple augmentations.

Proposed method

  • Introduce Leave-one-out Contrastive Learning (LooC) with a shared backbone and multiple embedding heads.
  • Generate views using an augmentation scheme where one head isolates a single augmentation while others capture invariances.
  • Project into a shared space V and then into embedding spaces Z0 (invariant to all augmentations) and Zi (invariant to all but the i-th augmentation).
  • Optimize a multi-space contrastive objective that aligns each augmented pair within its corresponding head while contrasting against negatives across all heads (Eq. 2).
  • Optionally concatenate all embedding spaces (LooC++) to form a richer downstream representation.
  • Use a ResNet-50 backbone with two-layer MLP heads and MoCo-style queues for each embedding space.

Experimental results

Research questions

  • RQ1How do augmentation-induced invariances affect downstream performance across tasks?
  • RQ2Can a multi-head setup preserve and utilize information tied to individual augmentations while remaining robust to others?
  • RQ3Does combining invariant and augmentation-specific spaces improve transfer to diverse downstream datasets?
  • RQ4How does LooC compare to standard MoCo when introducing multiple augmentations, including rotation, color jitter, and texture?
  • RQ5What is the impact of augmentation-dependent features on robustness to real-world data corruptions?

Key findings

  • LooC outperforms baseline MoCo across multiple downstream tasks when using several augmentations.
  • LooC maintains and leverages augmentation-specific information, leading to better performance on fine-grained and few-shot tasks.
  • LooC++ (concatenation of all spaces) provides the strongest overall gains across diverse datasets (IN-100, iNat-1k, Flowers-102).
  • Rotation augmentation alone degrades MoCo performance, while LooC better utilizes the information gain from rotation.
  • Texture augmentation improves robustness on IN-C-100, and combining rotation and texture yields gains on both real-world and corrupted datasets.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.