Partial FC: Training 10 Million Identities on a Single Machine
arXiv:2010.05222
Abstract
Training face recognition models with millions of identities is challenging because classifier storage, logit memory, and computation grow linearly with the number of classes, eventually making full softmax impractical even when the backbone itself fits comfortably in memory. We present Partial FC (PFC), a scalable approximation to large-class softmax that preserves every positive class center while activating only a sampled subset of negative centers in each mini-batch. This asymmetric treatment retains every target term while avoiding exhaustive interaction with millions of mostly uninformative negatives. Our distributed implementation partitions the classifier across GPUs and samples within each owned shard, so sampling reduces local matrix multiplication and logit storage while sharding eliminates class-gradient synchronization across workers. Together, these properties reduce GPU-resident classifier memory, computation, and class-dependent communication without feature-based hard-negative retrieval. End-to-end system benchmarks demonstrate efficient scaling to massive class spaces, including 64 million classes on a single eight-GPU machine. Across large-scale face-recognition datasets, moderate sampling rates maintain competitive recognition accuracy while substantially improving training efficiency. Our best PFC configurations achieve 97.2\% TAR on IJB-C at FAR and 94.0\% TAR on ICCV21-MFR at FAR . Beyond clean training data, PFC is robust to inter-class conflicts, label noise, and long-tailed identity distributions: under 40\% label noise, PFC with conflict filtering raises ICCV21-MFR TAR from 43.9\% to 80.2\%, while on long-tailed data PFC improves TAR from 87.4\% to 92.0\%. These results establish positive-preserving negative sampling as an effective foundation for scalable, accurate, and robust identity classification.
8 pages, 9 figures
References in corpus (1)
Cited by in corpus (15)
- YOLO5Face: Why Reinventing a Face Detector
- SphereFace2: Binary Classification is All You Need for Deep Face Recognition
- Masked Face Recognition Challenge: The WebFace260M Track Report
- A Multi-modal and Multi-task Learning Method for Action Unit and Expression Recognition
- LOTR: Face Landmark Localization Using Localization Transformer
- Masked Face Recognition Challenge: The InsightFace Track Report
- Prototype Memory for Large-scale Face Representation Learning
- Fast and Reliable Probabilistic Face Embeddings in the Wild
- Built Year Prediction from Buddha Face with Heterogeneous Labels
- End-to-end Evaluation of Practical Video Analytics Systems for Face Detection and Recognition
- An Efficient Training Approach for Very Large Scale Face Recognition
- Dynamic Class Queue for Large Scale Face Recognition In the Wild
- Sub-pixel face landmarks using heatmaps and a bag of tricks
- MixFaceNets: Extremely Efficient Face Recognition Networks
- Face-NMS: A Core-set Selection Approach for Efficient Face Recognition