Papers › ElasticFace: Elastic Margin Loss for Deep Face Recognition

ElasticFace: Elastic Margin Loss for Deep Face Recognition

20 Sep 2021arXiv:2109.09416archive 2025-07-28

Fadi Boutros, Naser Damer, Florian Kirchbuchner, Arjan Kuijper

Learning discriminative face features plays a major role in building high-performing face recognition models. The recent state-of-the-art face recognition solutions proposed to incorporate a fixed penalty margin on commonly used classification loss function, softmax loss, in the normalized hypersphere to increase the discriminative power of face recognition models, by minimizing the intra-class variation and maximizing the inter-class variation. Marginal penalty softmax losses, such as ArcFace and CosFace, assume that the geodesic distance between and within the different identities can be equally learned using a fixed penalty margin. However, such a learning objective is not realistic for real data with inconsistent inter-and intra-class variation, which might limit the discriminative and generalizability of the face recognition model. In this paper, we relax the fixed penalty margin constrain by proposing elastic penalty margin loss (ElasticFace) that allows flexibility in the push for class separability. The main idea is to utilize random margin values drawn from a normal distribution in each training iteration. This aims at giving the decision boundary chances to extract and retract to allow space for flexible class separability learning. We demonstrate the superiority of our ElasticFace loss over ArcFace and CosFace losses, using the same geometric transformation, on a large set of mainstream benchmarks. From a wider perspective, our ElasticFace has advanced the state-of-the-art face recognition performance on seven out of nine mainstream benchmarks.

PaperPDFCode

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

Code

fdbtrs/ElasticFace officialmentioned in papermentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

Not run by Syntology. Nothing on this page verifies that the listed code works.

Tasks

Face RecognitionFace Verification

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Face Recognition AgeDB-30 ElasticFace-Cos Accuracy 0.9835 #2 of 4 Archive leaderboard report
Face Recognition CALFW ElasticFace-Arc Accuracy 0.9617 #2 of 3 Archive leaderboard report
Face Recognition CFP-FP ElasticFace-Arc Accuracy 0.9867 #3 of 8 Archive leaderboard report
Face Recognition CPLFW ElasticFace-Arc Accuracy 0.9327 #2 of 2 Archive leaderboard report
Face Recognition IJB-B ElasticFace-Cos TAR @ FAR=0.0001 0.953 #3 of 4 Archive leaderboard report
Face Verification IJB-C ElasticFace-Cos TAR @ FAR=1e-4 96.57% #18 of 26 Archive leaderboard report
Face Verification IJB-C ElasticFace-Cos model R100 #18 of 26 Archive leaderboard report
Face Verification IJB-C ElasticFace-Cos training dataset MS1M V2 #18 of 26 Archive leaderboard report
Face Verification MegaFace ElasticFace-Arc Accuracy 98.81% #2 of 12 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

Introduced by this paper: ElasticFace

ElasticFaceSoftmax

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections