Papers › ArcFace: Additive Angular Margin Loss for Deep Face Recognition

ArcFace: Additive Angular Margin Loss for Deep Face Recognition

23 Jan 2018CVPR 2019 6arXiv:1801.07698archive 2025-07-28

Jiankang Deng, Jia Guo, Jing Yang, Niannan Xue, Irene Kotsia, Stefanos Zafeiriou

Recently, a popular line of research in face recognition is adopting margins in the well-established softmax loss function to maximize class separability. In this paper, we first introduce an Additive Angular Margin Loss (ArcFace), which not only has a clear geometric interpretation but also significantly enhances the discriminative power. Since ArcFace is susceptible to the massive label noise, we further propose sub-center ArcFace, in which each class contains K sub-centers and training samples only need to be close to any of the K positive sub-centers. Sub-center ArcFace encourages one dominant sub-class that contains the majority of clean faces and non-dominant sub-classes that include hard or noisy faces. Based on this self-propelled isolation, we boost the performance through automatically purifying raw web faces under massive real-world noise. Besides discriminative feature embedding, we also explore the inverse problem, mapping feature vectors to face images. Without training any additional generator or discriminator, the pre-trained ArcFace model can generate identity-preserved face images for both subjects inside and outside the training data only by using the network gradient and Batch Normalization (BN) priors. Extensive experiments demonstrate that ArcFace can enhance the discriminative feature embedding as well as strengthen the generative face synthesis.

PaperPDFConference PDFCodeCode 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="1801.07698")

Code

Syntology Ran 16 of 21 code samples harvested from 9 repositories linked to this paper; 5 have no recorded run. Of those that ran: 2 ran · honoured contract; 7 ran · our draft was wrong; 7 ran · fixture could not drive it.

By repository: community (archive-listed): 15 samples from 9 repositories, 11 ran; 6 identical to code first harvested elsewhere. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

100 repositories listed; official and paper-mentioned ones first.

