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

Representation Uncertainty in Self-Supervised Learning as Variational Inference

Hiroki Nakamura, Masashi Okada, Tadahiro Taniguchi

Introduction

Self-Supervised Learning (SSL) has emerged as a dominant paradigm for learning high-quality image representations without the need for manual labels. Methods such as SimSiam and SimCLR rely on a simple heuristic: different augmented views of the same image should have similar representations. While highly effective for downstream tasks, these methods are fundamentally deterministic. They provide a single point estimate (a vector) for an image but offer no measure of confidence or uncertainty regarding that representation.

This paper establishes a theoretical bridge between SSL and Variational Inference (VI), demonstrating that popular SSL objectives are actually specialized forms of probabilistic inference. By formalizing this link, the authors introduce VI-SimSiam, a framework that enables models to quantify "representation uncertainty"—signaling when an image is difficult to represent due to factors like poor lighting, extreme cropping, or lack of salient features.

Theoretical Framework: SSL as Variational Inference

The core contribution of this work is the mathematical reinterpretation of the standard SSL objective as the Evidence Lower Bound (ELBO). In Variational Inference, the ELBO is maximized to approximate a complex posterior distribution. The authors show that the two primary components of SSL objectives map directly to VI concepts:

  1. Alignment: The requirement that different views of the same image have similar representations corresponds to maximizing the likelihood of the data under a latent distribution.
  2. Uniformity: The mechanisms used to prevent "representation collapse" (where all images map to the same vector) correspond to maximizing the entropy of the latent distribution.

This unification suggests that SSL is essentially performing an Expectation-Maximization (EM) algorithm to approximate a posterior distribution on a hypersphere.

VI-SimSiam Architecture

To implement this theory, the authors propose VI-SimSiam. Unlike the standard SimSiam architecture, which uses a predictor to output a single mean vector $\mu$, VI-SimSiam introduces a probabilistic approach using the Power Spherical distribution. This distribution is specifically designed for hyperspherical data, offering better numerical stability than the traditional von Mises-Fisher distribution.

Comparison of the standard SimSiam architecture (top) with the proposed VI-SimSiam architecture (bottom), which includes a kappa predictor for uncertainty estimation.

As shown in the architecture diagram, VI-SimSiam adds a "$\kappa$ predictor" (a small MLP) alongside the standard backbone. While the main branch predicts the mean direction $\mu$, the $\kappa$ branch predicts a concentration parameter $\kappa$, which serves as the inverse of variance. A high $\kappa$ indicates high certainty, while a low $\kappa$ indicates high uncertainty.

Experimental Results

The authors evaluated VI-SimSiam on benchmarks including ImageNet100, CIFAR-10, and a suite of seven transfer learning datasets.

Performance and Convergence

VI-SimSiam demonstrates significantly faster convergence in the early stages of training. On ImageNet100, it achieved 63.89% top-1 accuracy at 50 epochs, nearly 23 percentage points higher than standard SimSiam (41.07%). In transfer learning, the gains were even more pronounced; for instance, on the Flowers dataset, VI-SimSiam reached 64.5% accuracy compared to SimSiam's 14.8%.

Quantifying Uncertainty

A key advantage of VI-SimSiam is its ability to flag unreliable representations. Qualitatively, the model assigns high certainty (high $\kappa$) to images with clear, centered subjects and low certainty to blurry or uninformative background textures.

Examples of images categorized by the model as having low vs. high representation uncertainty, with corresponding kappa values.

Quantitatively, the predicted $\kappa$ serves as an effective confidence score. Using $\kappa$ to predict the accuracy of a linear classifier yielded an AUROC between 0.72 and 0.76, confirming that the model's self-reported uncertainty is a statistically significant predictor of its potential for error.

Discussion and Limitations

While VI-SimSiam excels in early training and uncertainty estimation, a performance gap emerges in long-term training. At 500 epochs on ImageNet100, standard SimSiam eventually reaches 81.61%, slightly surpassing VI-SimSiam's 77.49%. The authors suggest this may be because VI-SimSiam effectively "ignores" highly uncertain, difficult samples to optimize the ELBO, which may limit the ultimate richness of the learned features.

Despite this, the ability to generate calibrated uncertainty estimates opens new doors for SSL applications, such as Active Learning (identifying which images require human labeling) and Data Cleaning (filtering out noisy or uninformative samples from massive unlabeled datasets).

Summary updated

BibTeX
@inproceedings{nakamura2023representation,
  author = {Hiroki Nakamura and Masashi Okada and Tadahiro Taniguchi},
  title = {{Representation Uncertainty in Self-Supervised Learning as Variational Inference}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2023},
  doi = {10.1109/iccv51070.2023.01511},
}
Figure