Federated Face Recognition

Fan Bai, Jiaxiang Wu, Pengcheng Shen, Shaoxin Li, Shuigeng ZhouarXiv 2021 · OpenReview

Abstract Face recognition has been extensively studied in computer vision and artificial intelligence communities in recent years. An important issue of face recognition is data privacy, which receives more and more public concerns. As a common privacy-preserving technique, Federated Learning is proposed to train a model cooperatively without sharing data between parties. However, as far as we know, it has not been successfully applied in face recognition. This paper proposes a framework named FedFace to innovate federated learning for face recognition. Specifically, FedFace relies on two major innovative algorithms, Partially Federated Momentum (PFM) and Federated Validation (FV). PFM locally applies an estimated equivalent global momentum to approximating the centralized momentum-SGD efficiently. FV repeatedly searches for better federated aggregating weightings via testing the aggregated models on some private validation datasets, which can improve the model's generalization ability. The ablation study and extensive experiments validate the effectiveness of the FedFace method and show that it is comparable to or even better than the centralized baseline in performance.

Introduction

Large-scale face recognition (FR) models typically depend on massive, centralized datasets to achieve high accuracy. However, growing privacy regulations like GDPR make the pooling of sensitive biometric data increasingly difficult. Federated Learning (FL) offers a privacy-preserving alternative by allowing multiple parties to train a model cooperatively without sharing raw data. Despite its potential, standard FL algorithms like FedAvg struggle with FR due to "client drift"—where local updates on non-IID data diverge from the global optimum—and inefficient model aggregation. This paper introduces FedFace, the first framework to successfully apply FL to large-scale FR.

The FedFace Framework

FedFace is designed for a "cross-silo" environment, where a few reliable parties (e.g., banks or research labs) collaborate. The architecture consists of a central server, local trainers, and validators.

The FedFace framework architecture involving Server, Trainer, and Validator components.

The framework addresses the limitations of standard FL through two primary innovations: Partially Federated Momentum (PFM) and Federated Validation (FV).

Partially Federated Momentum (PFM)

In centralized training, momentum-SGD is crucial for navigating complex loss landscapes. In a federated setting, local momentum often leads to client drift. PFM solves this by estimating an "equivalent global momentum" at the server. This global momentum is then distributed to local trainers and applied at every local optimization step.

Conceptual illustration of PFM, showing how locally applied global momentum aligns local updates with the global optimization path.

By using the global momentum as a "compass," PFM ensures that local updates remain aligned with the global objective without the computational burden of calculating gradients twice (a common drawback of existing drift-correction methods).

Federated Validation (FV)

Standard aggregation methods like FedAvg use static weights based on sample counts. FedFace introduces FV to dynamically optimize these weights. The server generates candidate weightings and sends the resulting models to Validators—parties with private validation sets. These Validators return performance scores, which the server uses to select the near-optimal weighting for the next round. To ensure fairness across diverse validation sets, scores are standardized using Local or Moving Norm techniques.

Experimental Results

The researchers evaluated FedFace using a massive suite of datasets, including MS1MV2 and VGGFace-2 for training, and benchmarks like LFW, MegaFace, and IJB-C for evaluation.

  • Performance: FedFace consistently outperformed FedAvg and achieved parity with centralized training.
  • Robustness: While FedAvg's performance degraded significantly as the synchronization interval ($K$) increased, FedFace remained stable, demonstrating PFM's effectiveness in correcting client drift.
  • Efficiency: PFM achieved lower training loss than FedAvg, indicating a superior fit for the complex optimization surfaces inherent in face recognition.

Conclusion

FedFace represents a significant milestone in privacy-preserving biometrics. By introducing PFM and FV, the framework overcomes the traditional hurdles of client drift and suboptimal aggregation in federated learning. The results demonstrate that high-performance face recognition is possible without compromising data privacy, paving the way for broader applications in sensitive domains like medical imaging and finance.

Summary updated

Abstract

Face recognition has been extensively studied in computer vision and artificial intelligence communities in recent years. An important issue of face recognition is data privacy, which receives more and more public concerns. As a common privacy-preserving technique, Federated Learning is proposed to train a model cooperatively without sharing data between parties. However, as far as we know, it has not been successfully applied in face recognition. This paper proposes a framework named FedFace to innovate federated learning for face recognition. Specifically, FedFace relies on two major innovative algorithms, Partially Federated Momentum (PFM) and Federated Validation (FV). PFM locally applies an estimated equivalent global momentum to approximating the centralized momentum-SGD efficiently. FV repeatedly searches for better federated aggregating weightings via testing the aggregated models on some private validation datasets, which can improve the model's generalization ability. The ablation study and extensive experiments validate the effectiveness of the FedFace method and show that it is comparable to or even better than the centralized baseline in performance.
BibTeX
@misc{bai2021federated,
  author = {Fan Bai and Jiaxiang Wu and Pengcheng Shen and Shaoxin Li and Shuigeng Zhou},
  title = {{Federated Face Recognition}},
  year = {2021},
  eprint = {2105.02501},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2105.02501},
}
Figure