Proportional Fairness in Federated Learning

Guojun Zhang, Saber Malekmohammadi, Xi Chen, Yaoliang Yu

TL;DR

Standard Federated Learning (FL) algorithms often force a harsh trade-off between maximizing average client performance and protecting the worst-off clients. This paper introduces Proportional Fairness (PF) to FL via a novel algorithm called PropFair, which leverages game theory's Nash bargaining solution to optimize relative performance changes. The result is a highly effective framework that protects minority clients without severely degrading the performance of the rest of the network.

What Problem Does This Paper Address?

In Federated Learning, a diverse set of clients (e.g., mobile devices, hospitals, or financial institutions) collaboratively train a shared global model without exchanging raw data. Because these clients have highly heterogeneous data distributions and resources, the global model rarely performs equally well for everyone.

Existing approaches to fairness generally fall into two extreme camps:

  1. Utilitarianism (e.g., FedAvg): Aims to maximize the average performance across all clients. This often neglects minority clients with unique data distributions.
  2. Egalitarianism (e.g., Agnostic FL / AFL): Focuses entirely on the worst-performing client. However, this can drastically degrade the experience of better-off clients and is highly sensitive to outlier clients with very few samples, leading to poor generalization.

While intermediate methods like $q$-FFL and TERM exist, they lack a clear, intuitive foundational principle. This paper addresses the gap by introducing a fairness metric based on relative rather than absolute performance changes, ensuring a mathematically principled balance between the average and worst-case scenarios.

Methods

The authors reframe fairness from a utility perspective rather than a loss-minimization perspective. By defining a client's utility as $u_i = M - f_i(\theta)$ (where $f_i(\theta)$ is the training loss and $M$ is a baseline hyperparameter), they connect proportional fairness to the classical Nash bargaining solution from cooperative game theory.

Figure 1: Figure inspired by Nash (1950). U: the feasible set of utilities. Blue line: maximizers of the total utility, on which the Nash bargaining solution u∗stands out as the fairest.

To find the proportionally fair solution, PropFair maximizes the product of client utilities, which translates to minimizing the objective: $$\min_{\theta} -\sum_i p_i \log(M - f_i(\theta))$$

Key Algorithmic Innovations:

  • Huberization: If a client's loss $f_i$ approaches or exceeds $M$, the gradient can blow up or the logarithm becomes undefined. The authors introduce a "huberized" robust log function that smoothly transitions to a linear function when losses are high, ensuring stable optimization.
  • Unified Dual Framework: The paper provides a elegant dual view using Kolmogorov’s generalized mean, showing how popular fair FL algorithms can be interpreted as standard FedAvg but with dynamically adjusted client weights ($\lambda$).
A summary of how different FL algorithms map to specific fairness principles and dual constraints.

Datasets

The authors evaluated PropFair against standard baselines using four benchmark datasets:

  • CIFAR-10 & CIFAR-100: Image classification datasets partitioned among 10 clients using a symmetric Dirichlet distribution ($\beta = 0.5$ and $0.1$, respectively) to simulate high data heterogeneity.
  • TinyImageNet: A larger vision dataset split among 20 clients ($\beta = 0.05$).
  • Shakespeare: A text dataset for next-character prediction, naturally partitioned by speaking roles across 20 clients to reflect a realistic non-IID scenario.

Key Insights and Ideas

  • Relative vs. Absolute Change: Proportional fairness dictates that if you switch from an optimal solution to another, the percentage gain of one client cannot exceed the percentage loss of another. This aligns closely with real-world human intuition (e.g., economics and telecommunications).
  • Implicit Adaptive Learning Rates: Differentiating the PropFair objective reveals that the gradient step size is scaled by $\frac{1}{M - f_i}$. This means worse-off clients (high loss) automatically receive a larger effective learning rate to move aggressively, while well-performing clients slow down to "wait" for others.
  • Robustness to Outliers: Unlike Egalitarian methods (AFL) that can be derailed by a single client with a handful of noisy outlier samples, PropFair scales client influence by their sample size fraction ($p_i = n_i/N$), preventing data-poor clients from sabotaging the global model.

Key Results

Through extensive benchmarking, PropFair consistently achieved the best balance between average performance and worst-case performance:

  • CIFAR-10: PropFair achieved the highest mean accuracy ($64.75\%$) and significantly outperformed FedAvg on the worst 10% of clients ($58.14\%$ vs $53.49\%$).
  • CIFAR-100 & TinyImageNet: PropFair achieved state-of-the-art performance for the worst 10% of clients while remaining highly competitive on average accuracy, outperforming strict egalitarian methods like AFL.
  • Fine-Tuning Stability: When a model pretrained with PropFair was fine-tuned using other baseline algorithms, the proportional fairness metric degraded, confirming that PropFair successfully finds a unique, stable game-theoretic equilibrium.

Limitations and Future Work

  • Hyperparameter Sensitivity: The algorithm introduces two new hyperparameters: the baseline utility $M$ and the Huber threshold $\epsilon$. While the authors provide a practical "rule of thumb" for tuning them, it still requires empirical grid searching.
  • Orthogonal Fairness Notions: This work focuses purely on performance parity across clients. Integrating general machine learning fairness constraints—such as demographic parity or equalized odds—remains an open challenge in FL due to strict client privacy constraints.

Summary updated

Abstract

With the increasingly broad deployment of federated learning (FL) systems in the real world, it is critical but challenging to ensure fairness in FL, i.e. reasonably satisfactory performances for each of the numerous diverse clients. In this work, we introduce and study a new fairness notion in FL, called proportional fairness (PF), which is based on the relative change of each client's performance. From its connection with the bargaining games, we propose PropFair, a novel and easy-to-implement algorithm for finding proportionally fair solutions in FL and study its convergence properties. Through extensive experiments on vision and language datasets, we demonstrate that PropFair can approximately find PF solutions, and it achieves a good balance between the average performances of all clients and of the worst 10% clients. Our code is available at \url{https://github.com/huawei-noah/Federated-Learning/tree/main/FairFL}.
BibTeX
@article{zhang2023proportional,
  author = {Guojun Zhang and Saber Malekmohammadi and Xi Chen and Yaoliang Yu},
  title = {{Proportional Fairness in Federated Learning}},
  journal = {Trans. Mach. Learn. Res.},
  year = {2023},
  url = {https://openreview.net/forum?id=ivqPhU84wm},
}
Figure