Federated Unsupervised Domain Adaptation for Face Recognition

Weiming Zhuang, Xin Gan, Xuesen Zhang, Yonggang Wen, Shuai Zhang, Shuai Yi

Abstract

Face recognition models frequently encounter performance degradation when deployed across diverse demographic domains due to domain shift. While Unsupervised Domain Adaptation (UDA) can mitigate this, traditional methods require centralizing sensitive biometric data, violating privacy regulations such as GDPR. We present FedFR, a novel federated framework that adapts models to unlabeled target domains without data sharing. FedFR utilizes a distance-constrained hierarchical clustering algorithm (C-FINCH) for pseudo-label generation and a specialized Domain Constraint Loss (DCL) to balance source and target domain influence during federated training. Evaluations on the FedFR-Bench demonstrate that FedFR significantly improves accuracy on target domains, sometimes outperforming centralized training baselines while preserving strict data privacy.

Introduction

Modern face recognition systems often suffer from significant performance drops when applied to demographics underrepresented in their training data. This phenomenon, known as domain shift, typically occurs when a model trained on a source domain (e.g., Caucasian faces) is deployed on a target domain with different characteristics (e.g., African faces).

While Unsupervised Domain Adaptation (UDA) offers a path to bridge this gap by aligning feature distributions, standard UDA techniques necessitate the centralization of data from both domains. In the context of biometric data, this is increasingly unfeasible due to stringent privacy regulations and the inherent sensitivity of facial imagery. Furthermore, data residing on edge devices in the target domain is usually unlabeled and significantly smaller in volume than centralized source datasets. FedFR addresses these challenges by enabling effective domain adaptation without moving raw data from its original location.

Methodology

The FedFR framework consists of an end-to-end pipeline organized into three distinct stages designed to handle the transition from a labeled source to an unlabeled, private target.

1. Source Pre-training

The process begins with a base model ($f_s$) trained via standard supervised learning on a large-scale, labeled source dataset. This provides the model with a foundational understanding of facial features and identity discrimination.

2. Pseudo Label Generation (C-FINCH)

To utilize unlabeled data in the target domain, the framework must generate reliable identity estimates. The authors propose C-FINCH, an enhancement of the FINCH hierarchical clustering algorithm. C-FINCH introduces a distance constraint to the clustering process: clusters are only merged if they are "first neighbors" and their feature distance falls below a predefined threshold. This constraint is critical in face recognition to prevent the accidental grouping of different individuals, ensuring higher-quality pseudo-labels for the subsequent adaptation phase.

3. Domain-constrained Federated Learning

The core of the adaptation occurs through federated learning, where the source domain and multiple target "clients" (edge devices) train locally. Instead of sharing images, clients send only their model weights to a central server for aggregation.

To address the massive data imbalance between the source and target domains, the authors introduced the Domain Constraint Loss (DCL). In a standard federated setup, the sheer volume of source data would cause the global model to converge toward source features, effectively ignoring the target domain. DCL regularizes the source domain's local training, forcing it to remain close to the previous global model. This "handicap" prevents the source domain from dominating the weight updates, allowing the target domain's unique characteristics to be meaningfully reflected in the aggregated global model.

Experimental Setup

To evaluate the framework, the authors established FedFR-Bench:

  • Source Domain: A subset of MS-Celeb-1M (MS1M) containing approximately 4.4 million labeled images across 87,000 Caucasian identities.
  • Target Domain: An unlabeled subset of African identities (324,000 images across 7,000 identities), distributed across multiple simulated clients to mimic edge deployment.
  • Evaluation: Performance was benchmarked using the Racial Faces in-the-Wild (RFW) dataset, focusing on verification accuracy and rank-1 identification across different ethnicities.

Results and Discussion

FedFR demonstrated substantial improvements over baseline methods across all tested metrics:

  • Accuracy Gains: On the African target domain, FedFR achieved a verification accuracy boost of 3% to 14% compared to a "Source-Only" model that had not undergone adaptation.
  • Comparison to Centralized Training: Remarkably, FedFR occasionally outperformed the "Merge" model—a theoretical upper bound where all source and target data are centralized and trained together. This suggests that the DCL-regularized federated approach may provide a more robust adaptation mechanism than simple joint training when dealing with domain-specific features.
  • Clustering Efficacy: C-FINCH proved superior to standard clustering algorithms like K-means and DBSCAN. The distance-constrained approach was vital for maintaining the purity of identity clusters in the open-set environment of face recognition.

Conclusion

FedFR represents a significant step forward in making face recognition systems more equitable and privacy-compliant. By treating privacy as a structural constraint rather than an afterthought, the framework enables models to learn from diverse, real-world data without compromising individual security. Future research will focus on addressing scenarios with highly uneven data distributions across clients and expanding the framework to handle multiple target demographics and age groups simultaneously.

Summary updated

BibTeX
@inproceedings{zhuang2022federated,
  author = {Weiming Zhuang and Xin Gan and Xuesen Zhang and Yonggang Wen and Shuai Zhang and Shuai Yi},
  title = {{Federated Unsupervised Domain Adaptation for Face Recognition}},
  booktitle = {ICME},
  year = {2022},
  url = {https://openreview.net/forum?id=7Q4johAYojG},
}
Figure