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.
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.
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