Bayesian Nonparametric Federated Learning of Neural Networks

Mikhail Yurochkin, Mayank Agarwal, Soumya Ghosh, Kristjan H. Greenewald, Trong Nghia Hoang, Yasaman Khazaeni

Introduction

Federated Learning (FL) enables training machine learning models on decentralized data without compromising privacy. However, the standard algorithm, Federated Averaging (FedAvg), faces two significant challenges: high communication overhead and the "permutation problem." Because neural networks are permutation invariant, neurons at the same index in different models may represent entirely different features. This typically necessitates a shared random initialization, which is restrictive for combining independently pre-trained "legacy" models.

Probabilistic Federated Neural Matching (PFNM)

To address these issues, the authors propose Probabilistic Federated Neural Matching (PFNM). This framework treats the aggregation of neural network weights as a matching problem governed by a Bayesian nonparametric model, specifically a Beta-Bernoulli Process (BBP).

Conceptual diagram of PFNM: matching and merging neurons from multiple servers into a global aggregate layer.

Instead of naive weight averaging, PFNM identifies similar neurons across local models and merges them. The optimal assignment is found using the Hungarian algorithm. Because the model is nonparametric, the global model's size is not fixed; it grows to accommodate unique local features and shrinks when features are redundant, providing automatic model compression.

Experimental Results

The researchers evaluated PFNM on MNIST and CIFAR-10 datasets under both homogeneous (IID) and heterogeneous (non-IID) data distributions.

Performance of PFNM across different datasets and partitioning strategies, showing test accuracy and model size.

Key Findings

  • Communication Efficiency: PFNM achieves high accuracy with significantly fewer communication rounds. In single-round experiments on MNIST, it reached ~98% accuracy, outperforming FedAvg which struggles without shared initialization.
  • Automatic Compression: PFNM produces global models that are much smaller than traditional ensembles while maintaining comparable accuracy. As shown in the figures, the log(size) of the PFNM model decreases as it merges redundant neurons across batches.
  • Robustness to Heterogeneity: The framework is notably resilient to non-IID data distributions, where local clients possess very different class balances.

Conclusion and Future Work

PFNM offers a flexible, communication-efficient alternative to standard federated learning by decoupling local training from global aggregation. While currently demonstrated on Multi-Layer Perceptrons, future work aims to extend this "matching" logic to more complex architectures like CNNs with skip connections and pooling layers.

Summary updated

BibTeX
@inproceedings{yurochkin2019bayesian,
  author = {Mikhail Yurochkin and Mayank Agarwal and Soumya Ghosh and Kristjan H. Greenewald and Trong Nghia Hoang and Yasaman Khazaeni},
  title = {{Bayesian Nonparametric Federated Learning of Neural Networks}},
  booktitle = {International Conference on Machine Learning},
  year = {2019},
  url = {https://openreview.net/forum?id=ByNUm2-dZr},
}
Figure