RegularFace: Deep Face Recognition via Exclusive Regularization.

Kai Zhao, Jingyi Xu, Ming-Ming ChengCVPR 2019 · DOI

Abstract

Traditional deep face recognition research has primarily focused on intra-class compactness—minimizing the distance between features of the same identity. However, inter-class separability, or the distance between different identities, is often overlooked. This paper introduces RegularFace, a novel approach that incorporates an "exclusive regularization" term to explicitly push features of different people apart. By penalizing the proximity of an identity's center to its nearest neighbor, RegularFace achieves superior discriminability. Experimental results on benchmarks such as LFW and MegaFace demonstrate that RegularFace consistently improves performance and is orthogonal to existing state-of-the-art loss functions.

Introduction

The core challenge in open-set face recognition is learning a discriminative feature space where intra-class variance is minimized and inter-class variance is maximized. While recent advancements like Center Loss, SphereFace, and ArcFace have significantly improved intra-class compactness (the "pulling" force), the "pushing" force required for inter-class separability has received less attention. In high-dimensional spaces populated by thousands of identities, class centers can become unnecessarily crowded, leading to potential misclassifications. RegularFace addresses this imbalance by introducing a mechanism to ensure identity clusters are well-separated.

Methodology: Exclusive Regularization

The primary innovation of RegularFace is the Exclusive Regularization term ($L_r$). Unlike standard classification layers that rely solely on softmax loss, RegularFace modifies the optimization objective to include a penalty for class centers that are too close to one another.

Conceptual comparison of various loss functions, highlighting the inter-class push force introduced by RegularFace.

The "Push" Force

The regularization term identifies the nearest neighbor for each class weight vector (representing an identity center) in the feature space. It then applies a penalty based on the cosine similarity between these vectors. By focusing only on the nearest neighbor rather than all other classes, the method remains computationally efficient while targeting the most likely sources of confusion.

Optimization and Annealing

Since weight vectors are typically constrained to a hypersphere, the authors employ Projected Gradient Descent (PGD) to maintain normalization during updates. To prevent instability caused by the "push" and "pull" forces competing early in training, an annealing strategy is used. The regularization weight ($\lambda$) is gradually increased from zero over the initial epochs, allowing the network to first establish stable clusters before refining their separation.

Geometric Insights and Visualizations

RegularFace encourages the network to utilize the high-dimensional embedding space more effectively. While a 512-dimensional space offers ample "room" for thousands of identities, standard losses do not explicitly force the centers apart.

2D feature visualizations showing how RegularFace creates a "star-like" pattern with maximized angular margins compared to other losses.

As shown in the geometric visualizations, RegularFace produces a "star-like" distribution. Identity centers are pushed toward the extreme edges of the angular space, which maximizes the margins between different classes. This geometric arrangement directly translates to better performance in open-set verification tasks.

Experimental Evaluation

The effectiveness of RegularFace was validated using large-scale training sets like CASIA-WebFace and VGGFace2, and evaluated on several industry benchmarks:

  • LFW (Labeled Faces in the Wild): Adding RegularFace to a SphereFace baseline improved accuracy from 99.50% to 99.61%.
  • MegaFace Challenge: On the Rank-1 identification task (Small protocol), the combination of RegularFace and SphereFace reached 70.23%, significantly outperforming the standalone SphereFace baseline (69.62%).
  • Orthogonality: A key strength of RegularFace is its compatibility with other loss functions. It can be seamlessly integrated with Softmax, Center Loss, or SphereFace to further enhance their discriminative power.

Discussion and Future Work

While RegularFace provides a robust boost to performance, it introduces a hyperparameter $\lambda$ that requires tuning (found to be optimal around $\lambda=6$ in these experiments). The necessity of an annealing schedule also points to a fundamental tension between intra-class pulling and inter-class pushing during the early stages of training. Future research may explore automated ways to balance these forces or investigate how the nearest-neighbor search scales when training on datasets with millions of unique identities.

Summary updated

BibTeX
@inproceedings{zhao2019regularface,
  author = {Kai Zhao and Jingyi Xu and Ming-Ming Cheng},
  title = {{RegularFace: Deep Face Recognition via Exclusive Regularization.}},
  booktitle = {CVPR},
  year = {2019},
  doi = {10.1109/cvpr.2019.00123},
}
Figure