Domain-Class Correlation Decomposition for Generalizable Person Re-Identification

Kaiwen Yang, Xinmei Tian

TL;DR

This paper tackles the challenge of domain generalization in person re-identification (ReID), where models trained on diverse datasets struggle to perform on unseen ones. They propose a novel "Domain-Class Correlation Decomposition" (DCCD) method that, inspired by causal inference, explicitly disentangles domain and identity information. This allows for learning more robust, domain-invariant representations that retain crucial identity features, leading to state-of-the-art performance.

What Problem Does This Paper Address?

Person re-identification (ReID) aims to identify individuals across different camera views. A critical challenge is domain generalization: training a model on data from several "source" domains (e.g., different datasets, camera setups) and expecting it to perform well on entirely new, "target" domains without further training. Traditional supervised methods overfit to their training data, failing in new environments. Unsupervised Domain Adaptation (UDA) methods can help but require unlabeled target data. Domain Generalization (DG) is a more challenging but practical setting.

A common approach for DG is domain adversarial learning (DAL), which tries to make learned features indistinguishable across domains. However, the authors identify a crucial problem specific to person ReID: domain and class (identity) are correlated. This correlation arises from factors like varying camera angles, lighting, and time of day (confounders) that influence both the perceived domain and the identity of individuals. DAL, by trying to remove domain information, can inadvertently remove valuable identity-specific information due to this correlation. This paper aims to solve this by explicitly decomposing this domain-class correlation.

Methods

The core of the proposed method is Domain-Class Correlation Decomposition (DCCD). Inspired by causal inference, they treat the domain label ($d$) as a factor that can be "intervened" upon. This intervention aims to break the causal link between the identity ($y$) and the domain ($d$) that is mediated by unobservable confounders ($h$).

Here's how DCCD works:

  1. Intervention on Domain: Instead of directly learning domain-invariant features, they simulate an intervention on the domain label. This means creating new synthetic samples where the domain information is altered or removed.
  2. Style Transfer for Decomposition: To achieve this intervention, they leverage techniques from style transfer. For a given feature map ($f$) from an encoder, they first "whiten" it by removing its mean and then transform it to match the mean and covariance statistics of a different target domain. This process effectively transfers the "style" of one domain to the features of another, creating a new feature map ($f^*$) that is "domain-class correlation decomposed."
  3. Memory Banks for Statistics: To facilitate this style transfer, they maintain two memory banks that store the first-order (mean) and second-order (covariance) statistics of feature maps from each source domain. These statistics are updated dynamically during training.
  4. Objective Function: The model is trained using a modified objective function that includes:
  5. A standard cross-entropy loss ($L_{CE}$) on original samples to ensure discriminative features.
  6. A domain adversarial loss ($L_{ADV}$) applied to the decomposed samples. This adversarial loss is now applied to features where the domain-class correlation has been broken, preventing the loss of identity information.
  7. An additional cross-entropy loss on the decomposed samples to further reinforce identity learning.
  8. Test-Time Intervention: At inference time, they apply a similar intervention to target domain data. By transferring the target domain's data style to match the learned source domain styles (using the memory banks), they create representations that are more aligned with the training distribution, improving generalization.

Datasets

The paper uses several standard ReID datasets for training and evaluation:

  • Source Domains (for training): CUHK02, CUHK03, Market1501, DukeMTMC-ReID, and CUHK-SYSU PersonSearch. These datasets collectively form a large-scale benchmark with a total of 18,530 identities and 121,765 images.
  • Target Domains (for evaluation): VIPeR, PRID, GRID, and QMUL i-LIDS. These are unseen domains used to test the model's generalization capabilities.

Key Insights and Ideas

  • Domain-Class Correlation is Key: The paper's central insight is that the domain-class correlation in ReID is not just a nuisance but a fundamental reason why standard domain adversarial learning fails. By explicitly addressing this correlation, significant improvements can be achieved.
  • Causal Inference as a Framework: Applying causal inference principles, particularly the "do" operation (intervention), provides a principled way to decompose the problematic correlation. This moves beyond empirical observations to a theoretical understanding of the problem.
  • Style Transfer for Data Augmentation/Decomposition: Using style transfer techniques (mean/covariance matching) to generate synthetic samples is an innovative way to create data that is "domain-class correlation decomposed." This is a novel application of style transfer for improving generalization in a discriminative task like ReID.
  • Memory Banks for Dynamic Statistics: The use of memory banks to store and dynamically update domain statistics is an efficient way to manage the style information needed for the intervention process.

Key Results

  • State-of-the-Art Performance: The proposed DCCDN method achieves state-of-the-art results on the large-scale domain generalization ReID benchmark, outperforming existing UDA and DG methods.
  • Significant Gains: For example, on the average of target datasets, DCCDN with MobileNetV2 achieved 61.0 R-1 and 65.1 mAP, and with ResNet50 achieved 67.8 R-1 and 70.9 mAP, significantly better than baselines.
  • Robustness: The method shows robustness to variations in the number of source domains used for training.
  • Qualitative Improvement: t-SNE visualizations demonstrate that DCCDN produces more tightly clustered and discriminative embeddings on target datasets compared to a baseline that only uses cross-entropy loss. The probe and gallery embeddings for the same identity are much closer with DCCDN.

Limitations and Future Work

  • Parameter Sensitivity: While generally robust, the paper notes that the performance on PRID and GRID datasets can be relatively sensitive to parameter choices (β and γ).
  • Future Work: The authors suggest exploring different distributions for the intervention probability at test time, beyond the uniform distribution used in the paper. This could potentially further enhance performance by better reflecting the true source domain distribution.

Summary updated

BibTeX
@article{yang2022domain,
  author = {Kaiwen Yang and Xinmei Tian},
  title = {{Domain-Class Correlation Decomposition for Generalizable Person Re-Identification}},
  journal = {IEEE Transactions on Multimedia},
  year = {2022},
  doi = {10.1109/tmm.2022.3160057},
}
Figure