Abstract
Self-supervised learning (SSL) has revolutionized computer vision by enabling models to learn from vast unlabeled datasets. However, the performance of these models in "low-shot" regimes—where only 1 to 5 labeled examples per class are available—remains under-explored. This paper introduces MaskCluster, a framework that integrates global and local clustering with masked image modeling (MIM) to achieve state-of-the-art label efficiency. By capturing both high-level semantics and fine-grained spatial details, MaskCluster significantly outperforms existing SSL methods in low-data scenarios across multiple vision tasks.
Introduction
While SSL research typically evaluates models through linear probing or fine-tuning on complete datasets like ImageNet-1K, real-world applications often suffer from a severe lack of annotated data. Current SSL strategies often rely on a single pretext task, such as contrastive learning or reconstruction, which may fail to capture the diverse features necessary for complex downstream tasks when labels are scarce. This study systematically investigates pretext tasks and collapse-avoidance techniques to identify the optimal configuration for label-efficient learning.
Methodology
The MaskCluster Framework
MaskCluster employs a teacher-student architecture where the model learns through a combination of clustering and reconstruction. The framework is built upon several key innovations:
- Dual-Level Clustering: Unlike traditional methods that only cluster global features (class tokens), MaskCluster performs clustering at both the class level and the patch level. This allows the model to learn global semantic categories alongside recurring local patterns (e.g., textures or object parts).
- Masked Image Modeling (MIM): The student model is tasked with reconstructing masked-out pixels from the original image. This serves as a "fine-grained anchor," ensuring the model understands spatial context and part-to-whole relationships.
- ME-MAX for Collapse Avoidance: To prevent the model from converging to trivial solutions, the authors utilize Maximum Entropy-Maximization (ME-MAX). This technique was found to be significantly more effective than standard centering or Sinkhorn-Knopp normalization in low-shot settings.
- Efficient Attention Mechanism: To maintain computational efficiency during pre-training, the model uses a specialized attention strategy where unmasked tokens only attend to each other, while masked tokens attend to unmasked ones, reducing the quadratic complexity inherent in Vision Transformers (ViTs).
Experimental Results
Low-Shot ImageNet Performance
MaskCluster, utilizing a ViT-S/16 backbone, establishes a new state-of-the-art for label-efficient learning on ImageNet-1K. In the extreme 1-shot scenario, it achieved 22.4% accuracy, representing a substantial improvement over previous leading methods such as iBoT (7.9%) and MSN (6.2%).
Downstream Task Transfer
The model's robust feature representations translate effectively to various downstream tasks:
- Semantic Segmentation: On the Pascal 5i benchmark, MaskCluster reached a mean IoU of 63.5 (1-shot) and 70.0 (5-shot), outperforming specialized few-shot segmentation methods.
- Multi-Label Classification: In linear evaluation on Pascal VOC, the model achieved 87.5 mAP, significantly surpassing DINO (85.0) and MoCoV3 (12.4).
Discussion and Insights
The success of MaskCluster highlights several critical insights for SSL. First, clustering-based tasks are generally superior to contrastive learning for low-shot regimes, as they do not rely on large batches of negative samples. Second, the integration of local patch-level semantics is vital for transferability, allowing the model to recognize objects based on their constituent parts. Finally, the combination of semantic clustering and pixel-level reconstruction provides a balanced representation that excels in both classification and localization tasks.
Conclusion
MaskCluster demonstrates that the key to label-efficient learning lies in the synergy between global semantic understanding and local spatial reconstruction. By addressing the specific challenges of the low-shot regime through dual-level clustering and robust collapse avoidance, this work provides a powerful foundation for building vision models that can learn effectively from minimal human supervision.
Summary updated