Self-Supervised Learning from Structural Invariance

Yipeng Zhang, Hafez Ghaemi, Jungyoon Lee, Shahab Bakhtiari, Eilif B. Muller, Laurent Charlin

Self-supervised learning (SSL) has become the cornerstone of unsupervised representation learning, traditionally relying on handcrafted data augmentations (like cropping or color-jittering) to create "positive pairs" of data. By training models to pull the representations of these pairs closer together, SSL learns robust features. However, handcrafted augmentations often fail to capture the complex, structural variations found in the real world.

A promising alternative is to learn from "natural pairs"—such as consecutive frames in a video or different photos of the same person. While more realistic, natural pairs introduce a significant challenge: the one-to-many mapping problem. This paper introduces Adaptive SSL (AdaSSL), a novel framework designed to handle the complex uncertainty inherent in natural data pairs.

The Challenge of Natural Pairs

When using natural pairs, a single input can often map to multiple valid targets. For instance, given a current video frame of a moving car, the next frame could show the car turning left, turning right, or continuing straight.

Existing SSL methods, such as InfoNCE or BYOL, implicitly assume that the noise or transformation between pairs is simple and uniform. When confronted with the complex, multimodal uncertainty of natural pairs, these models tend to take a destructive shortcut: they simply discard the variant features (e.g., the car's trajectory) to artificially minimize prediction error. This results in impoverished, collapsed representations that fail to capture the full dynamics of the data.

Introducing Adaptive SSL (AdaSSL)

To prevent this feature collapse, the authors propose AdaSSL. The core innovation is the introduction of a latent variable, $r$, designed to explicitly capture the specific transformation or uncertainty between a data pair $(x, x^+)$.

General architecture of AdaSSL

By offloading the complex noise modeling to this latent variable, the main encoder is freed from the burden of minimizing transition errors. Instead, it can focus on preserving fine-grained, variant information. AdaSSL introduces a simple, plug-and-play regularization term that can be added to standard SSL objectives, making it compatible with both contrastive and distillation-based methods.

The framework is instantiated in two distinct variants:

1. AdaSSL-V (Variational)

This variant treats the latent variable $r$ probabilistically. It learns a variational distribution for $r$ and optimizes a tractable lower bound on the mutual information between paired embeddings.

The AdaSSL-V (Variational) variant

To prevent $r$ from simply memorizing the target and bypassing the encoder entirely, AdaSSL-V employs a KL-divergence penalty. This forces the model to learn meaningful, structured representations of the uncertainty.

2. AdaSSL-S (Sparse)

Inspired by the observation that real-world transitions usually involve sparse changes (e.g., a person might change their facial expression, but their identity and background remain constant), AdaSSL-S predicts $r$ deterministically. It applies an $L_0$ sparsity penalty, forcing the model to explain the difference between pairs using only a small subset of latent dimensions.

Theoretical and Practical Insights

  • Heteroscedasticity is Unavoidable: The authors mathematically demonstrate that mapping from a flat, ground-truth latent space to a curved embedding space (like the hypersphere used in standard contrastive learning) inherently creates input-dependent (heteroscedastic) noise. Standard dot-product similarity functions cannot handle this, which explains why vanilla SSL drops features.
  • Sparsity Mirrors Reality: The empirical success of the AdaSSL-S variant highlights a powerful inductive bias: natural variations between semantically related pairs are typically sparse in the latent space.

Empirical Validation

The authors tested AdaSSL across a diverse set of tasks and datasets, demonstrating significant improvements over standard baselines:

  • Handling Complex Noise: On synthetic numerical datasets with controlled, heteroscedastic noise, AdaSSL achieved an $R^2$ of ~0.86 on out-of-distribution data. In stark contrast, standard InfoNCE completely collapsed, yielding an $R^2$ of ~0.04.
  • Causal Disentanglement: Using the 3DIdent dataset (rendered teapots with known latent factors), AdaSSL-V achieved a DCI disentanglement score of 0.466, vastly outperforming standard InfoNCE (0.144) and specialized VAE baselines.
  • Fine-Grained Feature Learning: On CelebA, using natural pairs of the same identity, AdaSSL consistently improved linear probe $F_1$ scores for fine-grained facial attribute prediction compared to InfoNCE and BYOL.
  • Video World Modeling: On a custom Stochastic Moving-MNIST dataset featuring unpredictable velocity changes, AdaSSL accurately predicted future trajectories (Velocity $R^2$ ~0.91). Standard BYOL failed entirely (Velocity $R^2$ ~0.10) because it discarded the unpredictable motion data.

Conclusion and Future Work

AdaSSL provides a robust, theoretically grounded solution to the one-to-many mapping problem in self-supervised learning. By explicitly modeling conditional uncertainty through a regularized latent variable, it prevents feature collapse and learns richer, more disentangled representations.

While the current work lacks strict theoretical guarantees for identifiability (a common goal in causal representation learning), the empirical results are highly promising. Future directions include scaling AdaSSL to uncurated, web-scale data (like natural videos) using Vision Transformer (ViT) backbones, and exploring its potential for action-free representation learning to discover implicit action spaces for robotic planning.

Summary updated

BibTeX
@inproceedings{zhang2026self,
  author = {Yipeng Zhang and Hafez Ghaemi and Jungyoon Lee and Shahab Bakhtiari and Eilif B. Muller and Laurent Charlin},
  title = {{Self-Supervised Learning from Structural Invariance}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=r3JUDAYjIH},
}
Figure