Improving Fairness via Federated Learning

Yuchen Zeng, Hongxu Chen, Kangwook Lee

TL;DR

This paper demonstrates that federated learning is not just a privacy-preserving convenience, but a mathematical necessity for achieving high model fairness when data is spread across different owners. The authors introduce FedFB, a novel algorithm that bridges the performance gap between standard federated learning and centralized training, matching the accuracy-fairness gold standard while keeping raw data private.

What Problem Does This Paper Address?

As machine learning models are increasingly used for critical decisions like hiring or recidivism prediction, ensuring they are "fair"—meaning they don't discriminate based on sensitive attributes like race or gender—has become paramount. However, a major hurdle arises when the data needed to train these models is decentralized. For example, different hospitals might hold patient data that cannot be pooled due to privacy regulations.

The standard approach to decentralized learning is Federated Learning (FL), where a central server aggregates model updates from clients without ever seeing their raw data. But does FL actually help with fairness? Could we just train fair models locally at each hospital and then average them together (an "Ensemble" approach)? This paper tackles the core question: How can we privately train a globally fair classifier on decentralized data, especially when that data is highly heterogeneous?

Methods

The authors first build a theoretical framework to compare three main strategies:

  1. LFT+Ensemble: Training fair models locally and combining them once. This is the most private but, as the authors prove, the least effective.
  2. LFT+FedAvg: Using the standard Federated Averaging (FedAvg) protocol combined with local fair training.
  3. Centralized Fair Learning (CFL): The "upper bound" where all data is pooled—ideal for performance, but impossible for privacy.

To close the gap between these methods, they propose FedFB (Federated FairBatch). FedFB is based on the state-of-the-art FairBatch algorithm, which achieves fairness by dynamically reweighting training samples from different subgroups.

Figure 1: A high-level illustration of various approaches to fair learning on decentralized data and our contributions. Assuming two data owners, from left to right, we show LFT+Ensemble (Local Fair Training + Ensemble), LFT+FEDAVG (Local Fair Training + FEDAVG), FEDFB (ours), and CFL (Centralized Fair Learning). In LFT+Ensemble, each data owner trains a locally fair model on its own data and we assemble the local models to obtain a global model. LFT+FEDAVG applies FEDAVG together with off-the-shelf fair training algorithms for local training. Our proposed solution FedFB consists of a modified FEDAVG protocol with a custom-designed fair learning algorithm. CFL is the setting where a fair model is trained on the pooled data. In this work, we theoretically characterize the strict ordering between the existing approaches and empirically demonstrate the superior performance of FedFB.

The key innovation in FedFB is a modified communication protocol. In addition to sharing model parameters, clients securely share intermediate "fairness surrogates"—aggregate statistics about how unfair the current model is on their local data. The central server uses these to update global reweighting coefficients, effectively allowing the decentralized system to "mimic" the behavior of a model trained on a single, centralized dataset. To further protect privacy, these fairness statistics can be quantized (e.g., to just 10 bits) with minimal impact on performance.

Datasets

The authors evaluated their approach on several standard benchmarks, split into heterogeneous client partitions:

  • Synthetic Dataset: Gaussian distributions designed to test specific levels of data heterogeneity.
  • Adult: Census data used to predict whether income exceeds $50k/yr (sensitive attributes: gender, race).
  • COMPAS: A dataset for predicting criminal recidivism (sensitive attributes: race, age).
  • Bank: Marketing data for predicting term deposit subscriptions (sensitive attribute: age).

Key Insights and Ideas

  • The "Failure of Ensemble": A crucial "aha moment" is the proof that local fairness does not imply global fairness. Even if every client trains a perfectly fair model on their own data, the simple ensemble of these models can be significantly biased if the underlying data distributions differ across clients.
A toy example showing how an ensemble of locally fair models (blue) fails to be globally fair compared to the optimal classifier (green).
  • Strict Ordering: The authors establish a clear hierarchy of performance: LFT+Ensemble < LFT+FedAvg < CFL. This proves that multi-round federated learning is strictly necessary to boost fairness beyond what simple ensembling can achieve.
  • Mimicry as a Design Principle: The success of FedFB stems from its ability to reconstruct the global fairness landscape by aggregating local surrogates, allowing it to bypass the limitations of standard FedAvg.

Key Results

FedFB consistently outperformed existing decentralized fair learning methods across all tested datasets, often matching the performance of the centralized (non-private) upper bound.

  • Fairness Gains: On the synthetic dataset, FedFB achieved a Demographic Parity (DP) disparity of 0.051, compared to 0.305 for standard FedAvg-based fair training—a massive improvement in fairness with negligible loss in accuracy.
  • Robustness to Heterogeneity: While the performance of other methods degraded as the data across clients became more different, FedFB remained robust, closely tracking the centralized benchmark.
  • Tradeoff Curves: As shown in the tradeoff curves below, FedFB (green) significantly expands the "fairness frontier" compared to ensembling (orange), allowing for models that are both more accurate and more fair.
Figure 5: Accuracy-fairness tradeoff curves of CFL, LFT+FEDAVG, and LFT+Ensemble for two clients cases. As qi denotes the sensitive attribute distribution for client i, |q1 −q0| captures the sensitive attribute distribution’s heterogeneity. The dotted vertical lines describe the lowest DP disparities that can be achieved. LFT+FEDAVG’s maximum fairness is strictly higher than that of LFT+Ensemble but strictly lower than that of CFL. Moreover, the tradeoff curves are strictly ordered in the same order.

Limitations and Future Work

While FedFB is a significant step forward, the authors note several areas for future exploration:

  • Theoretical Completeness: The current theory focuses on the maximum achievable fairness; a full characterization of the two-dimensional accuracy-fairness tradeoff remains an open challenge.
  • Privacy-Fairness-Accuracy Trilemma: While quantization helps, a rigorous three-way theoretical analysis of the tradeoff between privacy, fairness, and accuracy is still needed.
  • Broader Fairness Notions: The current work primarily targets Demographic Parity and Equalized Odds. Extending FedFB to other notions, like proportional fairness, is a promising next step.

Summary updated

BibTeX
@inproceedings{zeng2022improving,
  author = {Yuchen Zeng and Hongxu Chen and Kangwook Lee},
  title = {{Improving Fairness via Federated Learning}},
  booktitle = {International Conference on Learning Representations},
  year = {2022},
  url = {https://openreview.net/forum?id=fwsdscicqUm},
}
Figure