The cost of local and global fairness in Federated Learning

Yuying Duan, Gelei Xu, Yiyu Shi, Michael Lemmon

Abstract

With the emerging application of Federated Learning (FL) in finance, hiring and healthcare, FL models are regulated to be fair, preventing disparities with respect to legally protected attributes such as race or gender. Two concepts of fairness are important in FL: global and local fairness. Global fairness addresses the disparity across the entire population and local fairness is concerned with the disparity within each client. Prior fair FL frameworks have improved either global or local fairness without considering both. Furthermore, while the majority of studies on fair FL focuses on binary settings, many real-world applications are multi-class problems. This paper proposes a framework that investigates the minimum accuracy lost for enforcing a specified level of global and local fairness in multi-class FL settings. Our framework leads to a simple post-processing algorithm that derives fair outcome predictors from the Bayesian optimal score functions. Experimental results show that our algorithm outperforms the current state of the art (SOTA) with regard to the accuracy-fairness tradeoffs, computational and communication costs.

Introduction

As Federated Learning (FL) moves into regulated sectors like healthcare and finance, ensuring the fairness of decentralized models has become a primary concern. However, current research faces three significant hurdles. First, there is a frequent conflict between local fairness (fairness within a specific client's data) and global fairness (fairness across the entire population). Optimizing for one often inadvertently worsens the other. Second, most existing literature is restricted to binary classification, whereas real-world diagnostic or financial tasks are inherently multi-class. Finally, current "in-processing" methods—which attempt to enforce fairness during the training phase—are often computationally expensive and lack strong convergence guarantees.

This paper introduces a novel post-processing framework designed to address these gaps simultaneously. By treating fairness as a constrained optimization problem applied to a pre-trained model, we provide a solution that is both mathematically grounded and computationally efficient.

Methodology

Our approach shifts the fairness intervention from the training phase to a post-processing phase. We start with a pre-trained model (e.g., from standard FedAvg) and adjust its final predictions to satisfy specific fairness budgets ($\epsilon$).

Key Technical Innovations

  1. ROC Surface Approximation: To handle multi-class problems, we define the "Region Under the ROC Surface" (RUS). Because calculating this surface is complex, we use a simplex approximation (a geometric inner approximation) to make the feasible set of predictors manageable.
  2. Linear Programming (LP): By utilizing the simplex approximation, we transform the fairness-accuracy tradeoff into a Linear Program. This allows us to find the optimal predictor that minimizes accuracy loss while strictly adhering to both local and global fairness constraints.
  3. Communication Efficiency: The framework operates in two steps. Clients send summary statistics to a central server, which solves the LP and returns a set of parameters ($\beta$) used to adjust local predictions. This avoids the iterative overhead of in-processing methods.
Comparison of FL fairness frameworks across fairness types, classification tasks, and algorithmic approaches.

Experimental Results

We evaluated our framework against several state-of-the-art (SOTA) baselines, including FairFed, FCFL, and EquiFL, using three real-world datasets: Adult (income prediction), ACSPublicCoverage (health insurance), and HM10000 (multi-class skin lesion diagnosis).

Fairness and Accuracy Tradeoffs

Our method consistently achieved superior fairness metrics with minimal impact on accuracy. For instance, in the PublicCoverage dataset, we reduced global disparity by up to 98.4% compared to standard FedAvg. Crucially, our framework is the only one that allows for the simultaneous control of both local and global disparity in a multi-class setting.

Evaluation of local/global disparity and average accuracy across three benchmark datasets.

Efficiency Gains

Beyond accuracy, the post-processing nature of our algorithm offers significant practical advantages:

  • Communication: Reduced communication costs by approximately 20% compared to the fastest SOTA baselines.
  • Computation: Achieved a 33% reduction in computational time, as the fairness correction does not require re-training the underlying neural networks.
  • Privacy: The framework remains effective when combined with Differential Privacy (DP), ensuring that fairness does not come at the cost of data security.

Conclusion

This work demonstrates that enforcing both local and global fairness in multi-class Federated Learning does not require complex, iterative in-processing. By utilizing a post-processing framework based on ROC surface approximation and linear programming, we can achieve state-of-the-art fairness-accuracy tradeoffs with significantly lower overhead. Future work will explore extending this framework to individual fairness and further refining the ROC surface approximations to move closer to the theoretical optimum.

Summary updated

BibTeX
@inproceedings{duan2025cost,
  author = {Yuying Duan and Gelei Xu and Yiyu Shi and Michael Lemmon},
  title = {{The cost of local and global fairness in Federated Learning}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2025},
  url = {https://openreview.net/forum?id=7lqwDUNjdG},
}
Figure