Table of Contents
Fetching ...

Representation Learning via Non-Contrastive Mutual Information

Zhaohan Daniel Guo, Bernardo Avila Pires, Khimya Khetarpal, Dale Schuurmans, Bo Dai

TL;DR

The paper tackles the challenge of learning useful representations from unlabeled data by bridging contrastive and non-contrastive self-supervised methods. It introduces the Mutual Information Non-Contrastive (MINC) loss, derived from the Spectral Contrastive Loss, and reinterprets it through a power-iteration framework and Generalized Hebbian Algorithm to avoid collapse while removing the quadratic data-dependence. The approach generalizes to $f$-MI with $\alpha$-divergences and leverages a target network and EMA-based statistics to stabilize training. Empirically on ImageNet, MINC improves over the Spectral Contrastive baseline and is competitive with Linear BYOL, illustrating a viable path to combine the strengths of contrastive and non-contrastive objectives for scalable representation learning.

Abstract

Labeling data is often very time consuming and expensive, leaving us with a majority of unlabeled data. Self-supervised representation learning methods such as SimCLR (Chen et al., 2020) or BYOL (Grill et al., 2020) have been very successful at learning meaningful latent representations from unlabeled image data, resulting in much more general and transferable representations for downstream tasks. Broadly, self-supervised methods fall into two types: 1) Contrastive methods, such as SimCLR; and 2) Non-Contrastive methods, such as BYOL. Contrastive methods are generally trying to maximize mutual information between related data points, so they need to compare every data point to every other data point, resulting in high variance, and thus requiring large batch sizes to work well. Non-contrastive methods like BYOL have much lower variance as they do not need to make pairwise comparisons, but are much trickier to implement as they have the possibility of collapsing to a constant vector. In this paper, we aim to develop a self-supervised objective that combines the strength of both types. We start with a particular contrastive method called the Spectral Contrastive Loss (HaoChen et al., 2021; Lu et al., 2024), and we convert it into a more general non-contrastive form; this removes the pairwise comparisons resulting in lower variance, but keeps the mutual information formulation of the contrastive method preventing collapse. We call our new objective the Mutual Information Non-Contrastive (MINC) loss. We test MINC by learning image representations on ImageNet (similar to SimCLR and BYOL) and show that it consistently improves upon the Spectral Contrastive loss baseline.

Representation Learning via Non-Contrastive Mutual Information

TL;DR

The paper tackles the challenge of learning useful representations from unlabeled data by bridging contrastive and non-contrastive self-supervised methods. It introduces the Mutual Information Non-Contrastive (MINC) loss, derived from the Spectral Contrastive Loss, and reinterprets it through a power-iteration framework and Generalized Hebbian Algorithm to avoid collapse while removing the quadratic data-dependence. The approach generalizes to -MI with -divergences and leverages a target network and EMA-based statistics to stabilize training. Empirically on ImageNet, MINC improves over the Spectral Contrastive baseline and is competitive with Linear BYOL, illustrating a viable path to combine the strengths of contrastive and non-contrastive objectives for scalable representation learning.

Abstract

Labeling data is often very time consuming and expensive, leaving us with a majority of unlabeled data. Self-supervised representation learning methods such as SimCLR (Chen et al., 2020) or BYOL (Grill et al., 2020) have been very successful at learning meaningful latent representations from unlabeled image data, resulting in much more general and transferable representations for downstream tasks. Broadly, self-supervised methods fall into two types: 1) Contrastive methods, such as SimCLR; and 2) Non-Contrastive methods, such as BYOL. Contrastive methods are generally trying to maximize mutual information between related data points, so they need to compare every data point to every other data point, resulting in high variance, and thus requiring large batch sizes to work well. Non-contrastive methods like BYOL have much lower variance as they do not need to make pairwise comparisons, but are much trickier to implement as they have the possibility of collapsing to a constant vector. In this paper, we aim to develop a self-supervised objective that combines the strength of both types. We start with a particular contrastive method called the Spectral Contrastive Loss (HaoChen et al., 2021; Lu et al., 2024), and we convert it into a more general non-contrastive form; this removes the pairwise comparisons resulting in lower variance, but keeps the mutual information formulation of the contrastive method preventing collapse. We call our new objective the Mutual Information Non-Contrastive (MINC) loss. We test MINC by learning image representations on ImageNet (similar to SimCLR and BYOL) and show that it consistently improves upon the Spectral Contrastive loss baseline.

Paper Structure

This paper contains 18 sections, 29 equations, 4 figures, 1 table, 1 algorithm.

Figures (4)

  • Figure 1: Ablation for the $\alpha$-divergence with auxiliary $\text{EMA}=0$. $\alpha=2$ is the best performing one. $\alpha=1.5$ is close, but smaller $\alpha$ or $\alpha>2$ are much worse.
  • Figure 2: Ablation for GHA when auxiliary $\text{EMA}=0.8$. Without GHA, the representation collapses. With GHA, the representation learns a meaningful representation. Combining GHA and the target network results in even better performance.
  • Figure 3: Ablation for auxiliary EMA of MINC. Any amount of auxiliary EMA is better than 0, with 0.8 being the sweetspot.
  • Figure :