NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

FedNP: Towards Non-IID Federated Learning via Federated Neural Propagation

Xueyang Wu, Hengguan Huang, Youlong Ding, Hao Wang, Ye Wang, Qian Xu

Abstract

Federated Learning (FL) often struggles with non-IID (Independent and Identically Distributed) data across clients, leading to local model drift and poor global performance. We present Federated Neural Propagation (FedNP), a novel Bayesian framework that explicitly estimates the global data distribution to regularize local training. By employing a sampling-free, end-to-end differentiable version of Expectation Propagation, FedNP provides local models with a "global view," preventing overfitting to biased local datasets. Experimental results across image classification and speech recognition tasks demonstrate that FedNP significantly outperforms standard baselines like FedAvg.

Introduction

Federated Learning (FL) enables multiple decentralized clients to collaboratively train a shared model while keeping their raw data private. The standard algorithm, FedAvg, aggregates local model updates by simple averaging. However, this approach frequently breaks down in real-world scenarios where data is non-IID. For instance, different mobile users may have vastly different photo libraries or speech patterns.

When local models are trained on such biased data, they tend to diverge toward local optima that do not represent the global distribution. Averaging these divergent models often results in a global model with poor generalization. While various regularization techniques have been proposed, they often fail to capture the underlying latent structure of the data across the entire federation.

Methodology: Federated Neural Propagation

FedNP addresses the non-IID challenge by treating the estimation of the global data distribution as an auxiliary task during local training.

Bayesian Reformulation

Instead of merely averaging weights, FedNP adopts a Bayesian perspective to infer a latent global data distribution $p(z|X)$. This allows the system to maintain a probabilistic representation of the data structure across all clients.

Probabilistic graphical model of the FedNP framework.

Neural Expectation Propagation (EP)

To make this Bayesian approach computationally feasible, the authors introduce Neural Expectation Propagation. Traditional EP is a message-passing algorithm for approximating complex distributions but is typically too slow for deep learning. FedNP reformulates EP to be:

  • Sampling-free: Avoiding expensive Monte Carlo methods.
  • End-to-end differentiable: Allowing integration with standard gradient-based optimization.
  • Analytically Updated: The framework provides closed-form updates for the mean and variance of the global distribution, reducing complexity from $O(NK)$ to $O(K)$, where $K$ is the number of clients.

Global View Regularization

FedNP utilizes Natural Parameter Networks (NPN) to map the estimated global data distribution to a global model distribution. This distribution acts as a regularizer for the local loss function, forcing local models to remain consistent with the broader "global view" of the data.

Experimental Evaluation

The effectiveness of FedNP was evaluated across three distinct scenarios: toy regression, image classification, and real-world speech recognition.

Toy Regression Analysis

In a polynomial curve-fitting task, three clients were provided with data from disjoint segments of the x-axis. As shown in the figure below, while FedAvg fails to reconstruct the underlying curve (producing near-random predictions on unseen segments), FedNP successfully recovers the ground-truth polynomial by leveraging its estimated global distribution.

Comparison of FedNP and FedAvg on a toy regression task with non-IID data. (a) Ground truth data distribution. (b) FedAvg results showing significant divergence. (c) FedNP results showing successful curve reconstruction. (d) The estimated global model distribution in FedNP.

Image Classification and Speech Recognition

On standard benchmarks like CIFAR-100 and TinyImageNet (partitioned via Dirichlet distribution), FedNP achieved a ~2% absolute accuracy improvement over FedAvg.

The most striking results came from the CHiME-5 dataset, a challenging conversational speech recognition task. Because different recording sessions involve different environments and speakers, the data is naturally non-IID. FedNP reduced the Word Error Rate (WER) to 64.30%, a 4.56% absolute reduction compared to FedAvg, demonstrating its robustness in high-dimensional, real-world settings.

Conclusion

FedNP provides a principled Bayesian solution to the non-IID problem in Federated Learning. By efficiently approximating the global data distribution through Neural Expectation Propagation, it prevents local models from "sinking" into biased local distributions. Future work may extend this framework to unsupervised learning and incorporate formal privacy guarantees like Differential Privacy to further protect the joint modeling process.

Summary updated

BibTeX
@inproceedings{wu2023fednp,
  author = {Xueyang Wu and Hengguan Huang and Youlong Ding and Hao Wang and Ye Wang and Qian Xu},
  title = {{FedNP: Towards Non-IID Federated Learning via Federated Neural Propagation}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.1609/aaai.v37i9.26237},
}
Figure