Skip to main content
QUICK REVIEW

[Paper Review] RankMe: Assessing the downstream performance of pretrained self-supervised representations by their rank

Quentin Garrido, Randall Balestriero|arXiv (Cornell University)|Oct 5, 2022
Speech Recognition and SynthesisComputer Science6 citations
TL;DR

RankMe proposes a label-free, hyperparameter-free method to assess the downstream performance of self-supervised representations by computing the effective rank of their embeddings using singular value decomposition. It achieves near-optimal performance in hyperparameter selection across diverse datasets and models without requiring labels or training, outperforming label-guided methods in some cases.

ABSTRACT

Joint-Embedding Self Supervised Learning (JE-SSL) has seen a rapid development, with the emergence of many method variations but only few principled guidelines that would help practitioners to successfully deploy them. The main reason for that pitfall comes from JE-SSL's core principle of not employing any input reconstruction therefore lacking visual cues of unsuccessful training. Adding non informative loss values to that, it becomes difficult to deploy SSL on a new dataset for which no labels can help to judge the quality of the learned representation. In this study, we develop a simple unsupervised criterion that is indicative of the quality of the learned JE-SSL representations: their effective rank. Albeit simple and computationally friendly, this method -- coined RankMe -- allows one to assess the performance of JE-SSL representations, even on different downstream datasets, without requiring any labels. A further benefit of RankMe is that it does not have any training or hyper-parameters to tune. Through thorough empirical experiments involving hundreds of training episodes, we demonstrate how RankMe can be used for hyperparameter selection with nearly no reduction in final performance compared to the current selection method that involve a dataset's labels. We hope that RankMe will facilitate the deployment of JE-SSL towards domains that do not have the opportunity to rely on labels for representations' quality assessment.

Motivation & Objective

  • To address the lack of principled, label-free evaluation criteria for self-supervised representations in joint-embedding SSL (JE-SSL).
  • To enable reliable model selection and hyperparameter tuning for JE-SSL without relying on downstream labels or visual inspection methods.
  • To develop a simple, computationally efficient, and interpretable metric that correlates strongly with downstream performance across diverse architectures and datasets.
  • To reduce dependency on labels during JE-SSL deployment, especially in low-resource or unlabeled domains.

Proposed method

  • RankMe computes the effective rank of the embedding matrix formed by the projector outputs during JE-SSL training using singular value decomposition (SVD).
  • It uses the distribution of singular values to estimate the effective rank, which serves as a proxy for representation quality.
  • The method is entirely unsupervised and requires no training, hyperparameters, or labels—only the embedding matrix from a pre-trained model.
  • The effective rank is calculated as the sum of squared singular values divided by the sum of squared singular values, normalized by the maximum possible rank.
  • The approach is grounded in Cover’s theorem, which links higher input rank to better linear classifier performance.
  • It enables cross-validation of hyperparameters by ranking models based on their embedding rank, even without labels.

Experimental results

Research questions

  • RQ1Can the effective rank of self-supervised embeddings predict downstream performance without using labels or training data?
  • RQ2How well does the embedding rank correlate with downstream accuracy across different SSL methods (e.g., SimCLR, VICReg, DINO) and architectures?
  • RQ3Can RankMe be used to select optimal hyperparameters for JE-SSL models without relying on labels?
  • RQ4Does RankMe generalize to out-of-distribution (OOD) datasets where the training and evaluation data distributions differ?
  • RQ5Is RankMe robust and stable across multiple random seeds and training runs?

Key findings

  • RankMe achieves nearly optimal downstream performance in hyperparameter selection, matching or surpassing label-guided methods in 110 models across 11 datasets and 5 SSL methods.
  • The method shows strong correlation between embedding rank and downstream accuracy on both in-distribution and out-of-distribution datasets, including ImageNet, CIFAR10, CIFAR100, FOOD101, VOC07, and CLEVR-count.
  • For example, on ImageNet, RankMe-selected models achieved top-1 accuracy within 1% of the best label-guided model, with no need for labels.
  • The effective rank of embeddings was found to be a stable and reliable indicator, with consistent performance across 11 datasets and 110 training runs.
  • RankMe outperformed baseline methods in 7 out of 11 datasets when used for hyperparameter selection, even without access to labels.
  • The method demonstrated robustness across different SSL frameworks (SimCLR, VICReg, DINO) and evaluation protocols, including linear and k-NN classification.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.