Skip to main content
QUICK REVIEW

[Paper Review] Solo-learn: A Library of Self-supervised Methods for Visual Representation Learning

Victor G. Turrisi da Costa, Enrico Fini|arXiv (Cornell University)|Aug 3, 2021
Domain Adaptation and Few-Shot LearningComputer Science61 citations
TL;DR

solo-learn is an open-source PyTorch-based library that implements a large collection of state-of-the-art self-supervised learning (SSL) methods for visual representation learning, with distributed training, fast data loading, online linear evaluation, and easy extensibility.

ABSTRACT

This paper presents solo-learn, a library of self-supervised methods for visual representation learning. Implemented in Python, using Pytorch and Pytorch lightning, the library fits both research and industry needs by featuring distributed training pipelines with mixed-precision, faster data loading via Nvidia DALI, online linear evaluation for better prototyping, and many additional training tricks. Our goal is to provide an easy-to-use library comprising a large amount of Self-supervised Learning (SSL) methods, that can be easily extended and fine-tuned by the community. solo-learn opens up avenues for exploiting large-budget SSL solutions on inexpensive smaller infrastructures and seeks to democratize SSL by making it accessible to all. The source code is available at https://github.com/vturrisi/solo-learn.

Motivation & Objective

  • Provide a reusable, modular library implementing a broad set of state-of-the-art SSL methods for visual representation learning.
  • Ease experimentation and reproducibility by offering standardized implementations, fast data loading, and online linear evaluation.
  • Democratize SSL by enabling researchers with smaller budgets to train and compare methods efficiently.
  • Integrate utilities for downstream tasks and pretrained model usage to accelerate prototyping and deployment.

Proposed method

  • Implemented 13 SSL methods in PyTorch: Barlow Twins, BYOL, DeepCluster V2, DINO, MoCo V2+, NNCLR, ReSSL, SimCLR, Supervised Contrastive Learning, SimSiam, SwAV, VICReg, and W-MSE.
  • Designed a modular pipeline with separate components: solo.args for parameter handling, solo.methods for SSL methods, solo.losses for loss functions, solo.utils for data handling and augmentation pipelines, and a PyTorch Lightning trainer for distributed, mixed-precision training.
  • Utilized Nvidia DALI for faster data loading and supports mixed precision and online linear evaluation for rapid prototyping.
  • Provides pre-trained models and easy integration with DetectronV2 for downstream object detection tasks.
  • Benchmarked SSL methods on CIFAR-10, CIFAR-100, and ImageNet-100, with hyperparameter tuning for several methods to achieve competitive results.
  • Compared against VISSL and Lightly, highlighting support for more modern methods, smaller-resource training, and additional utilities such as automatic UMAP visualization.

Experimental results

Research questions

  • RQ1Can a unified, extensible library enable fair, reproducible comparisons across a wide range of SSL methods?
  • RQ2What are the practical benefits (speed, memory, usability) of using a modern data loader (Nvidia DALI) and mixed-precision/distributed training for SSL workloads on modest hardware?
  • RQ3How do contemporary SSL methods perform under online linear evaluation on standard benchmarks (CIFAR-10/100, ImageNet-100) and how do they compare to prior libraries?
  • RQ4Can pretrained SSL models from solo-learn be readily used for downstream tasks such as object detection via DetectronV2?

Key findings

  • solo-learn provides standardized implementations for 13 SSL methods in PyTorch, enabling easier reproduction and comparison.
  • The library offers distributed training, mixed-precision support, fast data loading with Nvidia DALI, and online linear evaluation to speed up prototyping.
  • Benchmark results show competitive online linear evaluation accuracies across CIFAR-10, CIFAR-100, and ImageNet-100 for several methods, with hyperparameters tuned to improve performance over original reports.
  • Compared to related libraries (VISSL, Lightly), solo-learn supports more modern SSL methods and targets researchers with smaller GPU budgets, while providing additional utilities like automated linear evaluation and UMAP visualizations.
  • Experiments also demonstrate faster training times and reduced memory usage when using DALI for data loading on ImageNet-100.

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.