Machine learningMachine learningMachine learningAlgorithm

Bayesian Federated Learning

Also known as: BFL, probabilistic federated learning, Bayesian nonparametric federated learning, federated Bayesian inference

OriginatorYurochkin, M. et al.; McMahan, H. B. et al. (foundational federated learning)Year2019Sources2Related methods6

Bayesian Federated Learning combines federated learning — where model training is distributed across multiple clients without sharing raw data — with Bayesian inference, so that each client maintains a posterior distribution over model parameters rather than a single point estimate. This yields principled uncertainty quantification and more robust model aggregation across heterogeneous, privacy-preserving data silos.

Key highlights

  • Principled uncertainty quantification: the model outputs calibrated confidence intervals rather than just point predictions.
  • Evidence-weighted aggregation naturally down-weights data-sparse or low-quality clients without ad-hoc tuning.
  • Privacy-preserving: only posterior summaries (not raw data) are communicated between clients and server.
  • Robust to heterogeneous client data distributions (non-IID settings) because the Bayesian framework accommodates different local likelihoods.
  • Bayesian nonparametric variants (PFNM) allow each client to have differently-sized models, enabling heterogeneous architectures.

Intuition

This section is available to Pro members. Upgrade to Pro

How it works

This section is available to Pro members. Upgrade to Pro

When to use it

Use Bayesian Federated Learning when data are distributed across multiple clients or institutions that cannot share raw records (medical, legal, financial settings), when calibrated predictive uncertainty is required for downstream decisions, or when client datasets are heterogeneous in size and distribution and you want aggregation to weight evidence appropriately. Prefer it over standard federated averaging when model uncertainty matters, when some clients are likely unreliable or adversarial, or when you need to detect out-of-distribution inputs at deployment. Do NOT use it when clients are numerous (thousands), communication budgets are very tight, and posteriors cannot be summarised cheaply; or when labels are fully observed at a central location and federated constraints do not apply — plain Bayesian inference on pooled data is simpler and more powerful in that case.

Strengths & limitations

Strengths
  • Principled uncertainty quantification: the model outputs calibrated confidence intervals rather than just point predictions.
  • Evidence-weighted aggregation naturally down-weights data-sparse or low-quality clients without ad-hoc tuning.
  • Privacy-preserving: only posterior summaries (not raw data) are communicated between clients and server.
  • Robust to heterogeneous client data distributions (non-IID settings) because the Bayesian framework accommodates different local likelihoods.
  • Bayesian nonparametric variants (PFNM) allow each client to have differently-sized models, enabling heterogeneous architectures.
Limitations
  • Computing exact local posteriors is intractable for large neural networks; approximations (variational inference, Laplace) introduce bias.
  • Communication cost per round is higher than FedAvg when posterior summaries (full covariance matrices) are transmitted.
  • Scalability to thousands of clients is limited; most published results involve tens to a few hundred participants.
  • Requires choosing a prior that is appropriate for all clients; a misspecified global prior can degrade all local posteriors.

Common pitfalls

This section is available to Pro members. Upgrade to Pro

Applications

This section is available to Pro members. Upgrade to Pro

Frequently asked

How does Bayesian Federated Learning differ from standard FedAvg?

FedAvg aggregates point-estimate weight vectors by averaging. Bayesian FL aggregates posterior distributions, which carry uncertainty information. The result is a global model that can express confidence levels and that weights contributions by statistical evidence rather than treating all clients equally.

Is Bayesian Federated Learning feasible for deep neural networks?

Yes, but with approximations. Exact Bayesian inference is intractable for deep nets, so practitioners use Laplace approximations, mean-field variational inference, or MC Dropout. These approximations introduce bias but are computationally manageable and still substantially outperform point estimates in uncertainty calibration.

How many clients are needed?

Published results typically involve 10 to a few hundred clients. The Bayesian framework provides its clearest advantage in heterogeneous, small-client-count settings. With thousands of clients, communication overhead and approximation quality become bottlenecks.

What output does the method produce?

The global posterior over model parameters. In practice this is usually summarised as predictive means and variances (or credible intervals) for each test point. Some implementations also provide client-level posteriors for personalized prediction.

Can this method defend against adversarial or poisoned clients?

Bayesian aggregation is more naturally robust than simple averaging because data-sparse or anomalous clients contribute posteriors with high variance, which are down-weighted in precision-weighted aggregation. However, it is not a complete defense against sophisticated attacks and should be combined with explicit Byzantine-robust aggregation rules when adversarial clients are expected.

Sources

  1. 1.
    Yurochkin, M., Agarwal, M., Ghosh, S., Greenewald, K., Hoang, N., & Khazaeni, Y. (2019). Bayesian Nonparametric Federated Learning of Neural Networks. Proceedings of the 36th International Conference on Machine Learning (ICML 2019), PMLR 97, 7101–7110.
  2. 2.
    Corinzia, L., & Buhmann, J. M. (2019). Variational Federated Multi-Task Learning. arXiv preprint arXiv:1906.06268.

You have read it. What now?

Cite this page

ScholarGate. (2026, June 3). Bayesian Federated Learning. ScholarGate. https://scholargate.app/machine-learning/bayesian-federated-learning

Bayesian Federated Learning | ScholarGate