ICE: Inter-instance Contrastive Encoding for Unsupervised Person Re-identification

Hao Chen, Benoit Lagadec, François BrémondICCV 2021 · DOI

Introduction

Person Re-identification (ReID) is a critical computer vision task involving the identification of the same individual across multiple non-overlapping camera views. While supervised methods have achieved high accuracy, they rely on labor-intensive manual labeling that does not scale well to new environments. Unsupervised methods, particularly those based on contrastive learning, have emerged as a scalable alternative. However, these methods often struggle with high intra-class variance and noise introduced by data augmentation.

Inter-instance Contrastive Encoding (ICE) addresses these challenges by moving beyond simple cluster-based learning. By mining "hard" positive instances to tighten clusters and employing "soft" similarity labels to mitigate augmentation noise, ICE achieves performance comparable to supervised methods without requiring human-annotated labels.

The ICE Framework

The ICE framework utilizes a dual-encoder architecture consisting of an online encoder and a momentum encoder. This structure allows the model to exploit inter-instance relationships more effectively than traditional centroid-based methods.

The ICE framework architecture featuring dual encoders and instance/proxy agreement modules.

The pipeline begins by using DBSCAN for clustering to generate initial pseudo-labels at the start of each epoch. These labels are then refined through two primary novel loss functions: Hard Instance Contrastive Loss and Soft Instance Consistency Loss.

Inter-instance Contrastive Learning

A key innovation of ICE is the focus on individual instance affinities rather than just cluster centroids. By looking at how individual instances relate to one another, the model learns a much more nuanced representation of identity.

Hard Instance Contrastive Loss ($L_{h\_ins}$)

Traditional contrastive methods often pull an image toward a cluster center, which can result in loose clusters if the intra-class variance is high. ICE identifies the "hardest" positive instance in a mini-batch—the image of the same person that looks the least like the anchor—and pulls these distant positives closer. This forces identity clusters to become more compact and discriminative.

Comparison between traditional triplet loss (a) and the proposed hard instance contrastive loss (b).

Soft Instance Consistency Loss ($L_{s\_ins}$)

Heavy data augmentation can sometimes distort an image so much that it resembles a different identity, introducing noise into the learning process. To combat this, ICE uses the momentum encoder to generate "soft" pseudo-labels. By calculating the similarity distribution between an original image and other instances in the batch, the model creates a soft target for the augmented version, ensuring robustness against visual perturbations.

Experimental Results

ICE was evaluated on three major ReID benchmarks: Market-1501, DukeMTMC-reID, and MSMT17. The results demonstrate that ICE sets a new state-of-the-art for fully unsupervised ReID, often outperforming Unsupervised Domain Adaptation (UDA) methods that utilize labeled source data.

  • Market-1501: Achieved 82.3% mAP, outperforming the previous best unsupervised method by 3.1%.
  • DukeMTMC-reID: Reached 69.9% mAP.
  • MSMT17: Reached 38.9% mAP, a significant lead in this complex dataset.

Remarkably, ICE's performance on Market-1501 is within striking distance of established supervised baselines like PCB (81.6% mAP), highlighting the effectiveness of the inter-instance approach.

Conclusion and Future Work

ICE demonstrates that fine-grained instance relationships are crucial for unsupervised ReID. By balancing hard labels for cluster compactness and soft labels for augmentation consistency, the framework achieves impressive results without human intervention. However, like most current models, ICE relies heavily on visual appearance (clothing color/texture). Future research will focus on "long-term" ReID, incorporating invariant features like gait or body shape to identify individuals across different outfits and longer time periods.

Summary updated

BibTeX
@inproceedings{chen2021ice,
  author = {Hao Chen and Benoit Lagadec and François Brémond},
  title = {{ICE: Inter-instance Contrastive Encoding for Unsupervised Person Re-identification}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2021},
  doi = {10.1109/iccv48922.2021.01469},
}
Figure