Generalizable Metric Network for Cross-domain Person Re-identification
Lei Qi, Ziang Liu, Yinghuan Shi, Xin Geng
TL;DR
This work tackles domain generalization in person re-identification by exploiting a key observation: domain gaps are smaller in the sample-pair feature space than in the sample-instance space. It introduces the Generalizable Metric Network (GMN), which places a lightweight Metric Network (M-Net) after the backbone and trains it on sample-pair features $f^{(sp)} = (f^{(si)}_p - f^{(si)}_q) \odot (f^{(si)}_p - f^{(si)}_q)$, enabling test-time pairwise similarity estimation. To boost generalization and discrimination, GMN adds a Dropout-based Perturbation (DP) module and a Pair-Identity Center (PIC) loss, with training driven by L_overall = L_cls + L_tri + L_gmn + lambda L_pic and DP activation after a warm-up period. Extensive experiments on Market1501, MSMT17, CUHK03-NP, and CUHK-SYSU show state-of-the-art or strongly competitive results, with ablations confirming the contribution of M-Net, DP, and PIC, and with reasonable computation using a single GPU. Overall, GMN provides an effective, scalable approach to cross-domain Re-ID by leveraging sample-pair space for robust metric learning in DG scenarios.
Abstract
Person Re-identification (Re-ID) is a crucial technique for public security and has made significant progress in supervised settings. However, the cross-domain (i.e., domain generalization) scene presents a challenge in Re-ID tasks due to unseen test domains and domain-shift between the training and test sets. To tackle this challenge, most existing methods aim to learn domain-invariant or robust features for all domains. In this paper, we observe that the data-distribution gap between the training and test sets is smaller in the sample-pair space than in the sample-instance space. Based on this observation, we propose a Generalizable Metric Network (GMN) to further explore sample similarity in the sample-pair space. Specifically, we add a Metric Network (M-Net) after the main network and train it on positive and negative sample-pair features, which is then employed during the test stage. Additionally, we introduce the Dropout-based Perturbation (DP) module to enhance the generalization capability of the metric network by enriching the sample-pair diversity. Moreover, we develop a Pair-Identity Center (PIC) loss to enhance the model's discrimination by ensuring that sample-pair features with the same pair-identity are consistent. We validate the effectiveness of our proposed method through a lot of experiments on multiple benchmark datasets and confirm the value of each module in our GMN.
