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

Self-Supervised Learning with Data Augmentations Provably Isolates Content from Style

Julius Von Kügelgen, Yash Sharma, Luigi Gresele, Wieland Brendel, Bernhard Schölkopf, Michel Besserve, Francesco Locatello

Introduction

Self-supervised learning (SSL) has revolutionized computer vision by enabling models to learn powerful, generalized representations from vast amounts of unlabeled data. The standard recipe is deceptively simple: take an image, apply random data augmentations (like cropping or color jittering), and train a model to recognize that these different "views" represent the same underlying object.

While empirically highly successful, a significant theoretical gap has remained: Why does this process lead to the recovery of meaningful latent factors? Most existing theories on "identifiability"—the ability to recover true underlying variables—assume that all latent factors are statistically independent. However, in the real world, "content" (e.g., a polar bear) and "style" (e.g., a snowy background) are often highly correlated. This paper bridges that gap by providing a theoretical foundation proving that SSL can mathematically isolate content from style, even when these factors are causally or statistically dependent.

Theoretical Framework and Methods

The authors frame the representation learning problem using a Latent Variable Model (LVM). In this model, an observation $x$ is generated by a function $f(c, s)$, where $c$ represents the "content" and $s$ represents the "style."

Rather than attempting to recover every individual latent factor—a notoriously difficult task—the authors aim for block-identifiability. This means isolating the entire chunk of variables representing content from those representing style.

Latent Variable Model and Augmentation

To achieve this, data augmentation is modeled as a soft intervention on the style variables. In this causal view, an augmentation acts as a counterfactual query: "What would this image look like if the lighting or framing changed, but the object stayed the same?"

The paper provides rigorous proofs showing that different SSL setups—including generative models, discriminative models with invertible encoders, and discriminative models with non-invertible encoders plus entropy regularization—can successfully identify the content partition. Crucially, they demonstrate that the popular InfoNCE loss (used in frameworks like SimCLR) acts as a proxy for maximizing the entropy of the representation while maintaining alignment, which is a sufficient condition for isolating content.

Datasets and the Causal3DIdent Benchmark

To validate their theory, the authors tested their models on synthetic numerical data with known causal dependencies, as well as MPI3D-real, a dataset of over one million real-world images of objects moved by a robotic arm.

However, to bridge the gap between simple synthetic data and complex natural images, the authors introduce a novel benchmark dataset: Causal3DIdent.

Causal3DIdent Dataset and Causal Graph

Causal3DIdent features 3D rendered objects (e.g., hares, dragons, teapots) where latent factors like object hue, position, and rotation have explicit causal links. For instance, the dataset can simulate "camouflage" scenarios where the object's hue is causally dependent on the background hue. This provides a rigorous testbed for evaluating representation learning in the presence of complex, real-world dependencies.

Key Insights and Results

  • Invariance as a Learning Signal: The core insight of the paper is that SSL does not merely learn features; it learns to discard any information that is not invariant across augmented views. By definition, if an augmentation changes the "style," the model is forced to ignore that style to satisfy the training objective.
  • Independence is Not Necessary: Unlike Independent Component Analysis (ICA), this framework allows $c$ and $s$ to be dependent. This is a major step toward Causal Representation Learning, acknowledging that real-world variables are interconnected.
  • Provable Recovery: In numerical simulations, the models achieved near-perfect recovery ($R^2 \approx 1.0$) of content variables, even when style was causally dependent on content.
  • Augmentation Synergy: On the Causal3DIdent dataset, single augmentations (e.g., only cropping or only color jittering) often failed to isolate the "Object Class." However, combining them—as is standard practice in models like SimCLR—successfully isolated the class variable. This theoretically mirrors and validates the empirical "best practices" discovered by the industry.
  • Shortcut Learning: The results also highlight a risk: if an augmentation is too simple, the model might find "shortcuts" (such as using rotation as a proxy for class) rather than learning the true underlying content.

Limitations and Future Work

While the theoretical guarantees are strong, the proofs rely on asymptotic assumptions, such as the "infinite data" limit and the assumption that the model can reach a global optimum—conditions rarely met in practical deep learning. Additionally, the current theory focuses on continuous latent variables, whereas extending this to discrete variables (like distinct object categories) requires further formalization.

Finally, the authors note that current image-level augmentations are a "blunt instrument." A random crop, for example, might accidentally remove the content entirely or alter the image's semantics. Future work should explore more targeted augmentations that better respect the underlying causal structure of the data.

Summary updated

BibTeX
@inproceedings{kugelgen2021self,
  author = {Julius Von Kügelgen and Yash Sharma and Luigi Gresele and Wieland Brendel and Bernhard Schölkopf and Michel Besserve and Francesco Locatello},
  title = {{Self-Supervised Learning with Data Augmentations Provably Isolates Content from Style}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=4pf_pOo0Dt},
}
Figure