deepinsight/insightface officialmentioned in papermentioned on GitHubpytorch report
394781865/insightface mentioned on GitHubtfMIT report
3P2S/arcface mentioned on GitHubtf report
Eltomad/insightface mentioned on GitHubtf report
Gryffindor112358/Arcface mentioned on GitHubmxnet report
Hayashi-Yudai/ML_models mentioned on GitHubtf report
IrvingMeng/MagFace mentioned on GitHubpytorch report
Mind23-2/MindCode-13 mentioned on GitHubmindspore report
Mind23-2/MindCode-95 mentioned on GitHubmindspore report
PaddlePaddle/PLSC mentioned on GitHubpaddleApache-2.0 report
SevenZhan/Pytorch mentioned on GitHubpytorch report
Soldie/insightface-Rec.Face mentioned on GitHubmxnet report
Talgin/facerec mentioned on GitHubtf report
TinDang97/face_recognition mentioned on GitHubpytorchMIT report
TreB1eN/InsightFace_Pytorch mentioned on GitHubpytorchMIT report
ZhaoJ9014/face.evoLVe mentioned on GitHubpytorch report
ahmedbesbes/whales-classification mentioned on GitHubpytorch report
aiinai/tf-insightface mentioned on GitHubtf report
bingxinhu/arcface mentioned on GitHubtf report
cfl0122/face mentioned on GitHubtf report
chenggongliang/arcface mentioned on GitHubmxnetMIT report
code-trip/insightface-mxnet mentioned on GitHubmxnetMIT report
dmonterom/face_recognition_TF2 mentioned on GitHubtf report
eric-erki/insightface mentioned on GitHubtfMIT report
foamliu/Gaze-Estimation mentioned on GitHubpytorch report
foamliu/InsightFace-PyTorch mentioned on GitHubpytorch report
foamliu/InsightFace-v2 mentioned on GitHubpytorch report
foamliu/InsightFace-v3 mentioned on GitHubpytorch report
godofpdog/MobileFaceNet_keras mentioned on GitHubtf report
haiyuwu/facebrightness mentioned on GitHubpytorch report
happynear/AMSoftmax mentioned on GitHubtf report
hqhoangvuong/paperspace_ml_01 mentioned on GitHubmxnetMIT report
ivychill/insightface mentioned on GitHubmxnet report
joovvhan/ecapa-tdnn mentioned on GitHubpytorch report
ktjonsson/keras-ArcFace mentioned on GitHubtf report
larsoncs/face_detect mentioned on GitHubtf report
linghu8812/pytorch_insightface mentioned on GitHubpytorch report
longchr123/insightface-analysis mentioned on GitHubmxnet report
malin9402/2020-0221 mentioned on GitHubtf report
malin9402/retiface mentioned on GitHubtf report
mengfu188/insightface.bak mentioned on GitHubmxnet report
mike07026/insightface_20190620 mentioned on GitHubtf report
modelhub-ai/arc-face mentioned on GitHubmxnet report
nhanvu39/ArcFace mentioned on GitHubpytorch report
nhatduy19599/insightface-master mentioned on GitHubpytorchMIT report
oktapodi/ps_resNet mentioned on GitHubpytorch report
peteryuX/arcface-tf2 mentioned on GitHubtf report
pgtinsley/insightface_oge mentioned on GitHubmxnet report
pranavjadhav001/arcface_inversion mentioned on GitHubpytorch report
rap-music/- mentioned on GitHubtf report
samisoto/keras_cosine_based_loss mentioned on GitHubtfCC0-1.0 report
shyhyawJou/ArcFace-Pytorch mentioned on GitHubpytorch report
slawekslex/ArcFace_Explained mentioned on GitHubpytorch report
stevexwu/face_brightness mentioned on GitHubpytorch report
sunil-rival/insightface mentioned on GitHubtfMIT report
tamnil/esp32-xtensa-study mentioned on GitHub report
thongdk8/realtime-facereccpp mentioned on GitHub report
trachpro/arcface-tf2 mentioned on GitHubtf report
trachpro/insightFace_v2 mentioned on GitHubpytorch report
vitoralbiero/face_analysis_pytorch mentioned on GitHubpytorch report
vladimirwest/insightface_cinematic mentioned on GitHubmxnetMIT report
vnbot2/arcface mentioned on GitHubpytorch report
vvictoryuki/freedom mentioned on GitHubpytorch report
wangshanmin/interface mentioned on GitHubmxnet report
xiaoboCASIA/SV-X-Softmax mentioned on GitHubpytorch report
zhaoxin111/insightface mentioned on GitHubmxnetMIT report
zrui94/insight_mx mentioned on GitHubtf report
zzdang/match_fashion mentioned on GitHubpytorch report
2024-MindSpore-1/Code4 mindsporeApache-2.0 report
PaddlePaddle/PaddleClas paddleApache-2.0 report
yangyucheng000/Paper-2 mindsporeApache-2.0 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

21 samples harvested; 16 ran; 2 honoured the contract we drafted; 5 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.

2ran · honoured contract
7ran · our draft was wrong
7ran · fixture could not drive it
5unverified

Licence: 14 of the 21 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 9 repositories linked to this paper, official or community; each sample names its own and says which. Some samples are identical code Syntology first harvested from another repository; for those, this paper's copy is not located and its licence is not recorded. “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.

