Harnessing Heterogeneous Statistical Strength for Personalized Federated Learning via Hierarchical Bayesian Inference

Mahendra Singh Thapa, Rui LiICML 2025

Federated Learning (FL) allows multiple parties to collaboratively train a machine learning model without sharing their raw, sensitive data. However, deploying FL in the real world faces a major hurdle: statistical heterogeneity. Because data varies wildly from client to client (e.g., a hospital in New York versus a rural clinic), standard FL often produces an "average" model that fits no one particularly well.

Existing "Personalized" FL (PFL) methods attempt to solve this by giving each client their own local version of the model. Bayesian approaches to PFL are especially popular because they can quantify uncertainty. Unfortunately, they typically rely on heuristic aggregation—like taking a simple arithmetic mean of client parameters to create a global update. Because model parameters (especially variance) often follow skewed distributions, the mean is a misleading representation. This leads to biased global models that generalize poorly to new clients.

To overcome this, researchers have developed a novel Hierarchical Bayesian Inference framework that moves beyond simple averaging, effectively sharing "statistical strength" across a network while allowing individual models to remain highly specialized.

A Hierarchical Bayesian Approach

Instead of calculating local models and simply averaging them, the proposed framework treats the parameters of the local models as random variables drawn from a higher-level "global" distribution.

Comparison of Bayesian PFL frameworks

Key technical components of this framework include:

  • Hyper-priors: The system specifies a conjugate hyper-prior (a Gaussian for the mean and a Half-Normal for the variance) over the parameters of the personalized posteriors.
  • Joint Inference: Using Stochastic Variational Inference (SVI), the framework jointly optimizes the global posterior (for aggregation) and the personalized posteriors (for local performance).
  • Base-Head Architecture: To balance commonality and individuality, the neural network is split into a "Base" (shared features) and a "Head" (client-specific classification).
  • Shrinkage: Theoretically, the framework performs "shrinkage," where local estimates are pulled toward the global mean. This is especially helpful for clients with very little data, as they can "borrow" information from the rest of the network.

Crucially, the authors prove that several existing state-of-the-art Bayesian PFL methods (like pFedBayes and pFedVEM) are actually just "special cases" of their framework with specific constraints applied.

Key Insights and Performance Gains

The paper's core insight is that simple arithmetic aggregation is a mathematically poor way to combine Bayesian models because it ignores the underlying distribution of the parameters. By using a hierarchical structure, the hyper-prior acts as a natural, principled regularizer. Instead of manually tuning a "personalization vs. globalization" knob, the Bayesian framework handles this trade-off automatically through learned variances.

The framework, dubbed pFedHB (Personalized Federated Hierarchical Bayesian), was evaluated across multiple datasets including Fashion-MNIST, CIFAR-10, CIFAR-100, and Tiny-ImageNet. It consistently outperformed baselines in both global robustness and local accuracy.

Test accuracy over communication rounds
  • Superior Accuracy: On a complex CIFAR-100 task with 50 clients, the global model achieved 56.0% accuracy, compared to 52.8% for the next best Bayesian method (pFedVEM) and 51.7% for standard FedAvg. Local personalized models reached 66.6% accuracy, a massive jump over the ~50-61% seen in competing PFL methods.
  • Rapid Convergence: As seen in the performance curves, the framework reaches high accuracy in significantly fewer communication rounds than baseline methods. This is vital for real-world applications where network bandwidth is expensive.
  • Robustness and Scalability: The method maintained its lead even when scaled up to 1,000 clients and demonstrated superior uncertainty quantification in scenarios with noisy labels.

Limitations and Future Work

While highly effective, the framework does come with computational overhead. Bayesian Neural Networks (BNNs) are more computationally expensive than standard ones; the "full-Bayesian" approach takes about 4x longer to train locally than a standard non-Bayesian model. Additionally, while more principled, the framework still requires tuning regularization coefficients, and excessive regularization can negatively impact performance.

Future work will likely explore more complex hyper-priors or more efficient ways to approximate BNN gradients, which could further reduce the computational burden for edge devices like mobile phones.

Summary updated

BibTeX
@inproceedings{thapa2025harnessing,
  author = {Mahendra Singh Thapa and Rui Li},
  title = {{Harnessing Heterogeneous Statistical Strength for Personalized Federated Learning via Hierarchical Bayesian Inference}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=Zn6hmmBnAa},
}
Figure