On the Theory and Practice of Privacy-Preserving Bayesian Data Analysis

James R. Foulds, Joseph Geumlek, Max Welling, Kamalika Chaudhuri

Introduction

Machine learning models trained via Bayesian inference are increasingly deployed in privacy-sensitive domains, such as medical informatics and personalized education. A significant theoretical breakthrough in this field was the discovery of the One Posterior Sample (OPS) approach. This method posits that under specific conditions, simply drawing a single sample from a Bayesian posterior distribution satisfies differential privacy "for free" via the exponential mechanism. However, while theoretically elegant, OPS faces substantial hurdles in practical application, particularly regarding data efficiency and computational feasibility in Markov Chain Monte Carlo (MCMC) settings.

This paper identifies the gaps between OPS theory and practice and proposes a simpler, more robust alternative: adding Laplace noise directly to the sufficient statistics of the data before performing inference. This approach is shown to be asymptotically efficient and significantly more practical for complex models like Hidden Markov Models (HMMs).

The Limitations of One Posterior Sample (OPS)

The authors highlight three primary issues with the OPS approach:

  1. Data Inefficiency: OPS suffers from poor Asymptotic Relative Efficiency (ARE). Even as the dataset size ($N$) approaches infinity, the OPS posterior remains artificially flattened (high temperature) to maintain privacy, preventing it from ever fully converging to the true, sharp posterior.
  2. MCMC Budget Constraints: In practice, exact posterior sampling is rarely possible, necessitating approximate methods like MCMC. Using OPS within a Gibbs sampler requires a portion of the privacy budget ($\epsilon$) to be spent on every single update step, leading to rapid budget exhaustion before the model can converge.
  3. Sensitivity Management: OPS requires manual truncation of parameter spaces to keep mathematical sensitivities bounded, adding complexity to model design.
Figure 1: Comparison of posterior distributions. The OPS approach (blue) remains significantly flatter and less accurate compared to the Laplace mechanism (grey lines) which clusters around the true posterior (red).

The Laplace Alternative

Instead of privatizing the sampling process, the proposed method privatizes the data summaries. For distributions in the exponential family, the data interacts with the model solely through sufficient statistics (e.g., counts or sums).

The algorithm proceeds in two steps:

  1. Upfront Noise Injection: Calculate the true sufficient statistics from the private data and add Laplace noise to them to satisfy differential privacy.
  2. Post-Processing Inference: Because differential privacy is immune to post-processing, standard Bayesian inference—including thousands of MCMC steps—can be performed on these noisy statistics without further depleting the privacy budget.

Key Results and Insights

Asymptotic Efficiency

The authors mathematically prove that as $N$ grows, the Laplace mechanism's posterior converges to the true posterior. Its ARE is 2 for sampling (matching non-private sampling) and 1 for the mean. In contrast, OPS is permanently handicapped by an ARE of $1+T$ (where $T \ge 1$).

Figure 2: L1 error for posterior samples as a function of data points. The Laplace mechanism (red) converges toward the non-private baseline (blue) as N increases, while the OPS/Exponential mechanism (green) plateaus.

Empirical Performance

In a Beta-Bernoulli coin-flip simulation, OPS only outperformed the Laplace mechanism when the dataset was extremely small ($N \approx 10$). As the dataset grew, the Laplace mechanism's error plummeted toward the non-private baseline, while the OPS error plateaued.

On real-world data, specifically the Wikileaks Iraq and Afghanistan War Logs, the Laplace-based HMM consistently achieved better held-out log-likelihoods than OPS. This was particularly evident in high-privacy (low $\epsilon$) regimes and on the larger Iraq dataset. Furthermore, the injected noise in the Laplace method acted as a natural regularizer; while the non-private model overfit the data into 10 states, the privatized model collapsed the data into 2 or 3 highly interpretable states.

Conclusion

By shifting the privacy intervention from the sampling process to the sufficient statistics, the Laplace mechanism makes Bayesian MCMC viable for large-scale, sensitive datasets. It offers a superior balance of theoretical efficiency and practical utility compared to the OPS approach, providing a clear path forward for privacy-preserving Bayesian data analysis.

Summary updated

BibTeX
@inproceedings{foulds2016theory,
  author = {James R. Foulds and Joseph Geumlek and Max Welling and Kamalika Chaudhuri},
  title = {{On the Theory and Practice of Privacy-Preserving Bayesian Data Analysis}},
  booktitle = {Conference on Uncertainty in Artificial Intelligence},
  year = {2016},
}
Figure