IOU mike07026/insightface_20190620/src/align/align_insight.py community (archive-listed) ran · fixture could not drive it fingerprinted MIT (permissive) · 9348919b3a8be935 · report
calculate_roc dmonterom/face_recognition_TF2/evaluation.py community (archive-listed) ran · fixture could not drive it no licence file found · pointer only · 64b45da43b8ab573 · report
calculate_roc linghu8812/pytorch_insightface/verification.py community (archive-listed) ran · fixture could not drive it no licence file found · pointer only · 5f529c4af000c070 · report
calculate_val dmonterom/face_recognition_TF2/evaluation.py community (archive-listed) ran · fixture could not drive it no licence file found · pointer only · f67f5f081381cc8a · report
calculate_val_far linghu8812/pytorch_insightface/verification.py community (archive-listed) ran · fixture could not drive it no licence file found · pointer only · c2ce20a5d37df6c4 · report
ch_dev Talgin/facerec/src/api/face_model.py community (archive-listed) ran · our draft was wrong MIT (permissive) · eddb4fc2f9316aa0 · report
load_pickle sanaullah-ashfat/Face-recognition-with-Arcface-Tensorflow/main/RECOGNITION.py community (archive-listed) ran · our draft was wrong no licence file found · pointer only · 151ad8cf4f442cf0 · report
parse_arguments mike07026/insightface_20190620/src/align/align_insight.py community (archive-listed) ran · our draft was wrong MIT (permissive) · c2a17396e5b1b237 · report
resnet18 ronghuaiyang/arcface-pytorch/models/resnet.py community (archive-listed) ran · our draft was wrong no licence file found · pointer only · bd8fb5c95fa87652 · report
resnet34 ronghuaiyang/arcface-pytorch/models/resnet.py community (archive-listed) ran · our draft was wrong no licence file found · pointer only · bb357f89cac141ff · report
to_rgb mike07026/insightface_20190620/src/align/align_insight.py community (archive-listed) ran · honoured contract fingerprinted MIT (permissive) · 29507ad0ee182d8c · report
accuracy foamliu/InsightFace-v2/lfw_eval.py community (archive-listed) unverified Apache-2.0 (permissive) · dae42d7f4d41b99b · report
get_embeds cvqluu/Angular-Penalty-Softmax-Losses-Pytorch/train_fMNIST.py community (archive-listed) unverified MIT (permissive) · e984e4da60619384 · report
read_feature foamliu/InsightFace-v2/megaface.py community (archive-listed) unverified Apache-2.0 (permissive) · d5488fceeb40dc51 · report
read_template_media_list Mind23-2/MindCode-13/eval_ijbc.py community (archive-listed) unverified no licence file found · pointer only · 5b24fc008e2c830a · report
calculate_accuracy identical code first harvested elsewhere ran · honoured contract fingerprinted licence of this copy not recorded · f975336b5d5f1a80 · report
calculate_roc identical code first harvested elsewhere ran · fixture could not drive it licence of this copy not recorded · db4008738f6c3eae · report
calculate_val identical code first harvested elsewhere ran · fixture could not drive it licence of this copy not recorded · c7c89ea2508beb10 · report
conv3x3 identical code first harvested elsewhere ran · our draft was wrong licence of this copy not recorded · fac5364e2f53c6db · report
divideIntoNstrand identical code first harvested elsewhere ran · our draft was wrong fingerprinted licence of this copy not recorded · 2da848988b60d9cc · report
read_template_pair_list identical code first harvested elsewhere unverified licence of this copy not recorded · 897480715a729925 · report

Tasks

Face GenerationFace IdentificationFace RecognitionFace Verification

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Face Identification MegaFace ArcFace + MS1MV2 + R100 + R Accuracy 98.35% #6 of 13 Archive leaderboard report
Face Identification Trillion Pairs Dataset Arc-Softmax Accuracy 57.48 #3 of 6 Archive leaderboard report
Face Recognition CASIA-WebFace+masks ArcFace Accuracy 87.95 #3 of 6 Archive leaderboard report
Face Recognition CelebA+masks ArcFace Accuracy 91.78 #3 of 6 Archive leaderboard report
Face Verification IJB-C ArcFace TAR @ FAR=1e-5 96.07% #6 of 26 Archive leaderboard report
Face Verification IJB-C ArcFace model R100 #6 of 26 Archive leaderboard report
Face Verification IJB-C ArcFace training dataset IBUG-500K #6 of 26 Archive leaderboard report
Face Verification Labeled Faces in the Wild ArcFace + MS1MV2 + R100, Accuracy 99.83% #1 of 7 Archive leaderboard report
Face Verification MegaFace ArcFace + MS1MV2 + R100 + R Accuracy 98.48% #4 of 12 Archive leaderboard report
Face Verification Trillion Pairs Dataset Arc-Softmax Accuracy 57.45 #3 of 6 Archive leaderboard report
Face Verification YouTube Faces DB ArcFace + MS1MV2 + R100, Accuracy 98.02% #2 of 12 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

Introduced by this paper: ArcFace

ArcFace

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