Papers › Killing Two Birds with One Stone:Efficient and Robust Training of Face Recognition...

Killing Two Birds with One Stone:Efficient and Robust Training of Face Recognition CNNs by Partial FC

28 Mar 2022arXiv:2203.15565archive 2025-07-28

Xiang An, Jiankang Deng, Jia Guo, Ziyong Feng, Xuhan Zhu, Jing Yang, Tongliang Liu

Learning discriminative deep feature embeddings by using million-scale in-the-wild datasets and margin-based softmax loss is the current state-of-the-art approach for face recognition. However, the memory and computing cost of the Fully Connected (FC) layer linearly scales up to the number of identities in the training set. Besides, the large-scale training data inevitably suffers from inter-class conflict and long-tailed distribution. In this paper, we propose a sparsely updating variant of the FC layer, named Partial FC (PFC). In each iteration, positive class centers and a random subset of negative class centers are selected to compute the margin-based softmax loss. All class centers are still maintained throughout the whole training process, but only a subset is selected and updated in each iteration. Therefore, the computing requirement, the probability of inter-class conflict, and the frequency of passive update on tail class centers, are dramatically reduced. Extensive experiments across different training data and backbones (e.g. CNN and ViT) confirm the effectiveness, robustness and efficiency of the proposed PFC. The source code is available at \https://github.com/deepinsight/insightface/tree/master/recognition.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2203.15565")

Code

Syntology Ran 4 of 12 code samples harvested from 3 repositories linked to this paper; 8 have no recorded run. Of those that ran: 4 ran with no contract checked.

By repository: community (archive-listed): 12 samples from 3 repositories, 4 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

deepinsight/insightface officialmentioned in papermentioned on GitHubpytorch report
bovifocr/insightface mentioned on GitHubpytorch report
pedrobvidal/insightface mentioned on GitHubpytorch report
yangyucheng000/-insightface mentioned on GitHubpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

12 samples harvested; 4 ran; 0 honoured the contract we drafted; 8 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

4ran
8unverified

Licence: 4 of the 12 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 3 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

AllGatherFunc pedrobvidal/insightface/recognition/arcface_torch/partial_fc_v2.py community (archive-listed) ran no licence file found · pointer only · 9599ba720223efe2 · report
DistCrossEntropy pedrobvidal/insightface/recognition/arcface_torch/partial_fc_v2.py community (archive-listed) ran · metamorphic tier: deterministic no licence file found · pointer only · 4f589c1b7b15107e · report
DistCrossEntropyFunc pedrobvidal/insightface/recognition/arcface_torch/partial_fc_v2.py community (archive-listed) ran no licence file found · pointer only · c0df452dc531921a · report
softmax yangyucheng000/-insightface/python-package/insightface/model_zoo/retinaface.py community (archive-listed) ran fingerprinted MIT (permissive) · 011537d0bea7fe09 · report
PartialFC bovifocr/insightface/recognition/arcface_torch/partial_fc.py community (archive-listed) unverified MIT (permissive) · ca2e74d15a48deb6 · report
PartialFC_V2 pedrobvidal/insightface/recognition/arcface_torch/partial_fc_v2.py community (archive-listed) unverified no licence file found · pointer only · 3a6ac854256554fc · report
distance2bbox yangyucheng000/-insightface/python-package/insightface/model_zoo/retinaface.py community (archive-listed) unverified MIT (permissive) · 1d23600a36442d09 · report
distance2kps yangyucheng000/-insightface/python-package/insightface/model_zoo/retinaface.py community (archive-listed) unverified MIT (permissive) · e8f5d8d07e1e560b · report
find_onnx_file yangyucheng000/-insightface/python-package/insightface/model_zoo/model_zoo.py community (archive-listed) unverified MIT (permissive) · fc633d5737805a00 · report
find_params_file yangyucheng000/-insightface/python-package/insightface/model_zoo/model_store.py community (archive-listed) unverified MIT (permissive) · 8e01f2544321014d · report
get_model_file yangyucheng000/-insightface/python-package/insightface/model_zoo/model_store.py community (archive-listed) unverified MIT (permissive) · 36d98138ea733ae9 · report
short_hash yangyucheng000/-insightface/python-package/insightface/model_zoo/model_store.py community (archive-listed) unverified MIT (permissive) · 48aa1fdc7e6172f9 · report

Tasks

Face RecognitionFace Verification

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Face Recognition MFR Partial FC African 98.07 #1 of 1 Archive leaderboard report
Face Recognition MFR Partial FC Caucasian 98.81 #1 of 1 Archive leaderboard report
Face Recognition MFR Partial FC East Asian 89.97 #1 of 1 Archive leaderboard report
Face Recognition MFR Partial FC MFR-ALL 97.85 #1 of 1 Archive leaderboard report
Face Recognition MFR Partial FC MFR-MASK 90.88 #1 of 1 Archive leaderboard report
Face Recognition MFR Partial FC South Asian 98.66 #1 of 1 Archive leaderboard report
Face Verification AgeDB-30 PartialFC(R200) Accuracy 0.9870 #1 of 5 Archive leaderboard report
Face Verification CFP-FP PartialFC (R200) Accuracy 0.9951 #1 of 4 Archive leaderboard report
Face Verification IJB-B PartialFC(WebFace42M) TAR@FAR=0.0001 96.71 #9 of 12 Archive leaderboard report
Face Verification IJB-C Partial FC TAR @ FAR=1e-4 98.00% #4 of 26 Archive leaderboard report
Face Verification IJB-C Partial FC TAR @ FAR=1e-5 97.23% #4 of 26 Archive leaderboard report
Face Verification IJB-C Partial FC model ViT-L #4 of 26 Archive leaderboard report
Face Verification IJB-C Partial FC training dataset WebFace42M #4 of 26 Archive leaderboard report
Face Verification IJB-C PartialFC TAR @ FAR=1e-4 97.97% #5 of 26 Archive leaderboard report
Face Verification IJB-C PartialFC TAR @ FAR=1e-5 96.93% #5 of 26 Archive leaderboard report
Face Verification IJB-C PartialFC model R200 #5 of 26 Archive leaderboard report
Face Verification IJB-C PartialFC training dataset WebFace42M #5 of 26 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

Softmax

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections