Explicitly Modeling Universality into Self-Supervised Learning

Jingyao Wang, Wenwen Qiang, Zeen Song, Lingyu Si, Jiangmeng Li, Changwen Zheng, Bing Su · OpenReview

Abstract: The goal of universality in self-supervised learning (SSL) is to learn universal representations from unlabeled data and achieve excellent performance on all samples and tasks. However, these methods lack explicit modeling of the universality in the learning objective, and the related theoretical understanding remains limited. This may cause models to overfit in data-scarce situations and generalize poorly in real life. To address these issues, we provide a theoretical definition of universality in SSL, which constrains both the learning and evaluation universality of the SSL models from the perspective of discriminability, transferability, and generalization. Then, we propose a $\sigma$-measurement to help quantify the score of one SSL model's universality. Based on the definition and measurement, we propose a general SSL framework, called GeSSL, to explicitly model universality into SSL. It introduces a self-motivated target based on $\sigma$-measurement, which enables the model to find the optimal update direction towards universality. Extensive theoretical and empirical evaluations demonstrate the superior performance of GeSSL.

Introduction

Self-supervised learning (SSL) has revolutionized representation learning by leveraging unlabeled data to learn powerful features. Despite its empirical success, the field often relies on specific "tricks"—such as asymmetric networks or particular data augmentations—without a formal understanding of what makes a representation truly "good." Current SSL frameworks often lack an explicit modeling of universality, which can lead to overfitting in data-scarce scenarios and poor generalization in real-world applications.

In "On the Universality of Self-Supervised Learning," the authors argue that the "North Star" for SSL should be universality. They propose that instead of asking which operations lead to good models, we should explicitly model what a universal model is: one that excels in discriminability, generalizability, and transferability.

Defining and Measuring Universality

The authors provide a theoretical foundation for universality in SSL, defining it through three core dimensions:

  1. Discriminability: The ability of the representation to effectively separate different semantic classes.
  2. Generalizability: The capacity to maintain high performance on unseen data from the same distribution.
  3. Transferability: The ability to adapt efficiently to entirely unfamiliar tasks and domains.

To quantify these properties, the paper introduces a $\sigma$-measurement, a metric designed to evaluate an SSL model's universality score. This measurement serves as the theoretical backbone for their proposed training framework.

The GeSSL Framework

To bridge the gap between theory and practice, the authors introduce General SSL (GeSSL). This framework explicitly incorporates universality into the training process using a bi-level optimization strategy, similar to meta-learning.

The GeSSL framework utilizes a bi-level optimization strategy to explicitly model universality through inner and outer loops.

GeSSL operates through two primary cycles:

  • Inner Loop: The model simulates task adaptation on a "support set" ($X^{sup}$). It calculates a combined loss consisting of a discriminative loss ($\mathcal{L}_{disc}$) and a standard SSL loss ($\mathcal{L}_{ssl}$). The discriminative loss uses a learnable threshold to group semantically similar samples, addressing the often too-coarse nature of standard contrastive learning where every augmented pair is treated as a unique class.
  • Outer Loop: The updated model parameters are then evaluated on a "query set" ($X^{que}$). This "update-then-evaluate" cycle directly optimizes the model's ability to generalize to new data during the training phase.

By treating mini-batches as distinct "tasks" (episodic training), GeSSL encourages the model to capture stable, causal features that are consistent across different data subsets, thereby significantly enhancing transferability.

Experimental Evaluation

The GeSSL framework was evaluated across a massive range of benchmarks, consistently acting as a performance multiplier for existing SSL methods like SimCLR, MAE, and BYOL.

  • Standard Benchmarks: On ImageNet-1K, adding GeSSL to VICRegL improved Top-1 accuracy from 70.24% to 73.91%.
  • Low-Data Efficiency: In semi-supervised settings with only 1% of ImageNet labels, BYOL + GeSSL achieved 57.3% Top-1 accuracy, outperforming standard BYOL by 2.5%.
  • Downstream Tasks: On the COCO object detection benchmark, MAE + GeSSL reached an AP of 54.9, significantly surpassing the supervised baseline of 47.9.
  • Few-Shot Learning: GeSSL consistently outperformed state-of-the-art unsupervised few-shot methods across diverse domains, including medical imaging (ChestX) and specialized categories like CUB birds.

Conclusion

By shifting the focus from empirical heuristics to an explicit mathematical definition of universality, GeSSL provides a principled roadmap for self-supervised learning. While the bi-level optimization introduces a slight increase in memory footprint, the significant gains in robustness and adaptability across diverse tasks suggest that explicitly modeling universality is a vital step toward building more capable AI systems.

Summary updated

BibTeX
@misc{wang2024explicitly,
  author = {Jingyao Wang and Wenwen Qiang and Zeen Song and Lingyu Si and Jiangmeng Li and Changwen Zheng and Bing Su},
  title = {{Explicitly Modeling Universality into Self-Supervised Learning}},
  year = {2024},
  eprint = {2405.01053},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2405.01053},
}
Figure