[Paper Review] A Performance Comparison of Loss Functions for Deep Face Recognition
This paper evaluates five deep loss functions—Cross-Entropy, Angular-Softmax, Additive-Margin Softmax, ArcFace, and Marginal Loss—for deep face recognition using ResNet50 and MobileNet on CASIA-Webface and MS-Celeb-1M datasets, with testing on LFW. ArcFace achieves the highest accuracy (99.35%) and fastest convergence, outperforming others in both performance and stability across architectures and datasets.
Face recognition is one of the most widely publicized feature in the devices today and hence represents an important problem that should be studied with the utmost priority. As per the recent trends, the Convolutional Neural Network (CNN) based approaches are highly successful in many tasks of Computer Vision including face recognition. The loss function is used on the top of CNN to judge the goodness of any network. In this paper, we present a performance comparison of different loss functions such as Cross-Entropy, Angular Softmax, Additive-Margin Softmax, ArcFace and Marginal Loss for face recognition. The experiments are conducted with two CNN architectures namely, ResNet and MobileNet. Two widely used face datasets namely, CASIA-Webface and MS-Celeb-1M are used for the training and benchmark Labeled Faces in the Wild (LFW) face dataset is used for the testing.
Motivation & Objective
- To evaluate and compare the performance of modern deep loss functions in face recognition under varying network architectures and training data.
- To assess the impact of different loss functions on training accuracy, test accuracy, and convergence rate in deep CNNs.
- To determine which loss function yields the highest generalization and stability across lightweight (MobileNet) and deep (ResNet) architectures.
- To analyze the influence of training dataset (CASIA-Webface vs. MS-Celeb-1M) on model performance and loss function effectiveness.
- To provide empirical guidance for researchers and practitioners selecting optimal loss functions for face recognition systems.
Proposed method
- The study employs two CNN architectures: ResNet50 and MobileNetv1, for feature extraction and classification in face recognition.
- Five loss functions are evaluated: Cross-Entropy, Angular-Softmax (A-Softmax), Additive-Margin Softmax, ArcFace, and Marginal Loss, each designed to enhance feature discriminability.
- Experiments are conducted using two large-scale face datasets: CASIA-Webface and MS-Celeb-1M, for training, and Labeled Faces in the Wild (LFW) for testing.
- Training is performed over 20 epochs, with evaluation metrics including training accuracy, test accuracy, and convergence rate (epochs to peak performance).
- The convergence rate is defined as the minimum number of epochs required to achieve the highest test accuracy on LFW.
- Statistical analysis includes mean and standard deviation of test accuracy across epochs 10–20 to assess model stability and convergence behavior.
Experimental results
Research questions
- RQ1Which loss function yields the highest face recognition accuracy on the LFW benchmark across different CNN architectures?
- RQ2How does the choice of training dataset (CASIA-Webface vs. MS-Celeb-1M) affect the performance of different loss functions?
- RQ3Which loss function demonstrates the fastest convergence rate in terms of epochs to reach peak test accuracy?
- RQ4How do training and test accuracy trends vary across loss functions, and which show the most stable performance?
- RQ5Does the architecture (ResNet50 vs. MobileNet) significantly influence the relative performance of loss functions?
Key findings
- ArcFace achieved the highest test accuracy of 99.35% on the LFW dataset when trained on CASIA-Webface using ResNet50, outperforming all other loss functions.
- The ArcFace loss demonstrated the fastest convergence rate, reaching peak performance at the 13th epoch when training ResNet50 on MS-Celeb-1M.
- The mean test accuracy for ArcFace was 99.01% with a low standard deviation of 0.305, indicating high stability and consistent performance across epochs.
- Additive-Margin Softmax achieved the highest training accuracy (95.12%) on MobileNetv1 with CASIA-Webface, but lagged in test accuracy and convergence speed.
- Models trained on CASIA-Webface consistently outperformed those trained on MS-Celeb-1M, likely due to lower noise and better data quality in CASIA-Webface.
- ResNet50 converged faster than MobileNet across most loss functions when trained on MS-Celeb-1M, except for Additive-Margin Softmax, which converged at the 15th epoch for both architectures.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.