HyperAIHyperAI

Command Palette

Search for a command to run...

3 months ago

Partial FC: Training 10 Million Identities on a Single Machine

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

Partial FC: Training 10 Million Identities on a Single Machine

Abstract

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.

Benchmarks

BenchmarkMethodologyMetrics
face-identification-on-megafacePartialFC + Glint360K + R100
Accuracy: 99.10%

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp
Partial FC: Training 10 Million Identities on a Single Machine | Papers | HyperAI