Using Representation Expressiveness and Learnability to Evaluate Self-Supervised Learning Methods

Yuchen Lu, Zhen Liu, Aristide Baratin, Romain Laroche, Aaron C. Courville, Alessandro Sordoni

Introduction

Self-supervised learning (SSL) has transformed computer vision by enabling models to learn from vast unlabeled datasets. However, evaluating these models remains a significant challenge. Standard evaluation protocols, such as linear probing or full fine-tuning on labeled datasets like ImageNet, are computationally expensive and contradict the "unlabeled" premise of SSL. Existing label-free metrics often fail to generalize across different training objectives or correlate poorly with actual task performance. This paper proposes a "universal" metric, CLID, which is agnostic to model architecture and training algorithms.

Methodology: The CLID Framework

The authors propose that a high-quality representation must be both expressive and learnable. This framework is inspired by the evolution of human language, where representations must balance complexity with structure.

1. Intrinsic Dimension (ID) for Expressiveness

Rather than using the raw dimensionality of feature vectors, the authors estimate the "true" dimensionality of the data manifold. A higher ID indicates that the model captures more fine-grained and complex features. This is measured using the TwoNN estimator, which analyzes the ratio of distances between a point and its two nearest neighbors.

2. Cluster Learnability (CL) for Learnability

Learnability measures the organization of the feature space. The authors apply K-means clustering to the representations without using labels. These cluster assignments serve as "pseudo-labels." The learnability is then quantified by the performance of a simple K-Nearest Neighbor (KNN) classifier in predicting these pseudo-labels. High KNN performance suggests a well-organized, "learnable" representation.

The relationship between Cluster Learnability (CL) and Intrinsic Dimension (ID) across various SSL models, and the resulting correlation of the combined CLID metric with ImageNet Top-1 accuracy.

The final CLID metric is the standardized sum of CL and ID.

Key Results

The study evaluated 28 SSL checkpoints, including MoCo, BYOL, SwAV, and DINO, across ResNet and ViT architectures.

High Correlation with Downstream Performance

CLID demonstrates a remarkable Pearson correlation of 0.92 with ImageNet Top-1 accuracy. This significantly outperforms existing metrics; for instance, the "Alignment and Uniformity" metric achieved a correlation of only 0.37 in their tests.

Quantitative comparison of CLID against other label-free predictors using Pearson and Kendall correlation coefficients.

Superior Transfer Prediction

In out-of-domain scenarios, CLID proved to be the most reliable predictor of transfer performance across seven diverse visual classification tasks (e.g., Food-101, Oxford Flowers, Stanford Cars). It consistently outperformed baselines such as MCR2 and rotation-based pretext tasks.

Robustness and Agnosticism

A key advantage of CLID is its agnosticism. Because it operates solely on the final representations, it can fairly compare models trained with disparate objectives (contrastive vs. clustering vs. pretext). Furthermore, the metric is robust to hyperparameters, such as the number of clusters used in K-means.

Discussion and Limitations

While CLID is a powerful tool for evaluating classification-based representations, its applicability to localization tasks (e.g., object detection, semantic segmentation) remains to be explored. Additionally, certain models like DeepCluster-v1 appear as outliers, indicating that further refinements may be needed to capture all nuances of representation quality. Future research could extend this expressiveness-learnability framework to other domains, such as Large Language Models (LLMs) or audio processing.

Summary updated

BibTeX
@article{lu2023using,
  author = {Yuchen Lu and Zhen Liu and Aristide Baratin and Romain Laroche and Aaron C. Courville and Alessandro Sordoni},
  title = {{Using Representation Expressiveness and Learnability to Evaluate Self-Supervised Learning Methods}},
  journal = {Trans. Mach. Learn. Res.},
  year = {2023},
}
Figure