Differentially Private Bayesian Inference for Generalized Linear Models

Tejas Kulkarni, Joonas Jälkö, Antti Koskela, Samuel Kaski, Antti Honkela

Introduction

Generalized linear models (GLMs), such as logistic and Poisson regression, are foundational tools in data science, frequently applied to sensitive datasets in fields like medicine and social science. To protect individual privacy, Differential Privacy (DP) is the gold standard, typically achieved by injecting noise into the learning process.

However, applying DP to GLMs presents two major challenges. First, most existing DP methods for GLMs yield only point estimates, failing to quantify model uncertainty—a critical requirement for scientific integrity. Second, unlike simple linear regression, GLMs lack "sufficient statistics" (compact data summaries like means or sums), making traditional Bayesian DP methods difficult to apply. This paper introduces a novel, noise-aware Bayesian inference method that bridges this gap, allowing researchers to quantify uncertainty and determine statistical significance while maintaining strong DP guarantees.

Methodology: A Noise-Aware Bayesian Approach

The authors overcome the "sufficient statistics" gap by combining several mathematical techniques into a cohesive framework:

  • Approximate Sufficient Statistics: Leveraging the PASS-GLM framework, the authors approximate GLMs using low-order polynomials. This allows the dataset to be summarized using a finite number of moments (e.g., means and correlations), which serve as approximate sufficient statistics.
  • Noise-Aware Posterior: Rather than treating DP noise as a nuisance, the method explicitly incorporates the noise distribution into the Bayesian model. The "true" summary statistics are treated as latent (hidden) variables, while the "noisy" statistics are the observed data.
  • Analytical Approximations: To make the mathematics tractable for non-linear models like logistic regression, the authors employ a Taylor series expansion to handle the sigmoid function and Isserlis’ theorem to compute high-order Gaussian moments.
  • Tight Sensitivity Analysis: The authors derive new, tighter bounds for the $L_2$-sensitivity of these summary statistics. Lower sensitivity allows for less noise injection while maintaining the same privacy level, significantly improving accuracy.

Key Insights

The "Pay Once" Advantage

In iterative DP methods like Differentially Private Stochastic Gradient Langevin Dynamics (DP-SGLD), the privacy budget ($\epsilon$) depletes with every iteration. The proposed method only "pays" for privacy once when perturbing the summary statistics. Subsequent Bayesian sampling can run indefinitely without further privacy cost.

Stability over Stochasticity

Standard gradient-based DP methods are highly unstable, often becoming wildly overconfident or underconfident depending on hyperparameters like learning rate and batch size. By relying on summary statistics, this new approach yields a much more stable and reliable posterior distribution.

Bridging the Discriminative-Generative Divide

Regression models typically ignore the distribution of input features ($X$). However, to protect the privacy of $X$, the authors augmented the model with a prior for the inputs, effectively transforming a discriminative task into a partially generative one.

Empirical Results

The approach was evaluated on the UCI Adult dataset (predicting income), the UCI Diabetes dataset, and synthetic data against a known ground truth.

  • High Fidelity: For moderate to large datasets, the private posteriors generated by this method were nearly identical to non-private posteriors, even under strict privacy regimes (e.g., $\epsilon = 0.1$).
  • Statistical Significance: The model successfully identified regression coefficients that were significantly different from zero, matching the conclusions of non-private models in scenarios where competing DP methods failed.
  • Superiority over DP-SGLD: In head-to-head comparisons, the proposed method was significantly less biased and provided much more accurate uncertainty estimates than DP-SGLD, which frequently overestimated uncertainty or failed to converge to the correct mean.

Limitations and Future Directions

The primary limitation of this approach stems from the Taylor series truncation. The approximation is most accurate when the regression coefficients ($\theta$) are relatively small (specifically, $||\theta||_2 < 3$). If the underlying signal is extremely strong, the approximation degrades, potentially leading to underfitting.

Future research directions include developing better priors that eliminate the need for manual truncation bounds, extending the noise-aware framework to more complex models beyond GLMs, and applying these techniques to Federated Learning, where summary statistics are aggregated across distributed devices.

Summary updated

BibTeX
@inproceedings{kulkarni2021differentially,
  author = {Tejas Kulkarni and Joonas Jälkö and Antti Koskela and Samuel Kaski and Antti Honkela},
  title = {{Differentially Private Bayesian Inference for Generalized Linear Models}},
  booktitle = {International Conference on Machine Learning},
  year = {2021},
  url = {https://openreview.net/forum?id=SZ-URUbIx5},
}
Figure