What is: Additive Angular Margin Loss?
Source | ArcFace: Additive Angular Margin Loss for Deep Face Recognition |
Year | 2000 |
Data Source | CC BY-SA - https://paperswithcode.com |
ArcFace, or Additive Angular Margin Loss, is a loss function used in face recognition tasks. The softmax is traditionally used in these tasks. However, the softmax loss function does not explicitly optimise the feature embedding to enforce higher similarity for intraclass samples and diversity for inter-class samples, which results in a performance gap for deep face recognition under large intra-class appearance variations.
The ArcFace loss transforms the logits , where is the angle between the weight and the feature . The individual weight is fixed by normalization. The embedding feature is fixed by normalization and re-scaled to . The normalisation step on features and weights makes the predictions only depend on the angle between the feature and the weight. The learned embedding features are thus distributed on a hypersphere with a radius of . Finally, an additive angular margin penalty is added between and to simultaneously enhance the intra-class compactness and inter-class discrepancy. Since the proposed additive angular margin penalty is equal to the geodesic distance margin penalty in the normalised hypersphere, the method is named ArcFace:
The authors select face images from 8 different identities containing enough samples (around 1,500 images/class) to train 2-D feature embedding networks with the softmax and ArcFace loss, respectively. As the Figure shows, the softmax loss provides roughly separable feature embedding but produces noticeable ambiguity in decision boundaries, while the proposed ArcFace loss can obviously enforce a more evident gap between the nearest classes.
Other alternatives to enforce intra-class compactness and inter-class distance include Supervised Contrastive Learning.