CosFace: Large Margin Cosine Loss for Deep Face Recognition

01/29/2018
by   Hao Wang, et al.
0

Face recognition has achieved revolutionary advancement owing to the advancement of the deep convolutional neural network (CNN). The central task of face recognition, including face verification and identification, involves face feature discrimination. However, traditional softmax loss of deep CNN usually lacks the power of discrimination. To address this problem, recently several loss functions such as central loss centerloss, large margin softmax loss lsoftmax, and angular softmax loss sphereface have been proposed. All these improvement algorithms share the same idea: maximizing inter-class variance and minimizing intra-class variance. In this paper, we design 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 cosine loss by L2 normalizing both features and weight vectors to remove radial variation, based on which a cosine margin term m is introduced to further maximize decision margin in angular space. As a result, minimum intra-class variance and maximum inter-class variance are achieved by normalization and cosine decision margin maximization. We refer to our model trained with LMCL as CosFace. To test our approach, 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 benchmark experiments, which confirms the effectiveness of our approach.

READ FULL TEXT
research
04/29/2018

Scalable Angular Discriminative Deep Metric Learning for Face Recognition

With the development of deep learning, Deep Metric Learning (DML) has ac...
research
01/23/2018

ArcFace: Additive Angular Margin Loss for Deep Face Recognition

Convolutional neural networks have significantly boosted the performance...
research
12/17/2019

Angular Learning: Toward Discriminative Embedded Features

The margin-based softmax loss functions greatly enhance intra-class comp...
research
05/20/2020

Investigation of Large-Margin Softmax in Neural Language Modeling

To encourage intra-class compactness and inter-class separability among ...
research
10/05/2022

InterFace:Adjustable Angular Margin Inter-class Loss for Deep Face Recognition

In the field of face recognition, it is always a hot research topic to i...
research
08/24/2022

SubFace: Learning with Softmax Approximation for Face Recognition

The softmax-based loss functions and its variants (e.g., cosface, sphere...
research
08/01/2017

Learning Deep Convolutional Embeddings for Face Representation Using Joint Sample- and Set-based Supervision

In this work, we investigate several methods and strategies to learn dee...

Please sign up or login with your details

Forgot password? Click here to reset