Abstract
Person re-identification (re-ID) models often struggle to generalize when deployed in environments different from their training data. This paper proposes a "learning via translation" framework to bridge this domain gap. We introduce the Similarity Preserving Generative Adversarial Network (SPGAN), which translates labeled images from a source domain to a target domain while maintaining critical identity information. By enforcing two unsupervised constraints—self-similarity and domain-dissimilarity—SPGAN ensures that translated images retain the discriminative cues of the original person while remaining distinct from individuals in the target domain. Our experiments on large-scale datasets demonstrate that SPGAN significantly improves re-ID accuracy in cross-domain scenarios.
The Challenge of Domain Shift in Re-ID
Person re-identification involves identifying the same individual across multiple non-overlapping camera views. While deep learning has pushed performance to high levels on specific datasets, these models often fail in real-world deployment due to "domain shift." For example, a model trained on the sunny, high-resolution images of the Market-1501 dataset may perform poorly on the DukeMTMC-reID dataset, which features different lighting, backgrounds, and camera angles.
Standard Unsupervised Domain Adaptation (UDA) techniques typically assume that source and target domains share the same classes. In re-ID, however, the source and target datasets contain entirely different people. This makes simple distribution alignment insufficient. To address this, we propose translating source images into the "style" of the target domain while preserving the underlying identity labels.
Methodology: SPGAN
Learning via Translation
Our framework follows a two-stage pipeline. First, we use SPGAN to translate labeled source images into the target domain. Second, we use these translated images, which now share the visual characteristics of the target environment but retain their original source labels, to train a standard re-ID model.
Similarity Preserving Constraints
Standard image-to-image translation tools like CycleGAN can change an image's style but often distort the person's appearance or colors, which are vital for re-ID. SPGAN overcomes this by integrating a Siamese Network (SiaNet) with a CycleGAN architecture to enforce two key constraints:
- Self-similarity: An image and its translated version should represent the same person. This ensures that the identity-defining features (like clothing patterns and body shape) are preserved during the style shift.
- Domain-dissimilarity: Since the source and target domains contain different people, a translated source image should be recognized as distinct from any person in the target domain.
These constraints are implemented via a contrastive loss in the SiaNet, which pulls the features of positive pairs (source and its translated version) together and pushes negative pairs (translated source and target images) apart.
Feature Learning and Local Max Pooling (LMP)
After translation, we train a ResNet-50 model on the generated data. To mitigate the impact of noise or artifacts introduced during the GAN translation process, we introduce Local Max Pooling (LMP). By partitioning feature maps horizontally and applying max pooling to each part, the model learns to focus on the most discriminative body parts, making it more robust to translation errors.
Experimental Results
Qualitative Analysis
Visual results show that SPGAN successfully adapts images to the target domain's lighting and texture while keeping the person's identity recognizable. For instance, when translating from Duke to Market, the images adopt the brighter, more saturated look of the Market dataset without losing the specific clothing details of the Duke subjects.
Quantitative Performance
We evaluated our method on the Market-1501 and DukeMTMC-reID benchmarks. SPGAN provided a massive boost over "Direct Transfer" (using a source-trained model directly on target data):
- Market → Duke: Rank-1 accuracy improved from 33.1% to 46.9%.
- Duke → Market: Rank-1 accuracy rose from 43.1% to 58.1%.
Furthermore, SPGAN consistently outperformed baseline CycleGAN by 5-10% in Rank-1 accuracy, validating the effectiveness of the similarity-preserving constraints. At the time of publication, SPGAN set a new state-of-the-art for unsupervised domain adaptation in person re-ID.
Conclusion
SPGAN addresses the domain gap in person re-identification by treating it as an image-to-image translation problem with identity-preserving constraints. By ensuring that translated images remain self-similar to their source and dissimilar to the target domain, we create a high-quality synthetic training set that allows models to generalize effectively to new environments. Future work may involve combining this translation approach with pseudo-labeling techniques to further refine performance in unlabeled target domains.
Summary updated