Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Partial FC: Training 10 Million Identities on a Single Machine

About

Face recognition has been an active and vital topic among computer vision community for a long time. Previous researches mainly focus on loss functions used for facial feature extraction network, among which the improvements of softmax-based loss functions greatly promote the performance of face recognition. However, the contradiction between the drastically increasing number of face identities and the shortage of GPU memories is gradually becoming irreconcilable. In this paper, we thoroughly analyze the optimization goal of softmax-based loss functions and the difficulty of training massive identities. We find that the importance of negative classes in softmax function in face representation learning is not as high as we previously thought. The experiment demonstrates no loss of accuracy when training with only 10\% randomly sampled classes for the softmax-based loss functions, compared with training with full classes using state-of-the-art models on mainstream benchmarks. We also implement a very efficient distributed sampling algorithm, taking into account model accuracy and training efficiency, which uses only eight NVIDIA RTX2080Ti to complete classification tasks with tens of millions of identities. The code of this paper has been made available https://github.com/deepinsight/insightface/tree/master/recognition/partial_fc.

Xiang An, Xuhan Zhu, Yang Xiao, Lan Wu, Ming Zhang, Yuan Gao, Bin Qin, Debing Zhang, Ying Fu• 2020

Related benchmarks

TaskDatasetResultRank
Face VerificationLFW
Mean Accuracy99.83
339
Face VerificationAgeDB-30
Accuracy98.2
204
Face VerificationCPLFW
Accuracy93.1
188
Face VerificationIJB-C
TAR @ FAR=0.01%94.4
173
Face VerificationLFW (test)
Verification Accuracy99.83
160
Face VerificationIJB-B
TAR (FAR=1e-4)96.1
152
Face VerificationCALFW
Accuracy96.2
142
Face VerificationYTF
Accuracy97.76
76
Face RecognitionCFP-FP
Accuracy98.51
66
Face IdentificationMegaFace Challenge1 (Identification)
Rank-1 Identification Accuracy99.13
57
Showing 10 of 18 rows

Other info

Code

Follow for update