Joint Embedding Self-Supervised Learning in the Kernel Regime

Bobak T. Kiani, Randall Balestriero, Yubei Chen, Seth Lloyd, Yann LeCun

TL;DR

This paper bridges the gap between deep self-supervised learning (SSL) and classical kernel methods by analyzing SSL within the "kernel regime." The authors derive exact closed-form solutions and semi-definite programming formulations for optimal "induced kernels" under both contrastive and non-contrastive losses. This framework provides powerful theoretical insights into how data augmentations and representation constraints reshape data manifolds to help downstream tasks generalize.

What Problem Does This Paper Address?

Self-supervised learning (SSL) has revolutionized deep learning by enabling models to learn highly useful representations from unlabeled data. Methods like SimCLR (contrastive) and VICReg (non-contrastive) work by ensuring that different augmentations of the same image map close together in the embedding space, while preventing all representations from collapsing into a single point.

Despite their empirical success, understanding why and how these deep neural networks successfully untangle data manifolds remains a theoretical challenge. On the flip side, classical kernel methods possess a rich, rigorous mathematical foundation but traditionally lack a clean way to incorporate the joint-embedding and data-augmentation frameworks that make modern SSL so powerful. This paper addresses this disconnect by re-framing joint-embedding SSL algorithms through the lens of kernel methods, allowing researchers to mathematically analyze the representation space geometry.

Methods

The authors translate the standard SSL setup into the kernel regime by replacing the standard neural network with a linear mapping ($W^*$) acting on a feature space defined by a Reproducing Kernel Hilbert Space (RKHS).

Figure 1: To translate the SSL setting into the kernel regime, we aim to find the optimal linear func- tion which maps inputs from the RKHS into the K-dimensional feature space of the representations. This new feature space induces a new optimal kernel denoted the “induced” kernel. Relationships between data-points are encoded in an adjacency matrix (the example matrix shown here contains pairwise relationships between datapoints).

Using a generalization of the classical Representer Theorem, they prove that the optimal mapping must lie within the span of the training data. This allows them to achieve the following:

  1. Closed-Form Solutions (Single Batch): For training over a single data batch, they derive exact analytical solutions for the final representation space's inner product—termed the induced kernel ($k^*$)—for both a variant of the non-contrastive VICReg loss and a spectral contrastive loss.
  2. Semi-Definite Programming (Multi-Batch): Because practical training happens over multiple mini-batches, they generalize their single-batch findings into a Semi-Definite Program (SDP) formulation to solve for the optimal induced kernel across batched data.

Datasets

The authors evaluate and visualize their kernelized SSL framework using:

  • Synthetic 1-D Spiral Dataset: Two entangled spirals embedded in a 2D space, used to visually demonstrate how the induced kernel manipulates and disentangles complex data topologies.
  • MNIST: The standard dataset of handwritten digits, used for downstream classification benchmarks.
  • eMNIST: An extended MNIST dataset containing handwritten digits and characters, providing a more challenging classification task.

Key Insights and Ideas

  • The "Induced Kernel" Mechanism: The optimal induced kernel acts as a smart similarity metric. It automatically increases correlation between points related by an augmentation graph (encoded via an adjacency matrix) and decorrelates unrelated points.
  • The Danger of Misaligned Augmentations: Data augmentation acts as a bridge along the data manifold. If the augmentation range is well-calibrated, the induced kernel perfectly untangles complex manifolds. However, if the augmentation is too aggressive or misaligned with the true data distribution, it creates a "short-circuit" effect, mixing distinct manifolds together and destroying downstream performance.
Figure 2: Comparison of the RBF kernel space (first row) and induced kernel space (second row). The induced kernel is computed based on Equation 5, and the graph Laplacian matrix is derived from the inner product neighborhood in the RBF kernel space, i.e., using the neighborhoods as data augmentation. a) We plot three randomly chosen points’ kernel entries with respect to the other points on the manifolds. When the neighborhood augmentation range used to construct the Lapla- cian matrix is small enough, the SSL-induced kernel faithfully learns the topology of the entangled spiral manifolds. b) When the neighborhood augmentation range used to construct the Laplacian matrix is too large, it creates the “short-circuit” effect in the induced kernel space. Each subplot on the second row is normalized by its largest absolute value for better contrast.
  • Implicit Regularization via Dimension Constraints: Restricting the bottleneck dimension ($K$) of the representation space acts as a powerful regularizer. In fact, the authors find that tuning $K$ is often preferable to tuning standard $\ell_2$ regularization parameters for preventing overfitting.

Key Results

  • Matching Supervised Benchmarks: When evaluated on MNIST and eMNIST using Neural Tangent Kernels (NTK), the kernelized SSL methods achieved downstream classification accuracies that closely approached or even outperformed fully supervised baselines trained with augmented data.
  • Generalization Bounds: The authors tracked a complexity metric, $s_N(K)$, which bounds the generalization error. They empirically demonstrated that the SSL-induced kernel significantly reduces this complexity compared to standard baseline kernels, providing a clear mathematical explanation for why SSL representations generalize so effectively to downstream tasks.

Limitations and Future Work

The primary limitation of this work stems from the inherent nature of kernel methods: they scale quadratically or cubically ($O(N^2)$ or $O(N^3)$) with the number of data samples $N$. This makes the exact closed-form and SDP solutions computationally prohibitive for massive, large-scale datasets (like ImageNet) without employing sparse approximations or random features.

For future work, the authors suggest leveraging this framework to study Neural Tangent Kernels (NTK) more deeply, which could help map these exact kernel solutions directly back to the training dynamics of finite-width deep neural networks in practical settings.

Summary updated

BibTeX
@misc{kiani2022joint,
  author = {Bobak T. Kiani and Randall Balestriero and Yubei Chen and Seth Lloyd and Yann LeCun},
  title = {{Joint Embedding Self-Supervised Learning in the Kernel Regime}},
  year = {2022},
  eprint = {2209.14884},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2209.14884},
}
Figure