Sample-Optimal Private Regression in Polynomial Time

Prashanti Anderson, Ainesh Bakshi, Mahbod Majid, Stefan Tiegel · DOI · OpenReview

Abstract

Linear regression is a cornerstone of statistical analysis, yet performing it privately on sensitive datasets has historically forced a trade-off between computational efficiency, privacy strength, and sample complexity. This paper introduces the first polynomial-time algorithm for linear regression that achieves "pure" differential privacy while remaining sample-optimal. By leveraging the Sum-of-Squares (SoS) framework, the algorithm provides robust guarantees even in the presence of adversarial outliers, matching information-theoretic lower bounds for Gaussian data.

Introduction

In fields ranging from medicine to social science, linear regression is the primary tool for modeling relationships between variables. However, when these variables represent sensitive individual information, the resulting models risk leaking private data. Differential Privacy (DP) provides a mathematical framework to mitigate this risk, but implementing it for high-dimensional regression has proven difficult.

Prior to this work, researchers faced a "trilemma." Existing algorithms could typically achieve only two of the following three properties:

  1. Efficiency: Running in polynomial time.
  2. Pure Privacy: Meeting the $(\epsilon, 0)$-DP standard without the "small probability of failure" allowed in $(\epsilon, \delta)$-DP.
  3. Sample Optimality: Requiring the minimum number of data points theoretically necessary to achieve a target accuracy.

This paper resolves this trilemma, presenting an algorithm that is simultaneously efficient, purely private, and sample-optimal, while also maintaining robustness against data corruption.

Methodological Innovations

The authors utilize the Sum-of-Squares (SoS) hierarchy, a powerful optimization framework that uses semidefinite programming to solve systems of polynomial inequalities. The core of their approach lies in two technical breakthroughs: certifying resilience and implementing a geometry-aware privacy mechanism.

Certifying Resilience

A dataset is considered "resilient" if no small subset of its points can significantly alter the overall mean or covariance. In robust statistics, certifying this property is essential for ensuring that outliers do not skew the model. Previously, it was believed to be computationally difficult to prove resilience within the SoS framework for all possible directions in high-dimensional space.

The authors circumvent this by showing that the algorithm does not need to certify resilience for the entire space. Instead, it only needs to prove resilience for specific "indicated" subsets of data that the algorithm evaluates during its execution. This "resilience shortcut" allows the algorithm to remain computationally tractable while providing the same statistical guarantees as more expensive methods.

Geometry-Aware Exponential Mechanism

Standard DP mechanisms often add noise uniformly across all dimensions (Euclidean geometry). However, real-world data often possesses a specific covariance structure—it is "stretched" in some directions and compressed in others. Adding uniform noise to such data can destroy the utility of the model.

The authors developed a Geometry-Aware Exponential Mechanism that adapts to the internal structure of the data. Crucially, this mechanism accounts for the data's covariance without requiring the algorithm to explicitly (and non-privately) publish the covariance matrix itself. This allows the algorithm to add noise strategically, preserving accuracy in the directions that matter most.

Theoretical Results

The paper provides several key mathematical guarantees for data drawn from Gaussian or well-behaved sub-Gaussian distributions:

  • Optimal Sample Complexity: To achieve an error rate of $\alpha$ in $d$ dimensions, the algorithm requires $n \approx d^2/\alpha^2$ samples. This matches the Statistical Query (SQ) lower bound, representing the theoretical limit for this class of algorithms.
  • Pure Differential Privacy: The algorithm is the first to achieve $(\epsilon, 0)$-DP for regression with unknown covariance in polynomial time.
  • Robustness to Corruption: The algorithm can handle a fraction $\eta$ of adversarial outliers. It achieves an error rate of $\alpha \approx \eta \log(1/\eta)$, which is the optimal rate for computationally bounded estimators.
  • Mean Estimation: As an extension, the authors demonstrate that their techniques also provide the first efficient, sample-optimal, pure-DP algorithm for high-dimensional mean estimation under unknown covariance.

Discussion and Limitations

While this work marks a significant theoretical milestone, there are practical considerations for its implementation. The current guarantees rely on the assumption that the data is Gaussian or near-Gaussian. Real-world datasets often exhibit "heavy tails," where extreme values occur more frequently than a Gaussian distribution predicts. Extending these results to such distributions remains an open area of research.

Furthermore, while "polynomial time" is a victory for theoretical computer science, SoS-based algorithms involve solving large semidefinite programs. For very high-dimensional datasets, the computational overhead may still be significant. Future work may focus on developing "faster" versions of these private estimators that maintain the same optimality guarantees with lower constant factors in their runtime.

Finally, the model currently assumes the variance of the noise in the labels is known or normalized. Addressing regression problems where the noise level is both unknown and potentially large is a logical next step for this line of inquiry.

Conclusion

By bridging the gap between robust statistics and differential privacy, this paper provides a definitive answer to the problem of private linear regression. The introduction of geometry-aware mechanisms and localized resilience certification provides a new toolkit for designing private algorithms that do not sacrifice statistical power for computational feasibility.

Summary updated

BibTeX
@inproceedings{anderson2025sample,
  author = {Prashanti Anderson and Ainesh Bakshi and Mahbod Majid and Stefan Tiegel},
  title = {{Sample-Optimal Private Regression in Polynomial Time}},
  booktitle = {STOC},
  year = {2025},
  doi = {10.1145/3717823.3718218},
}
Figure