Revisiting the Critical Factors of Augmentation-Invariant Representation Learning

Junqiang Huang, Xiangwen Kong, Xiangyu Zhang

Introduction

In the landscape of Self-Supervised Learning (SSL), two primary paradigms have emerged: contrastive learning, exemplified by MoCo v2, and non-contrastive learning, represented by BYOL. Historically, these frameworks were perceived to have distinct trade-offs. MoCo v2, which utilizes negative samples to prevent representation collapse, was noted for its superior transferability to downstream tasks like object detection. Conversely, BYOL, which employs an asymmetric network and a stop-gradient operation, was celebrated for its high linear probing accuracy on ImageNet. This paper challenges the notion that these differences are inherent to the frameworks themselves, arguing instead that they are the result of inconsistent experimental setups and optimization choices.

Aligning the Frameworks: MoCo v2+

To conduct a fair comparison, the authors establish a unified benchmark by iteratively upgrading MoCo v2 with components typically found in the BYOL recipe. This enhanced version, termed MoCo v2+, incorporates:

  • Synchronized Batch Normalization (SyncBN): Ensuring consistent statistics across GPUs.
  • Predictor MLP: Adding an extra layer to the online network.
  • Cosine Momentum Schedule: Refining the update of the target network.
  • Symmetric Loss: Computing the loss from both views of the data.

When these training details are aligned, the performance gap vanishes. MoCo v2+ achieves a top-1 accuracy of 72.4% on ImageNet (200 epochs), matching BYOL. This suggests that the fundamental mechanism—whether contrastive or non-contrastive—is less critical than the implementation details of the training pipeline.

Solving the Transferability Paradox

A major contribution of this research is identifying why BYOL previously appeared to transfer poorly to downstream tasks. The authors discovered an "optimization mismatch": BYOL is typically pre-trained using the LARS optimizer, which produces weight norms significantly larger than those produced by the SGD optimizer used in fine-tuning. This discrepancy causes standard fine-tuning protocols to fail.

To address this, the authors introduce NormRescale, a simple post-processing technique that rescales the weight norms of LARS-trained models to match those typical of SGD. By applying NormRescale, BYOL’s performance on PASCAL VOC object detection (AP50) improved from 38.8 to 48.1, proving that BYOL-style representations are just as transferable as MoCo-style ones when optimized correctly.

Symmetry and Robustness

The study further explores the role of architectural symmetry. While asymmetric structures (a predictor on only one branch) help models fit the ImageNet pretext task more effectively, the authors found that symmetric structures (S-MoCo v2+) perform better on long-tailed datasets (e.g., CIFAR-10-LT). This indicates that the choice of symmetry involves a trade-off between specialized pretext performance and general robustness to class imbalance.

Additionally, the paper refutes the claim that contrastive methods are more sensitive to data augmentation than non-contrastive ones. Under a controlled comparison, both frameworks are shown to be equally dependent on complex augmentation pipelines (such as color jittering and solarization) to learn high-quality features.

Conclusion and Future Directions

The findings demonstrate that the perceived gap between contrastive and non-contrastive SSL is largely a "ghost in the machine" caused by disparate training recipes. By aligning these factors, the frameworks achieve nearly identical results. However, the authors note a potential limitation: as models are trained longer (e.g., 800 epochs), they may begin to overfit to the specific pretext task of augmentation invariance, leading to saturated or declining transfer performance. Future work is needed to develop unified optimization strategies that prevent this saturation and to explore how these critical factors apply to newer architectures like Vision Transformers (ViTs).

Summary updated

BibTeX
@inproceedings{huang2022revisiting,
  author = {Junqiang Huang and Xiangwen Kong and Xiangyu Zhang},
  title = {{Revisiting the Critical Factors of Augmentation-Invariant Representation Learning}},
  booktitle = {European Conference on Computer Vision},
  year = {2022},
  doi = {10.1007/978-3-031-19821-2\_3},
}
Figure