Differentially Private Regression and Classification with Sparse Gaussian Processes

Michael Thomas Smith, Mauricio A. Álvarez, Neil D. LawrenceJMLR 2019

Abstract

Gaussian Processes (GPs) are powerful non-parametric models, but their "memory-based" nature—where predictions are directly tied to training data—poses significant privacy risks. This paper introduces a robust framework for applying Differential Privacy (DP) to GPs for both regression and classification. By leveraging sparse GP approximations through inducing points, the proposed method mitigates the "outlier problem" where isolated data points typically force excessive privacy noise. Our approach demonstrates accurate, private predictions even in high-dimensional spaces and provides a mechanism for private hyperparameter tuning.

Introduction

Gaussian Processes are widely used for their ability to provide well-calibrated uncertainty estimates. However, because the posterior predictive distribution is a direct function of the training labels, releasing a trained GP model can inadvertently leak sensitive information. While the "cloaking method" was previously proposed to provide DP guarantees for GPs by perturbing the posterior mean, it suffers from three critical flaws: high sensitivity to outliers, a collapse in utility as dimensionality increases, and a lack of support for classification tasks.

This research addresses these gaps by introducing sparse approximations as a privacy-preserving mechanism. By forcing the model to communicate through a limited set of "inducing points," we can bound the sensitivity of the model to any single data point, thereby reducing the amount of noise required to satisfy DP requirements.

Methodology

Sparse Approximations as a Privacy Filter

The core innovation lies in the use of inducing points. Instead of allowing every training point to influence the prediction directly, the model uses a small set of points (placed via k-means clustering on public inputs) to represent the data distribution. This architecture acts as a buffer; the influence of an outlier is diluted as it is aggregated into the inducing points. This significantly lowers the global sensitivity of the posterior mean, allowing for much higher utility under the same privacy budget (ε).

Differentially Private Classification

To extend DP-GPs to classification, the authors adapt the Laplace approximation. The posterior mode is found iteratively, but each iteration incurs a privacy cost. The researchers discovered a crucial trade-off: performing only a single iteration of optimization often yields better results than multiple iterations. The "privacy budget" cost of additional iterations typically outweighs the benefit of a more precise fit, as the added noise required for multiple steps degrades the final model more than a slightly sub-optimal mode.

Private Hyperparameter Selection

Hyperparameter tuning (e.g., selecting kernel lengthscales) often requires looking at the private data. To maintain DP, the authors employ the exponential mechanism. By using cross-validation and a scoring function based on Sum of Squared Errors (SSE), the framework can select effective parameters from a candidate set without leaking the underlying private labels.

Experimental Results

Regression Performance

On the !Kung San dataset (predicting height from age and weight), the sparse DP-GP approach significantly outperformed the standard cloaking method. In 1D tasks, the sparse method achieved an RMSE of 9.9 compared to 13.3 for the standard method. In 2D tasks, the gap widened (10.2 RMSE vs. 17.2 RMSE), demonstrating that the sparse approach is far more resilient to the noise spikes typically caused by outliers in higher dimensions.

High-Dimensional Classification

The method was tested on a downsampled MNIST dataset (225 dimensions). The results indicated that accuracy peaks at a specific number of inducing points (approximately 21). Interestingly, adding more inducing points beyond this threshold actually hurt performance; more points increase the model's sensitivity to individual pixels, necessitating more DP noise and thus reducing overall accuracy.

Hyperparameter Tuning

The private hyperparameter selection method proved highly effective. On the !Kung dataset, it identified configurations with an RMSE of 19.02cm, a vast improvement over the mean of all tested configurations (153.81cm), confirming that privacy-preserving tuning is a viable alternative to manual or non-private selection.

Discussion and Insights

  • The Role of Lengthscales: In non-private settings, short lengthscales capture fine details. In DP settings, longer lengthscales are often preferable as they average over more data points, diluting the impact of individuals and requiring less noise.
  • Failure of Variable Lengthscales: Attempts to use non-stationary kernels to handle outliers failed. Increasing lengthscales near outliers actually decoupled them from the rest of the data, increasing their individual sensitivity and requiring even more noise to protect.

Conclusion

By integrating sparse approximations with the cloaking method, this framework enables the use of Gaussian Processes in privacy-sensitive applications that were previously infeasible. Future work remains to address input privacy (where $X$ locations are also sensitive) and to develop more sophisticated, private strategies for inducing point placement that account for label distribution.

Summary updated

BibTeX
@article{smith2019differentially,
  author = {Michael Thomas Smith and Mauricio A. Álvarez and Neil D. Lawrence},
  title = {{Differentially Private Regression and Classification with Sparse Gaussian Processes}},
  journal = {J. Mach. Learn. Res.},
  year = {2019},
}
Figure