RSA: Reducing Semantic Shift from Aggressive Augmentations for Self-supervised Learning

Yingbin Bai, Erkun Yang, Zhaoqing Wang, Yuxuan Du, Bo Han, Cheng Deng, Dadong Wang, Tongliang Liu

Introduction

Self-supervised learning (SSL) has made massive strides in visual representation learning, largely by contrasting different augmented "views" of the same image. To push models to learn more robust and invariant features, researchers increasingly rely on "aggressive" data augmentations—such as extreme color jittering, grayscaling, and heavy Gaussian blur. However, this introduces a critical trade-off: while aggressive augmentations improve model diversity, they often distort the image's underlying meaning.

To address this, researchers introduce RSA (Reducing Semantic shift from Aggressive augmentation), a novel SSL framework. By leveraging the natural tendency of neural networks to prioritize clean data over noise, RSA dynamically weights these augmentations during training, achieving a new state-of-the-art 73.1% top-1 accuracy on ImageNet-1K with a ResNet-50 backbone.

The Problem: Semantic Shift

In standard SSL, models are trained to pull representations of two different views of the same image closer together. When standard augmentations (like random cropping or flipping) are used, the core semantics of the image usually remain intact.

However, when aggressive transformations are applied to maximize training diversity, they can lead to semantic shift. For instance, an aggressive color filter or an extreme crop might turn a recognizable animal or object into an ambiguous blob of pixels.

Examples of aggressive augmentations causing semantic shift.

When the model is forced to treat these semantically divergent views as the "same" object, it learns noisy representations that degrade its performance on downstream tasks. Previous attempts to fix this issue often involved computationally expensive filtering mechanisms or complex object detection pipelines to ensure the core of the image remained visible.

The RSA Methodology

The authors propose RSA, which elegantly sidesteps complex filtering by treating semantically inconsistent image pairs simply as "noisy" data. The approach is built on two foundational pillars:

1. The Memorization Effect

Deep Neural Networks (DNNs) exhibit a well-documented "memorization effect": they tend to learn simple, clean patterns (the majority of the data) early in training before they start overfitting to noisy, inconsistent data (the minority). RSA exploits this property by recognizing that semantically shifted views act as minority noise.

2. Dynamic Weighting ($\beta$)

RSA introduces a multi-stage augmentation pipeline that produces both "weak" views (standard crops/flips) and "aggressive" views. It then applies a dynamic weighting schedule to the loss function:

  • Early Training: The model assigns a high weight to aggressive pairs. Because the network is still learning clean, generalizable features, this maximizes diversity and exploration without immediately overfitting to the noise.
  • Late Training: As training progresses and the risk of memorizing the "noisy" semantic shifts increases, the weight for aggressive pairs is gradually reduced via a cosine decay schedule.

Technically, RSA employs an asymmetric architecture (similar to BYOL) with an online and a target network. It calculates a four-way loss that carefully balances the consistency between weak-aggressive pairs and aggressive-aggressive pairs. To avoid the massive computational overhead of processing four separate views from scratch, aggressive views are derived directly from the results of weak views, keeping the training time increase under 9% compared to standard methods.

Key Results

The authors evaluated RSA across a wide spectrum of benchmarks, from small-scale datasets (CIFAR-10, STL-10) to large-scale industry standards (ImageNet-1K), as well as downstream tasks like MS COCO.

  • ImageNet-1K: RSA achieved 73.1% top-1 accuracy using a ResNet-50 backbone trained for 200 epochs. This represents a significant 2.5% improvement over the popular BYOL method under the same conditions.
  • CIFAR-100: RSA reached 68.1% accuracy, outperforming SimCLR (59.5%) and BYOL (63.9%) by substantial margins.
  • Transfer Learning: When transferring the learned representations to the MS COCO dataset for object detection and instance segmentation, RSA-pretrained models outperformed those trained with InfoMin Aug (a method specifically designed for optimal augmentations). This proves that RSA learns highly transferable features.

Limitations and Future Work

While RSA successfully mitigates the impact of semantic shift, the authors note a limitation: they do not yet have a precise mathematical way to measure exactly when an augmentation becomes "too noisy" for a specific image. Currently, the noise is handled statistically across the whole dataset using a global decay schedule.

Future research directions include investigating the specific conditions under which semantic noise occurs and developing more "instance-aware" weighting systems. Such systems could detect semantic shift on a per-image basis, further refining the balance between augmentation diversity and semantic consistency.

Summary updated

BibTeX
@inproceedings{bai2022rsa,
  author = {Yingbin Bai and Erkun Yang and Zhaoqing Wang and Yuxuan Du and Bo Han and Cheng Deng and Dadong Wang and Tongliang Liu},
  title = {{RSA: Reducing Semantic Shift from Aggressive Augmentations for Self-supervised Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=jtDTkB9NUF},
}
Figure