Abstract
Generalizable person Re-Identification (ReID) has attracted growing attention in recent computer vision community. In this work, we construct a structural causal model among identity labels, identity-specific factors (clothes/shoes color etc), and domain-specific factors (background, viewpoints etc). According to the causal analysis, we propose a novel Domain Invariant Representation Learning for generalizable person Re-Identification (DIR-ReID) framework. Specifically, we first propose to disentangle the identity-specific and domain-specific feature spaces, based on which we propose an effective algorithmic implementation for backdoor adjustment, essentially serving as a causal intervention towards the SCM. Extensive experiments have been conducted, showing that DIR-ReID outperforms state-of-the-art methods on large-scale domain generalization ReID benchmarks.
Introduction
Person Re-Identification (ReID) aims to match individuals across non-overlapping camera views. While deep learning has significantly advanced performance on single-dataset benchmarks, these models often suffer from "catastrophic failure" when deployed in unseen environments. This lack of generalization stems from the model's tendency to learn spurious correlations between identity labels and domain-specific factors, such as background, illumination, and camera viewpoints. In technical terms, these domain factors act as confounders that bias the learning process.
Causal Analysis and Methodology
To address these challenges, we approach the problem through the lens of causality. We model the data generation process using a Structural Causal Model (SCM).
Structural Causal Model (SCM)
As shown in Figure 1, we define three key variables:
- $V$: Domain-specific factors (e.g., background, lighting).
- $S$: Identity-specific factors (e.g., body shape, clothing).
- $Y$: Identity labels.
In a standard training setup (a), $V$ influences both the appearance $S$ and the label $Y$, creating a "backdoor path" ($S \leftarrow V \rightarrow Y$) that introduces bias. To achieve true generalization, we must perform a causal intervention (b) to break the link between $V$ and $S$, allowing the model to learn $P(Y|do(S))$ instead of the observational $P(Y|S)$.
The DIR-ReID Framework
The proposed DIR-ReID framework implements this intervention through two main components: feature disentanglement and backdoor adjustment.
- Feature Disentanglement: We utilize two separate encoders, $f_S$ and $f_V$, to map input images into identity-specific and domain-specific feature spaces. To ensure $f_S$ is truly domain-invariant, we employ a domain-indistinguishability loss ($\mathcal{L}_{indis}$) and an adversarial domain loss ($\mathcal{L}_{dom}^s$), forcing the identity features to contain no information about the source domain.
- Backdoor Adjustment (BA) Block: To simulate the causal intervention $P(Y|do(S))$, we implement a Backdoor Adjustment block. Since we cannot observe all possible domains, we approximate the intervention by combining identity features with various sampled domain features ($v$) during training. This forces the classifier $C_S$ to ignore the domain component and focus solely on the identity-specific representation.
Experimental Results
We evaluated DIR-ReID using a multi-source domain generalization protocol. The model was trained on five large-scale datasets (CUHK02, CUHK03, Market1501, DukeMTMC-ReID, and CUHK-SYSU) and tested on four unseen target datasets (VIPeR, PRID, GRID, and i-LIDS).
Performance on Unseen Domains
DIR-ReID achieves state-of-the-art results across various benchmarks. For instance, on the GRID dataset, it achieved a 48.2% Rank-1 accuracy, outperforming previous methods like DDAN (46.2%) and DualNorm (41.4%). The model also showed consistent improvements in mean Average Precision (mAP), demonstrating its ability to produce more robust and reliable rankings in out-of-distribution settings.
Disentanglement Verification
Controlled experiments on Rotated MNIST confirmed the effectiveness of the disentanglement strategy. The identity space successfully clustered digits (0-9) regardless of their rotation angle, while the domain space clustered images by rotation angle, independent of the digit identity.
Conclusion
DIR-ReID introduces a principled causal approach to generalizable person Re-Identification. By modeling the confounding effects of domain factors and applying a backdoor adjustment intervention, the framework learns representations that are truly invariant to environmental changes. While a performance gap still exists compared to Unsupervised Domain Adaptation (UDA) methods that access target-domain data, DIR-ReID sets a new benchmark for zero-shot generalization in ReID. Future work will explore more sophisticated feature augmentation techniques and more stable alternatives to adversarial training.
Summary updated