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
TL;DR
The work treats SSL with data augmentations as a latent-variable problem with a content block that should be invariant across views and a style block that may change, and proves block-identifiability results for the invariant content partition under mild assumptions, in both generative and discriminative SSL frameworks. It introduces a causal, high-dimensional dataset (Causal3DIdent) to study practical augmentation effects and validates the theory through controlled numerical simulations and high-dimensional image experiments, demonstrating when and how augmentations isolate content. The findings provide a theoretical grounding for the empirical success of contrastive SSL methods like InfoNCE and offer guidance on designing augmentations and regularizers to recover content representations in the presence of dependent latent factors. These results have practical implications for robust, causally aware SSL in vision and beyond, including safety-critical domains where invariant content extraction is essential.
Abstract
Self-supervised representation learning has shown remarkable success in a number of domains. A common practice is to perform data augmentation via hand-crafted transformations intended to leave the semantics of the data invariant. We seek to understand the empirical success of this approach from a theoretical perspective. We formulate the augmentation process as a latent variable model by postulating a partition of the latent representation into a content component, which is assumed invariant to augmentation, and a style component, which is allowed to change. Unlike prior work on disentanglement and independent component analysis, we allow for both nontrivial statistical and causal dependencies in the latent space. We study the identifiability of the latent representation based on pairs of views of the observations and prove sufficient conditions that allow us to identify the invariant content partition up to an invertible mapping in both generative and discriminative settings. We find numerical simulations with dependent latent variables are consistent with our theory. Lastly, we introduce Causal3DIdent, a dataset of high-dimensional, visually complex images with rich causal dependencies, which we use to study the effect of data augmentations performed in practice.
