English

Federated Learning with Fair Averaging

Machine Learning 2021-06-17 v5

Abstract

Fairness has emerged as a critical problem in federated learning (FL). In this work, we identify a cause of unfairness in FL -- conflicting gradients with large differences in the magnitudes. To address this issue, we propose the federated fair averaging (FedFV) algorithm to mitigate potential conflicts among clients before averaging their gradients. We first use the cosine similarity to detect gradient conflicts, and then iteratively eliminate such conflicts by modifying both the direction and the magnitude of the gradients. We further show the theoretical foundation of FedFV to mitigate the issue conflicting gradients and converge to Pareto stationary solutions. Extensive experiments on a suite of federated datasets confirm that FedFV compares favorably against state-of-the-art methods in terms of fairness, accuracy and efficiency. The source code is available at https://github.com/WwZzz/easyFL.

Keywords

Cite

@article{arxiv.2104.14937,
  title  = {Federated Learning with Fair Averaging},
  author = {Zheng Wang and Xiaoliang Fan and Jianzhong Qi and Chenglu Wen and Cheng Wang and Rongshan Yu},
  journal= {arXiv preprint arXiv:2104.14937},
  year   = {2021}
}

Comments

Accepted by IJCAI2021

R2 v1 2026-06-24T01:40:08.915Z