Table of Contents
Fetching ...

An Augmentation-Aware Theory for Self-Supervised Contrastive Learning

Jingyi Cui, Hongwei Wen, Yisen Wang

TL;DR

This work introduces an augmentation-aware theory for self-supervised contrastive learning by deriving an error bound that ties downstream supervised risk to the unsupervised risk plus two augmentation-induced distance terms. The authors formalize the data-generation and loss framework, and under a Centered Representation enhancement present an improved bound. A novel Semantic Label Assumption enables analysis of how random crop and color distortion trade off the two augmentation distances, a claim substantiated by pixel- and representation-level experiments. Empirical results on CIFAR-100 and TinyImagenet demonstrate that optimal augmentation parameters minimize the distance sum and maximize downstream linear-probing accuracy, providing practical guidance for augmentations in contrastive learning.

Abstract

Self-supervised contrastive learning has emerged as a powerful tool in machine learning and computer vision to learn meaningful representations from unlabeled data. Meanwhile, its empirical success has encouraged many theoretical studies to reveal the learning mechanisms. However, in the existing theoretical research, the role of data augmentation is still under-exploited, especially the effects of specific augmentation types. To fill in the blank, we for the first time propose an augmentation-aware error bound for self-supervised contrastive learning, showing that the supervised risk is bounded not only by the unsupervised risk, but also explicitly by a trade-off induced by data augmentation. Then, under a novel semantic label assumption, we discuss how certain augmentation methods affect the error bound. Lastly, we conduct both pixel- and representation-level experiments to verify our proposed theoretical results.

An Augmentation-Aware Theory for Self-Supervised Contrastive Learning

TL;DR

This work introduces an augmentation-aware theory for self-supervised contrastive learning by deriving an error bound that ties downstream supervised risk to the unsupervised risk plus two augmentation-induced distance terms. The authors formalize the data-generation and loss framework, and under a Centered Representation enhancement present an improved bound. A novel Semantic Label Assumption enables analysis of how random crop and color distortion trade off the two augmentation distances, a claim substantiated by pixel- and representation-level experiments. Empirical results on CIFAR-100 and TinyImagenet demonstrate that optimal augmentation parameters minimize the distance sum and maximize downstream linear-probing accuracy, providing practical guidance for augmentations in contrastive learning.

Abstract

Self-supervised contrastive learning has emerged as a powerful tool in machine learning and computer vision to learn meaningful representations from unlabeled data. Meanwhile, its empirical success has encouraged many theoretical studies to reveal the learning mechanisms. However, in the existing theoretical research, the role of data augmentation is still under-exploited, especially the effects of specific augmentation types. To fill in the blank, we for the first time propose an augmentation-aware error bound for self-supervised contrastive learning, showing that the supervised risk is bounded not only by the unsupervised risk, but also explicitly by a trade-off induced by data augmentation. Then, under a novel semantic label assumption, we discuss how certain augmentation methods affect the error bound. Lastly, we conduct both pixel- and representation-level experiments to verify our proposed theoretical results.

Paper Structure

This paper contains 25 sections, 10 theorems, 50 equations, 11 figures.

Key Result

Theorem 2.1

Let $\mathcal{R}^{\mathrm{sup}}(f)$ be the supervised risk of the mean classifier, and $\mathcal{R}^{\mathrm{un}}(f)$ be the unsupervised risk of contrastive loss. Denote $\tau_K=\mathrm{P}(\mathrm{Col}(c,\{c_k\}_{k=1}^K) \neq 0)$ as the class collision probability, where $\mathrm{Col}(c,\{c_k\}_{k=

Figures (11)

  • Figure 1: Illustration of semantic label assumption. (a) An automobile image with semantic labels windshield (blue), headlights (purple), and wheels (green); (b) an truck image with semantic labels truck cab (yellow excluding green), cargo box (orange), and wheels (green).
  • Figure 2: Pixel-level maximum distance between same-class different-image augmentations and minimum distance between same-image data augmentations on CIFAR-100.
  • Figure 3: Representation-level maximum distance between same-class different-image augmentations on CIFAR-100.
  • Figure 4: Representation-level minimum distance between different same-image data augmentations on CIFAR-100.
  • Figure 5: Sum of the two distance terms under various data augmentations in the embedding space on CIFAR-100.
  • ...and 6 more figures

Theorems & Definitions (18)

  • Theorem 2.1: Error Bound
  • Theorem 2.3: Error Bound (Improved)
  • Theorem 2.4: Generalization Bound
  • Theorem 2.5: Error Decomposition of $\mathcal{R}^{\mathrm{un}}$
  • Theorem 2.6: Bound of Inner Risk
  • Theorem 2.7: Error Bound of $\bar{\mathcal{R}}^{\mathrm{sup}}$
  • Lemma 2.8: CURL bound arora2019theoreticalnozawa2021understanding
  • Theorem 4.2: Error Bound with Pixel-level Distances
  • proof : Proof of Theorem \ref{['thm::decomp']}
  • Corollary 2.1: Error decomposition of $\bar{\mathcal{R}}^{\mathrm{sup}}$
  • ...and 8 more