Reverse Engineering Self-Supervised Learning

Ido Ben-Shaul, Ravid Shwartz-Ziv, Tomer Galanti, Shai Dekel, Yann LeCun
5/24/2023
cs.LGcs.AI

No official code found. Best implementation: lightly-ai/lightly (3,779 stars, MIT, PyTorch, last commit 2026-04-23).

Abstract

Self-supervised learning (SSL) is a powerful tool in machine learning, but understanding the learned representations and their underlying mechanisms remains a challenge. This paper presents an in-depth empirical analysis of SSL-trained representations, encompassing diverse models, architectures, and hyperparameters. Our study reveals an intriguing aspect of the SSL training process: it inherently facilitates the clustering of samples with respect to semantic labels, which is surprisingly driven by the SSL objective's regularization term. This clustering process not only enhances downstream classification but also compresses the data information. Furthermore, we establish that SSL-trained representations align more closely with semantic classes rather than random classes. Remarkably, we show that learned representations align with semantic classes across various hierarchical levels, and this alignment increases during training and when moving deeper into the network. Our findings provide valuable insights into SSL's representation learning mechanisms and their impact on performance across different sets of classes.

View on arXivView PDF

Code Implementations(1)

lightly-ai/lightlyCommunity100%
PyTorchMIT

A python library for self-supervised learning on images.

3,779342Shell, PythonOct 13, 20206 months agoMIT
computer-visioncontrastive-learningcontributions-welcomedeep-learningembeddings+4 more

Similar Papers

Cite this paper

@article{benshaul2023reverse,
  title  = {Reverse Engineering Self-Supervised Learning},
  author = {Ido Ben-Shaul and Ravid Shwartz-Ziv and Tomer Galanti and Shai Dekel and Yann LeCun},
  year   = {2023},
  eprint = {2305.15614},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.15614v2},
  journal = {NEURIPS 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2305.15614.svg)](https://codeofpaper.com/paper/2305.15614)

Discussion