Occam's Razor for Self Supervised Learning: What is Sufficient to Learn Good Representations?

Mark Ibrahim, David Klindt, Randall Balestriero · DOI

Introduction

Self-Supervised Learning (SSL) has revolutionized computer vision by enabling models to learn from unlabeled data. However, modern SSL pipelines have become increasingly complex, relying on a "tangled web" of design choices such as non-linear projectors, momentum encoders, and teacher-student architectures. This complexity creates significant deployment friction, particularly when transitioning to new domains like medical imaging, and results in a "black box" training loss that offers little insight into model performance without external validation.

The DIET Method: Stripping SSL to its Core

Researchers propose DIET (A Simplified Self-Supervised Loss), which applies Occam’s Razor to the standard SSL pipeline. DIET introduces three major simplifications:

  1. Absolute Loss: Instead of relative contrastive learning, DIET treats every image in the dataset as a unique class, transforming SSL into an $N$-way classification problem.
  2. Projector Removal: It eliminates the standard non-linear projector, using a simple linear classifier on top of the backbone.
  3. Architecture Simplification: It removes the need for teacher-student networks or momentum encoders, enabling efficient training on single-GPU setups.

The final objective uses a standard Cross-Entropy loss with label smoothing (0.8) to facilitate convergence and improve stability.

Key Insights: The Informative Loss

A significant advantage of DIET is the strong correlation between its training loss and downstream task accuracy. In traditional SSL, the loss value is often abstract and uninformative. In contrast, a lower DIET loss consistently predicts a better representation across various datasets.

Correlation between DIET training loss and downstream test accuracy across CIFAR100, ImageNet100, and TinyImageNet.

This transparency allows practitioners to monitor progress directly from training logs, reducing the need for frequent supervised linear probes to verify model quality.

Experimental Results

DIET was validated across 16 architectures and multiple benchmarks, including natural and medical image datasets.

Competitive Performance and Stability

On CIFAR100, DIET achieved competitive top-1 accuracy (approximately 64% with a ResNet18), outperforming several established SSL methods. Furthermore, DIET demonstrated remarkable robustness, maintaining high performance across diverse architectures—including Vision Transformers (ViTs) and ConvNext—using the exact same hyperparameters.

Comparison of DIET against standard SSL methods across various architectures.

Domain-Agnostic Superiority

While standard SSL methods optimized for ImageNet often generalize poorly to specialized data, DIET's domain-agnostic approach excels. On the PathMNIST medical dataset, DIET achieved 44.53% test accuracy, significantly outperforming established baselines like SimCLR and MoCoV2, which struggled to break 19% in that domain.

Conclusion and Future Work

DIET demonstrates that many of the complex components of modern SSL are unnecessary for small to medium-sized datasets. By simplifying the objective to $N$-way classification, DIET offers a more stable, efficient (1.7x faster), and interpretable alternative. While scaling to massive datasets remains a challenge due to the memory requirements of the $N$-way linear layer, DIET provides a powerful "plug-and-play" solution for a wide range of practical applications.

Summary updated

BibTeX
@misc{ibrahim2024occam,
  author = {Mark Ibrahim and David Klindt and Randall Balestriero},
  title = {{Occam's Razor for Self Supervised Learning: What is Sufficient to Learn Good Representations?}},
  year = {2024},
  eprint = {2406.10743},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2406.10743},
}
Figure