TLDR: ExpFace is a new deep face recognition loss function that uses an exponential angular margin to better handle noisy data. By applying stronger penalties to clean samples in the central angular region and weaker penalties to noisy samples in the periphery, ExpFace improves training efficiency and achieves state-of-the-art performance, while also addressing stability and generalizability issues found in previous margin-based methods.
The field of face recognition constantly seeks to improve its accuracy and robustness, especially when dealing with “open-set” problems where the system must identify individuals not seen during training. A key challenge in this area is ensuring that the distance between different images of the same person (intra-class distance) is smaller than the distance between images of different people (inter-class distance). Traditional methods often fall short, leading to the development of margin-based softmax losses like SphereFace, CosFace, and ArcFace. These methods enhance the discriminative power of models by introducing a penalty that constrains the angle between a sample and its corresponding class center.
However, a significant hurdle for these existing methods is the presence of noisy samples in large-scale datasets. These datasets, often cleaned automatically, still contain imperfections that can negatively impact model training. Researchers observed that clean and noisy samples behave differently in the angular space where face features are represented. Clean samples tend to cluster in the central region, while noisy samples drift towards the periphery. Specifically, “Type-I noisy samples” (images from non-training identities mistakenly assigned to a class) move towards the upper-right boundary, and “Type-II noisy samples” (images from a training identity incorrectly assigned to multiple classes) move towards the lower-left boundary.
Introducing ExpFace: A New Approach to Handling Noise
Motivated by this crucial observation, a new approach called Exponential Angular Margin Loss, or ExpFace, has been proposed. ExpFace introduces an angular exponential term as its margin. This innovative design applies a larger penalty to samples located in the central region of the angular space, where clean samples are predominantly found. Conversely, it applies a smaller penalty to samples in the peripheral regions, effectively suppressing the influence of noisy data. This strategy ensures that the model focuses more on learning from reliable, clean samples, thereby improving training efficiency and overall performance.
A comprehensive analysis comparing ExpFace with the classical margin-based softmax losses (SphereFace, CosFace, and ArcFace) reveals its superior properties. The analysis covered aspects such as the similarity computation formula, similarity curves, and gradient curves. ExpFace’s design avoids the training instability issues often seen with SphereFace and the non-monotonicity problem that can affect ArcFace, which can reduce its generalizability. Furthermore, ExpFace’s similarity curve consistently applies stronger penalties in the center and weaker penalties at the periphery, aligning perfectly with the observed distribution of clean and noisy samples. Its gradient curve also demonstrates better behavior, allowing for more stable training and potential for dynamic margin strategies.
Also Read:
- Protecting Biometric Data with AI: Transforming Faces into Flowers for Enhanced Privacy
- KSDiff: Enhancing Facial Animation with Disentangled Speech and Keyframe Awareness
State-of-the-Art Performance
Extensive experiments were conducted using various training datasets like CASIA, MS1MV3, and WebFace4M, and validated on benchmark datasets including LFW, CPLFW, CALFW, CFP-FP, AgeDB-30, VGG2-FP, IJB-B, IJB-C, and MegaFace. The results consistently show that ExpFace achieves state-of-the-art performance across these diverse evaluation metrics. Notably, ExpFace demonstrated outstanding True Accept Rate (TAR) at lower False Accept Rate (FAR) thresholds, indicating a higher safety factor for face verification systems. The research also explored ExpFace’s potential in dynamic margin strategies, where it showed significant accuracy improvements compared to other methods.
This new loss function offers a simple yet effective way to enhance deep face recognition models by intelligently handling noisy data. For those interested in delving deeper, the source code for ExpFace has been made publicly available. You can find the full research paper here: ExpFace: Exponential Angular Margin Loss for Deep Face Recognition.


