Differentially Private Federated Variational Inference

Mrinank Sharma, Michael J. Hutchinson, Siddharth Swaroop, Antti Honkela, Richard E. TurnerarXiv 2019

Abstract

This paper introduces DP-PVI, a novel framework that bridges the gap between Federated Learning (FL), Differential Privacy (DP), and Bayesian Variational Inference. By adapting the Partitioned Variational Inference (PVI) algorithm to incorporate DP-compliant gradients, the authors demonstrate the feasibility of training private, uncertainty-aware models on distributed, non-IID data. Evaluations on benchmark datasets show that DP-PVI achieves competitive performance compared to non-private baselines while providing robust uncertainty quantification.

Introduction

Modern machine learning is increasingly constrained by a "privacy-utility-distribution" trilemma. Federated Learning (FL) enables training on decentralized data without raw data transfer, yet models remain vulnerable to privacy leaks. Differential Privacy (DP) offers rigorous mathematical guarantees against such leaks but often degrades model utility. Furthermore, standard FL algorithms like Federated Averaging struggle with non-IID (independent and identically distributed) data and lack inherent uncertainty estimates.

Bayesian Inference provides a principled way to quantify model uncertainty—essential for high-stakes applications like healthcare—but its implementation in a private, federated, and heterogeneous environment is computationally challenging. This work addresses these gaps by proposing DP-PVI.

Methodology: DP-PVI

The proposed framework builds upon Partitioned Variational Inference (PVI). Unlike standard Variational Inference, which approximates a global posterior, PVI decomposes the problem such that each client maintains a local "likelihood factor" representing its contribution to the global model.

Federated learning architecture with local privacy barriers and an untrustworthy parameter server.

The core algorithm, DP-PVI, introduces several key modifications:

  1. Local Bayesian Updates: Clients perform local optimization to update their likelihood factors.
  2. Differentially Private Gradients: Privacy is enforced by clipping gradients and adding Gaussian noise during local updates, similar to DP-SGD.
  3. Privacy Accounting: The "Moments Accountant" technique is employed to track the cumulative privacy budget ($\epsilon$) across training iterations.
  4. Communication Efficiency: Clients transmit only the change in their local factors to a central server, which aggregates these updates to refine the global model.

Experimental Setup

The framework was evaluated using the UCI Adult dataset for binary classification. To simulate realistic federated environments, the researchers introduced a distribution scheme controlled by two parameters:

  • $\rho$ (Size Imbalance): Determines the data volume disparity between "large" and "small" clients.
  • $\kappa$ (Class Imbalance): Controls label skewness across clients (e.g., varying positive case proportions from 11% to 96%).

Key Results and Insights

DP-PVI demonstrates remarkable robustness in challenging non-IID scenarios where traditional global Variational Inference (Global VI) often fails.

Performance of DP-PVI in terms of test accuracy and log likelihood across communication rounds and privacy budgets.

Performance and Privacy Trade-offs

On highly unbalanced data (Dataset C), DP-PVI achieved 81.83% accuracy with a strict privacy budget of $\epsilon = 0.5$, compared to 85.21% for a non-private centralized baseline. In contrast, Global VI performance collapsed to approximately 54% accuracy under similar conditions.

Communication Efficiency

DP-PVI requires significantly fewer communication rounds than Global VI to reach peak accuracy, making it well-suited for bandwidth-constrained federated settings.

The "Small Client" Challenge

A notable observation was the "small client trap" in asynchronous settings. Clients with smaller datasets exhaust their privacy budgets more quickly, leading to early dropout. This can cause minor performance dips as the model loses access to the unique data distributions held by these clients.

Conclusion and Future Work

DP-PVI successfully integrates privacy, uncertainty, and federated learning. While demonstrated on logistic regression, future work aims to scale this approach to deep neural networks. Additionally, transitioning from example-level to client-level DP and developing adaptive privacy budgeting strategies are identified as critical next steps for enhancing the practical deployment of private federated Bayesian models.

Summary updated

BibTeX
@misc{sharma2019differentially,
  author = {Mrinank Sharma and Michael J. Hutchinson and Siddharth Swaroop and Antti Honkela and Richard E. Turner},
  title = {{Differentially Private Federated Variational Inference}},
  year = {2019},
  eprint = {1911.10563},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1911.10563},
}
Figure