Abstract
DailyMAE presents a highly efficient training recipe designed to democratize self-supervised learning by reducing the pretraining time of Masked Autoencoders (MAE) on ImageNet-1K to under 18 hours on a single 8-GPU node. By addressing the data loading bottleneck through a novel "crop decode" strategy (ESSL) and implementing a "palindrome" progressive training schedule, the authors achieve a 5.8x speedup over standard implementations while maintaining state-of-the-art accuracy.
Introduction
Self-supervised learning (SSL), particularly Masked Image Modeling (MIM), has significantly advanced Vision Transformer (ViT) performance. However, the computational cost remains a barrier, often requiring weeks of training on large clusters. A critical, yet frequently overlooked, bottleneck is data I/O. As GPUs like the A100 and H100 increase in compute power, traditional data loading and decoding processes fail to keep pace, leaving expensive hardware idle. DailyMAE aims to resolve this by optimizing the entire training pipeline for speed without sacrificing model quality.
Methodology: Optimizing the Data Pipeline and Training Dynamics
The authors introduce two primary innovations to accelerate training:
ESSL: Enhanced Fast Forward Computer Vision
Building on the FFCV library, the authors developed ESSL, which introduces a "crop decode" operation. Unlike standard pipelines that decode an entire JPEG before cropping, ESSL decodes only the specific region required. This approach reduces memory usage by 13.7% and increases throughput by 27.6%, effectively saturating high-performance GPUs.
Palindrome Progressive Training and Augmentation
While progressive training typically increases image resolution over time, the authors found a "palindrome" scheme—decreasing then increasing resolution—more effective for MAEs. Additionally, they adopted a "Three Augmentation" (3 Aug) strategy to mitigate "compression shift," ensuring the model remains robust to JPEG artifacts introduced during high-speed loading.
Key Results and Insights
The proposed optimizations lead to significant gains in training efficiency. A MAE-Base/16 model was pretrained for 800 epochs in just 17 hours and 45 minutes on a single 8-A100 node.
Key findings include:
- I/O Efficiency: Moving from standard PyTorch ImageFolders (IF) to ESSL reduces runtime from over 100 hours to under 20 hours.
- Accuracy Preservation: Despite the speedup, the model achieves a competitive 83.27% top-1 accuracy on ImageNet-1K after finetuning.
- Masking Ratio Dynamics: Increasing the masking ratio from 0.75 to 0.85 during training (Scheme 4) saved 6.6% in time while improving final accuracy.
Conclusion and Future Work
DailyMAE demonstrates that high-performance SSL is achievable on modest hardware. While currently optimized for MAEs, future work includes extending these recipes to other frameworks like DINO or iBOT and exploring the impact of lossy compression on sensitive downstream tasks like medical imaging. The code is available via the FastSSL library to support broader community adoption.
Summary updated