FedBN: Federated Learning on Non-IID Features via Local Batch Normalization

Xiaoxiao Li, Meirui Jiang, Xiaofei Zhang, Michael Kamp, Qi Dou
2/15/2021
cs.LG

Official code: med-air/FedBN (272 stars, last commit 2025-11-13). 1 more implementation below.

Abstract

The emerging paradigm of federated learning (FL) strives to enable collaborative training of deep models on the network edge without centrally aggregating raw data and hence improving data privacy. In most cases, the assumption of independent and identically distributed samples across local clients does not hold for federated learning setups. Under this setting, neural network training performance may vary significantly according to the data distribution and even hurt training convergence. Most of the previous work has focused on a difference in the distribution of labels or client shifts. Unlike those settings, we address an important problem of FL, e.g., different scanners/sensors in medical imaging, different scenery distribution in autonomous driving (highway vs. city), where local clients store examples with different distributions compared to other clients, which we denote as feature shift non-iid. In this work, we propose an effective method that uses local batch normalization to alleviate the feature shift before averaging models. The resulting scheme, called FedBN, outperforms both classical FedAvg, as well as the state-of-the-art for non-iid data (FedProx) on our extensive experiments. These empirical results are supported by a convergence analysis that shows in a simplified setting that FedBN has a faster convergence rate than FedAvg. Code is available at https://github.com/med-air/FedBN.

View on arXivView PDF

Code Implementations(2)

med-air/FedBNOfficial100%

[ICLR'21] FedBN: Federated Learning on Non-IID Features via Local Batch Normalization

27243PythonJan 29, 202111 months ago
flwrlabs/flowerCommunity100%
PyTorchApache-2.0

Flower: A Friendly Federated AI Framework

7,1731,240C++, CSSFeb 17, 20205 months agoApache-2.0
aiandroidartificial-intelligencecppdeep-learning+15 more

Similar Papers

Cite this paper

@article{li2021fedbn,
  title  = {FedBN: Federated Learning on Non-IID Features via Local Batch Normalization},
  author = {Xiaoxiao Li and Meirui Jiang and Xiaofei Zhang and Michael Kamp and Qi Dou},
  year   = {2021},
  eprint = {2102.07623},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2102.07623}
}

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/2102.07623.svg)](https://codeofpaper.com/paper/2102.07623)

Discussion