Exploring Instance Relations for Unsupervised Feature Embedding

Yifei Zhang, Yu Zhou, Weiping WangarXiv 2021

Introduction

In the current landscape of unsupervised representation learning, contrastive learning has emerged as the dominant paradigm. This approach typically relies on "instance discrimination," where a model is trained to recognize two augmented versions (views) of the same image as similar while treating all other images in the dataset as distinct negatives. While effective, this binary "same-vs-different" logic overlooks the complex relational structure of the data manifold.

Conceptual illustration of (a) intra-instance profiles and (b) inter-instance continuity.

As illustrated in the figure above, the authors of Exploring Instance Relations (EIR) argue that standard methods fail to capture two vital relationships: intra-instance profiles (how an instance relates to the rest of the dataset) and inter-instance continuity (how the space between different instances is structured). EIR addresses these gaps by introducing two plug-and-play modules designed to enrich the supervisory signal in unsupervised learning.

Methodology: The EIR Framework

The EIR framework extends standard contrastive learning by enforcing consistency across neighborhood distributions and pixel-level interpolations. The architecture integrates these relations into a unified pipeline using a memory bank to maintain global dataset features.

Detailed pipeline of the EIR framework, showing the integration of interpolation and neighborhood distribution alignment.

1. Intra-instance Multi-view Relation

Instead of merely pulling two views of an image together, EIR ensures that both views "perceive" the rest of the dataset identically. For any given image, the model generates two augmented views. It then calculates the similarity between each view and all other samples stored in a memory bank, creating two distinct probability distributions or "neighborhood profiles."

By applying Kullback–Leibler (KL) divergence, the model forces these two distributions to align. This ensures that if one view of a cat is determined to be semantically closer to a specific dog image than to a car image, the second view must maintain that same relational hierarchy. This provides a much richer, context-aware supervisory signal than simple point-to-point attraction.

2. Inter-instance Interpolation Relation

To address the fractured nature of embedding spaces, EIR introduces an interpolation module using techniques like Mixup or Cutmix. When two images (Image A and Image B) are mixed at the pixel level with a specific ratio (e.g., 70/30), the resulting synthetic image should ideally produce a feature vector that is a 70/30 weighted sum of the original images' features.

EIR enforces this consistency by attracting the feature of the interpolated image to the linear combination of the source features. This process "linearizes" the embedding space, creating a smoother manifold that better handles semantic transitions and improves the model's ability to generalize to unseen data.

Experimental Evaluation

The researchers evaluated EIR across several standard benchmarks, including CIFAR-10/100, STL-10, and ImageNet-100, as well as fine-grained retrieval tasks on CUB-200 and Car-196.

  • State-of-the-Art Performance: EIR consistently outperformed established methods like MoCo and SimCLR. On CIFAR-10, it achieved a top-1 kNN accuracy of 89.2%. On ImageNet-100, it reached 66.5%, surpassing MoCo by more than 2%.
  • Semantic Robustness: In fine-grained retrieval (Car-196), EIR showed a significant lead in Recall@1 (45.6% vs. 41.8% for the next best method). This suggests that the learned features capture high-level semantic structures rather than just low-level textures.
  • Synergy: Ablation studies confirmed that the intra-instance and inter-instance modules are highly complementary. Combining them resulted in a 4.2% improvement over the baseline on CIFAR-10, proving that both neighborhood alignment and space linearization are critical for robust embeddings.

Conclusion

EIR demonstrates that an image's identity in an embedding space is defined not just by its own features, but by its relationship to the entire dataset. By moving beyond simple instance discrimination to explore intra-instance profiles and inter-instance continuity, EIR provides a more holistic approach to unsupervised feature learning. Future work may involve "semantic-aware" relations, where the model learns to identify and group different instances of the same category without manual labels.

Summary updated

BibTeX
@misc{zhang2021exploring,
  author = {Yifei Zhang and Yu Zhou and Weiping Wang},
  title = {{Exploring Instance Relations for Unsupervised Feature Embedding}},
  year = {2021},
  eprint = {2105.03341},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2105.03341},
}
Figure