Introduction
Person Re-identification (ReID) involves matching images of the same individual across various cameras, times, and locations. While supervised models achieve high performance, they require extensive labeled datasets and often fail when deployed in new environments due to the "domain gap." Unsupervised Domain Adaptation (UDA) mitigates this but still depends on a labeled source dataset.
This paper proposes a fully unsupervised approach to person ReID, eliminating the need for any manual labels or source-domain data. Unlike traditional unsupervised methods that rely on potentially noisy clustering-based pseudo-labels, this framework utilizes a novel selective contrastive learning paradigm to learn discriminative representations directly from raw images.
Selective Contrastive Learning Framework
The core of the proposed method is a Selective Contrastive Learning framework that redefines how positive and negative samples are identified in a self-supervised setting.
Selective Positives and Negatives
Standard contrastive learning typically uses a single augmented version of an image as a positive sample. In contrast, this framework ranks the similarity between an anchor image and all other samples in the dataset, categorizing them into three sets:
- Similar Set: Multiple samples are selected as positives, reflecting the reality that a person likely appears multiple times in a ReID dataset.
- Borderline Set: Samples that are neither clearly similar nor completely dissimilar are used as "hard negatives." This forces the model to learn sharper boundaries.
- Dissimilar Set: These samples are largely ignored for contrastive loss calculation, as they provide minimal learning signal.
Dynamic Memory Banks and Feature Fusion
To manage these comparisons efficiently, the model maintains three dynamic memory banks:
- Global Memory Bank: Stores whole-image features.
- Local Memory Bank: Stores part-level features derived from horizontal stripes of the feature map.
- Mixture Memory Bank: Fuses global and local features to calculate the final contrastive loss.
The distance metric used for ranking incorporates global and local distances along with a cross-camera encouragement term to promote matching across different camera views.
Experimental Evaluation
The framework was evaluated on five major ReID benchmarks, including image-based (Market-1501, DukeMTMC-ReID, MSMT17) and video-based (DukeMTMC-VideoReID, MARS) datasets.
Key Results
The proposed method achieved state-of-the-art (SOTA) performance, significantly outperforming previous unsupervised and UDA methods. On Market-1501, it reached 82.2% Rank-1 accuracy, a margin of 10-15% over prior unsupervised SOTA. On the challenging MSMT17 dataset, it achieved 41.4% Rank-1, surpassing the best UDA method by 9.2%.
Ablation studies confirmed the importance of the selective strategy. Using multiple positives (optimally 7) and focusing on borderline negatives significantly boosted performance compared to standard contrastive approaches.
Discussion and Future Work
The synergy between global and local features, combined with the selective sampling of hard negatives and multiple positives, allows the model to learn highly discriminative features without supervision. However, the system's performance is sensitive to hyperparameters like the number of positive ($N_+$) and negative ($N_-$) samples. Future research may focus on making these parameters adaptive and improving the computational efficiency of maintaining multiple high-dimensional memory banks.
Summary updated