Masked Siamese ConvNets

Li Jing, Jiachen Zhu, Yann LeCunarXiv 2022 · DOI

Abstract

While masking has become a cornerstone of self-supervised learning for Vision Transformers (ViTs), its application to Convolutional Neural Networks (ConvNets) has historically yielded poor results. This work identifies the fundamental architectural mismatches—specifically parasitic edges, superficial solutions, and feature imbalance—that cause this failure. We present Masked Siamese ConvNets (MSCN), a framework incorporating high-pass filtering, focal masking, and channel-independent noise. MSCN enables ResNets to effectively leverage masked pretraining, achieving state-of-the-art performance in object detection and low-shot classification benchmarks.

Introduction

In self-supervised learning (SSL), Siamese networks learn representations by maximizing the similarity between different "views" of the same image. Traditionally, these views are generated through labor-intensive augmentations like random cropping and color jittering. Masking—the process of hiding image patches—has emerged as a more general alternative. However, while ViTs excel with masking due to their patch-based processing, ConvNets suffer because their kernels interpret mask boundaries as high-frequency "parasitic edges" that disrupt feature learning.

The MSCN Framework

To bridge this gap, MSCN introduces several key design principles aimed at aligning masking with the inductive biases of convolutions:

  • High-pass Filtering: By applying a high-pass filter before masking, the artificial edges of the mask become invisible to convolutional kernels, forcing the network to focus on the underlying image structure.
  • Focal Masking: This technique uses random crops without resizing in conjunction with grid masks to maintain a balance between local texture and global semantic features.
  • Channel-Independent Masking and Noise: Applying different masks to each RGB channel and filling masked areas with Gaussian noise prevents the model from exploiting simple color histograms or "empty" space as shortcuts.
  • Macro Design: The use of asymmetric training branches and "multimasks" (multiple masked versions per view) maximizes the learning signal per iteration.
Visualizing the effects of masking on image structure and convolutional filters. The high-pass filter helps mitigate the 'parasitic edge' problem.

Experimental Results

MSCN was evaluated on ImageNet-1K and several transfer learning tasks. The framework achieved a linear probe accuracy of 67.6% on ImageNet-1K after 100 epochs, a 1.0% improvement over unmasked baselines. In low-shot scenarios (using only 1% of labels), MSCN boosted SimCLR performance from 48.3% to 54.0%. Furthermore, MSCN demonstrated superior spatial localization features in object detection tasks on VOC07+12 and COCO datasets.

Ablation study illustrating the incremental performance improvements gained by addressing spatial, channel, and macro-design challenges.

Discussion and Conclusion

The success of MSCN reveals that the benefits of masking are not exclusive to Transformers. By respecting the inductive biases of ConvNets—specifically their sensitivity to edges and local correlations—masking can be transformed into a powerful tool for convolutional architectures.

However, limitations remain. One significant drawback is the efficiency gap; unlike ViTs, ConvNets cannot easily skip processing masked patches due to their sliding-window nature. Additionally, while MSCN reduces reliance on complex augmentations, the best results still incorporate some standard techniques like random cropping. Future work will focus on closing these gaps and exploring the sensitivity of masking strategies to different SSL loss functions.

Summary updated

BibTeX
@misc{jing2022masked,
  author = {Li Jing and Jiachen Zhu and Yann LeCun},
  title = {{Masked Siamese ConvNets}},
  year = {2022},
  eprint = {2206.07700},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2206.07700},
}
Figure