Learning Self-Regularized Adversarial Views for Self-Supervised Vision Transformers

Tao Tang, Changlin Li, Guangrun Wang, Kaicheng Yu, Xiaojun Chang, Xiaodan LiangarXiv 2022

Abstract

Automatic data augmentation (AutoAugment) strategies are indispensable in supervised data-efficient training protocols of vision transformers, and have led to state-of-the-art results in supervised learning. Despite the success, its development and application on self-supervised vision transformers have been hindered by several barriers, including the high search cost, the lack of supervision, and the unsuitable search space. In this work, we propose AutoView, a self-regularized adversarial AutoAugment method, to learn views for self-supervised vision transformers, by addressing the above barriers. First, we reduce the search cost of AutoView to nearly zero by learning views and network parameters simultaneously in a single forward-backward step, minimizing and maximizing the mutual information among different augmented views, respectively. Then, to avoid information collapse caused by the lack of label supervision, we propose a self-regularized loss term to guarantee the information propagation. Additionally, we present a curated augmentation policy search space for self-supervised learning, by modifying the generally used search space designed for supervised learning. On ImageNet, our AutoView achieves remarkable improvement over RandAug baseline (+10.2% k-NN accuracy), and consistently outperforms sota manually tuned view policy by a clear margin (up to +1.3% k-NN accuracy).

Introduction

In self-supervised learning (SSL), the model learns by comparing different "views" (augmented versions) of the same image. The quality of these views is critical: if they are too similar, the model learns trivial features; if they are too different, the model may fail to recognize the underlying identity, leading to information collapse. While supervised learning benefits from AutoAugment to find optimal transformations, SSL faces three major hurdles: high search costs due to bi-level optimization, a lack of label supervision to define "good" augmentations, and an unsuitable search space originally designed for CNNs.

Methodology: The AutoView Framework

AutoView addresses these challenges through a "zero-cost" adversarial approach that integrates augmentation policy search directly into the training loop.

The AutoView framework utilizes a Gradient Reversal Layer to optimize the augmentation generator and encoder simultaneously, using self-regularization to prevent information collapse.

One-Step Adversarial Optimization

Instead of a separate, expensive search phase, AutoView uses a Gradient Reversal Layer (GRL). This allows the augmentation policy (the generator) and the Vision Transformer (the encoder) to be optimized together in a single forward-backward pass. The generator attempts to minimize mutual information by creating "harder" views, while the encoder is trained to maximize it by identifying the shared features.

Self-Regularized Information Propagation

To prevent adversarial training from causing information collapse—where views become so aggressive that identity is lost—the authors introduce a self-regularization term. This acts as a "safety rail," ensuring that augmented views still share essential semantic features with the original image $x$.

Curated Search Space

Vision Transformers (ViTs) are more sensitive to geometric shifts than CNNs. AutoView utilizes a curated search space that removes aggressive geometric transformations (like ShearY) which often move objects out of frame, and instead prioritizes SSL-standard operations like Gaussian blur and Grayscale.

Experimental Results

AutoView demonstrates significant performance gains across multiple benchmarks. On ImageNet-1K, it achieved a massive +10.2% k-NN accuracy improvement over the RandAug baseline and outperformed state-of-the-art manually tuned policies by up to +1.3%.

AutoView significantly improves both Linear and KNN accuracy compared to random augmentation, shifting the operation probability distribution toward more effective views.

Beyond ImageNet, the benefits of AutoView pre-training extend to downstream tasks, including a +1.2% mAcc boost on ADE20K semantic segmentation and a +2.8% mAP increase on the Oxford Image Retrieval benchmark. Furthermore, the model showed improved robustness, with a +2.3% Top-1 accuracy gain on ImageNet-A.

Conclusion

AutoView provides an efficient, automated solution for learning augmentation policies in self-supervised ViTs. By balancing adversarial difficulty with self-regularization, it eliminates the need for expensive search phases while consistently outperforming manual tuning. Future work may explore fully continuous or generative augmentation spaces to further expand the diversity of learned views.

Summary updated

BibTeX
@misc{tang2022learning,
  author = {Tao Tang and Changlin Li and Guangrun Wang and Kaicheng Yu and Xiaojun Chang and Xiaodan Liang},
  title = {{Learning Self-Regularized Adversarial Views for Self-Supervised Vision Transformers}},
  year = {2022},
  eprint = {2210.08458},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2210.08458},
}
Figure