S5CL: Unifying Fully-Supervised, Self-Supervised, and Semi-Supervised Learning Through Hierarchical Contrastive Learning

Manuel Tran, Sophia J. Wagner, Melanie Boxberg, Tingying Peng
3/14/2022
cs.CVstat.ML
contrastive-ssl

Official code: manuel-tran/s5cl (17 stars, Jupyter Notebook, MIT, last commit 2023-01-29).

Abstract

In computational pathology, we often face a scarcity of annotations and a large amount of unlabeled data. One method for dealing with this is semi-supervised learning which is commonly split into a self-supervised pretext task and a subsequent model fine-tuning.

Show full abstract

Here, we compress this two-stage training into one by introducing S5CL, a unified framework for fully-supervised, self-supervised, and semi-supervised learning. With three contrastive losses defined for labeled, unlabeled, and pseudo-labeled images, S5CL can learn feature representations that reflect the hierarchy of distance relationships: similar images and augmentations are embedded the closest, followed by different looking images of the same class, while images from separate classes have the largest distance. Moreover, S5CL allows us to flexibly combine these losses to adapt to different scenarios. Evaluations of our framework on two public histopathological datasets show strong improvements in the case of sparse labels: for a H&E-stained colorectal cancer dataset, the accuracy increases by up to 9% compared to supervised cross-entropy loss; for a highly imbalanced dataset of single white blood cells from leukemia patient blood smears, the F1-score increases by up to 6%.

View on arXivView PDF

Code Implementations(1)

manuel-tran/s5clOfficial100%
MIT

S5CL: Unifying Fully-Supervised, Self-Supervised, and Semi-Supervised Learning Through Hierarchical Contrastive Learning

171Jupyter Notebook, PythonMar 12, 20223 years agoMIT

Similar Papers

Cite this paper

@article{tran2022scl,
  title  = {S5CL: Unifying Fully-Supervised, Self-Supervised, and Semi-Supervised Learning Through Hierarchical Contrastive Learning},
  author = {Manuel Tran and Sophia J. Wagner and Melanie Boxberg and Tingying Peng},
  year   = {2022},
  eprint = {2203.07307},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2203.07307}
}

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

Discussion