Abstract: We present a sample- and time-efficient differentially private algorithm for ordinary least squares, with error that depends linearly on the dimension and is independent of the condition number of $X^\top X$, where $X$ is the design matrix. All prior private algorithms for this task require either $d^{3/2}$ examples, error growing polynomially with the condition number, or exponential time. Our near-optimal accuracy guarantee holds for any dataset with bounded statistical leverage and bounded residuals. Technically, we build on the approach of Brown et al. (2023) for private mean estimation, adding scaled noise to a carefully designed stable nonprivate estimator of the empirical regression vector.
Introduction
Ordinary Least Squares (OLS) regression is a fundamental tool in data science, essential for tasks ranging from causal inference to trend forecasting. However, making OLS differentially private (DP) is notoriously difficult because the standard OLS solution is highly sensitive to individual data points. A single outlier can drastically shift the regression line, requiring the addition of massive amounts of noise to maintain privacy, which in turn destroys the model's utility.
Prior attempts to solve DP-OLS faced a difficult "trilemma." Researchers typically had to sacrifice one of three critical properties: optimal sample scaling (requiring $d^{3/2}$ samples instead of the ideal $d$), robustness to data geometry (error growing with the "condition number" of the data), or computational efficiency (algorithms requiring exponential time). This paper introduces ISSP (InSufficient Statistics Perturbation), the first algorithm to achieve optimal linear dependence on dimension without being hindered by the condition number, all while remaining computationally efficient.
The Challenge of Sensitivity
The core difficulty in private regression lies in the influence of outliers. Specifically, two types of points pose the greatest threat to stability: those with high leverage and those with large residuals.
As shown in the figure above, a point with a large residual (a) is far from the general trend of the data, while a point with high leverage (b) is an extreme value in the predictor space that can "pull" the regression line toward itself. To achieve privacy, an algorithm must mitigate the influence of these points without sacrificing the accuracy of the overall model.
The ISSP Algorithm
ISSP moves away from the traditional approach of perturbing "sufficient statistics" (like the $X^\top X$ matrix). Instead, it focuses on constructing a stable estimator through a two-phase process:
- Stable Filtering (Pruning): The algorithm employs a "Propose-Test-Release" (PTR) framework. It iteratively searches for a reweighting of the dataset that stabilizes the OLS solution. This involves identifying and pruning points that exhibit high leverage or large residuals. The technical innovation here is the Intertwining Property, which ensures that the pruning process itself remains stable even if a single point in the original dataset is changed.
- Weighted OLS and Calibrated Noise: Once a stable subset of the data is identified, the algorithm computes a weighted OLS solution. Because the estimator is now stable by design, a carefully calibrated (and relatively small) amount of Gaussian noise can be added to satisfy differential privacy requirements.
Key Results and Advantages
The ISSP algorithm provides several significant improvements over the state-of-the-art:
- Optimal Sample Complexity: The algorithm requires $n \approx \tilde{\Omega}(d/\alpha^2)$ samples to reach a target accuracy $\alpha$. This matches known lower bounds for OLS up to logarithmic factors.
- Condition Number Independence: Unlike gradient-based private optimization methods, which struggle when data is "stretched" in certain directions (high condition number), ISSP’s closed-form approach is invariant to these geometric distortions. This makes it far more robust for real-world datasets with varying scales.
- Efficiency: The computational overhead is minimal; the running time is dominated by the non-private OLS calculation, making it practical for large-scale engineering applications.
- Privacy "For Free": For many standard statistical settings, the error introduced by the privacy-preserving noise is actually smaller than the inherent statistical error of the OLS estimator itself. This suggests that for well-behaved datasets, privacy does not have to come at the cost of utility.
Limitations and Future Directions
While ISSP represents a major step forward, some challenges remain. The algorithm currently requires thresholds for leverage and residuals to be provided or privately estimated. Developing a fully automated, parameter-free version is a key goal for future research. Additionally, there remains a small logarithmic gap between the sample complexity of this efficient algorithm and the theoretical limits of exponential-time methods. Finally, extending these stable estimation techniques to more complex models, such as Logistic Regression or General Linear Models (GLMs), is a promising avenue for expanding the reach of private machine learning.
Summary updated