Skip to main content
QUICK REVIEW

[Paper Review] Delving into Inter-Image Invariance for Unsupervised Visual Representations

Jiahao Xie, Xiaohang Zhan|arXiv (Cornell University)|Aug 26, 2020
Domain Adaptation and Few-Shot LearningComputer Science15 citations
TL;DR

This paper proposes InterCLR, a unified framework for unsupervised visual representation learning that integrates both intra-image and inter-image invariance. By systematically studying pseudo-label maintenance, sampling strategy, and decision boundary design, it demonstrates that inter-image invariance—learning similarity across semantically similar images—significantly improves performance over state-of-the-art intra-image methods, achieving state-of-the-art results on standard benchmarks with fewer training epochs and lower computational cost.

ABSTRACT

Contrastive learning has recently shown immense potential in unsupervised visual representation learning. Existing studies in this track mainly focus on intra-image invariance learning. The learning typically uses rich intra-image transformations to construct positive pairs and then maximizes agreement using a contrastive loss. The merits of inter-image invariance, conversely, remain much less explored. One major obstacle to exploit inter-image invariance is that it is unclear how to reliably construct inter-image positive pairs, and further derive effective supervision from them since no pair annotations are available. In this work, we present a comprehensive empirical study to better understand the role of inter-image invariance learning from three main constituting components: pseudo-label maintenance, sampling strategy, and decision boundary design. To facilitate the study, we introduce a unified and generic framework that supports the integration of unsupervised intra- and inter-image invariance learning. Through carefully-designed comparisons and analysis, multiple valuable observations are revealed: 1) online labels converge faster and perform better than offline labels; 2) semi-hard negative samples are more reliable and unbiased than hard negative samples; 3) a less stringent decision boundary is more favorable for inter-image invariance learning. With all the obtained recipes, our final model, namely InterCLR, shows consistent improvements over state-of-the-art intra-image invariance learning methods on multiple standard benchmarks. We hope this work will provide useful experience for devising effective unsupervised inter-image invariance learning. Code: https://github.com/open-mmlab/mmselfsup.

Motivation & Objective

  • To investigate the untapped potential of inter-image invariance in unsupervised visual representation learning, which remains underexplored compared to intra-image invariance.
  • To address the challenge of constructing reliable inter-image positive pairs without human-annotated labels, particularly due to the instability of pseudo-labels during training.
  • To identify optimal design choices—pseudo-label maintenance, sampling strategy, and decision boundary—enabling effective inter-image invariance learning.
  • To develop a unified framework, InterCLR, that seamlessly combines intra- and inter-image invariance for improved representation learning.
  • To demonstrate that inter-image invariance can yield performance gains comparable to or better than SOTA intra-image methods, even with reduced training resources.

Proposed method

  • Introduces a unified framework, InterCLR, that jointly optimizes intra-image and inter-image invariance using contrastive learning in a shared feature space.
  • Employs online mini-batch k-means clustering to maintain up-to-date pseudo-labels, replacing sparse global clustering to reduce label staleness.
  • Adopts a semi-hard negative sampling strategy, which selects negatives that are difficult but not falsely labeled, improving training stability and performance.
  • Uses a less stringent decision boundary in the contrastive loss to allow for more robust feature learning, especially under noisy pseudo-labels.
  • Leverages instance-level similarity via learned features to form inter-image positive pairs, enabling the model to learn semantic invariance across different instances of the same class.
  • Applies a contrastive loss that encourages feature similarity between augmented views of the same image (intra) and between semantically similar images (inter), while pushing apart dissimilar ones.

Experimental results

Research questions

  • RQ1How does online pseudo-label maintenance compare to offline or global clustering in terms of performance and stability for inter-image invariance learning?
  • RQ2What sampling strategy—hard, semi-hard, random, or easy negatives—is most effective and reliable for inter-image contrastive learning under noisy pseudo-labels?
  • RQ3How does the choice of decision boundary in the contrastive loss affect the generalization and robustness of inter-image invariance learning?
  • RQ4Can inter-image invariance learning, when properly designed, consistently improve performance over state-of-the-art intra-image invariance methods on standard benchmarks?
  • RQ5To what extent can inter-image invariance learning reduce the need for large-scale pre-training with high computational cost?

Key findings

  • Online pseudo-label maintenance via mini-batch k-means leads to faster convergence and better performance than offline or global clustering, due to reduced label staleness.
  • Semi-hard negative sampling produces more reliable and unbiased gradients than hard negative sampling, which often includes false positives due to inaccurate pseudo-labels.
  • A less stringent decision boundary in the contrastive loss improves generalization and performance, as it avoids overfitting to noisy or incorrect inter-image pairings.
  • InterCLR achieves consistent improvements over state-of-the-art intra-image invariance methods like SimCLR, SwAV, and BYOL on multiple standard benchmarks, including ImageNet.
  • InterCLR achieves performance on par or better than prior SOTA methods that use much larger batch sizes and longer pre-training schedules, demonstrating superior training efficiency.
  • KNN retrieval results show that InterCLR retrieves more correct nearest neighbors with higher cosine similarity than its intra-image-only baseline, even for the 10th nearest neighbor, confirming the benefit of inter-image invariance.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.