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

CosFace: Large Margin Cosine Loss for Deep Face Recognition

About

Face recognition has made extraordinary progress owing to the advancement of deep convolutional neural networks (CNNs). The central task of face recognition, including face verification and identification, involves face feature discrimination. However, the traditional softmax loss of deep CNNs usually lacks the power of discrimination. To address this problem, recently several loss functions such as center loss, large margin softmax loss, and angular softmax loss have been proposed. All these improved losses share the same idea: maximizing inter-class variance and minimizing intra-class variance. In this paper, we propose a novel loss function, namely large margin cosine loss (LMCL), to realize this idea from a different perspective. More specifically, we reformulate the softmax loss as a cosine loss by $L_2$ normalizing both features and weight vectors to remove radial variations, based on which a cosine margin term is introduced to further maximize the decision margin in the angular space. As a result, minimum intra-class variance and maximum inter-class variance are achieved by virtue of normalization and cosine decision margin maximization. We refer to our model trained with LMCL as CosFace. Extensive experimental evaluations are conducted on the most popular public-domain face recognition datasets such as MegaFace Challenge, Youtube Faces (YTF) and Labeled Face in the Wild (LFW). We achieve the state-of-the-art performance on these benchmarks, which confirms the effectiveness of our proposed approach.

Hao Wang, Yitong Wang, Zheng Zhou, Xing Ji, Dihong Gong, Jingchao Zhou, Zhifeng Li, Wei Liu• 2018

Related benchmarks

TaskDatasetResultRank
Person Re-IdentificationMarket 1501
mAP62.8
999
Person Re-IdentificationDukeMTMC-reID
Rank-1 Acc70.3
648
Face VerificationLFW
Mean Accuracy99.81
339
Image RetrievalCUB-200-2011 (test)
Recall@167.3
251
Image RetrievalStanford Online Products (test)
Recall@177.4
220
Face VerificationAgeDB-30
Accuracy98.17
204
Face VerificationCPLFW
Accuracy92.28
188
Face VerificationIJB-C
TAR @ FAR=0.01%96.37
173
Face VerificationLFW (test)
Verification Accuracy99.83
160
Face VerificationIJB-B
TAR (FAR=1e-4)94.8
152
Showing 10 of 86 rows
...

Other info

Follow for update