Probabilistic Self-supervised Representation Learning via Scoring Rules Minimization

Amirhossein Vahidi, Simon Schosser, Lisa Wimmer, Yawei Li, Bernd Bischl, Eyke Hüllermeier, Mina Rezaei

TL;DR

ProSMin introduces a probabilistic framework for self-supervised learning (SSL) that uses "scoring rules" to prevent the common pitfall of dimensional collapse. By modeling representations as distributions rather than single points, the method achieves superior accuracy, better uncertainty calibration, and significantly higher robustness to data corruption and out-of-distribution samples compared to deterministic baselines like DINO and i-BOT.

What Problem Does This Paper Address?

Self-supervised learning has revolutionized how we train models on unlabeled data, but it suffers from a persistent headache: dimensional collapse. This occurs when a model takes the "path of least resistance" during training, mapping diverse inputs into a very narrow, low-dimensional subspace of the embedding area. Essentially, the model stops using its full capacity, leading to representations that fail to generalize well to downstream tasks.

Current solutions often rely on specific architectural "tricks"—like heavy batch normalization, stop-gradients, or specific clustering constraints—to keep the representations from collapsing. The authors of this paper argue that these are often heuristic fixes. Instead, they propose a more principled, probabilistic approach to ensure the model learns a rich, diverse distribution of features.

Methods: Introducing ProSMin

The authors introduce ProSMin (Probabilistic Self-supervised learning via Scoring rules Minimization). The architecture follows the popular "teacher-student" (or online-target) paradigm but introduces a probabilistic twist.

ProSMin Architecture
  1. Probabilistic Embeddings: Instead of predicting a single deterministic vector for an image, the "online" network predicts the parameters of a Gaussian distribution (mean $\mu$ and variance $\sigma$).
  2. Reparameterization Trick: To make this trainable via backpropagation, they use the reparameterization trick to sample from this predicted distribution.
  3. Scoring Rules as Loss Functions: This is the core innovation. A "scoring rule" is a mathematical tool used to evaluate how well a predicted probability distribution matches an actual observed value. ProSMin uses a modified version of the Energy Score or Kernel Score.
  4. The "Entropy Nudge": The loss function is split into two parts: one that matches the target network's output (accuracy) and one that encourages the online network's predictions to be internally consistent and diverse (entropy). By tuning a hyperparameter ($\lambda$), the authors can "nudge" the model to explore the representation space more effectively, naturally preventing collapse without needing Batch Normalization.

Datasets

The model was pretrained and evaluated on a rigorous suite of computer vision benchmarks:

  • ImageNet-1k: The standard gold standard for image classification.
  • ImageNet-O: A dataset specifically designed to test Out-of-Distribution (OOD) detection (images from classes the model hasn't seen).
  • ImageNet-C: A benchmark for robustness, containing images with various digital corruptions (blur, noise, weather effects).
  • Transfer Learning: Evaluated on CIFAR-10/100, iNaturalist-2018 (fine-grained/imbalanced), and Oxford 102 Flowers.

Key Insights and Ideas

  • Probabilistic > Deterministic: By treating an image representation as a "region" of uncertainty rather than a single "point," the model becomes much more robust. It doesn't just learn what an object is, but also how certain it is about that representation.
  • Scoring Rules are Principled Objectives: Most SSL losses are based on cross-entropy or mean squared error. Scoring rules provide a more mathematically grounded way to perform "probabilistic knowledge distillation" between two networks.
  • The "Improper" Advantage: Interestingly, the authors found that using a technically "improper" scoring rule (by over-weighting the entropy component) actually improved performance. This suggests that in SSL, encouraging the model to "spread out" its representations is more important than perfectly matching the target distribution.
  • No BN Required: Unlike many popular SSL methods, ProSMin does not require Batch Normalization to prevent collapse, proving that the probabilistic framework itself acts as a powerful regularizer.

Key Results

ProSMin consistently outperformed state-of-the-art SSL methods across several metrics:

Performance Comparison Table
  • Accuracy: On ImageNet-1k (linear evaluation), ProSMin achieved 78.4% Top-1 accuracy, surpassing DINO (76.8%) and i-BOT (77.9%).
  • Calibration: The model is exceptionally "honest" about its predictions. Its Expected Calibration Error (ECE) was just 0.006, compared to DINO’s 0.015.
  • OOD Detection: In detecting unseen classes (ImageNet-O), ProSMin achieved an AUROC of 77.1%, significantly higher than DINO (74.0%) and MoCo-V3 (71.0%).
  • Robustness: It showed the lowest error rates on corrupted data (ImageNet-C), indicating it learns features that are less susceptible to noise.

Limitations and Future Work

  • Computational Overhead: ProSMin is more "expensive" to train. Because it involves sampling and a more complex loss function, it took about 98 hours to train on 8 GPUs, compared to 72 hours for DINO. It also requires more memory (21.1G vs 15.4G).
  • Hyperparameter Tuning: The performance is sensitive to the $\lambda$ value (the balance between matching the target and maximizing entropy) and the number of samples used during training.
  • Domain Expansion: The current work is focused on Computer Vision. The authors suggest that applying these probabilistic scoring rules to Natural Language Processing (NLP) or multimodal models (like CLIP) is a promising next step.

Summary updated

BibTeX
@inproceedings{vahidi2024probabilistic,
  author = {Amirhossein Vahidi and Simon Schosser and Lisa Wimmer and Yawei Li and Bernd Bischl and Eyke Hüllermeier and Mina Rezaei},
  title = {{Probabilistic Self-supervised Representation Learning via Scoring Rules Minimization}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=skcTCdJz0f},
}
Figure