Differentially Private Bayesian Linear Regression

Garrett Bernstein, Daniel R. Sheldon

Linear regression is a cornerstone of data science, but when applied to sensitive human data—such as medical records or social surveys—it risks leaking individual information. Differential Privacy (DP) provides a mathematical framework to mitigate this risk by injecting random noise into computations. However, standard methods for private regression often fail to properly account for this injected noise, leading to overconfident and potentially misleading results.

This paper introduces a "noise-aware" Bayesian linear regression framework. By explicitly modeling the noise injected by privacy mechanisms as part of the statistical inference process, the authors produce posterior distributions that correctly quantify uncertainty, avoiding the overconfidence common in traditional private regression methods.

The Challenge of Private Regression

The standard approach to private linear regression, known as Sufficient Statistic Perturbation (SSP), adds noise to summary statistics (like $X^TX$) and then treats those noisy values as if they were the "true" data.

While this "noise-naive" approach works adequately for massive datasets, the authors demonstrate that for small-to-moderate sample sizes, it systematically underestimates uncertainty. It produces confidence intervals that are far too narrow, leading researchers to be overly certain about potentially noisy results. The core challenge is performing Bayesian inference that "knows" about the privacy noise and adjusts its uncertainty accordingly.

A Noise-Aware Generative Framework

To solve this, the authors propose a noise-aware framework where the privacy mechanism is treated as an explicit layer in the generative model. Instead of ignoring the noise, the model treats the true, clean statistics as latent (hidden) variables.

Basic generative model treating true statistics as latent variables and privacy noise as a likelihood layer.

The core insight is treating the DP noise not as a nuisance to be ignored, but as a known part of the data-generating process. If the exact amount of noise added (the $\epsilon$ parameter) is known, its effect on uncertainty estimates can be mathematically accounted for.

Key technical contributions to make this framework computationally feasible include:

  • Gibbs-SS (Sufficient Statistics-based Inference): Rather than modeling every individual record—which is computationally expensive—this method performs inference directly on the sufficient statistics. It uses a Central Limit Theorem (CLT) approximation to model the distribution of these statistics, decoupling the runtime from the population size ($n$).
  • Variable Augmentation: To handle the Laplace noise typically used in DP, the authors employ a mathematical "trick" representing the Laplace distribution as a scale mixture of normals. This allows them to use standard Gibbs sampling to explore the posterior efficiently.
The Gibbs-SS model utilizing variable augmentation to represent Laplace noise as a scale mixture of normals.
  • Modeling Covariates ($X$): In non-private regression, features ($X$) are usually taken as given. In the private setting, $X$ is also sensitive. The authors propose three ways to handle this: using noisy sample moments, using a generic prior, or using a hierarchical normal prior that is updated during the sampling process.

Key Results and Empirical Validation

The paper evaluates the proposed methods using both synthetic data (to precisely measure calibration) and a real-world Cirrhosis Rate dataset (to stress-test the model in a small-data regime).

  • Superior Calibration: In synthetic tests, the noise-aware methods (Gibbs-SS) remained well-calibrated across all privacy levels ($\epsilon$). A 95% credible interval actually contained the true value 95% of the time. In contrast, the naive method's calibration plummeted as privacy demands increased.
  • Real-World Utility: On the small cirrhosis dataset (46 observations), the noise-aware method achieved nearly the target coverage for 50% and 90% credible intervals. The naive method was drastically worse, providing intervals that were far too small.
  • Scalable Efficiency: While traditional individual-based MCMC methods became prohibitively slow as the number of individuals grew, Gibbs-SS maintained a constant, fast runtime regardless of dataset size.

Limitations and Future Directions

While highly effective, the Gibbs-SS method involves inverting a covariance matrix of the sufficient statistics, resulting in a computational complexity of $O(d^6)$ relative to the number of features ($d$). While fine for $d \approx 100$, it may struggle with very high-dimensional data.

Additionally, the method relies on knowing the second and fourth moments of the features. While the authors provide ways to estimate these privately, further research into "inference over noisy moments" could improve calibration even further. Future work could also compare the quality of point estimates derived from these posteriors against state-of-the-art frequentist DP regression tools.

Summary updated

BibTeX
@inproceedings{bernstein2019differentially,
  author = {Garrett Bernstein and Daniel R. 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