Unsupervised Domain Adaptation for Person Re-identification via Heterogeneous Graph Alignment

Minying Zhang, Kai Liu, Yidong Li, Shihui Guo, Hongtao Duan, Yimin Long, Yi JinAAAI 2021

TL;DR

This paper introduces Heterogeneous Graph Alignment (HGA), a coarse-to-fine framework for unsupervised person re-identification (Re-ID). By modeling unlabeled data from different cameras as structured graphs and aligning them in a shared feature space, the authors successfully bridge the "domain gap" between camera views without requiring a single manual label.

The Challenge of Unsupervised Re-ID

Person Re-identification (Re-ID) is the task of identifying the same individual across a network of non-overlapping cameras. While supervised models perform well, they rely on massive amounts of labeled data, which is expensive and time-consuming to produce for every new environment.

The challenge for unsupervised Re-ID is twofold:

  1. Distribution Discrepancy: Images of the same person look different across cameras due to changes in lighting, viewpoint, resolution, and background.
  2. Label Scarcity: Without ground-truth labels, models often rely on "pseudo-labels" generated by clustering. However, if camera-specific noise is high, these clusters become inaccurate, leading the model astray.

Existing methods often try to align the global distribution of different cameras but ignore the underlying structure of the data within each camera view.

The Heterogeneous Graph Alignment (HGA) Method

The authors propose a two-stage Heterogeneous Graph Alignment (HGA) method. They represent each camera's data as a graph with two types of nodes: Coarse-grained appearance nodes ($A$) (groups of people with similar colors/styles) and Fine-grained person nodes ($P$) (individual identities).

Construction of the heterogeneous graph representing camera-specific data with coarse-grained appearance nodes (A) and fine-grained person nodes (P).

1. Coarse-grained Alignment (CA)

In this stage, the model learns camera-specific projection matrices to map features into a shared space. It uses adversarial learning: a discriminator tries to identify which camera a feature came from, while the projection matrices (the generators) try to align broad appearance groups across cameras. This removes the most obvious camera-specific biases.

2. Fine-grained Alignment (FA)

Once the broad distributions are aligned, the model refines the space using several "conservative" loss functions:

  • Node Alignment Loss (NAL): Pulls features of the same pseudo-identity closer together across different cameras.
  • Edge Alignment Loss (EAL): Ensures that the relative distances (edges) between different identities are consistent across all camera views.
  • Projection Invariant Loss (PIL): Ensures that the structural information from the original camera view is preserved during projection.
  • Projection Constraint Loss (PCL): Keeps the projection matrices stable and close to orthogonal to prevent overfitting.
The HGA framework overview, illustrating the coarse-to-fine alignment pipeline and the evolution of the feature space.

Key Insights

  • Structure Preservation: Simply pushing distributions together isn't enough. By using the Projection Invariant Loss, the authors ensure that if two people looked different in Camera A, they still look different in the shared space, preventing the model from collapsing distinct identities.
  • Coarse-to-Fine Mimicry: The approach mimics human intuition—identifying broad strokes (e.g., "red shirt") before looking for fine-grained details.
  • Soft Constraints: To handle noisy pseudo-labels, the authors use "conservative" alignment with soft constraints that allow for uncertainty, making training more stable.

Performance and Results

HGA was evaluated on standard benchmarks: Market-1501, DukeMTMC-reID, and MSMT17. It significantly outperformed existing state-of-the-art unsupervised domain adaptation methods:

  • Duke → Market-1501: Achieved 70.3% mAP and 89.5% Rank-1 accuracy, a massive jump over previous leaders like DG-Net++ (61.7% mAP).
  • Market → Duke: Achieved 67.1% mAP, outperforming the next best method (NRMT) by nearly 5%.
  • MSMT17: Reached 25.5% mAP, proving robustness in complex, multi-camera environments.

Ablation studies confirmed that both coarse and fine alignment stages are essential for peak performance.

Limitations and Future Work

Despite its success, HGA has some areas for further research:

  • Hyper-parameter Sensitivity: Performance depends on the number of appearance groups ($K$) and clustering parameters.
  • Computational Overhead: Scaling to hundreds of cameras could be expensive.
  • Source Dependency: The model still requires a backbone pre-trained on a labeled source dataset.

Summary updated

BibTeX
@inproceedings{zhang2021unsupervised,
  author = {Minying Zhang and Kai Liu and Yidong Li and Shihui Guo and Hongtao Duan and Yimin Long and Yi Jin},
  title = {{Unsupervised Domain Adaptation for Person Re-identification via Heterogeneous Graph Alignment}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2021},
  url = {https://openreview.net/forum?id=uLT8pw06oq},
}
Figure