Functional Mechanism: Regression Analysis under Differential Privacy

Jun Zhang, Zhenjie Zhang, Xiaokui Xiao, Yin Yang, Marianne Winslett

Abstract

Regression analysis is a cornerstone of statistical modeling, yet its application to sensitive datasets necessitates rigorous privacy guarantees. Differential privacy (DP) offers a robust framework, but traditional DP methods often struggle with the high sensitivity of optimization-based outputs, leading to significant utility loss. This paper presents the Functional Mechanism (FM), a novel approach that achieves $\epsilon$-differential privacy by perturbing the objective function itself rather than the final model parameters. By injecting noise into the polynomial coefficients of the cost function, FM provides a mathematically elegant and computationally efficient solution for linear and logistic regression. Experimental results on large-scale census data demonstrate that FM significantly outperforms existing differentially private methods in both accuracy and scalability.

Introduction: The Privacy-Utility Trade-off in Regression

Regression analysis is fundamental for uncovering correlations in sensitive data, such as medical records or census information. However, releasing these models can inadvertently leak information about specific individuals in the training set. While Differential Privacy (DP) provides a rigorous mathematical framework to prevent such leaks, applying it to regression is notoriously difficult.

Examples of Linear and Logistic Regression tasks addressed by the Functional Mechanism.

The core challenge lies in the fact that regression involves solving an optimization problem. Standard DP techniques typically add noise to the final output based on "sensitivity"—the maximum change a single record can cause to the result. For optimization tasks, calculating this sensitivity is mathematically complex and often results in excessive noise that destroys the model's utility. Existing workarounds, such as generating synthetic data or using noisy histograms, either scale poorly with high-dimensional data or are limited to non-standard regression variants.

The Functional Mechanism: Perturbing the Objective

The authors introduce the Functional Mechanism (FM), which shifts the point of noise injection from the final results to the optimization goal itself. The mechanism follows a structured process to ensure privacy while maintaining utility:

  1. Polynomial Representation: The authors observe that objective functions (like the cost function in linear regression) can be expressed as polynomials of the model parameters ($\omega$).
  2. Perturbing Coefficients: Instead of analyzing the sensitivity of the final weights, they analyze the sensitivity of the polynomial coefficients. Since the objective function is a sum of costs over individual records, the change a single record can make to a coefficient is easy to bound. Laplace noise is added to these coefficients to satisfy $\epsilon$-differential privacy.
  3. Ensuring Stability: Adding noise can sometimes make the objective function "unbounded," meaning it has no minimum. The authors provide two post-processing techniques—Regularization and Spectral Trimming—to ensure the noisy function remains convex and yields a unique, valid solution.
Summary of notation used in the Functional Mechanism framework.

Handling Non-Polynomial Functions

Unlike linear regression, the cost function for logistic regression is not naturally a polynomial. To handle this, the authors utilize a second-order Taylor expansion to approximate the cost function as a quadratic polynomial before applying the FM. This transformation not only facilitates the privacy mechanism but also significantly reduces the computational overhead of the solver.

Key Insights and Experimental Results

The researchers evaluated FM using two large-scale real-world datasets from the Integrated Public Use Microdata Series (IPUMS): US Census Data (370,000 records) and Brazil Census Data (190,000 records). Both datasets included 14 attributes used to predict annual income.

  • Sensitivity in "Function Space": The primary innovation is the realization that while the optimal solution to a problem is a complex, non-linear function of the input data, the objective function itself is often just a simple sum. This makes sensitivity analysis straightforward and the resulting noise much lower.
  • Superior Accuracy and Scalability: FM consistently outperformed existing methods like DPME (Differentially Private Multi-dimensional Estimation). For linear regression, FM’s accuracy was nearly identical to non-private regression. Unlike histogram-based methods, FM handles high-dimensional data without the "curse of dimensionality."
  • Efficiency: FM is at least one order of magnitude faster than non-private solvers because solving a noisy quadratic approximation is computationally cheaper than solving the original, non-linear logistic regression objective.
  • Convergence: The scale of the noise required by FM is constant relative to the number of records ($n$). As the dataset grows, the "signal" of the real data overwhelms the noise, and the private model converges toward the non-private optimal model.

Limitations and Future Work

While powerful, the current FM framework is limited to objective functions that can be written as a sum of functions of individual records. Furthermore, for non-polynomial functions like logistic regression, the Taylor expansion introduces a small, constant approximation error that persists even with a large privacy budget. Future research may explore other analytical tools beyond Taylor expansions to approximate more complex objective functions and extend the mechanism to a broader range of machine learning tasks, such as Cox regression.

Summary updated

BibTeX
@article{zhang2012functional,
  author = {Jun Zhang and Zhenjie Zhang and Xiaokui Xiao and Yin Yang and Marianne Winslett},
  title = {{Functional Mechanism: Regression Analysis under Differential Privacy}},
  journal = {Proc. VLDB Endow.},
  year = {2012},
  doi = {10.14778/2350229.2350253},
}
Figure