Private Posterior distributions from Variational approximations

Vishesh Karwa, Dan Kifer, Aleksandra B. SlavkovicarXiv 2015

Abstract

Privacy preserving mechanisms such as differential privacy inject additional randomness in the form of noise in the data, beyond the sampling mechanism. Ignoring this additional noise can lead to inaccurate and invalid inferences. In this paper, we incorporate the privacy mechanism explicitly into the likelihood function by treating the original data as missing, with an end goal of estimating posterior distributions over model parameters. This leads to a principled way of performing valid statistical inference using private data, however, the corresponding likelihoods are intractable. In this paper, we derive fast and accurate variational approximations to tackle such intractable likelihoods that arise due to privacy. We focus on estimating posterior distributions of parameters of the naive Bayes log-linear model, where the sufficient statistics of this model are shared using a differentially private interface. Using a simulation study, we show that the posterior approximations outperform the naive method of ignoring the noise addition mechanism.

Introduction

Differential privacy (DP) has become the standard for sharing sensitive data while protecting individual privacy. By injecting random noise—often from a Laplace distribution—into query results or summary statistics, DP provides strong mathematical guarantees. However, this noise introduces a significant challenge for statistical inference. Standard tools often fail to account for this extra layer of randomness. Treating noisy, private data as if it were original "clean" data (the "naive" approach) leads to biased estimates and inconsistent results. In high-dimensional contingency tables, noise can even produce logically impossible values (e.g., negative counts), making standard maximum likelihood estimation impossible.

Methodology: Variational Bayes for Private Data

To address the intractability of likelihood functions involving privacy noise, we propose a Variational Bayes (VB) framework. The core idea is to treat the original, unobserved data ($D$) as a latent variable and estimate the model parameters ($\theta$) given only the noisy released data ($Z$).

The Naive Bayes Log-Linear Model

We specifically focus on the Naive Bayes classification model. In this setting, the sufficient statistics are the marginal counts of the data, denoted as $n_{ij}^k$ for each feature $X_k$ and class $Y$. These counts are released using a differentially private interface.

Table 1: Sufficient statistics (counts) for the Naive Bayes model.

The parameters we aim to estimate are the probabilities $p_{ij}^k$, which define the relationship between features and classes in the log-linear model.

Table 2: Parameters of the Naive Bayes log-linear model.

Variational Inference and Optimization

Calculating the exact posterior distribution is computationally prohibitive as it requires summing over all possible original datasets. Instead, we use variational inference to find a simpler distribution that approximates the true posterior by maximizing the Evidence Lower Bound (ELBO).

Key innovations in our optimization process include:

  • Quadratic Bounds: To handle the non-differentiable Laplace noise term, we employ a quadratic bound trick from Minorization-Maximization algorithms, creating a smooth approximation.
  • Interior Point Method: We use a first-order interior point method to ensure that the estimated parameters $p_{ij}^k$ remain on the probability simplex (summing to one) without causing optimization failures.

Experimental Evaluation

We evaluated the VB approach using simulated datasets, allowing for precise control over the ground truth. We varied the sample size ($N$) from 50 to 500 and the privacy budget ($\epsilon$) from 0.0001 (extremely high noise) to 6 (low noise). Synthetic contingency tables were generated based on parameters sampled from Dirichlet priors to test the accuracy of posterior recovery.

Key Results

Our study compared three estimators:

  1. Naive: Ignores the privacy noise mechanism.
  2. VB: The proposed variational approximation.
  3. Bayes: The "gold standard" using original, non-private data.

The results demonstrate that the VB approach consistently achieves lower Mean Squared Error (MSE) than the naive method across all tested privacy levels. The performance gap is most pronounced at low $\epsilon$ values (high noise), where the naive method's error increases dramatically. As the privacy budget increases (less noise), all methods eventually converge as the impact of the privacy mechanism becomes negligible.

Conclusion and Future Work

By modeling privacy noise as part of the data-generating process, we enable robust Bayesian inference on private data. While this work focuses on Naive Bayes, extending these methods to more complex log-linear models presents challenges due to overlapping constraints in higher-order tables. Future research will explore relaxing the "mean-field" independence assumptions in the variational distributions to further improve accuracy and handle more complex dependencies.

Summary updated

BibTeX
@misc{karwa2015private,
  author = {Vishesh Karwa and Dan Kifer and Aleksandra B. Slavkovic},
  title = {{Private Posterior distributions from Variational approximations}},
  year = {2015},
  eprint = {1511.07896},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1511.07896},
}
Figure