Private Approximations of the 2nd-Moment Matrix Using Existing Techniques in Linear Regression

Or SheffetarXiv 2015

Abstract

This paper explores the challenge of releasing a differentially private (DP) version of a dataset's 2nd-moment matrix, a critical component for linear regression and Principal Component Analysis (PCA). We introduce three algorithms—based on the Johnson-Lindenstrauss transform, Wishart noise, and Bayesian posterior sampling—that ensure the output matrix is positive-definite. Our results demonstrate that these methods provide stable and accurate approximations, particularly in complex multi-regression scenarios where traditional Gaussian noise addition fails.

Introduction

The 2nd-moment matrix ($D^T D$) is a fundamental statistical tool, yet its direct release poses significant privacy risks. Differential Privacy (DP) offers a solution, but standard approaches like the "Analyze Gauss" algorithm often produce non-positive-definite matrices, rendering them unusable for standard statistical solvers. Furthermore, performing multiple regressions on the same data typically requires repeated noise addition, which rapidly degrades utility. This paper addresses these issues by proposing methods that preserve the matrix's mathematical structure while maintaining privacy.

Proposed Differentially Private Algorithms

We present three techniques that leverage existing linear regression literature to ensure positive-definiteness:

  1. JL-Transform + Ridge Regression: By combining the Johnson-Lindenstrauss (JL) transform with a regularization term ($w \cdot I$), we shield individual data points. This approach effectively performs Ridge Regression, using regularization to boost the matrix's singular values and satisfy privacy requirements.
  2. Additive Wishart Noise: This method adds noise sampled from a Wishart distribution rather than a standard Gaussian distribution. Because Wishart matrices are inherently positive-definite, the resulting approximation is guaranteed to be valid for further computation.
  3. Inverse-Wishart Posterior Sampling: Adopting a Bayesian perspective, this algorithm samples a single matrix from a posterior distribution. Privacy is maintained by ensuring the prior distribution is sufficiently broad (high variance), limiting the influence of any single data point.

Experimental Evaluation

The proposed methods were evaluated using synthetic datasets designed to simulate single-regression and complex multiple-regression environments with highly correlated features. The study examined the scaling behavior of these algorithms as the number of samples ($n$) increased from $2^{12}$ to $2^{27}$.

Key Results and Discussion

A central insight of this work is that the regularization used to prevent overfitting in Ridge Regression is functionally equivalent to the padding required for private random projections. Preserving the positive-definite structure of the matrix proved more critical for utility than minimizing raw noise.

Error convergence for $\epsilon = 0.5$ as a function of $\log_2(n)$.

As shown in the figure above for $\epsilon = 0.5$, the proposed methods demonstrate strong convergence as the dataset size grows. While the baseline (black line) remains stable, the JL and Wishart-based methods (red and blue lines) achieve significantly lower error as $n$ increases beyond $2^{20}$.

Error convergence for a stricter privacy budget of $\epsilon = 0.05$.

Under stricter privacy constraints ($\epsilon = 0.05$), the convergence requires a much larger volume of data. As seen in the plot above, the error for the proposed methods remains elevated until $n$ reaches approximately $2^{22}$, highlighting the trade-off between privacy guarantees and the data scale required for utility. Among the tested techniques, sampling from the inverse-Wishart distribution consistently provided the best performance.

Conclusion

The integration of differential privacy with established statistical techniques like Ridge Regression and Bayesian inference provides a robust framework for releasing sensitive 2nd-moment matrices. While future work is needed to better handle high correlations and sparse regression (Lasso), these methods represent a significant step forward in providing stable, mathematically valid private approximations for complex data analysis.

Summary updated

BibTeX
@misc{sheffet2015private,
  author = {Or Sheffet},
  title = {{Private Approximations of the 2nd-Moment Matrix Using Existing Techniques in Linear Regression}},
  year = {2015},
  eprint = {1507.00056},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1507.00056},
}
Figure