TL;DR
GenFL introduces a novel framework for training Stochastic Neural Networks in federated learning settings using PAC-Bayesian objectives. It delivers competitive predictive performance while providing theoretically sound, numerically nonvacuous generalization guarantees—meaning the mathematical error bounds are tight enough to be practically useful—all without compromising data privacy.
What Problem Does This Paper Address?
Federated Learning (FL) allows decentralized devices (nodes) to collaboratively train a machine learning model without sharing their raw, private datasets. While FL has excelled in practice, providing rigorous theoretical guarantees about how well these models generalize to unseen data remains a significant challenge.
Existing theoretical guarantees often yield "vacuous" bounds—mathematical statements that are technically true but practically useless (e.g., proving that a model's error rate is guaranteed to be less than 100%). Furthermore, data heterogeneity across different users complicates the deployment of a single global model. This paper addresses the gap by deriving tight, computable, and nonvacuous generalization bounds for both standard synchronous federated learning and personalized federated learning (PFL) settings.
Methods
The authors propose GenFL (Generalisation-driven Federated Learning), which leverages the PAC-Bayes framework. Instead of training a single set of fixed weights, GenFL trains a distribution over neural network weights (Stochastic Neural Networks), modeling them as diagonal Gaussians.
Key methodological innovations include:
- Reparameterization Trick: Nodes use this technique locally to optimize both the mean and the variance of their weight distributions via gradient descent.
- FL-SOB (Synchronous Objectives): For scenarios where all nodes share a common goal, clients optimize a local proxy of a global generalization bound. Crucially, the regularization term (the KL divergence from the prior) is scaled by the total network data size ($m$) rather than the local dataset size ($m_i$), prioritizing local data fitting while relying on server aggregation to act as a global regularizer.
- PFL (Personalised Federated Learning): For heterogeneous data, a two-phase algorithm is introduced. In Phase 1, nodes sacrifice half of their data to collaboratively learn a shared prior distribution. In Phase 2, each node personalizes this prior using their remaining local data.
- Computable Guarantees: The authors use Monte Carlo sampling combined with root-finding techniques for the inverted Bernoulli KL divergence ($kl^{-1}$) to compute actual numerical upper bounds on the true risk.
Datasets
The framework was evaluated using two standard computer vision benchmarks, adapted for distributed environments:
- MNIST: Evaluated under an i.i.d. split (100 users, each with 540 images evenly distributed across classes) and a non-i.i.d. split (sorting by label so each user sees at most 2 distinct digits).
- CIFAR-10: Used to evaluate more complex architectures, specifically 4-layer and 9-layer Convolutional Neural Networks (CNNet4l and CNNet9l).
Key Insights and Ideas
- The Price of Privacy: The generalization bounds obtained via GenFL are slightly looser than those from a centralized "batch" setting (where all data is pooled together). This discrepancy explicitly quantifies the statistical cost of keeping data localized to preserve privacy.
- Data-Dependent Priors are Essential: Relying on a standard random prior results in looser bounds. Splitting the data to first "learn" a good prior before optimizing the final model drastically tightens the generalization bounds, keeping them nonvacuous even on tougher datasets like CIFAR-10.
- Local vs. Global Weighting: Forcing local nodes to weigh their empirical data heavily during optimization allows the central server's averaging mechanism to naturally handle the global regularization step.
Key Results
- MNIST (Synchronous): GenFL with a learned prior achieved a test error of 3.0% and a generalization bound of 3.9%. This is remarkably close to the centralized batch baseline, which achieved a 2.0% test error and a 2.8% bound.
- MNIST (Personalized): In the highly challenging non-i.i.d. setting, the personalized approach yielded a mean test error of 4.4% and a mean generalization bound of 11.1% across 100 users.
- CIFAR-10: Using a 9-layer CNN with a learned prior, GenFL achieved a test error of 30.5% and a nonvacuous generalization bound of 34.5% (compared to the centralized batch baseline of 21.4% error and 25.0% bound).
Limitations and Future Work
- Local i.i.d. Assumption: The current theoretical proofs still assume that each individual client's local dataset is sampled i.i.d. from their respective local data distribution.
- Future Directions: The authors aim to relax this assumption in future work by exploring variance-bounded PAC-Bayes techniques that can handle fully non-i.i.d. local data. Additionally, they note that maintaining a tight global generalization guarantee specifically within personalized FL settings remains an open challenge.
Summary updated