Federated Learning with Relative Fairness

Shogo Nakakita, Tatsuya Kaneko, Shinya Takamaeda-Yamazaki, Masaaki ImaizumiarXiv 2024 · OpenReview

Abstract

Federated Learning (FL) faces significant challenges in ensuring equitable performance across heterogeneous client populations. While traditional "fair" FL methods prioritize absolute fairness—raising the performance floor for the worst-off clients—this approach often fails to address the persistent performance gap between the best and worst participants. This paper introduces a novel framework for relative fairness, aiming to minimize the discrepancy between client groups. We propose a Relative Unfairness Index, a majorization-based optimization technique, and the Scaff-PD-IA algorithm. Our results on MNIST and CIFAR-10 demonstrate that Scaff-PD-IA not only reduces performance inequality but also enhances overall model accuracy and robustness.

Introduction: The Case for Relative Fairness

Federated Learning enables collaborative model training without centralizing sensitive data. However, the inherent data heterogeneity (Non-IID) across devices often leads to models that favor majority groups or specific data distributions, leaving minority subgroups with subpar performance.

Existing literature primarily focuses on absolute fairness, which seeks to guarantee a minimum level of utility for every participant. While beneficial, this focus can inadvertently maintain or even widen the "digital divide" if the highest-performing clients continue to see disproportionate gains.

Conceptual difference between absolute and relative fairness. While absolute fairness raises the floor, relative fairness minimizes the gap between the best and worst performers.

As illustrated in Figure 1, absolute fairness (pink) ensures no client falls below a certain threshold, yet a significant variance in performance remains. In contrast, relative fairness (blue) explicitly targets the variance, resulting in a more uniform and equitable distribution of performance across the entire network. This paper formalizes this objective by shifting the optimization goal from maximizing the minimum performance to minimizing the performance ratio between groups.

Methodology: Optimizing for Equity

To implement relative fairness, the authors develop a mathematical toolkit designed for stable and efficient optimization in decentralized settings.

1. The Relative Unfairness Index

The paper defines a generalized fairness index based on the ratio of the average loss of the worst-performing clients to that of the best-performing clients. This index is flexible enough to encompass classic welfare metrics like the Atkinson or Palma indices, providing a rigorous foundation for measuring inequality in FL.

2. Majorization and the Integrated Ambiguity Set

Directly optimizing a ratio is numerically unstable and computationally expensive. To overcome this, the authors employ a majorization technique, approximating the ratio-based index as a difference between two weighted sums of losses. This transformation allows the problem to be framed as a distributionally robust optimization (DRO) minimax problem.

Central to this approach is the Integrated Ambiguity Set, denoted as $\Lambda_\phi(A, B)$. This geometric construct represents the space of possible client weightings that the optimizer considers.

Geometric representation of the Integrated Ambiguity Set $\Lambda_\phi$ for different fairness coefficients $\phi$.

As shown in Figure 2, the parameter $\phi$ controls the "skewness" or aggressiveness of the fairness constraint. A higher $\phi$ expands the set, forcing the model to account for a wider range of potential performance disparities.

3. The Scaff-PD-IA Algorithm

The proposed algorithm, Scaff-PD-IA (Scaffold-Primal-Dual with Integrated Ambiguity), builds upon the Scaffold framework to handle the complexities of relative fairness. It uses controlled averaging to stabilize training, which is particularly crucial when the "difference-based" objective introduces potentially negative weights—a scenario where the model must effectively "subtract" the performance of the best clients to minimize the gap.

Experimental Evaluation

The framework was rigorously evaluated using MNIST and CIFAR-10 datasets, partitioned using a Dirichlet distribution to simulate highly non-IID client data. A smaller-scale study using the Penguins dataset for linear regression was also conducted.

Key Results

The Scaff-PD-IA algorithm was compared against several baselines, including standard FL (FedAvg, Scaffold) and existing fair methods (SAFL, DRFA).

  • Fairness Metrics: Scaff-PD-IA consistently achieved the lowest Relative Unfairness Index and Gini coefficient. On CIFAR-10, it maintained a significantly tighter spread between the "Worst-20%" and "Best-20%" client groups compared to traditional DRO methods.
  • Accuracy Improvements: Surprisingly, prioritizing relative fairness did not come at the cost of average performance. On MNIST, Scaff-PD-IA achieved an average validation accuracy of 90.05%, surpassing all baselines (with SAFL following at 89.76%).

Discussion and Insights

The research yields several critical insights for the FL community. First, the "Ratio-to-Difference Trick" proves that complex fairness objectives can be made tractable through clever mathematical approximation. Second, the experiments suggest that fairness can drive accuracy. By forcing the model to bridge the performance gap, it learns more robust, generalized representations that benefit the entire population.

However, the authors identify a Skewness Trade-off: while increasing the fairness coefficient $\phi$ reduces inequality, it can theoretically impact the model's generalization error on unseen data. To mitigate this, they provide an analytic formula for adaptively tuning $\phi$ during training.

Limitations and Future Directions

While promising, the current work has limitations. The convergence proofs rely on a "large parameter space" assumption and focus on strongly convex loss functions. Extending these theoretical guarantees to the non-convex landscapes typical of deep learning remains an open challenge. Additionally, the interaction between relative fairness constraints and Differential Privacy (DP) mechanisms warrants further investigation.

Summary updated

BibTeX
@misc{nakakita2024federated,
  author = {Shogo Nakakita and Tatsuya Kaneko and Shinya Takamaeda-Yamazaki and Masaaki Imaizumi},
  title = {{Federated Learning with Relative Fairness}},
  year = {2024},
  eprint = {2411.01161},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2411.01161},
}
Figure