Mugs: A Multi-Granular Self-Supervised Learning Framework

Pan Zhou, Yichen Zhou, Chenyang Si, Weihao Yu, Teck Khim Ng, Shuicheng Yan · DOI

Abstract

Self-supervised learning (SSL) typically focuses on either fine-grained instance discrimination or high-level semantic clustering. However, downstream tasks often require a balance of both. We present Mugs (MUlti-Granular Self-supervised learning), a framework that explicitly supervises visual features at three levels of granularity: instance, local-group, and semantic-group. Mugs achieves a new state-of-the-art linear probing accuracy of 82.1% on ImageNet-1K and demonstrates superior transferability across various vision tasks.

Introduction

In the landscape of Self-Supervised Learning, models are often optimized for specific "puzzles." Instance discrimination methods (e.g., MoCo, SimCLR) treat every image as a unique category, excelling at fine-grained details but failing to capture broader semantic relationships. Conversely, clustering-based methods (e.g., DINO, SwAV) group similar images, capturing high-level semantics at the cost of fine-grained discriminative power. Mugs addresses this dichotomy by proposing a multi-granular approach that learns representations across the entire semantic hierarchy.

The Mugs Framework

Mugs utilizes a teacher-student architecture where the student learns from the teacher's outputs, and the teacher is updated via an Exponential Moving Average (EMA). The framework introduces three complementary supervisions:

  1. Instance Discrimination Supervision (IDS): Uses a standard contrastive loss (InfoNCE) to ensure different crops of the same image are close in feature space, preserving fine-grained details.
  2. Local-Group Discrimination Supervision (LGDS): A novel mid-level supervision. It maintains a memory buffer to find $k$ nearest neighbors for an image, aggregating them via a 2-layer Transformer. The model aligns these "local-group" features across crops, forcing it to consider the immediate semantic neighborhood.
  3. Group Discrimination Supervision (GDS): A coarse-grained level using online clustering to assign images to large semantic groups, capturing global semantics through soft pseudo-labels.
Visualization of learned features on different mug instances, demonstrating the model's ability to capture multi-granular details.

Experimental Results

Mugs sets new benchmarks across several standard evaluations. On ImageNet-1K, it achieves a state-of-the-art linear probing accuracy of 82.1% with a ViT-L/16 model, outperforming previous leaders like iBOT.

Performance comparison of Mugs against other SSL methods across different model sizes (a) and pretraining epochs (b).

Beyond standard classification, Mugs shows exceptional performance in low-shot scenarios. With only 1% of ImageNet labels, Mugs reaches 66.8% accuracy, a 4.9% improvement over iBOT. It also excels in downstream tasks such as object detection (COCO) and semantic segmentation (ADE20K), where it outperforms iBOT by 2.0 mIoU.

Discussion and Insights

The success of Mugs stems from the synergy between its three supervision levels. The LGDS acts as a vital bridge; by requiring the alignment of neighbors rather than just the instance itself, it creates a more challenging and informative task. Furthermore, the multi-granularity acts as a regularizer: IDS prevents feature collapse into broad clusters, while GDS ensures global semantic coherence. T-SNE visualizations confirm that Mugs naturally learns hierarchical structures, such as sub-clusters within a single class.

Conclusion

Mugs demonstrates that explicitly modeling multiple levels of granularity is a powerful strategy for self-supervised learning. While computationally intensive—requiring significant GPU hours for large models—the resulting features are more versatile and transferable than those from single-granularity methods. Future work may involve optimizing loss weightings and expanding the framework's application to diverse architectures beyond Vision Transformers.

Summary updated

BibTeX
@misc{zhou2022mugs,
  author = {Pan Zhou and Yichen Zhou and Chenyang Si and Weihao Yu and Teck Khim Ng and Shuicheng Yan},
  title = {{Mugs: A Multi-Granular Self-Supervised Learning Framework}},
  year = {2022},
  eprint = {2203.14415},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2203.14415},
}
Figure