Overview
This paper reframes Federated Learning (FL) not as a distributed optimization problem, but as a distributed Bayesian inference problem. By applying a scalable version of Expectation Propagation (FedEP), the authors enable decentralized clients to iteratively refine a global posterior distribution, resulting in faster convergence, higher accuracy, and better-calibrated models compared to standard methods like FedAvg.
What Problem Does This Paper Address?
The standard approach to Federated Learning, FedAvg, treats training as an optimization task: find the single set of parameters that minimizes a global loss function. However, when data is highly "non-IID" (heterogeneous across different users), local updates can "drift" away from the global optimum, leading to sub-optimal performance.
A recent alternative, FedPA, treats FL as a Bayesian inference problem where the goal is to find a posterior distribution of parameters. While FedPA is a step forward, it assumes clients can perform inference independently. In reality, a client’s local update should be informed by what the rest of the network has already learned. This paper addresses the challenge of making Expectation Propagation (EP)—a classic but historically hard-to-scale Bayesian technique—work for modern, high-dimensional deep learning models with thousands of clients.
Methods: Federated Expectation Propagation (FedEP)
The authors introduce FedEP. The core idea is that the global posterior is a product of a prior and several "local factors" (one for each client).
Key technical contributions include:
- The Cavity Distribution: Unlike previous methods, when a client performs local inference, it uses a "cavity distribution"—essentially the current global model minus that client's previous contribution. This prevents the model from "overcounting" local data and keeps updates grounded in the global context.
- Scalable Inference Techniques: To handle millions of parameters, they explore four ways for clients to approximate the posterior:
- SG-MCMC: Using stochastic gradients to sample the parameter space.
- Scaled Identity Covariance: A simplified approach that treats uncertainty as a single scalar per layer, drastically reducing communication costs.
- Laplace Approximation: Using the curvature (Hessian/Fisher information) of the loss surface.
- Natural Gradient Variational Inference (NGVI): Using the geometry of the distribution to speed up convergence.
- FedSEP (Stateless EP): A variant designed for "stateless" clients (common in mobile edge computing) who might only participate in a single round of training.
- Adaptive Damping: They show that using adaptive optimizers (like Adam) at the server level can be mathematically interpreted as "damping" in the EP framework, which stabilizes training.
Datasets
The authors evaluated FedEP on three standard federated benchmarks:
- CIFAR-100: Image classification using a ResNet-18 (11.2M parameters) across 500 clients.
- StackOverflow: A massive-scale language task (Tag Prediction) using a linear model (5.0M parameters) across over 342,000 clients.
- EMNIST-62: Character recognition using a CNN (1.2M parameters) across 3,400 clients.
Key Insights and Ideas
- Inference > Optimization: By treating the model as a distribution rather than a point estimate, the system naturally handles data heterogeneity better.
- The Power of Simplicity: Surprisingly, the Scaled Identity Covariance method—the simplest version of their algorithm—performed remarkably well. It suggests that in very high dimensions, capturing the magnitude of uncertainty is often more important than capturing the complex correlations between every single parameter.
- EP Scales Better than Expected: While EP was traditionally limited to small models and few clients, this paper proves it can handle "modern-scale" FL (millions of parameters and hundreds of thousands of clients).
- Better Calibration: Because FedEP is Bayesian, the resulting models aren't just more accurate; they are "better calibrated," meaning the model's confidence scores more accurately reflect its actual likelihood of being correct.
Key Results
Accuracy comparison showing FedEP variants outperforming FedAvg and FedPA over training rounds. Source, p. 8
- Accuracy Boost: On CIFAR-100, FedEP reached 50.7% accuracy, significantly outperforming FedAvg (46.2%) and FedPA (48.4%).
- Faster Convergence: FedEP reached a 45% accuracy threshold on CIFAR-100 in nearly half the rounds required by FedAvg (473 rounds vs. 911 rounds).
- Massive Scale Success: On the StackOverflow dataset, the stateless version (FedSEP) outperformed baselines across all metrics (Precision, Recall, and F1-score), proving the method works even when clients don't maintain a local state.
- Uncertainty Quantification: FedEP reduced the Expected Calibration Error (ECE) by a factor of 3 to 4 compared to FedAvg, making the models much more reliable for real-world deployment.
Limitations and Future Work
- Memory Requirements: The "stateful" version of FedEP requires clients to store their local contribution, which might be a burden for memory-constrained devices.
- Compute Overhead: Techniques like NGVI and Laplace approximation require calculating Fisher information, which is more computationally expensive than standard SGD.
- Communication: While Scaled Identity is efficient, other versions require sending diagonal covariance vectors, doubling the communication traffic per round.
- Theory Gap: While the empirical results are strong, the authors note that the theoretical convergence guarantees for EP in these complex, non-convex settings remain an open research question.
Summary updated