Self-supervised visual learning in the low-data regime: a comparative evaluation

Sotirios Konstantakos, Despina Ioanna Chalkiadaki, Ioannis Mademlis, Yuki M. Asano, Efstratios Gavves, Georgios Th. Papadopoulos

TL;DR

This paper investigates the effectiveness of Self-Supervised Learning (SSL) methods when training data is scarce, a common real-world scenario. They find that in domain-specific tasks, in-domain SSL pretraining outperforms large-scale pretraining on general datasets, offering valuable insights for practitioners working with limited data.

What Problem Does This Paper Address?

Deep Neural Networks (DNNs) have revolutionized computer vision, but their success often hinges on massive amounts of labeled training data. While Self-Supervised Learning (SSL) offers a way to learn from unlabeled data, it's typically applied at a massive scale (e.g., ImageNet). However, in specialized domains like medical imaging, acquiring millions of unlabeled images can be impractical or computationally infeasible. This paper addresses the critical gap of understanding how common SSL methods perform when faced with a "low-data regime" – significantly smaller pretraining datasets – and whether in-domain SSL can compensate for the lack of data.

Methods

The authors conduct a comprehensive comparative evaluation of four prominent SSL methods, each representing a major category:

  • Generative: MAE (Masked Autoencoders)
  • Contrastive: SimCLR (Simple Contrastive Learning of Representations)
  • Self-distillation: DINO (DIstillation with NO labels)
  • Clustering: DeepClusterV2

These methods are evaluated across various experimental setups, including single-dataset training, transfer learning, and domain-specific tasks. They also compare these SSL approaches against traditional supervised pretraining baselines and a large-scale pretrained DINOv2 model. The evaluation metrics include top-1 and top-5 classification accuracy, as well as robustness tests and qualitative analysis of learned representations using RELAX.

Datasets

The study utilizes a range of datasets, categorized by their role:

Pretraining Datasets (Low-Data Regime): * ImageNet-100 (a subset of ImageNet) * Places-100 (a subset of Places-365) * MLRSNet (remote sensing) * MedPix (medical imaging) * SIXRay-100 (security imaging, subsampled) * CEM500K (microscopy imaging, subsampled) * BIRDSAI (UAV-captured infrared footage)

Downstream Datasets: * Object-centric: COCO, STL-10 * Scene-centric: ADE20K, SUN Database * Domain-specific: AID, ChestX-Det, SIXRay-10, RaabinWBC, HIT-UAV (object detection) * Robustness: Noisy-ImageNet-100, Imbalanced-ImageNet-100, VTAB benchmark

Key Insights and Ideas

  • Low-Data Threshold: There appears to be a critical pretraining dataset size threshold (estimated between 50k-65k images) below which SSL becomes ineffective for learning useful representations.
  • Domain-Specific Advantage: In-domain SSL pretraining significantly outperforms generic pretraining (even large-scale) on domain-specific tasks, especially when the target domain is very different from conventional RGB images (e.g., medical, security imaging).
  • DINO's Generalization: DINO, particularly with Vision Transformer (ViT) architectures, demonstrates strong generalization capabilities in the low-data regime, often outperforming other SSL methods and even low-data supervised baselines in transfer-learning scenarios.
  • MAE's Robustness: The generative MAE method shows notable robustness, especially under noisy or imbalanced conditions, potentially due to its focus on foreground objects.
  • CNNs vs. ViTs in Low-Data: For single-dataset setups where cross-dataset generalization isn't prioritized, CNN-based SSL methods (like SimCLR on ResNet) may outperform ViT-based methods, possibly due to ViTs' higher data hunger.

Key Results

  • Single-Dataset Setup: SimCLR (ResNet) achieved the best performance in the object-centric setting, while DINO (ViT) was slightly outperformed by baselines in the scene-centric case.
  • Transfer-Learning Setup: DINO (ViT) emerged as the best-performing SSL method, though large-scale supervised baselines and DINOv2 generally surpassed all SSL methods.
  • Domain-Specific Performance: In-domain low-data DINO pretraining outperformed all other approaches (including large-scale pretraining) in medical, security, and UAV-captured infrared imaging domains.
  • Robustness: MAE and DINO (on ViT) were found to be the most robust low-data SSL approaches, though they did not surpass supervised baselines.
  • Accuracy Gains: Figures 10 and 11 show that DINO/ViT gains over supervised methods in transfer-learning experiments do not always correlate with pretraining dataset size, highlighting the importance of domain relevance.

Limitations and Future Work

  • Low-Data Threshold: The study identifies a pretraining dataset size limit (50k-65k images) below which SSL is ineffective. Future work could focus on methods that achieve better data efficiency to overcome this.
  • Supervised Baselines: In many scenarios, especially for robustness and transfer learning, large-scale supervised pretraining and off-the-shelf DINOv2 models still outperform low-data SSL methods.
  • Domain-Specific Adaptation: Future research could explore adapting general SSL methodologies to exploit specific domain properties (e.g., X-ray scan characteristics) for higher data efficiency and better domain-specific features.
  • Robustness vs. Performance Trade-off: While DINO excels in generalization and MAE in robustness, future work could focus on methods that combine the best of both worlds, perhaps by allowing adjustable trade-offs between robustness and performance during pretraining.

Summary updated

BibTeX
@inproceedings{konstantakos2024self,
  author = {Sotirios Konstantakos and Despina Ioanna Chalkiadaki and Ioannis Mademlis and Yuki M. Asano and Efstratios Gavves and Georgios Th. Papadopoulos},
  title = {{Self-supervised visual learning in the low-data regime: a comparative evaluation}},
  booktitle = {Neurocomputing},
  year = {2024},
  url = {https://openreview.net/forum?id=QCyeiTMLPQ},
}
Figure