Beyond Instance Consistency:
Investigating View Diversity in Self-supervised Learning

Strict instance consistency is not essential for effective SSL
Huaiyuan Qin1 Muli Yang1 Siyuan Hu2 Peng Hu3 Yu Zhang4 Chen Gong5 Hongyuan Zhu1✉

1Institute for Infocomm Research (I2R), A*STAR, Singapore
2National University of Singapore 3Sichuan University
4Southeast University 5Shanghai Jiao Tong University
✉Corresponding author

TMLR 2025

Figure 1
Figure 1. Visualization of random crops on iconic data (e.g. ImageNet) and non-iconic data (e.g. COCO).

Abstract

Self-supervised learning (SSL) conventionally relies on the instance consistency paradigm, assuming that different views of the same image can be treated as positive pairs. However, this assumption breaks down for non-iconic data, where different views may contain distinct objects or semantic information. In this paper, we investigate the effectiveness of SSL when instance consistency is not guaranteed. Through extensive ablation studies, we demonstrate that SSL can still learn meaningful representations even when positive pairs lack strict instance consistency. Furthermore, our analysis further reveals that increasing view diversity, by enforcing zero overlapping or using smaller crop scales, can enhance downstream performance on classification and dense prediction tasks. However, excessive diversity is found to reduce effectiveness, suggesting an optimal range for view diversity. To quantify this, we adopt the Earth Mover’s Distance (EMD) as an estimator to measure mutual information between views, finding that moderate EMD values correlate with improved SSL learning, providing insights for future SSL framework design. We validate our findings across a range of settings, highlighting their robustness and applicability on diverse data sources.

What is Instance Consistency?

SSL aligns different views of the same image, relying on the instance consistency paradigm, which considers each image as a separate class: different augmentations of an image are treated as positive pairs, while augmentations from other images serve as negatives.

This paradigm works remarkably well for iconic datasets, where images typically feature a single, dominant object. In contrast, non-iconic datasets, such as COCO and OpenImages, often feature complex scenes with multiple objects and diverse backgrounds, so two augmented views from the same image may not contain the same object or share consistent semantic information (Figure 1). Surprisingly, despite the breakdown of instance consistency on non-iconic data, SSL methods can still achieve competitive performance, raising a critical research question: Is instance consistency a strict requirement for self-supervised learning?

How Does SSL React to Different Levels of Instance Consistency?

We conduct ablation experiments with MoCo-v2 and DINO, systematically varying the shared instance semantics between the positive pair (v1, v2). Given target instances with ground-truth bounding boxes, we introduce five configurations (Figure 2):

  1. Completely Random Crop (Baseline). Two views are randomly cropped from the same image without any spatial constraint, the default setup in MoCo-v2 and DINO.
  2. Zero Spatial Overlap. Views are sampled with no spatial overlap.
  3. Instance vs Bg. v1 is sampled around a foreground instance, while v2 contains only background information.
  4. Only Bg. Two views are sampled purely from background regions.
  5. Lower Bound. Each view is sampled from entirely different images.
Figure 2
Figure 2. Overview of positive pairs from different configurations.
ConfigCOCOImageNet-100
CIFAR-10CIFAR-100DTDPetsSTL-10CIFAR-10CIFAR-100DTDPetsSTL-10
Baseline70.9047.0338.4038.4071.8471.8548.2439.2643.8575.31
Lower Bound32.72−38.1812.40−34.637.29−31.117.28−31.1227.59−44.2532.64−39.1212.22−36.026.65−32.617.09−36.7628.36−46.95
Spatial Ovlp. = 071.75+0.8548.45+1.4241.65+3.2539.53+1.1374.42+2.5874.72+2.8751.95+3.7146.01+6.7546.70+2.8576.69+1.38
Inst. vs Bg76.20+5.3054.79+7.7641.12+2.7240.90+2.5074.75+2.9175.71+3.8653.21+4.9742.77+3.5145.11+1.2677.38+2.07
Only Bg72.13+1.2349.47+2.4441.91+3.5139.20+0.8073.91+2.0773.73+1.8850.62+2.3843.40+4.1445.03+1.1876.56+1.25
Larger Crop67.02−3.8843.64−3.3933.24−5.1629.05−9.3569.99−1.8566.72−5.1342.15−6.0934.63−4.6336.33−7.5272.94−2.37
Smaller Crop71.36+0.4648.28+1.2541.76+3.3639.81+1.4173.69+1.8574.97+3.1251.59+3.3544.63+5.3745.90+2.0576.92+1.61
Smaller Crop†70.34−0.5647.26+0.2340.43+2.0336.44−1.9672.26+0.4267.72−4.1350.21+1.9740.96+1.7040.37−3.4875.65+0.34
Table 1. Classification results with MoCo-v2 pre-trained on COCO and ImageNet-100.
ConfigCOCOImageNet-100
VOC-0712DOTA-v1.0VOC-0712DOTA-v1.0
random init.53.5831.5953.3831.59
Lower Bound70.54−2.7847.94−6.4469.97−3.9448.96−6.34
Baseline73.3254.3873.9155.30
Spatial Ovlp. = 074.55+1.2355.84+1.4674.87+0.9656.23+0.93
Inst. vs Bg74.15+0.8355.47+1.0974.35+0.4456.65+1.35
Only Bg74.73+1.4155.34+0.9674.43+0.5256.65+1.35
Larger Crop72.14−1.1852.09−2.2973.40−0.5154.06−1.24
Smaller Crop74.58+1.2655.52+1.1474.49+0.5856.26+0.96
Smaller Crop†73.90+0.5854.68+0.3074.09+0.1855.63+0.33
Table 2. Object detection results with MoCo-v2 pre-trained on COCO and ImageNet-100.

