Abstract
Deep face recognition typically relies on learnable prototypes to represent identity centers. However, "hard samples" with extreme occlusions or lighting can cause these prototypes to drift, degrading performance. We present Empirical Prototype Learning (EPL), a framework that anchors class centers using the moving average of actual image features. By incorporating an adaptive margin that prioritizes "normal" samples during center estimation, EPL prevents noisy data from distorting representations. Experimental results demonstrate significant improvements, particularly in masked face recognition and large-scale benchmarks like IJB-C.
Introduction
In modern deep face recognition, "prototypes" serve as the ideal feature vectors for specific identities, typically stored in the final linear layer of a neural network. During training, these vectors are updated via gradient descent to represent the center of a class's feature distribution.
A significant challenge arises from Hard Samples—images with heavy occlusions, extreme angles, or poor lighting—which generate large gradients. These samples can act as outliers that pull the prototype vector away from the true class center, a phenomenon known as "prototype drift." This drift compromises the model's ability to recognize standard appearances, especially in complex real-world scenarios. EPL is designed to anchor these centers more effectively by dampening the influence of these outliers.
Methods
Empirical Prototype Learning (EPL) addresses prototype drift through three primary mechanisms:
- Empirical Prototypes (EP): Instead of treating prototypes solely as abstract learnable parameters updated via backpropagation, EPL defines them as the expectation (moving average) of features extracted directly from images.
- Adaptive Forward Updating: Prototypes are updated during the forward pass rather than the backward pass. For a new image feature $x$, the prototype $P$ is updated as $P_{new} = \alpha P_{old} + (1-\alpha)x$. The coefficient $\alpha$ is adaptive; hard samples (those far from the current prototype) are assigned lower weights to minimize their impact on the class center.
- Adaptive Margin Strategy: EPL utilizes an adaptive margin in the loss function (e.g., ArcFace). It assigns larger margins to "normal" samples and smaller margins to "hard" samples. This strategy forces the model to define stable class centers based on clean data before gradually incorporating more difficult samples.
The framework is designed to be "plug-and-play," allowing integration with existing state-of-the-art methods like CosFace, ArcFace, and UniFace. By updating prototypes in the forward pass using actual feature distributions, the model achieves greater stability than relying on the noisy, high-variance gradients produced by hard samples in the backward pass.
Experiments and Datasets
The models were trained on massive, industry-standard scales, including CASIA-WebFace (0.5M images), Glint360K (17.1M images), and subsets of the WebFace42M dataset. Evaluation was conducted across a gauntlet of benchmarks: MFR (Masked Face Recognition), IJB-C, LFW, CFP-FP, AgeDB, and MegaFace.
Results and Discussion
EPL shows substantial performance gains in challenging conditions. On the IJB-C benchmark at a False Accept Rate (FAR) of 1e-5, integrating EPL into CosFace improved the True Accept Rate from 11.30% to 83.38%. In Masked Face Recognition (MFR), EPL improved ArcFace's accuracy on the "Mask-All" subset from 42.21% to 48.86%, proving its robustness against occlusions.
Furthermore, EPL achieved state-of-the-art results on the MegaFace identification track with 92.95% accuracy (small protocol). Importantly, these gains come with minimal computational overhead, requiring only ~122MB of additional memory and maintaining high training throughput (dropping only slightly from 1346 to 1330 images/sec).
Conclusion
EPL provides a robust framework for stabilizing identity representations in deep face recognition. By protecting the class center from the "tug-of-war" effect of hard samples, it maintains purer representations of identity. While highly effective for 1:n identification and handling occlusions, its impact on 1:1 verification in saturated datasets like LFW is more modest. Future research may focus on refining the adaptive margin to further enhance performance across all data distributions, including easier, high-accuracy datasets.
Summary updated