Abstract
Differential privacy (DP) provides robust privacy guarantees for statistical inference, but this can lead to unreliable results and biases in downstream applications. While several noise-aware approaches have been proposed which integrate DP perturbation into the inference, they are limited to specific types of simple probabilistic models. In this work, we propose a novel method for noise-aware approximate Bayesian inference based on stochastic gradient variational inference which can also be applied to high-dimensional and non-conjugate models. We also propose a more accurate evaluation method for noise-aware posteriors. Empirically, our inference method has similar performance to existing methods in the domain where they are applicable. Outside this domain, we obtain accurate coverages on high-dimensional Bayesian linear regression and well-calibrated predictive probabilities on Bayesian logistic regression with the UCI Adult dataset.
Introduction: The Cost of Privacy in Bayesian Inference
Differential Privacy (DP) is the gold standard for protecting individual data in statistical modeling. However, the noise injected by algorithms like DP-Stochastic Gradient Descent (DP-SGD) to mask individual contributions often degrades the quality of uncertainty estimates. In Bayesian inference, we seek a posterior distribution that accurately reflects our uncertainty.
Standard private Variational Inference (VI) methods typically treat DP noise as a nuisance to be ignored, resulting in "noise-unaware" posteriors that are frequently overconfident or biased. While some "noise-aware" methods exist, they are generally restricted to simple, low-dimensional exponential family models and do not scale to the complex models used in modern machine learning.
Methods: Leveraging the Training Trace
The proposed Noise-Aware Differentially Private Variational Inference (NA-DPVI) addresses these limitations by treating the entire training history—the "trace" of parameters and noisy gradients—as a new dataset from which to infer the true posterior.
Gradient Modeling
The core insight is that the "jitter" in the optimizer's path contains information about the underlying loss surface. By assuming the loss function can be approximated by a second-order Taylor expansion near the optimum, the authors model noisy gradients ($g_t$) as a linear function of the parameters ($\phi_t$) plus DP noise: $g_{t+1} \approx \kappa A(\phi_t - \phi^*) + \text{noise}$.
Post-processing for Calibration
Instead of discarding intermediate optimization steps, NA-DPVI uses the trace of $\phi$ and $g$ to perform a second round of Bayesian inference. This step estimates the "true" optimum $\phi^*$ and the Hessian matrix $A$ (which describes the curvature of the loss surface). By combining the uncertainty from the data (captured by VI) with the uncertainty from the DP noise (captured by the gradient model), the final posterior becomes much more representative of the true state of knowledge. This approach scales with the number of parameters and training iterations, making it applicable to high-dimensional problems.
Key Results: Restoring "Honest" Uncertainty
The authors evaluated NA-DPVI against standard DPVI and existing noise-aware baselines across synthetic and real-world datasets, including a 10D Bayesian Linear Regression task and the UCI Adult dataset.
Superior Coverage in High Dimensions
In Bayesian statistics, "coverage" measures how often a credible interval (e.g., 95%) contains the true parameter. Standard DPVI typically exhibits poor coverage because its intervals are too narrow. In the 10D Linear Regression task, NA-DPVI achieved a Root Mean Square Error (RMSE) for coverage nearly 10x lower than the naive DPVI baseline at $\epsilon=0.1$.
As shown in the figure above, NA-DPVI (blue and purple lines) tracks the "Perfect Coverage" diagonal much more closely than the Naive baseline (green) or the Bernstein & Sheldon method (red), which struggles as dimensionality increases.
Better Calibration on Real-World Data
On the UCI Adult dataset, NA-DPVI produced well-calibrated predictive probabilities for Bayesian Logistic Regression. This ensures that when the model predicts an 80% probability of an outcome, that outcome occurs approximately 80% of the time—a vital property for trustworthy and reliable AI systems.
Conclusion and Future Directions
NA-DPVI demonstrates that the noise inherent in private training can be statistically modeled to correct the overconfidence of DP models. While the method significantly improves coverage and calibration, it remains sensitive to hyperparameters like the learning rate and is still subject to the inherent biases of the chosen variational family. Future work aims to extend this framework to even more complex architectures, such as deep neural networks, to provide robust uncertainty estimates for large-scale private models.
Summary updated