Contrastive Learning With Stronger Augmentations

Xiao Wang, Guo-Jun Qi

Abstract

Self-supervised learning (SSL) has traditionally been restricted to "weak" image augmentations to maintain instance identity. This paper introduces CLSA (Contrastive Learning with Stronger Augmentations), a framework that allows SSL models to benefit from aggressive distortions like those used in supervised learning. By employing a Distributional Divergence Minimization (DDM) loss, CLSA treats weak views as "teachers" for strong views, achieving 76.2% top-1 accuracy on ImageNet with a ResNet-50 and significantly improving downstream performance in object detection.

Introduction: The Augmentation Gap

In contrastive learning, the objective is to learn representations by pulling together different views of the same image while pushing apart views of different images. However, this paradigm relies on the assumption that the augmentations are "identity-preserving."

Visualizing the impact of different augmentation strengths on image structure.

As shown in Figure 1, while weak augmentations (like cropping or slight blurring) keep the subject recognizable, strong augmentations can destroy the global structure. Standard contrastive models fail when forced to map these unrecognizable views to the same point in feature space, missing out on the robustness and novel patterns that strong augmentations provide to supervised models.

Methodology: Distributional Divergence Minimization

To bridge this gap, the authors propose a dual-loss framework that relaxes the rigid identity constraint for strongly augmented views.

The CLSA architecture featuring dual encoders and a memory bank for distributional matching.

Dual-Loss Framework

The model processes two types of views:

  1. Weak Views ($V$): Standard augmentations (crops, color jitter) are used with a traditional contrastive loss ($L_C$).
  2. Strong Views ($V'$): Aggressive transformations (Shear, Rotate, Invert, etc.) are applied.

Distributional Divergence Minimization (DDM)

Instead of forcing the strong view's embedding $z'$ to be identical to the weak view's embedding $z$, CLSA utilizes a memory bank $M$ containing thousands of other image representations ($z_1, z_2, ..., z_K$). The weak view generates a "soft target" distribution—a probability map of its similarity to every item in the memory bank. The DDM loss ($L_D$) then trains the strong view to produce a matching distribution. This "teacher-student" dynamic allows the model to learn stable inter-instance relationships even when the primary subject is heavily distorted.

Experimental Results

The authors evaluated CLSA across several benchmarks, demonstrating its superiority over existing SSL methods.

ImageNet Performance

On ImageNet-1K linear evaluation, CLSA achieved 76.2% top-1 accuracy using a ResNet-50 backbone. This result nearly matches the fully supervised baseline of 76.5%, effectively closing the performance gap between self-supervised and supervised learning.

Transfer Learning and Object Detection

CLSA shows remarkable transferability:

  • PASCAL VOC: Achieved 93.6% classification accuracy, surpassing the previous state-of-the-art (SwAV) by 4.7%.
  • COCO Object Detection: Significantly improved the detection of small objects ($AP_S$) to 24.4%, compared to 20.8% for MoCo v2. This suggests that strong augmentations force the model to learn fine-grained local features rather than just global shapes.

Conclusion

CLSA demonstrates that strong augmentations are not only viable but highly beneficial for self-supervised learning when paired with distributional matching. By moving from rigid identity constraints to flexible inter-instance relationships, CLSA achieves state-of-the-art results and provides a more robust foundation for downstream computer vision tasks.

Summary updated

BibTeX
@article{wang2021contrastive,
  author = {Xiao Wang and Guo-Jun Qi},
  title = {{Contrastive Learning With Stronger Augmentations}},
  journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
  year = {2021},
  doi = {10.1109/tpami.2022.3203630},
}
Figure