FedFA: Federated Learning with Feature Anchors to Align Features and Classifiers for Heterogeneous Data

Tailin Zhou, Jun Zhang, Danny H. K. Tsang
11/17/2022
cs.LG
federated

Official code: TailinZhou/FedFA (21 stars, Jupyter Notebook, last commit 2023-10-21).

Abstract

Federated learning allows multiple clients to collaboratively train a model without exchanging their data, thus preserving data privacy. Unfortunately, it suffers significant performance degradation due to heterogeneous data at clients.

Show full abstract

Common solutions involve designing an auxiliary loss to regularize weight divergence or feature inconsistency during local training. However, we discover that these approaches fall short of the expected performance because they ignore the existence of a vicious cycle between feature inconsistency and classifier divergence across clients. This vicious cycle causes client models to be updated in inconsistent feature spaces with more diverged classifiers. To break the vicious cycle, we propose a novel framework named Federated learning with Feature Anchors (FedFA). FedFA utilizes feature anchors to align features and calibrate classifiers across clients simultaneously. This enables client models to be updated in a shared feature space with consistent classifiers during local training. Theoretically, we analyze the non-convex convergence rate of FedFA. We also demonstrate that the integration of feature alignment and classifier calibration in FedFA brings a virtuous cycle between feature and classifier updates, which breaks the vicious cycle existing in current approaches. Extensive experiments show that FedFA significantly outperforms existing approaches on various classification datasets under label distribution skew and feature distribution skew.

View on arXivView PDF

Code Implementations(1)

TailinZhou/FedFAOfficial100%

The open-souce code of FedFA: Federated Learning with Feature Anchors to Align Features and Classifiers for Heterogeneous Data, accepted by IEEE TMC.

214Jupyter Notebook, PythonOct 20, 20233 years ago

Similar Papers

Cite this paper

@article{zhou2022fedfa,
  title  = {FedFA: Federated Learning with Feature Anchors to Align Features and Classifiers for Heterogeneous Data},
  author = {Tailin Zhou and Jun Zhang and Danny H. K. Tsang},
  year   = {2022},
  eprint = {2211.09299},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2211.09299}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2211.09299.svg)](https://codeofpaper.com/paper/2211.09299)

Discussion