Abstract: This paper investigates two techniques for developing efficient self-supervised vision transformers (EsViT) for visual representation learning. First, we show through a comprehensive empirical study that multi-stage architectures with sparse self-attentions can significantly reduce modeling complexity but with a cost of losing the ability to capture fine-grained correspondences between image regions. Second, we propose a new pre-training task, non-contrastive region-matching, which allows the model to capture fine-grained region dependencies and as a result significantly improves the quality of the learned vision representations. Our results show that combining the two techniques, EsViT achieves 81.3% top-1 on the ImageNet linear probe evaluation, outperforming prior arts with around an order magnitude of higher throughput. When transferring to downstream linear classification tasks, EsViT outperforms its supervised counterpart on 17 out of 18 datasets.
Introduction
Self-supervised learning (SSL) has revolutionized representation learning, yet a significant performance-efficiency gap remains in computer vision. While monolithic Vision Transformers (ViTs) have demonstrated impressive capabilities in capturing semantic correspondences, their quadratic computational scaling limits their practical application. Conversely, hierarchical architectures like Swin Transformers offer better efficiency but often fail to maintain the fine-grained spatial intelligence inherent in monolithic models. This paper introduces EsViT (Efficient Self-supervised Vision Transformers), a framework designed to bridge this gap by combining hierarchical efficiency with a novel region-matching pre-training task.
Methodology: Hierarchical Structure and Region-Matching
EsViT's architecture is built upon two primary pillars: a multi-stage backbone and a new region-level objective.
Multi-stage Backbone
The framework adopts a hierarchical Transformer architecture (specifically the Swin Transformer). By utilizing patch merging to create a pyramid-like structure, the model reduces token counts in deeper layers. This significantly lowers modeling complexity and enables the processing of higher-resolution images compared to standard ViTs.
Non-contrastive Region-Matching ($L_R$)
The core innovation is the introduction of a region-matching task that complements the standard view-level task ($L_V$). In a typical student-teacher framework, the model learns to match global representations of two different crops of the same image. EsViT extends this by requiring the model to match local patches. For every local patch in one view, the system identifies the most similar patch in the second view via cosine similarity and encourages their representations to align.
This dual-objective approach allows hierarchical models to recover the "correspondence property" of monolithic ViTs. While standard hierarchical models often "blur" local identities, the explicit $L_R$ task boosted region correspondence accuracy from 66% to 91%.
Experimental Results
The authors evaluated EsViT primarily on ImageNet-1K, with scaling experiments on larger datasets like ImageNet-22K and WebVision.
Performance and Efficiency
EsViT achieves state-of-the-art results while maintaining exceptional throughput. On the ImageNet linear probe evaluation, it reached 81.3% top-1 accuracy. Crucially, it achieves this while being approximately 10x faster and 3.5x more parameter-efficient than previous leading models like MoCo-v3.
Transferability and Generalization
Beyond ImageNet, EsViT demonstrates robust transfer learning capabilities. When evaluated across 18 downstream datasets (including CIFAR-10/100 and Stanford Cars), EsViT outperformed its supervised counterpart on 17 of them. This indicates that the learned representations are not only efficient but also highly generalizable across diverse visual domains.
Conclusion
EsViT proves that hierarchical vision transformers can be both efficient and spatially aware. By introducing explicit region-matching, the framework achieves a new Pareto frontier for self-supervised learning. Future work includes exploring these techniques on massive, uncurated "in the wild" datasets and refining the performance of non-contrastive losses for dense prediction tasks like object detection and segmentation.
This paper was presented at ICLR 2022. Code and models are available at https://github.com/microsoft/esvit.
Summary updated