Graph Consistency Based Mean-Teaching for Unsupervised Domain Adaptive Person Re-Identification

Xiaobin Liu, Shiliang Zhang

Abstract

Unsupervised Domain Adaptation (UDA) has become a critical area of research in person re-identification (ReID) due to the high cost and privacy concerns associated with large-scale data labeling. Traditional mean-teaching methods for UDA rely on clustering to generate pseudo-labels, which are often noisy and provide sparse supervision. This paper introduces Graph Consistency Based Mean-Teaching (GCMT), a framework that shifts the focus from individual labels to structural relationships between samples. By constructing and fusing similarity graphs from multiple teacher networks, GCMT provides a dense and robust supervision signal for student networks via a Graph Consistency Constraint (GCC). Our method achieves state-of-the-art performance on major ReID benchmarks, including Market-1501, DukeMTMC-reID, and MSMT17, demonstrating the power of relational learning in unsupervised settings.

Introduction

Person Re-Identification (ReID) involves matching individuals across non-overlapping camera views. While supervised deep learning has achieved remarkable success in this domain, its reliance on massive labeled datasets limits its scalability and real-world applicability. Unsupervised Domain Adaptation (UDA) addresses this by adapting a model pre-trained on a labeled source domain to an unlabeled target domain.

A prominent strategy in UDA is "mean-teaching," where a student network is trained using predictions from a teacher network, which is typically a temporal average of the student's weights. However, existing mean-teaching frameworks face three significant challenges:

  1. Noisy Pseudo-Labels: Clustering-based pseudo-labels are inherently error-prone, leading to "label noise" that can degrade model performance.
  2. Sparse Supervision: Most methods utilize triplet loss on a small subset of samples, failing to exploit the rich global structure of the data.
  3. Inefficient Collaboration: Effectively integrating knowledge from multiple teacher models remains a difficult task.

The GCMT Framework

To overcome these limitations, GCMT proposes a shift toward graph-based relational learning. Instead of relying solely on categorical pseudo-labels, GCMT models the target domain as a graph where nodes represent images and edges represent their similarities.

The GCMT framework uses graph fusion to combine insights from multiple teachers and enforces consistency on the student network.

The process begins with Teacher Graph Construction. For each image in a training batch, multiple teacher networks extract features and identify their $K$-nearest neighbors. This results in several "Teacher Graphs." These graphs are then subjected to Graph Fusion, where they are averaged to create a single, more reliable "master" graph. This fusion process acts as a filter, neutralizing errors or biases present in any individual teacher model—a concept often referred to as the "wisdom of the crowd."

The core of the framework is the Graph Consistency Constraint (GCC). The student network is trained to produce a similarity graph that matches the fused teacher graph. Unlike traditional triplet loss, GCC provides a dense supervision signal by considering the relationship of every sample to its neighbors in the batch. Furthermore, the GCC loss is designed with "hard sample awareness," prioritizing neighbors that the teacher identifies as similar but the student finds difficult to match.

Dual-Space Optimization

GCMT optimizes the network in two distinct spaces simultaneously:

  • Class Prediction Space: Standard cross-entropy loss is applied using pseudo-labels to maintain basic categorical discriminability.
  • Feature Space: The GCC loss is applied here to refine the structural relationships between features, ensuring the student captures the complex manifold of the target data.

Experimental Results

The effectiveness of GCMT was evaluated on three benchmark datasets: Market-1501, DukeMTMC-reID, and MSMT17. The model was pre-trained on source datasets but used no labels from these target sets during adaptation.

GCMT outperforms existing state-of-the-art methods across multiple benchmarks and settings.

As shown in the results table, GCMT significantly outperforms previous state-of-the-art (SOTA) methods. On Market-1501, it achieved a mean Average Precision (mAP) of 77.1%, a 5.9% improvement over the previous leader, MMT. On the more challenging MSMT17 dataset, GCMT reached a Rank-1 accuracy of 57.9%. Notably, the performance of GCMT scales with the number of teachers; by using three different pre-trained models as teachers, the mAP on Market-1501 jumped to 79.7%, approaching the performance of fully supervised models.

Conclusion

Graph Consistency Based Mean-Teaching represents a significant advancement in unsupervised person ReID. By prioritizing structural consistency over noisy pseudo-labels, GCMT provides a more robust and dense supervision signal. The framework's ability to fuse knowledge from multiple teachers and its superior performance on large-scale benchmarks highlight the potential of graph-based methods in bridging the gap between supervised and unsupervised learning. Future work may focus on reducing the computational overhead of graph construction and exploring the method's efficacy with even weaker initial source models.

Summary updated

BibTeX
@inproceedings{liu2021graph,
  author = {Xiaobin Liu and Shiliang Zhang},
  title = {{Graph Consistency Based Mean-Teaching for Unsupervised Domain Adaptive Person Re-Identification}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2021},
  doi = {10.24963/ijcai.2021/121},
}
Figure