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

Xiaobin Liu, Shiliang Zhang · OpenReview

TL;DR

This paper introduces Graph Consistency based Mean-Teaching (GCMT), a novel framework for unsupervised domain adaptive person re-identification. GCMT leverages multiple teacher networks to construct and fuse similarity graphs, using these fused graphs to guide a student network's feature learning via a Graph Consistency Constraint (GCC), thereby overcoming limitations of previous methods that rely on noisy pseudo-labels and neglect sample relationships.

What Problem Does This Paper Address?

Person re-identification (ReID) aims to match a person's image across different cameras. While supervised ReID is well-studied, its performance drops significantly when applied to new, unseen domains. Unsupervised Domain Adaptive (UDA) ReID tackles this by learning from unlabeled target data. Existing UDA ReID methods often employ a "mean-teaching" framework, where a student network learns from a teacher network. However, these methods typically rely on contrastive learning with pseudo-labels, which are prone to noise and fail to capture relationships among most samples. Furthermore, they struggle to effectively combine knowledge from multiple pre-trained teacher networks. This paper addresses these limitations by proposing a method that utilizes graph-based consistency to learn from a richer set of sample relationships and effectively integrates multiple teacher models. A key practical consideration addressed is the avoidance of labeled source data, making the method more suitable for real-world scenarios where such data is scarce or unavailable.

Methods

The core of GCMT is the Graph Consistency Constraint (GCC), which operates in the feature space. Instead of relying on noisy pseudo-labels for supervision, GCMT constructs graphs representing sample similarity relationships.

Here's a breakdown of the approach:

  • Multiple Teacher Networks: The method initializes multiple pairs of teacher and student networks, each derived from different pre-trained models. Teacher networks are updated using a temporal averaging strategy of their corresponding student networks.
  • Teacher Graph Construction: For each teacher network, features extracted from unlabeled target images are used to construct a K-nearest neighbor (KNN) graph. The edges of this graph represent the similarity between features, weighted by their feature similarity.
  • Graph Fusion: The graphs from all teacher networks are fused to create a target similarity graph. This fusion is done by normalizing individual teacher graph edge weights (using softmax) and then averaging them.
  • Graph Consistency Constraint (GCC): A student graph is constructed similarly using features from the student network. The GCC then encourages the student graph's edge weights to match the fused teacher graph's edge weights. This is formulated as a cross-entropy loss, aiming to align the similarity relationships learned by the student with the consensus from the teacher ensemble.
  • Class Prediction Space Supervision: In addition to GCC, the method also employs supervision in the class prediction space. This includes:
  • Cross-Entropy Loss (LCE): Uses pseudo-labels generated by unsupervised clustering of teacher features.
  • Mutual Cross-Entropy Loss (LMCE): Encourages student networks to produce similar class probabilities as the averaged teacher predictions, mitigating pseudo-label noise within a batch.

The overall objective function is a combination of the class prediction loss (LLP = LCE + LMCE) and the Graph Consistency Constraint (LGCC).

Datasets

The paper evaluates GCMT on three widely used person ReID datasets:

  • Market-1501: Contains 32,668 images of 1,501 identities.
  • DukeMTMC-reID: Contains 36,411 images of 1,812 identities.
  • MSMT17: Contains 126,441 images of 4,101 identities.

The training setup uses unlabeled target data and leverages publicly available pre-trained models (e.g., on ImageNet, CUHK03, Duke, Market, MSMT17) as starting points, aligning with the unsupervised domain adaptive setting.

Key Insights and Ideas

  • Graph-based Supervision is More Robust: The core insight is that using graph-based similarity relationships as supervision is more robust to noisy pseudo-labels than directly using pseudo-labels themselves. This is because graphs capture relationships among many samples, diluting the impact of individual noisy labels.
  • Leveraging Multiple Teacher Networks Effectively: The paper demonstrates that fusing similarity information from multiple teacher networks provides a richer and more reliable supervisory signal than a single teacher. This ensemble approach helps overcome the limitations of individual teacher models.
  • GCC Captures Richer Sample Relationships: The proposed GCC goes beyond simple pairwise similarity. By operating on graphs, it implicitly considers the neighborhood density and "hardness" of K-nearest neighbors, leading to more effective feature learning.
  • Practicality of Unsupervised Domain Adaptation: By avoiding labeled source data and relying on pre-trained models, GCMT offers a more practical solution for real-world ReID scenarios where labeled source data is often unavailable or difficult to obtain.

Key Results

GCMT achieves state-of-the-art performance on the evaluated datasets:

  • Market-1501: Achieves mAP of 77.1% when using a single pre-trained model, outperforming previous methods like MMT (by 5.9%) and MEB-Net (by 1.1%).
  • DukeMTMC-reID: Achieves mAP of 67.8% with a single pre-trained model, outperforming MMT (by 4.7%).
  • MSMT17: Demonstrates strong performance, achieving 54.8% Rank1 accuracy with a single pre-trained model.
  • Multiple Teacher Networks: GCMT significantly boosts performance when using multiple pre-trained models. For instance, on Market-1501, using three pre-trained models (MD, MC, MMS) achieves an mAP of 79.7%, outperforming MEB-Net by 6.6%.

Limitations and Future Work

  • Hyperparameter Sensitivity: While the paper shows that selected hyperparameters (β, AGCC, K) are relatively robust across datasets, they still require tuning. The optimal values for AGCC (loss weight for LGCC) and K (number of neighbors for graph construction) are determined empirically.
  • Computational Cost: Using multiple teacher networks and constructing graphs can increase computational complexity compared to simpler mean-teaching methods.
  • Future Work: The paper suggests that the improvement from using multiple source models is based on high performance from single source models, approaching supervised baselines. Future work could explore more sophisticated methods for fusing teacher knowledge and further improving the efficiency of graph construction and constraint computation. The effectiveness of GCMT in multiple teacher network cooperation is highlighted, suggesting further research into ensemble strategies.

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