Abstract
Joint-Embedding Self-Supervised Learning (JE-SSL) methods like SimCLR and BYOL are often considered "compute-hungry," requiring massive batch sizes and expensive multi-GPU setups. This paper challenges this "common wisdom" by demonstrating that high-quality representations can be learned on a single GPU within a reasonable timeframe. By introducing FFCV-SSL, an optimized library, and performing rigorous hyperparameter tuning, the authors show that the perceived need for massive resources is largely due to suboptimal hyperparameter choices rather than fundamental algorithmic constraints.
Introduction
Self-Supervised Learning has revolutionized the use of unlabeled data, but the high computational cost of methods like SimCLR, BYOL, and VICReg has historically limited research to well-funded labs. Conventional wisdom dictates that these methods require mini-batches as large as 4096 images and complex, hand-crafted data augmentations. This "compute wall" effectively gatekeeps the field. This work investigates whether these requirements are fundamental to the algorithms or merely artifacts of unexamined "best practices."
Methods
The authors adopted a "back-to-basics" empirical approach to identify and remove bottlenecks:
- Hyperparameter Grid Search: Instead of keeping parameters fixed while varying batch sizes, they performed extensive searches on learning rates, temperature parameters, and projector network depths.
- FFCV-SSL Library: They developed an optimized PyTorch library using a specialized data format and ahead-of-time compilation (Numba) to minimize data-loading overhead, which is often the primary bottleneck in SSL.
- Ablation and Simplification: They systematically reduced batch sizes and stripped away complex augmentations (e.g., color jittering, solarization) to identify true performance drivers.
Results and Key Insights
The study reveals several critical findings that lower the barrier to entry for SSL research.
The Batch Size Myth and Hyperparameter Tuning
The perceived necessity for huge batches in SimCLR is primarily a hyperparameter issue. By specifically tuning the learning rate and temperature for smaller batches, the performance gap between a batch size of 256 and 8192 is significantly reduced. Furthermore, increasing the depth of the projector MLP helps bridge this gap by acting as a buffer for suboptimal training settings.
Efficiency and Speedup
Using the FFCV-SSL library, the authors achieved a 3x speedup in training time per epoch compared to standard torchvision dataloaders. This optimization allowed for training SimCLR on a single A100 GPU in just 35 hours, reaching 65.58% linear probing accuracy on ImageNet—a result previously thought to require an 8-GPU setup.
Augmentation and Evaluation
While complex augmentations provide some benefit, simple cropping + grayscaling is often sufficient for competitive performance across various tasks. Evaluation on a diverse set of benchmarks (CIFAR10, CLEVR, Eurosat, iNaturalist, Places205) showed that models trained with "weaker" settings often generalize as well as (or better than) those trained with standard, expensive recipes.
Conclusion
This work successfully demonstrates that JE-SSL can be democratized. By focusing on proper optimization and efficient data handling, high-quality self-supervised models can be trained without massive hardware resources. While a small performance gap remains between small and large batch sizes on ImageNet, the findings suggest that SSL is far more accessible than previously believed. Future work will focus on further optimizing slow augmentations and exploring the limits of minimal inductive bias in training.
Summary updated