Poly-View Contrastive Learning

Amitis Shidani, R Devon Hjelm, Jason Ramapuram, Russell Webb, Eeshan Gunesh Dhekane, Dan Busbridge

TL;DR: Standard contrastive learning relies on comparing pairs of image views, often requiring massive batch sizes and long training times. This paper introduces Poly-View Contrastive Learning (PVC), which compares multiple views of a sample simultaneously. By increasing the number of views per sample, PVC is significantly more efficient than increasing batch size, allowing a model trained with a batch size of 256 to outperform a standard SimCLR model trained with a batch size of 4096.

The Compute Bottleneck in Contrastive Learning

Self-supervised contrastive learning has become a cornerstone of modern AI, but it is notoriously "compute-hungry." To learn high-quality representations without labels, models like SimCLR typically require huge batches (e.g., 4096 samples) and thousands of training epochs.

The core of the problem lies in how these models define their tasks. Most current methods are pairwise: they take two "views" (augmentations) of an image and try to make their representations similar while pushing them away from other images in the batch. While some methods like "Multi-Crop" use more than two views, they usually just average together multiple pairwise comparisons. This paper asks: Is there a more mathematically principled and computationally efficient way to learn from multiple views at once?

From Multi-View to Poly-View

The authors move from "multi-view" (usually meaning two) to "poly-view" ($M \ge 2$) learning. They derive new objective functions based on two theoretical frameworks:

Comparison of Multi-view and Poly-view frameworks
  1. Generalized Mutual Information (MI): Instead of maximizing the information between just two views, PVC maximizes the One-vs-Rest MI. This measures how much information one view provides about the entire set of other views for that same sample. They introduce two new losses:
  2. Arithmetic PVC: Based on the log of the average similarity across views.
  3. Geometric PVC: Based on the average of the logs of similarities.
  4. Sufficient Statistics: The authors argue that a good representation should be a "sufficient statistic" for the underlying generative factor of the data. They derive a Sufficient Statistics Loss that treats the set of views as a way to approximate the "true" underlying concept of the image.

Crucially, they prove that while "Multi-Crop" only reduces the variance of the gradient, their PVC objectives actually improve the theoretical lower bound on the information the model can learn.

Key Insights and Results

Loss bounds scaling with view multiplicity
  • The "Compute Pareto Front" Shift: For a fixed "compute budget" (total FLOPs), it is better to have more views of fewer unique images than few views of many images. Increasing "view multiplicity" (the number of views per sample) provides a stronger signal-to-noise ratio, allowing the model to "see" the underlying object more clearly through the noise of various augmentations.
  • Challenging the Large Batch Dogma: The prevailing belief in the field was that contrastive learning requires massive batches to provide enough "negative" examples. This paper shows that by using poly-view objectives, you can achieve superior results with much smaller, more accessible batch sizes.
  • Massive Efficiency Gains: A Geometric PVC model trained for only 128 epochs with a batch size of 256 outperformed a SimCLR baseline trained for 1024 epochs with a batch size of 4096 on ImageNet-1k.
  • Better Transfer: Representations learned via PVC transferred better to downstream tasks (like classifying cars, aircraft, or pets) than those learned via standard pairwise contrastive methods.

Limitations and Future Work

  • Framework Specificity: The experiments primarily focused on the SimCLR framework. More empirical work is needed to see how PVC integrates with non-contrastive SSL methods like BYOL or DINO.
  • Architectural Focus: The study used ResNet-50 as the primary backbone. Vision Transformers (ViTs) might benefit even more from poly-view learning due to their different inductive biases, but this remains to be tested.
  • Natural Multi-View Data: The method was tested on synthetic augmentations. Applying this to naturally occurring multi-view data (like video frames or multi-modal sensor data) is a promising future direction.

Summary updated

BibTeX
@inproceedings{shidani2024poly,
  author = {Amitis Shidani and R Devon Hjelm and Jason Ramapuram and Russell Webb and Eeshan Gunesh Dhekane and Dan Busbridge},
  title = {{Poly-View Contrastive Learning}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=iHcTLIor0m},
}
Figure