[Paper Review] FedBE: Making Bayesian Model Ensemble Applicable to Federated Learning
FedBE proposes a Bayesian model ensemble-based aggregation method for federated learning that improves robustness under non-i.i.d. data and deep neural networks. By sampling high-quality global models from a distribution fitted to local models and distilling them via knowledge distillation with stochastic weight averaging, FedBE achieves superior accuracy over FedAvg, especially in deep networks and heterogeneous settings.
Federated learning aims to collaboratively train a strong global model by accessing users' locally trained models but not their own data. A crucial step is therefore to aggregate local models into a global model, which has been shown challenging when users have non-i.i.d. data. In this paper, we propose a novel aggregation algorithm named FedBE, which takes a Bayesian inference perspective by sampling higher-quality global models and combining them via Bayesian model Ensemble, leading to much robust aggregation. We show that an effective model distribution can be constructed by simply fitting a Gaussian or Dirichlet distribution to the local models. Our empirical studies validate FedBE's superior performance, especially when users' data are not i.i.d. and when the neural networks go deeper. Moreover, FedBE is compatible with recent efforts in regularizing users' model training, making it an easily applicable module: you only need to replace the aggregation method but leave other parts of your federated learning algorithm intact. Our code is publicly available at https://github.com/hongyouc/FedBE.
Motivation & Objective
- Address the performance degradation of FedAvg in non-i.i.d. data settings where model drift and poor generalization occur.
- Overcome the limitations of simple model averaging by leveraging Bayesian model ensemble to capture uncertainty and improve prediction robustness.
- Enable effective multi-round federated learning by distilling ensemble predictions into a single global model for client reuse.
- Ensure compatibility with existing federated learning frameworks by replacing only the aggregation step without modifying client training procedures.
- Demonstrate robustness to distribution shifts between server unlabeled data and test data, enhancing practical applicability.
Proposed method
- Construct a model distribution by fitting a Gaussian or Dirichlet distribution to local client models, enabling sampling of diverse global model candidates.
- Perform Bayesian model ensemble by aggregating predictions from multiple sampled global models to improve robustness and accuracy.
- Use unlabeled server data to generate pseudo-labels for the ensemble predictions, enabling knowledge distillation into a single global model.
- Apply stochastic weight averaging (SWA) during distillation to prevent overfitting to noisy ensemble predictions and improve generalization.
- Train a student global model using distillation loss, where the ensemble predictions serve as the teacher signal.
- Integrate FedBE into existing FL frameworks by replacing only the aggregation step, preserving client-side training and momentum mechanisms.
Experimental results
Research questions
- RQ1Can Bayesian model ensemble improve model aggregation in federated learning under non-i.i.d. data conditions compared to FedAvg?
- RQ2How does FedBE perform when using deeper neural networks like ResNet, where FedAvg typically degrades?
- RQ3What is the impact of using unlabeled server data for distillation, especially when the data distribution differs from the test data?
- RQ4Can FedBE maintain performance under practical system constraints such as partial client participation and system heterogeneity?
- RQ5How does combining FedBE with existing regularization techniques (e.g., FedProx) affect overall performance?
Key findings
- FedBE outperforms FedAvg by 5.9% accuracy on non-i.i.d. Tiny-ImageNet with ResNet20 (32.4% vs. 35.4%) and by 3.4% on MobileNetV2 (25.5% vs. 27.8%).
- On non-i.i.d. CIFAR-10, FedBE achieves 77.1% accuracy with ResNet20, significantly outperforming FedAvg (69.9%) and FedProx (69.4%).
- FedBE maintains high accuracy even when server unlabeled data are from a different distribution than test data, showing robustness to domain shift.
- In systems with partial participation (10 out of 100 clients per round), FedBE achieves 35.4% accuracy on Tiny-ImageNet (ResNet20), outperforming FedAvg (32.4%).
- With system heterogeneity (varying local training epochs), FedBE achieves 77.1% accuracy on ResNet20 (CIFAR-10), surpassing FedAvg (69.9%) and FedProx (69.4%).
- When combined with FedProx, FedBE further improves performance, achieving 77.5% on ResNet20 (CIFAR-10), indicating compatibility and synergy with existing regularization methods.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.