Differentially private partitioned variational inference

Mikko A. Heikkilä, Matthew Ashman, Siddharth Swaroop, Richard E. Turner, Antti Honkela

Abstract

This paper introduces DP-PVI, a general framework for performing differentially private Bayesian inference in a federated learning (FL) setting. By adapting Partitioned Variational Inference (PVI), the authors achieve high-quality uncertainty estimates and model accuracy with orders of magnitude less communication than standard private methods. The framework provides rigorous formal privacy guarantees for data subjects while maintaining the benefits of Bayesian learning in distributed environments.

Introduction

Modern machine learning often relies on sensitive data distributed across many devices, such as medical records in different hospitals. While Federated Learning (FL) allows models to be trained without moving data, it does not inherently guarantee privacy against reconstruction attacks. Differential Privacy (DP) provides a mathematical standard for privacy, but combining it with Bayesian Learning—which is essential for uncertainty estimation—in a distributed setting is difficult. Existing methods often suffer from high communication costs or low accuracy. DP-PVI addresses these challenges by making private, Bayesian federated learning both accurate and communication-efficient.

Methods

The framework is built upon Partitioned Variational Inference (PVI), where a global model is decomposed into local factors updated independently by clients. The authors propose three primary methods for injecting DP noise into this process:

  1. DP Optimisation: Clients utilize DP-Stochastic Gradient Descent (DP-SGD) for local training. Privacy is guaranteed independently, making this method most effective for clients with large local datasets.
  2. Local Averaging: Clients shard their local data, train models on each shard, and average the results before transmission. This helps mitigate the impact of DP noise.
  3. Virtual PVI Clients: A sophisticated sharding approach where a physical client simulates multiple "virtual" clients.

Methods like Local Averaging and Virtual PVI Clients can leverage secure aggregation primitives. If updates are summed through a trusted process, the total noise added to the global model is significantly reduced, improving overall utility.

Comparison of DP-PVI noise scaling and aggregator benefits across different implementation strategies.

Key Insights

  • Communication Efficiency: Unlike standard DP Variational Inference which requires gradient communication at every step, DP-PVI communicates only after full local optimization, reducing rounds by 100x to 1000x.
  • Joint Privacy Benefits: When using a trusted aggregator, the noise standard deviation added by a single client scales down by $1/\sqrt{M}$ (where $M$ is the number of clients), making privacy "cheaper" as participation increases.
  • Stability and Robustness: Virtual PVI clients were found to be more robust and less prone to divergence than simple local averaging.
  • Conjugacy Advantages: For conjugate exponential family models, sharding data for privacy does not degrade the underlying model's accuracy.

Experimental Results

The framework was evaluated using the UCI Adult and MIMIC-III datasets across balanced and unbalanced client distributions.

  • Performance: DP-PVI achieved performance comparable to a centralized "Global VI" baseline while maintaining extreme communication efficiency.
  • Uncertainty Quality: It consistently outperformed baselines like Bayesian Committee Machines, particularly in log-likelihood metrics.
  • Model Suitability: DP Optimisation is preferred for complex models like Bayesian Neural Networks (BNNs) with sufficient local data, whereas Virtual Clients with secure aggregation excel for simpler models like Logistic Regression.

Conclusion

While DP-PVI offers a significant step forward, challenges remain. Update-perturbation methods (Local Averaging/Virtual Clients) can struggle with complex, non-convex models like deep BNNs. Future work will focus on stabilizing these methods for deep learning and integrating specific secure multi-party computation or shuffling implementations to move beyond the trusted aggregator assumption.

Summary updated

BibTeX
@article{heikkila2023differentially,
  author = {Mikko A. Heikkilä and Matthew Ashman and Siddharth Swaroop and Richard E. Turner and Antti Honkela},
  title = {{Differentially private partitioned variational inference}},
  journal = {Trans. Mach. Learn. Res.},
  year = {2023},
  url = {https://openreview.net/forum?id=6wX8Kl2rpZ},
}
Figure