Differentially Private Simple Linear Regression

Daniel Alabi, Audra McMillan, Jayshree Sarathy, Adam D. Smith, Salil P. Vadhan

Abstract

Privacy-preserving data analysis often fails when datasets are small, as the noise required for Differential Privacy (DP) can easily overwhelm the signal. This paper demonstrates that for simple linear regression on small datasets (tens to hundreds of records), robust estimators like the Theil-Sen estimator significantly outperform standard approaches like Ordinary Least Squares (OLS) or Gradient Descent. By leveraging the lower local sensitivity of robust statistics, these methods provide a practical path for high-utility, privacy-protected social science research.

Introduction

In social science and economics, researchers frequently perform "small-area analysis"—fitting models to tiny subsets of data, such as household income within a specific census tract. A prime example is the Opportunity Atlas, which maps economic mobility across the United States.

However, fine-grained analysis presents a significant privacy risk; a single individual's data can drastically shift results in a small sample, making it possible to reverse-engineer sensitive information. Differential Privacy (DP) offers a mathematical guarantee against this by adding random noise to the output. The challenge is that standard DP techniques are typically designed for "Big Data." When applied to "Small Data" (e.g., $n=30$), the added noise often renders the resulting statistics useless. This research seeks to identify which DP algorithms maintain utility when data is scarce.

Methods and Robust Estimators

The study evaluates three primary families of DP algorithms for Simple Linear Regression (SLR):

  1. DPSuffStats (The "Standard" Approach): This method perturbs the "sufficient statistics" of OLS (the covariance of $x$ and $y$, and the variance of $x$) with Laplacian noise. While computationally efficient, it is highly sensitive to outliers.
  2. DPTheilSen (The "Robust" Approach): The non-private Theil-Sen estimator calculates the slope between every possible pair of points and takes the median. The authors create DP versions by replacing the standard median with DP median algorithms, such as the Exponential Mechanism or Smooth Sensitivity.
  3. DPGradDescent: A private version of Stochastic Gradient Descent (SGD) where gradients are clipped and perturbed with noise at each step.
The Exponential Mechanism for the median uses a scoring function to assign probabilities to intervals between data points, ensuring privacy while targeting the true median.

The core insight of this work is that robust statistics are inherently more "DP-friendly." Because robust estimators like the median ignore outliers, they have lower local sensitivity. In the context of DP, lower sensitivity allows for the addition of less noise, leading to significantly higher utility.

Key Insights: The Synergy of Robustness and Privacy

The authors found that sample size ($n$) alone does not predict which algorithm will perform best. Instead, the quantity $\epsilon \cdot n \cdot var(x)$ serves as the key indicator. If this value is low—due to small data, high privacy requirements, or low variance in the independent variable—Theil-Sen dominates. Conversely, as this value increases, OLS-based methods eventually take the lead.

Furthermore, the research demonstrates that the DPExpTheilSen algorithm (Theil-Sen using the Exponential Mechanism) can match or exceed the performance of non-private heuristics currently used in tools like the Opportunity Atlas, while providing formal mathematical privacy guarantees.

Results and Crossover Points

  • Small Sample Dominance: For datasets with hundreds of points or fewer, DPExpTheilSen was consistently the most accurate method.
  • Privacy vs. Sampling Error: For moderate privacy levels ($\epsilon=1$), it is possible to keep privacy-related noise below the level of natural sampling error (the jitter inherent in picking a random sample).
  • The Crossover: As $n$ reaches the thousands, the bias of the robust estimator begins to outweigh the benefits of its lower sensitivity, and DPSuffStats becomes the more accurate choice.

Limitations and Future Directions

While promising, several challenges remain. Hyperparameter tuning (such as setting data clipping ranges) on sensitive data can leak privacy; the authors suggest using public "proxy" data as a workaround. Additionally, while Theil-Sen is highly effective for 1D regression, its computational complexity ($O(n^2)$) and the exponential growth of parameters in multivariate settings present hurdles for scaling to higher dimensions without further optimization, such as random matching techniques.

Summary updated

BibTeX
@article{alabi2022differentially,
  author = {Daniel Alabi and Audra McMillan and Jayshree Sarathy and Adam D. Smith and Salil P. Vadhan},
  title = {{Differentially Private Simple Linear Regression}},
  journal = {Proc. Priv. Enhancing Technol.},
  year = {2022},
  doi = {10.2478/popets-2022-0041},
}
Figure