GPS-SSL: Guided Positive Sampling to Inject Prior Into Self-Supervised Learning

Aarash Feizi, Randall Balestriero, Adriana Romero-Soriano, Reihaneh Rabbany
1/3/2024
cs.CVcs.AIcs.LG

No official code found. Best implementation: aarashfeizi/gps-ssl (7 stars, MIT, last commit 2024-07-24).

Abstract

We propose Guided Positive Sampling Self-Supervised Learning (GPS-SSL), a general method to inject a priori knowledge into Self-Supervised Learning (SSL) positive samples selection. Current SSL methods leverage Data-Augmentations (DA) for generating positive samples and incorporate prior knowledge - an incorrect, or too weak DA will drastically reduce the quality of the learned representation. GPS-SSL proposes instead to design a metric space where Euclidean distances become a meaningful proxy for semantic relationship. In that space, it is now possible to generate positive samples from nearest neighbor sampling. Any prior knowledge can now be embedded into that metric space independently from the employed DA. From its simplicity, GPS-SSL is applicable to any SSL method, e.g. SimCLR or BYOL. A key benefit of GPS-SSL is in reducing the pressure in tailoring strong DAs. For example GPS-SSL reaches 85.58% on Cifar10 with weak DA while the baseline only reaches 37.51%. We therefore move a step forward towards the goal of making SSL less reliant on DA. We also show that even when using strong DAs, GPS-SSL outperforms the baselines on under-studied domains. We evaluate GPS-SSL along with multiple baseline SSL methods on numerous downstream datasets from different domains when the models use strong or minimal data augmentations. We hope that GPS-SSL will open new avenues in studying how to inject a priori knowledge into SSL in a principled manner.

View on arXivView PDF

Code Implementations(1)

aarashfeizi/gps-sslCommunity100%
MIT

Guided Nearest Neighbor Contrastive Learning

71PythonJul 1, 20232 years agoMIT

Cite this paper

@article{feizi2024gpsssl,
  title  = {GPS-SSL: Guided Positive Sampling to Inject Prior Into Self-Supervised Learning},
  author = {Aarash Feizi and Randall Balestriero and Adriana Romero-Soriano and Reihaneh Rabbany},
  year   = {2024},
  eprint = {2401.01990},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2401.01990v2}
}

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/2401.01990.svg)](https://codeofpaper.com/paper/2401.01990)

Discussion