Differentially Private Bayesian Linear Regression

Garrett Bernstein, Daniel Sheldon

TL;DR

While existing differentially private linear regression methods focus on producing privacy-preserving point estimates, they fail to accurately quantify uncertainty. This paper introduces "noise-aware" Bayesian linear regression methods that account for the noise injected by privacy mechanisms, delivering properly calibrated posterior distributions without sacrificing computational efficiency.

What Problem Does This Paper Address?

When working with sensitive human-sourced data (e.g., medical records or social science surveys), differential privacy (DP) offers a rigorous mathematical framework to protect individual privacy. A common approach in private linear regression is sufficient statistic perturbation (SSP), where noise (typically Laplace noise) is added to the data's sufficient statistics before releasing them to the public.

While this works well for frequentist point estimates, a major gap arises when trying to perform Bayesian inference. If a modeler naively plugs these noisy statistics into standard conjugate update formulas, the model systematically underestimates uncertainty. This leads to overconfident, miscalibrated posteriors, especially in small-to-moderate sample sizes.

Furthermore, standard regression treats covariates (the independent variables) as fixed constants and conditions on them. In a privacy-preserving setting, however, covariates contain sensitive information and cannot be directly conditioned on; they must be treated as latent variables, introducing significant modeling and computational challenges.

Figure 1: Private regression model.

Methods

The authors propose two main noise-aware inference strategies to correctly model the privacy mechanism:

  1. Individual-Based Inference (MCMC-Ind): This approach treats the true covariates of each individual as latent variables. Using general-purpose Markov Chain Monte Carlo (MCMC) via the No-U-Turn Sampler (NUTS), it samples the parameters and latent variables directly. While accurate, its runtime scales linearly with the population size ($n$), making it slow for large datasets.
  2. Sufficient Statistics-Based Inference (Gibbs-SS): To bypass scaling issues, this method marginalizes out individual data points and performs inference directly on the latent sufficient statistics ($s$). Since the exact distribution is intractable, the authors use a Central Limit Theorem (CLT) normal approximation. To handle the combination of normal data noise and Laplace privacy noise, they employ a variable augmentation technique (representing the Laplace distribution as a scale mixture of normals), enabling an efficient Gibbs sampler.

Because Gibbs-SS requires the second and fourth moments of the covariates, the authors propose three ways to handle them:

  • Gibbs-SS-Noisy: Privately estimating the moments from the data by splitting the privacy budget.
  • Gibbs-SS-Prior: Deriving moments from a generic, user-defined data prior.
  • Gibbs-SS-Update: Using a hierarchical normal prior and updating the moments dynamically within the sampler.
Alternative configurations for marginalizing out individual variables in the hierarchical model.

Datasets

The methods were evaluated using two primary data sources:

  • Synthetic Data: Generated directly from the hierarchical model to rigorously test calibration using the Cook et al. (2006) validation method.
  • Real-World Dataset: A dataset measuring the effect of drinking rates on cirrhosis rates ($n=46$), with both covariates and responses scaled to $[0, 1]$.

Key Insights and Ideas

  • The "Naive" Penalty: Ignoring privacy noise doesn't just slightly skew results—it drastically destroys the calibration of your uncertainty metrics unless your sample size is massive.
  • Privacy Forces Generative Modeling: In private regression, you can no longer be purely discriminative. Because you cannot condition on covariates, you are forced to model the distribution of the features ($X$) itself.
  • Population-Independent Scaling: By shifting the inference target from individual data points to the sufficient statistics, Gibbs-SS achieves a runtime that is completely independent of the population size $n$.

Key Results

  • Calibration: On synthetic data, all noise-aware methods remained well-calibrated (low Kolmogorov-Smirnov statistic) across varying privacy budgets ($\epsilon$) and sample sizes ($n$), whereas the naive method showed severe miscalibration.
  • Runtime Efficiency: As shown in the paper's experiments, MCMC-Ind becomes prohibitively slow as $n$ grows past 100. In contrast, the Gibbs-SS variants maintain a flat, constant runtime regardless of population size.
  • Real-World Utility: On the cirrhosis dataset, Gibbs-SS-Noisy achieved predictive interval coverage close to the non-private baseline, while the naive approach performed drastically worse, proving that noise-awareness is vital for real-world decision-making.
Predictive posterior coverage on real-world data, demonstrating that the noise-aware method closely tracks the non-private baseline.

Limitations and Future Work

A minor limitation of the highly practical Gibbs-SS-Noisy method is that it splits the privacy budget between releasing the sufficient statistics and releasing the data moments. Furthermore, it does not explicitly perform inference over the noise injected into those released moments, which can lead to slight miscalibrations in tight privacy regimes. The authors note that extending the noise-aware inference framework to fully account for noisy moment estimates is a promising direction for future work.

Summary updated

BibTeX
@inproceedings{bernstein2019differentially,
  author = {Garrett Bernstein and Daniel Sheldon},
  title = {{Differentially Private Bayesian Linear Regression}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2019},
  url = {https://openreview.net/forum?id=pOHA_XkoOUL},
}
Figure