Abstract: Contrastive-based self-supervised learning methods achieved great success in recent years. However, self-supervision requires extremely long training epochs (e.g., 800 epochs for MoCo v3) to achieve promising results, which is unacceptable for the general academic community and hinders the development of this topic. This work revisits the momentum-based contrastive learning frameworks and identifies the inefficiency in which two augmented views generate only one positive pair. We propose Fast-MoCo - a novel framework that utilizes combinatorial patches to construct multiple positive pairs from two augmented views, which provides abundant supervision signals that bring significant acceleration with neglectable extra computational cost. Fast-MoCo trained with 100 epochs achieves 73.5% linear evaluation accuracy, similar to MoCo v3 (ResNet-50 backbone) trained with 800 epochs. Extra training (200 epochs) further improves the result to 75.1%, which is on par with state-of-the-art methods. Experiments on several downstream tasks also confirm the effectiveness of Fast-MoCo.
Introduction
Self-supervised learning (SSL) has revolutionized computer vision by enabling models to learn from vast amounts of unlabeled data. However, the computational cost remains a significant barrier. State-of-the-art methods like MoCo v3 or BYOL typically require 800 to 1,000 training epochs on datasets like ImageNet-1K to reach peak performance. This "entry fee" limits the field's accessibility to researchers without massive GPU clusters.
The primary bottleneck identified in this work is the low "sample efficiency" of the standard "two-image-one-pair" strategy. In traditional contrastive learning, two augmented views of an image generate only a single positive pair for supervision. Fast-MoCo addresses this by shifting to a "two-image-multi-pair" paradigm, dramatically accelerating convergence.
Methodology: The Divide-Encode-Combine Pipeline
Fast-MoCo introduces a novel Divide-Encode-Combine pipeline designed to maximize the supervision signal from each image pair.
The process consists of four main stages:
- Divide: The "online" branch divides an augmented image into an $m \times m$ grid of non-overlapping patches (typically $2 \times 2$).
- Encode: Each patch is passed through the encoder (e.g., ResNet-50) independently.
- Combine: Subsets of these encoded patches are averaged to create new "combinatorial" samples. For a $2 \times 2$ grid, selecting any 2 patches out of 4 yields $C(4,2) = 6$ distinct combined samples from one image.
- Contrast: Each combinatorial sample is contrasted against a "target" embedding—the full image processed by a momentum-updated encoder.
By presenting the model with partial views (an "information gap"), it is forced to learn more robust semantic features to bridge the gap between the incomplete online samples and the complete target representation. Crucially, combining patches at the embedding level (post-encoder) prevents the model from relying on low-level edge matching at patch boundaries.
Experimental Results
The effectiveness of Fast-MoCo was primarily evaluated on ImageNet-1K using linear evaluation.
Performance and Efficiency
Fast-MoCo demonstrates a remarkable 8x speedup in training efficiency. As shown in the figure above, Fast-MoCo achieves 73.5% Top-1 accuracy in just 100 epochs, a level that requires the baseline MoCo v3 approximately 800 epochs to reach. Extending training to 400 epochs pushes accuracy to 75.5%, outperforming or matching complex "multi-crop" methods like SwAV and DINO.
Importantly, this acceleration comes with negligible overhead. The extra computation is confined to the lightweight projector and predictor heads, resulting in only a ~7% increase in total training time per epoch.
Downstream Tasks
The learned representations were further validated on downstream tasks including object detection (PASCAL VOC) and instance segmentation (COCO). Fast-MoCo consistently outperformed baselines like MoCo v2 and SimSiam, confirming that the accelerated training does not compromise the quality or transferability of the features.
Conclusion and Future Work
Fast-MoCo provides a highly efficient framework for momentum-based contrastive learning, making high-performance SSL more accessible. By leveraging combinatorial patches, it multiplies the supervision signals available from each image pair.
While currently focused on convolutional architectures like ResNet-50, future work aims to evaluate the framework's performance with Vision Transformers (ViT). Additionally, exploring the optimal "Goldilocks zone" for patch sizes and grid configurations across different image resolutions remains an area for further investigation.
Summary updated