Memorizing Comprehensively to Learn Adaptively: Unsupervised Cross-Domain Person Re-ID with Multi-level Memory

Xinyu Zhang, Dong Gong, Jiewei Cao, Chunhua ShenarXiv 2020

Abstract

Unsupervised cross-domain person re-identification (Re-ID) aims to adapt models trained on labeled source domains to unlabeled target domains. A significant challenge in this task is identifying similarity relationships among unlabeled target samples without ground-truth annotations. This paper introduces the Multi-level Memory Network (MMN), which utilizes three complementary memory modules—domain-level, instance-level, and part-level—to capture both global dataset structures and fine-grained visual details. By integrating these multi-level representations, the MMN provides robust supervision for target domain adaptation. Experimental results on major benchmarks like Market-1501 and DukeMTMC-Re-ID demonstrate that MMN achieves state-of-the-art performance, effectively filtering out noisy pseudo-labels through hierarchical self-correction.

Introduction

Person Re-ID is a critical computer vision task focused on matching individuals across non-overlapping camera views. While supervised methods have reached high accuracy, their reliance on massive labeled datasets limits their scalability. Unsupervised cross-domain Re-ID offers a more practical alternative by transferring knowledge from a labeled source domain to an unlabeled target domain.

Existing approaches often rely on instance-level memory banks to generate pseudo-labels based on image-to-image similarity. However, this "flat" representation is fragile; global features can be easily confused by different people wearing similar clothing or the same person appearing differently due to lighting and pose variations. To address this, we propose a comprehensive memory framework that looks beyond the whole image to include both macro-level domain clusters and micro-level body parts.

The Multi-level Memory Network (MMN)

The MMN architecture, built upon a ResNet-50 backbone, processes labeled source data and unlabeled target data simultaneously. While the source domain uses standard identity classification, the target domain adaptation is driven by a dynamic multi-level memory system.

Overview of the proposed Multi-level Memory Network (MMN) architecture, illustrating the flow from feature extraction to the three memory modules and their associated losses.

Hierarchical Memory Modules

As shown in the architecture diagram, the system maintains three distinct memory banks:

  1. Instance-level Memory ($M_I$): This module stores global feature representations for every image in the target dataset. It identifies $k$-nearest neighbors to serve as initial pseudo-labels.
  2. Domain-level Memory ($M_D$): By clustering the entire target dataset into pseudo-classes, this module provides a macro-view of the data distribution. It offers "top-down" guidance by re-ranking instance-level neighbors based on their proximity to cluster centroids, effectively filtering out outliers that may look similar but belong to different global clusters.
  3. Part-level Memory ($M_P$): This module focuses on local features, specifically the upper and lower halves of the body. It provides "bottom-up" rectification. If two images are globally similar but their specific body parts (e.g., different colored pants) do not match, the part-level memory reduces their similarity weight.
Visual illustration of how a single person (A1) is represented across the three memory levels, highlighting the complementary nature of global clusters, whole instances, and body parts.

Key Insights and Self-Correction

The core innovation of MMN lies in the interaction between these levels. The domain-level memory acts as a high-level filter, ensuring that pseudo-labels are consistent with the overall dataset structure. Simultaneously, the part-level memory acts as a fact-checker, preventing the model from merging different identities based on superficial global similarities. These memories are updated dynamically using a moving average during training, allowing the model to adaptively refine its understanding of the target domain as the feature extractor improves.

Experimental Results

The MMN was evaluated on three major Re-ID benchmarks: Market-1501, DukeMTMC-Re-ID, and MSMT17.

Performance Benchmarks

  • Duke → Market: The model achieved a mean Average Precision (mAP) of 65.1% and a Rank-1 accuracy of 86.0%, significantly outperforming baseline methods like SSG.
  • Market → Duke: The model reached 53.9% mAP and 73.2% Rank-1.

Ablation Study

Ablation experiments confirm the necessity of each memory level. Starting from a baseline mAP of 17.7% (Duke → Market), the addition of instance-level memory raised performance to 50.3%. Incorporating domain-level guidance further increased mAP to 60.3%, and the final inclusion of part-level rectification brought the model to its peak performance of 65.1%. This progression demonstrates that hierarchical supervision is significantly more effective than relying on any single level of representation.

Conclusion

The Multi-level Memory Network (MMN) provides a robust framework for unsupervised cross-domain person Re-ID by mimicking a more human-like approach to recognition: considering the context (domain), the individual (instance), and specific details (parts). By systematically integrating these levels, the model effectively overcomes the noise inherent in unsupervised pseudo-labeling. Future work will explore the application of this multi-level memory structure to other domain-adaptive tasks such as face recognition and semantic segmentation.

Summary updated

Abstract

Unsupervised cross-domain person re-identification (Re-ID) aims to adapt the information from the labelled source domain to an unlabelled target domain. Due to the lack of supervision in the target domain, it is crucial to identify the underlying similarity-and-dissimilarity relationships among the unlabelled samples in the target domain. In order to use the whole data relationships efficiently in mini-batch training, we apply a series of memory modules to maintain an up-to-date representation of the entire dataset. Unlike the simple exemplar memory in previous works, we propose a novel multi-level memory network (MMN) to discover multi-level complementary information in the target domain, relying on three memory modules, i.e., part-level memory, instance-level memory, and domain-level memory. The proposed memory modules store multi-level representations of the target domain, which capture both the fine-grained differences between images and the global structure for the holistic target domain. The three memory modules complement each other and systematically integrate multi-level supervision from bottom to up. Experiments on three datasets demonstrate that the multi-level memory modules cooperatively boost the unsupervised cross-domain Re-ID task, and the proposed MMN achieves competitive results.
BibTeX
@misc{zhang2020memorizing,
  author = {Xinyu Zhang and Dong Gong and Jiewei Cao and Chunhua Shen},
  title = {{Memorizing Comprehensively to Learn Adaptively: Unsupervised Cross-Domain Person Re-ID with Multi-level Memory}},
  year = {2020},
  eprint = {2001.04123},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2001.04123},
}
Figure