NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Occam’s Razor for SSL: Memory-Efficient Parametric Instance Discrimination

Eric Gan, Patrik Reizinger, Alice Bizeul, Attila Juhos, Mark Ibrahim, Randall Balestriero, David Klindt, Wieland Brendel, Baharan MirzasoleimanTMLR 2025

TL;DR

This paper introduces DIET, a novel self-supervised learning (SSL) method that simplifies the SSL pipeline by using a single computational branch and eliminating common complexities like negative sampling and gradient stopping. DIET achieves competitive performance, is memory-efficient, and offers theoretical insights into feature normalization, making SSL more accessible and understandable.

What Problem Does This Paper Address?

Self-supervised learning (SSL) has become a powerful tool for learning representations from unlabeled data. However, existing SSL methods often rely on complex architectures and numerous hyperparameters (e.g., gradient stopping, negative sampling, projectors, regularization terms). This complexity makes them difficult to tune, analyze theoretically, and computationally expensive, creating a high barrier to entry for researchers and practitioners. The authors argue that this complexity obscures the essential components of SSL and propose a simpler, more "Occam's Razor" approach.

Methods

The core contribution is DIET (Datum IndEx as its Target), a parametric instance discrimination (PID) method. Instead of relying on pairwise similarities between augmented views of an image and their negative counterparts, DIET frames SSL as a classification problem where each sample is treated as its own class. This is achieved by:

  • Single Computational Branch: DIET uses a single network branch, unlike many SSL methods that employ Siamese or teacher-student architectures.
  • Parametric Instance Discrimination: It uses a learnable linear classifier (WH) that maps the learned representations to the sample's index (its "target"). The loss is a standard cross-entropy loss.
  • No Explicit Negative Sampling or Gradient Stopping: These common but complex components are removed, simplifying the method.
  • Memory Efficiency (s-DIET): To address the scalability issue of the classifier head growing with the dataset size, they introduce s-DIET (Scaled DIET). This version uses a batched cross-entropy strategy that approximates the full cross-entropy loss while only keeping a subset of the classifier head in memory, significantly reducing memory footprint.
  • Theoretical Connections: The paper establishes theoretical links between DIET and established SSL methods like InfoNCE and Spectral Contrastive Learning (SCL), particularly in the "lazy training" regime. This analysis highlights the importance of feature normalization.

Datasets

The paper uses a variety of datasets for training and evaluation:

  • Small-scale datasets: CIFAR-10, CIFAR-100, TinyImageNet.
  • Transfer learning datasets: Aircraft, DTD, Pets, Flowers, CUB200, Food101, Cars.
  • Medical imaging datasets: MedMNISTv2 benchmark (PathMNIST, DermaMNIST, BloodMNIST).
  • Synthetic datasets: A custom synthetic dataset for theoretical analysis.
  • Toy dataset: A simplified dataset for theoretical analysis.

Key Insights and Ideas

  • Simplicity is Powerful: DIET demonstrates that a much simpler SSL framework, by treating each sample as its own class, can achieve competitive performance without the complexity of negative sampling or gradient stopping.
  • Feature Normalization is Crucial: Theoretical analysis reveals that feature normalization plays a key role in DIET's ability to learn richer representations, particularly in distinguishing between content and style features. Without normalization, DIET tends to focus only on the "content" (lower variance) features.
  • Instance Discrimination as a Foundation: The paper argues that instance discrimination provides a more fundamental and theoretically tractable approach to SSL compared to pairwise contrastive methods.
  • Higher-Rank Embeddings: DIET consistently produces higher-rank embeddings compared to methods like SimCLR and VICReg, suggesting it captures more latent information and potentially suffers less from dimensionality collapse.

Key Results

  • Competitive Performance: DIET achieves competitive accuracy on various downstream tasks, often matching or surpassing state-of-the-art SSL methods on small-scale and medical datasets. For example, on CIFAR-100, DIET achieves 72.34% accuracy with ResNet-50, comparable to other strong baselines.
  • Memory Efficiency: s-DIET significantly reduces memory requirements, being up to 2.2x more memory-efficient than SimCLR on TinyImageNet.
  • Robustness: DIET is robust to hyperparameters like batch size, showing stable performance even with very small batches.
  • Higher-Rank Embeddings: DIET produces higher-rank embeddings on CIFAR100 and TinyImageNet compared to SimCLR and VICReg.
  • Theoretical Equivalence: DIET is shown to be an instancewise equivalent to InfoNCE and Spectral Contrastive Learning under certain assumptions, providing theoretical justification for its simplicity.

Limitations and Future Work

  • Scalability of Classifier Head: While s-DIET addresses memory efficiency, the original DIET's classifier head scales linearly with the dataset size, limiting its direct application to very large datasets.
  • Convergence Speed of s-DIET: s-DIET, while memory-efficient, can be slower to converge than DIET or other SSL methods.
  • Label Smoothing Impact: The paper notes that while label smoothing helps DIET converge faster, the main limitation for convergence speed is the matrix WH, suggesting future work on improved training strategies.
  • Theoretical Assumptions: Some theoretical analyses rely on idealized assumptions (e.g., isometric classifier head, balanced classes) which might not perfectly hold in practice.

Future work could focus on improving the convergence speed of s-DIET and exploring more advanced training strategies to further enhance its scalability and performance.

Summary updated

BibTeX
@article{gan2025occams,
  author = {Eric Gan and Patrik Reizinger and Alice Bizeul and Attila Juhos and Mark Ibrahim and Randall Balestriero and David Klindt and Wieland Brendel and Baharan Mirzasoleiman},
  title = {{Occam’s Razor for SSL: Memory-Efficient Parametric Instance Discrimination}},
  journal = {Accepted by TMLR},
  year = {2025},
  url = {https://openreview.net/forum?id=GFNTbsVFlP},
}
Figure