Leverage Your Local and Global Representations: A New Self-Supervised Learning Strategy

Tong Zhang, Congpei Qiu, Wei Ke, Sabine Süsstrunk, Mathieu Salzmann

Abstract

Self-supervised learning (SSL) typically relies on the principle of view-invariance, where different crops of the same image are encouraged to have identical representations. However, this "one-size-fits-all" approach can lead to "over-invariance," causing the model to discard valuable local semantic details. We introduce LoGo (Local and Global), a novel SSL strategy that differentiates between global and local views. By encouraging global views to be similar while allowing local patches to remain distinct, LoGo preserves semantic diversity. Our method consistently outperforms state-of-the-art frameworks like MoCo and SimSiam across various vision tasks, achieving a significant 10.8% accuracy gain on ImageNet-100.

Introduction

Most modern SSL methods are built on the principle of view-invariance: two different crops of the same image should yield similar neural representations. While effective, this strategy is fundamentally flawed for complex images. Forcing a crop of a bird and a crop of the background sky to be identical forces the network to discard local information—such as texture or shape—to achieve invariance. This "over-invariance" limits the richness of learned features for downstream tasks like object detection or fine-grained classification.

Conceptual strategy and performance comparison

Methods

LoGo introduces a hierarchical strategy treating Global (large) and Local (small) crops differently. The framework optimizes three distinct loss components:

  1. Global-to-Global ($\mathcal{L}_{gg}$): Standard SSL where large crops capturing overall context are encouraged to be similar.
  2. Local-to-Global ($\mathcal{L}_{lg}$): Local crops are aligned with global "anchor" views to maintain semantic grounding within the overall image.
  3. Local-to-Local ($\mathcal{L}_{ll}$): Crucially, LoGo encourages local crops to be dissimilar. This prevents feature collapse and allows the model to encode diverse objects or textures found within the same image.

To handle high-dimensional feature spaces where standard metrics like cosine similarity may fail, LoGo employs a learnable auxiliary MLP "regressor" ($f_{\theta_d}$). This regressor provides a stable training signal by learning to distinguish between local crops from the same versus different images, effectively acting as a learnable affinity measure.

The LoGo architecture and learnable similarity regressor

Key Results

LoGo provides a significant "plug-and-play" boost to existing SSL methods. On ImageNet-100 with a ResNet-34 backbone, MoCo-LoGo achieved 79.32% linear accuracy, a substantial improvement over the baseline MoCo's 68.48%.

In transfer learning for dense prediction tasks like semantic segmentation, LoGo-trained models outperformed supervised models while using only 1/10 of the training data. Performance was particularly strong on fine-grained datasets such as Oxford Flowers and FGVC Aircraft, confirming that preserving local diversity captures subtle semantic details essential for specialized recognition tasks.

Conclusion

LoGo addresses the limitations of over-invariance in SSL by explicitly promoting local feature diversity through a hierarchical cropping strategy. While the auxiliary regressor adds some computational complexity during pre-training, it is discarded during inference, and the resulting gains in feature richness and downstream performance are substantial. Future work will explore scaling this learnable similarity measure to larger datasets and further optimizing the balance between global and local supervision.

Summary updated

BibTeX
@inproceedings{zhang2022leverage,
  author = {Tong Zhang and Congpei Qiu and Wei Ke and Sabine Süsstrunk and Mathieu Salzmann},
  title = {{Leverage Your Local and Global Representations: A New Self-Supervised Learning Strategy}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2022},
}
Figure