Harnessing small projectors and multiple views for efficient vision pretraining

Arna Ghosh, Kumar Krishna Agrawal, Shagun Sodhani, Adam Oberman, Blake Aaron Richards

Abstract

Recent progress in self-supervised learning (SSL) for visual representations has led to several successful frameworks. However, the field relies heavily on computationally expensive heuristics, such as massive projector heads and strict data augmentation recipes, often lacking theoretically grounded principles. By reformulating the SSL loss function, this work demonstrates that we can replace memory-hungry projector heads with much smaller ones and use multiple image views to cut the required pretraining data by up to 50% without sacrificing downstream accuracy.

Introduction

Self-supervised learning—training models on unlabeled data by teaching them that different "views" (augmentations) of the same image should have similar representations—has become a cornerstone of modern computer vision. Despite its success, practical implementation requires expensive heuristics. Popular methods like Barlow Twins or VICReg often utilize massive "projector heads" (e.g., up to 8192 dimensions) and default to exactly two augmentations per image.

A major gap in the field is understanding why these specific settings work. This lack of theoretical grounding makes SSL incredibly data-hungry and computationally expensive, posing a significant barrier for domains where data is scarce, such as medical imaging. This paper provides a theoretical framework to make SSL more efficient, accessible, and principled.

Theoretical Framework and Methods

The authors build on the premise that most SSL frameworks implicitly minimize the same idealized loss: learning features that best match a "data similarity kernel" defined by the chosen augmentations.

  1. Loss Reformulation: The researchers mathematically simplify the idealized theoretical SSL loss into a functionally equivalent version that is significantly more efficient to compute.
  2. Addressing "Selection Bias": Analyzing gradient descent dynamics during training reveals a "selection bias." The model naturally gravitates toward dominant patterns (large singular values) while ignoring subtler, useful features.
  3. Stronger Orthogonalization: To counter this bias, the authors propose applying a stronger "orthogonalization constraint" (the $\beta$ parameter in Barlow Twins). This forces the model to learn non-redundant features, which theoretically allows for much smaller projector dimensions.
  4. Multi-view Training: Instead of the standard two views per image, the proposed method uses $m$ views (e.g., 4 or 8). More views provide a better statistical estimate of the underlying data kernel, leading to improved convergence.
Conceptual overview of the proposed loss reformulation, comparing the idealized theoretical loss with the more efficient proposed method.

Key Findings and Results

The authors validated their theoretically grounded recommendations on three standard computer vision benchmarks: CIFAR-10, STL-10, and ImageNet-100.

The "8192" Myth and Projector Efficiency

High-dimensional projectors are not strictly necessary for competitive performance. The paper demonstrates that a 256-dimensional projector can match the performance of an 8192-dimensional one, provided the penalty for redundant features is properly scaled (specifically, $\beta \propto 1/d$).

Test accuracy and optimal beta across different projector dimensionalities for CIFAR-10, STL-10, and ImageNet-100, demonstrating that smaller projectors achieve competitive performance when beta is optimized.

As shown above, optimizing the $\beta$ parameter allows models with drastically reduced projector dimensionality to maintain high test accuracy across multiple datasets. For instance, on CIFAR-10, the authors achieved ~82% accuracy using a mere 64-dimensional projector with an optimized $\beta$, nearly matching the 82.2% performance of an 8192-dimensional projector. This significantly reduces parameter overhead.

Data Inflation and Faster Convergence

Using more augmentations of the same image acts as a form of "data inflation." The authors found that processing four different crops of 5,000 images can be as effective as processing two crops of 10,000 images. By using 4 or 8 augmentations instead of 2, downstream accuracy was maintained while using 2× fewer unique images in the pretraining set.

Furthermore, multi-augmentation models reached baseline accuracy levels significantly faster in terms of wall-clock time. On CIFAR-10, a 4-augmentation setup reached the target accuracy in just 43 minutes, compared to nearly 100 minutes for the standard 2-augmentation baseline.

Limitations and Future Directions

While multi-view training is highly data-efficient, generating more augmentations per image does increase the computational cost per training step. The authors suggest mitigating this by parallelizing augmentations across multiple GPUs.

Additionally, this study focuses primarily on non-contrastive methods (like Barlow Twins). While the authors touch on the duality with contrastive methods (like SimCLR), further empirical work is needed to confirm if these exact recipes translate perfectly across all SSL families. Future research could also explore these insights in the context of biological learning—how animals explore objects from multiple views—and extend the analysis to architectures like Masked Autoencoders (MAE).

Summary updated

BibTeX
@inproceedings{ghosh2024harnessing,
  author = {Arna Ghosh and Kumar Krishna Agrawal and Shagun Sodhani and Adam Oberman and Blake Aaron Richards},
  title = {{Harnessing small projectors and multiple views for efficient vision pretraining}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=Y5DPSJzpra},
}
Figure