NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Improving self-supervised representation learning via sequential adversarial masking

Dylan Sam, Min Bai, Tristan McKinney, Li Erran LiarXiv 2022 · DOI

Introduction

Self-supervised learning (SSL) has revolutionized computer vision by enabling models to learn from unlabeled data through "pretext tasks." A common approach involves masking parts of an image and requiring the model to reconstruct or identify the missing content. While random masking is standard, it often allows models to "cheat" by exploiting local textures. This paper proposes a Sequential Adversarial Masking framework that iteratively hides the most informative regions, forcing the encoder to develop a deeper, global understanding of the scene.

The Sequential Adversarial Framework

Traditional adversarial masking, such as the ADIOS model, generates multiple masks simultaneously. This approach often results in rigid, disjoint masks that do not reflect the natural structure of objects. The authors address this by introducing a recurrent masking process.

Architecture of the Sequential Adversarial Masking framework, showing the iterative generation of masks using a canvas.

The framework operates through four key components:

  1. Sequential Generation: The masking head generates masks one by one, conditioned on previous masks via a "canvas." This allows the model to identify distinct semantic parts, such as a face followed by a hand.
  2. Budget Constraints: Each mask is limited to a specific pixel percentage (e.g., 25%), preventing the adversary from simply hiding the entire image.
  3. Overlap Penalty: A penalty based on the dot product of the current mask and previous masks encourages the adversary to explore new, informative regions rather than redundant ones.
  4. Adversarial Training: The system is trained as a min-max game where the masking network maximizes the encoder's error, and the encoder learns to be robust against these targeted occlusions.

Key Results and Insights

The sequential approach demonstrates superior performance across various benchmarks, particularly in capturing object boundaries and global features.

Performance comparison on ImageNet100s and STL10 datasets showing gains over SimCLR and ADIOS.

As shown in the table above, the sequential method consistently outperforms both standard contrastive learning (SimCLR) and the previous adversarial state-of-the-art (ADIOS). Notably, it achieved a 3-point lead in linear probing on ImageNet100s and a significant boost in fine-tuning on STL10. Furthermore, the model showed a 5% relative improvement in semantic segmentation on Pascal VOC, indicating that the learned representations are highly effective for pixel-level tasks.

An interesting emergent behavior is the "Masking Nothing" strategy: the final mask in a sequence often hides very little. Due to the overlap penalty and the difficulty of finding more informative regions, the adversary effectively provides the encoder with unmasked images, acting as a natural regularizer.

Conclusion and Future Work

Sequential adversarial masking effectively breaks the symmetry of simultaneous masking, leading to more stable training and semantically meaningful occlusions. While the current model uses static masking budgets, future research will explore dynamic budgets based on image complexity to further enhance the robustness of self-supervised representations.

Summary updated

BibTeX
@misc{sam2022improving,
  author = {Dylan Sam and Min Bai and Tristan McKinney and Li Erran Li},
  title = {{Improving self-supervised representation learning via sequential adversarial masking}},
  year = {2022},
  eprint = {2212.08277},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2212.08277},
}
Figure