Results. As expected, the Lower Bound yields the lowest performance, highlighting the importance of shared information between positive pairs. Surprisingly, all other configurations (Zero Spatial Overlap, Instance vs Bg, and Only Bg) outperform the baseline in classification (Table 1) and object detection (Table 2). This suggests that SSL is capable of leveraging broader contextual cues beyond instance consistency, including shared background patterns, consistent camera viewpoints, and general color style, as long as both views are sampled from the same image.

In contrast to prior beliefs of instance consistency, SSL can learn meaningful representations even when positive pairs contain minimal shared instance semantics.

How Much View Diversity is Beneficial?

While these configurations reduce the instance consistency, they simultaneously increase diversity between positive pairs, yet still serve as a valid, and even better supervision signal. We regulate this diversity by varying crop scales:

  1. Smaller Crop. A smaller crop scale minimizes shared information to increase diversity between positive pairs.
  2. Larger Crop. Larger crop scales preserve more shared information, thereby reducing the diversity.
  3. Smaller Crop with Zero Spatial Overlap (Smaller Crop† in Tables 1 and 2). Combining both maximizes the diversity.

Results. Smaller Crop consistently outperforms the baseline, whereas Larger Crop leads to a significant performance drop, suggesting that excessive redundancy between views can hinder SSL effectiveness. Interestingly, while Smaller Crop and Zero Spatial Overlap individually boost performance, their combination does not yield additional gains and instead results in a slight performance drop.

Increasing the diversity in positive pairs encourages the discovery of more fine-grained visual consistencies in SSL, thus enhancing downstream performance. However, excessive diversity may degrade SSL’s effectiveness.

Earth Mover’s Distance as Diversity Estimator

Figure 3
Figure 3. Two strategies for EMD-based similarity score.

To quantify this diversity, we adopt Earth Mover’s Distance (EMD) as an estimator to measure the shared information between positive pairs, which provides an estimation of augmentation quality before model pre-training.

Implementations. Following Zhang et al. (2020), we extract the features of patches of the two views with a pre-trained ResNet-50, using two strategies (Figure 3): grid-based, where each view is divided into uniform grids with grid factors of 2 and 3, and sampling-based, where each view is randomly sampled into 9 patches of varying sizes and aspect ratios.

Results. Figure 4 reveals a clear reverse-U relationship between the EMD score and downstream accuracy. Configurations with moderate EMD scores (ranging from 3 to 4) consistently yield the highest performance, while very high (above 5) or very low EMD scores (below 2) exhibit a drop in downstream accuracy, indicating that extreme overlap or excessive diversity between views can hinder SSL’s ability to learn meaningful feature representations.

Earth Mover’s Distance (EMD) effectively quantifies mutual information between positive pairs, making it a predictive measure of view diversity for effective SSL.
Figure 4(a)
(a) Detection, MoCo-v2
Figure 4(b)
(b) Classification, MoCo-v2
Figure 4(c)
(c) Detection, DINO
Figure 4(d)
(d) Classification, DINO
Figure 4. EMD similarity versus detection and classification accuracy with MoCo-v2 and DINO pre-trained on COCO.

EMD scores in Figure 4 are scaled by 10 for better visualization.

Suggestions for Positive Pair Selection. Our results suggest pre-calculating EMD scores before pre-training: the optimal EMD range lies between the baseline score (upper bound) and that of Smaller Crop† (lower bound).

Our validation experiments confirm the generalizability of our findings across a range of settings, while highlighting the adaptability of the proposed EMD diversity estimator on various data sources.

BibTeX

@article{qin2025beyond,
  title   = {Beyond Instance Consistency: Investigating View
             Diversity in Self-supervised Learning},
  author  = {Qin, Huaiyuan and Yang, Muli and Hu, Siyuan and Hu, Peng and
             Zhang, Yu and Gong, Chen and Zhu, Hongyuan},
  journal = {Transactions on Machine Learning Research},
  issn    = {2835-8856},
  year    = {2025},
  url     = {https://openreview.net/forum?id=urWCU3YMA0}
}

Acknowledgements

This research is supported by the EDB Space Technology Development Programme under Project S22-19016-STDP and the National Natural Science Foundation of China under Grant 62576089. The authors sincerely thank the Reviewers and Action Editor for their valuable and constructive feedback.

This page is adapted from the ECHO project page, itself built on the Nerfies template.

References

  1. Chi Zhang, Yujun Cai, Guosheng Lin, and Chunhua Shen. DeepEMD: Few-Shot Image Classification with Differentiable Earth Mover’s Distance and Structured Classifiers. IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2020.