FedFace: Collaborative Learning of Face Recognition Model

Divyansh Aggarwal, Jiayu Zhou, Anil K. Jain

TL;DR

FedFace is a federated learning (FL) framework designed to train face recognition models across thousands of mobile devices without ever sharing raw face images. By utilizing a server-side "spreadout regularizer," it overcomes the fundamental challenge of training on devices that only contain images of a single person, successfully enhancing the performance of pre-trained models while maintaining strict user privacy.

What Problem Does This Paper Address?

Deep Neural Network (DNN) based face recognition systems are data-hungry, typically requiring massive, centrally aggregated datasets. However, the tide is turning against central data collection due to stringent privacy regulations like GDPR and CCPA, and the high-profile retraction of datasets like MS Celeb due to lack of consent.

Federated Learning (FL) offers a solution by training models locally on user devices and only sharing model updates. But face recognition presents a unique hurdle for FL: the "one identity per client" problem. In a realistic mobile scenario, your phone only has photos of you. Standard face recognition training relies on comparing your face to others (negative samples) to learn discrimination. Without access to other people's images, a local model would naturally "collapse," learning to map every face it sees to the same point in mathematical space, rendering the model useless.

Methods

FedFace introduces a collaborative framework that allows a central server to coordinate training across multiple clients (mobile devices) while ensuring that no face images leave the devices.

An overview of the FedFace federated learning setup.

The authors propose two key technical innovations to handle the single-identity constraint:

  1. Mean Feature Initialization: Generally, class embeddings (the mathematical "template" for a face) are initialized randomly. FedFace instead initializes a client's class embedding using the mean feature vector of all images on that device, extracted via a pre-trained model. This provides a much more stable starting point and speeds up convergence.
  2. Spreadout Regularizer: Since individual clients cannot see other identities to perform negative sampling, the server takes on this role. After receiving updates from clients, the server aggregates the class embeddings and applies a "spreadout regularizer." This mathematical constraint forces the embeddings of different identities to stay far apart in the feature space, preventing the model collapse that plagues standard FL algorithms like FedAvg in this scenario.
The standard training framework which FedFace adapts for the federated setting.

Datasets

The researchers used several industry-standard datasets for their experiments:

  • Training: A subset of CASIA-WebFace (10,000 subjects) was used to simulate the federated environment, where each subject's images were assigned to a unique "client."
  • Evaluation: The model was tested on three major benchmarks to ensure generalizability:
  • LFW (Labeled Faces in the Wild): 13,233 images of 5,749 subjects.
  • IJB-A & IJB-C (IARPA Janus Benchmarks): Challenging datasets containing still photos and video frames with significant variations in pose and illumination.
Examples of face images from the datasets used in the study.

Key Insights and Ideas

  • The Failure of FedAvg: The authors demonstrate that the standard Federated Averaging (FedAvg) algorithm fails catastrophically when each client has only one identity. As the number of clients increases, FedAvg's performance drops sharply because it lacks a mechanism to enforce discrimination between classes.
  • Privacy vs. Utility: FedFace effectively bridges the gap between high-performance centralized training and privacy-preserving distributed training. It shows that we don't need to sacrifice one for the other.
  • Initialization is Crucial: Using mean features for initialization wasn't just a minor tweak; it reduced the required communication rounds from 450 to 200, a critical improvement given that communication latency is often the primary bottleneck in FL systems.

Key Results

FedFace was used to enhance a pre-trained CosFace model. The results show a clear performance boost across all benchmarks compared to the baseline (the model before federated fine-tuning):

  • IJB-A: The True Accept Rate (TAR) at a 0.1% False Accept Rate improved from 81.43% to 83.79%.
  • IJB-C: The TAR at 0.1% FAR improved from 84.78% to 88.21%.
  • LFW: Accuracy increased from 99.15% to 99.28%.

Crucially, FedFace significantly outperformed standard FedAvg, which achieved only 19.75% TAR on IJB-A in the same 1,000-client setup, proving the necessity of the spreadout regularizer.

Limitations and Future Work

While FedFace is a significant step forward, the authors note some areas for further exploration:

  • Communication Bottlenecks: FL involves frequent updates between the server and thousands of clients. Optimizing these communication rounds remains a challenge for real-world deployment.
  • Domain Shift: The current study uses web-scraped images for training. The authors aim to extend this work to better handle the "domain shift" seen in mobile-specific data, such as selfies, which may have different lighting and angles than traditional datasets.
  • Extreme Scale: While 1,000 clients were tested, real-world applications might involve millions of devices, requiring even more robust aggregation strategies.

Summary updated

BibTeX
@inproceedings{aggarwal2021fedface,
  author = {Divyansh Aggarwal and Jiayu Zhou and Anil K. Jain},
  title = {{FedFace: Collaborative Learning of Face Recognition Model}},
  booktitle = {Ijcb},
  year = {2021},
  doi = {10.1109/ijcb52358.2021.9484386},
}
Figure