# Graph Sampling Based Deep Metric Learning for Generalizable Person Re-Identification

arXiv: https://arxiv.org/abs/2104.01546 · HTML: https://mlsanity.com/paper/2104.01546/

## Key facts

- Cited by 37 papers in the map (data through 14 Oct 2026).
- Builds on 29 of its 53 references that are in the map.
- First posted on arXiv 4 Apr 2021.

## Builds on (most cited first, 29 of 29)

- [Deep Residual Learning for Image Recognition](https://mlsanity.com/paper/1512.03385/) (2015)
- [FaceNet: A Unified Embedding for Face Recognition and Clustering](https://mlsanity.com/paper/1503.03832/) (2015)
- [In Defense of the Triplet Loss for Person Re-Identification](https://mlsanity.com/paper/1703.07737/) (2017)
- [SphereFace: Deep Hypersphere Embedding for Face Recognition](https://mlsanity.com/paper/1704.08063/) (2017)
- [Deep Learning for Person Re-identification: A Survey and Outlook](https://mlsanity.com/paper/2001.04193/) (2020)
- [Person Transfer GAN to Bridge Domain Gap for Person Re-Identification](https://mlsanity.com/paper/1711.08565/) (2017)
- [Beyond Part Models: Person Retrieval with Refined Part Pooling (and a Strong Convolutional Baseline)](https://mlsanity.com/paper/1711.09349/) (2017)
- [Two at Once: Enhancing Learning and Generalization Capacities via IBN-Net](https://mlsanity.com/paper/1807.09441/) (2018)
- [Omni-Scale Feature Learning for Person Re-Identification](https://mlsanity.com/paper/1905.00953/) (2019)
- [Learning Discriminative Features with Multiple Granularities for Person Re-Identification](https://mlsanity.com/paper/1804.01438/) (2018)
- [Sampling Matters in Deep Embedding Learning](https://mlsanity.com/paper/1706.07567/) (2017)
- [Re-ranking Person Re-identification with k-reciprocal Encoding](https://mlsanity.com/paper/1701.08398/) (2017)
- [Improved Texture Networks: Maximizing Quality and Diversity in Feed-forward Stylization and Texture Synthesis](https://mlsanity.com/paper/1701.02096/) (2017)
- [Self-paced Contrastive Learning with Hybrid Memory for Domain Adaptive Object Re-ID](https://mlsanity.com/paper/2006.02713/) (2020)
- [MovieNet: A Holistic Dataset for Movie Understanding](https://mlsanity.com/paper/2007.10937/) (2020)
- [Image-Image Domain Adaptation with Preserved Self-Similarity and Domain-Dissimilarity for Person Re-identification](https://mlsanity.com/paper/1711.07027/) (2017)
- [Person Re-identification in the Wild](https://mlsanity.com/paper/1604.02531/) (2016)
- [Style Normalization and Restitution for Generalizable Person Re-identification](https://mlsanity.com/paper/2005.11037/) (2020)
- [Learning to Generalize Unseen Domains via Memory-based Multi-Source Meta-Learning for Person Re-Identification](https://mlsanity.com/paper/2012.00417/) (2020)
- [Smart Mining for Deep Metric Learning](https://mlsanity.com/paper/1704.01285/) (2017)
- [Part-Aligned Bilinear Representations for Person Re-identification](https://mlsanity.com/paper/1804.07094/) (2018)
- [Meta Batch-Instance Normalization for Generalizable Person Re-Identification](https://mlsanity.com/paper/2011.14670/) (2020)
- [Learning Generalisable Omni-Scale Representations for Person Re-Identification](https://mlsanity.com/paper/1910.06827/) (2019)
- [Frustratingly Easy Person Re-Identification: Generalizing Person Re-ID in Practice](https://mlsanity.com/paper/1905.03422/) (2019)
- [Surpassing Real-World Source Training Data: Random 3D Characters for Generalizable Person Re-Identification](https://mlsanity.com/paper/2006.12774/) (2020)
- [UnrealPerson: An Adaptive Pipeline towards Costless Person Re-identification](https://mlsanity.com/paper/2012.04268/) (2020)
- [Calibrated Domain-Invariant Learning for Highly Generalizable Large Scale Re-Identification](https://mlsanity.com/paper/1911.11314/) (2019)
- [End-to-End Deep Kronecker-Product Matching for Person Re-identification](https://mlsanity.com/paper/1807.11182/) (2018)
- [How to Train Triplet Networks with 100K Identities?](https://mlsanity.com/paper/1709.02940/) (2017)

## Built on by (most cited first, 30 of 37)

- [Part-Aware Transformer for Generalizable Person Re-identification](https://mlsanity.com/paper/2308.03322/) (2023)
- [TransMatcher: Deep Image Matching Through Transformers for Generalizable Person Re-identification](https://mlsanity.com/paper/2105.14432/) (2021)
- [Modality Unifying Network for Visible-Infrared Person Re-Identification](https://mlsanity.com/paper/2309.06262/) (2023)
- [All in One Framework for Multimodal Re-identification in the Wild](https://mlsanity.com/paper/2405.04741/) (2024)
- [Cloning Outfits from Real-World Images to 3D Characters for Generalizable Person Re-Identification](https://mlsanity.com/paper/2204.02611/) (2022)
- [MLLMReID: Multimodal Large Language Model-based Person Re-identification](https://mlsanity.com/paper/2401.13201/) (2024)
- [ReMix: Training Generalized Person Re-identification on a Mixture of Data](https://mlsanity.com/paper/2410.21938/) (2024)
- [Generalizable Person Re-identification via Balancing Alignment and Uniformity](https://mlsanity.com/paper/2411.11471/) (2024)
- [CILP-FGDI: Exploiting Vision-Language Model for Generalizable Person Re-Identification](https://mlsanity.com/paper/2501.16065/) (2025)
- [Unleashing the Potential of Pre-Trained Diffusion Models for Generalizable Person Re-Identification](https://mlsanity.com/paper/2502.06619/) (2025)
- [Enhancing person re-identification via Uncertainty Feature Fusion Method and Auto-weighted Measure Combination](https://mlsanity.com/paper/2405.01101/) (2024)
- [Label Distribution Learning for Generalizable Multi-source Person Re-identification](https://mlsanity.com/paper/2204.05903/) (2022)
- [Globally Correlation-Aware Hard Negative Generation](https://mlsanity.com/paper/2411.13145/) (2024)
- [An Open-World, Diverse, Cross-Spatial-Temporal Benchmark for Dynamic Wild Person Re-Identification](https://mlsanity.com/paper/2403.15119/) (2024)
- [What Makes You Unique? Attribute Prompt Composition for Object Re-Identification](https://mlsanity.com/paper/2509.18715/) (2025)
- [DynaMix: Generalizable Person Re-identification via Dynamic Relabeling and Mixed Data Sampling](https://mlsanity.com/paper/2511.19067/) (2025)
- [Learning Robust Visual-Semantic Embedding for Generalizable Person Re-identification](https://mlsanity.com/paper/2304.09498/) (2023)
- [BIT: Matching-based Bi-directional Interaction Transformation Network for Visible-Infrared Person Re-Identification](https://mlsanity.com/paper/2603.14243/) (2026)
- [TAL: Two-stream Adaptive Learning for Generalizable Person Re-identification](https://mlsanity.com/paper/2111.14290/) (2021)
- [Deep Multimodal Fusion for Generalizable Person Re-identification](https://mlsanity.com/paper/2211.00933/) (2022)
- [Data Pruning Can Do More: A Comprehensive Data Pruning Approach for Object Re-identification](https://mlsanity.com/paper/2412.10091/) (2024)
- [SAGE: Spatial-visual Adaptive Graph Exploration for Efficient Visual Place Recognition](https://mlsanity.com/paper/2509.25723/) (2025)
- [Multi-Level Visual Similarity Based Personalized Tourist Attraction Recommendation Using Geo-Tagged Photos](https://mlsanity.com/paper/2109.08275/) (2021)
- [Coded Residual Transform for Generalizable Deep Metric Learning](https://mlsanity.com/paper/2210.04180/) (2022)
- [Origin Identification for Text-Guided Image-to-Image Diffusion Models](https://mlsanity.com/paper/2501.02376/) (2025)
- [ReText: Text Boosts Generalization in Image-Based Person Re-identification](https://mlsanity.com/paper/2602.05785/) (2026)
- [Rapid Person Re-Identification via Sub-space Consistency Regularization](https://mlsanity.com/paper/2207.05933/) (2022)
- [Is Synthetic Dataset Reliable for Benchmarking Generalizable Person Re-Identification?](https://mlsanity.com/paper/2209.05047/) (2022)
- [Generalizable Person Search on Open-world User-Generated Video Content](https://mlsanity.com/paper/2310.10068/) (2023)
- [Camera-Invariant Meta-Learning Network for Single-Camera-Training Person Re-identification](https://mlsanity.com/paper/2406.14797/) (2024)

## Abstract (arXiv)

Recent studies show that, both explicit deep feature matching as well as large-scale and diverse training data can significantly improve the generalization of person re-identification. However, the efficiency of learning deep matchers on large-scale data has not yet been adequately studied. Though learning with classification parameters or class memory is a popular way, it incurs large memory and computational costs. In contrast, pairwise deep metric learning within mini batches would be a better choice. However, the most popular random sampling method, the well-known PK sampler, is not informative and efficient for deep metric learning. Though online hard example mining has improved the learning efficiency to some extent, the mining in mini batches after random sampling is still limited. This inspires us to explore the use of hard example mining earlier, in the data sampling stage. To do so, in this paper, we propose an efficient mini-batch sampling method, called graph sampling (GS), for large-scale deep metric learning. The basic idea is to build a nearest neighbor relationship graph for all classes at the beginning of each epoch. Then, each mini batch is composed of a randomly selected class and its nearest neighboring classes so as to provide informative and challenging examples for learning. Together with an adapted competitive baseline, we improve the state of the art in generalizable person re-identification significantly, by 25.1% in Rank-1 on MSMT17 when trained on RandPerson. Besides, the proposed method also outperforms the competitive baseline, by 6.8% in Rank-1 on CUHK03-NP when trained on MSMT17. Meanwhile, the training time is significantly reduced, from 25.4 hours to 2 hours when trained on RandPerson with 8,000 identities. Code is available at https://github.com/ShengcaiLiao/QAConv.
