Differentially Private Logistic Regression with Sparse Solutions

Amol Khanna, Fred Lu, Edward Raff, Brian Testa

TL;DR

This paper introduces "Sparsifier," a novel method for achieving sparse and differentially private logistic regression. It addresses the challenge that existing private methods often sacrifice the sparsity benefits of LASSO, leading to less interpretable and less efficient models. Sparsifier effectively preserves sparsity while maintaining strong privacy guarantees, outperforming previous approaches on various datasets.

What Problem Does This Paper Address?

Logistic Regression (LR) is a widely used technique for binary classification. LASSO regularization is often applied to LR to induce sparsity, meaning many feature coefficients become exactly zero. This sparsity is highly desirable as it simplifies models, improves interpretability, and reduces computational costs by allowing unnecessary features to be discarded. However, when applying differential privacy to protect sensitive training data, existing LASSO-based methods tend to produce "dense" solutions, where most coefficients are non-zero. This loss of sparsity negates a key advantage of using LASSO in the first place. The paper aims to bridge this gap by developing a method that can achieve both differential privacy and sparsity in logistic regression models.

Methods

The core of the proposed method, "Sparsifier," relies on two main stages:

  1. Private LASSO (using Frank-Wolfe): The authors first adapt the Frank-Wolfe algorithm, a known method for LASSO-regularized linear regression, to logistic regression while ensuring differential privacy. They prove that the binary cross-entropy loss function is suitable for this private Frank-Wolfe algorithm and that it satisfies the necessary Lipschitz continuity conditions. This stage produces a private, but typically dense, weight vector.
  2. Sparsification Post-processing: The key innovation lies in how they achieve sparsity. They first train a non-private LASSO model to identify the "true" sparse support set (i.e., which features should ideally have zero coefficients). Then, they use this information to determine an appropriate number of non-zero coefficients to retain from the private LASSO output. This is done by privatizing a count of the non-zero coefficients from the non-private solution and then selecting the top c coefficients (based on their magnitude) from the private LASSO output, setting the rest to zero. This post-processing step is designed to maintain privacy while enforcing sparsity.

Datasets

The paper evaluates its method on a variety of datasets:

  • Synthetic Datasets: Used for controlled experiments, including one generated according to the specifications of Wang & Zhang [31] to facilitate direct comparison.
  • Real-world Datasets:
    • KDDCUP'99
    • Covtype
    • Splice
    • Phishing
    • Synthetic (from LIBSVM)
    • Mushroom
    • A9A
    • W8A
    • Colon
    • Gisette

These datasets are described as being taken from LIBSVM [5] or generated for specific experimental setups.

Key Insights and Ideas

  • The Trade-off Between Privacy and Sparsity: The paper highlights that standard differentially private LASSO methods often fail to preserve sparsity, making them less useful in practice. This is a fundamental challenge in the field.
  • Leveraging Non-Private Information for Sparsity: The core insight is to use a non-private LASSO model to guide the sparsity of the private model. This is a clever way to "borrow" information about feature importance without compromising the privacy of the training data itself.
  • Private Count for Sparsity Control: Privatizing the count of non-zero coefficients is crucial. This ensures that the decision of how many features to keep is made in a privacy-preserving manner, preventing an attacker from inferring too much about the data from the sparsity level.
  • Frank-Wolfe for Private Logistic Regression: The paper extends the applicability of the Frank-Wolfe algorithm for private LASSO to logistic regression, proving its theoretical underpinnings.

Key Results

  • Sparsity: Sparsifier consistently produces significantly sparser models compared to standard Private LASSO, often achieving a sparsity level closer to the non-private LASSO baseline. For instance, on the KDDCUP'99 dataset, Sparsifier achieved a sparsity ratio of 4.29 compared to Private LASSO's 16.10 (relative to non-private Frank-Wolfe).
  • Accuracy: Sparsifier generally achieves comparable or better accuracy and AUC (Area Under the ROC Curve) than Private LASSO, even when Private LASSO is run for fewer iterations to achieve similar sparsity. Table 2 shows that Sparsifier often achieves significantly better accuracy and AUC, with bolded values indicating statistical significance.
  • Comparison to Prior Work: Sparsifier outperforms other methods for sparse private LR, such as the two-stage procedure and private IGHT, in terms of correctly identifying zero coefficients and maintaining higher F1 scores and lower classification error. Figure 1 and Figure 4 illustrate these advantages.

Limitations and Future Work

  • Cumulative Privacy Guarantee: The paper notes a limitation: achieving very low cumulative privacy guarantees (small epsilon) can lead to significant changes in sparsity, potentially setting useful coefficients to zero. While they mitigate this by using a double-geometric distribution for noise, the inherent trade-off between privacy and sparsity remains.
  • Hyperparameter Tuning: The method involves several hyperparameters (e.g., alpha, beta, rho, p) that need to be set, although the authors suggest they can be set heuristically or based on desired precision/recall trade-offs.
  • Multinomial Logistic Regression: The paper extends its framework to multinomial logistic regression, demonstrating its broader applicability.
  • Generalization to Other Loss Functions: The authors suggest that Sparsifier could potentially be adapted for other loss functions within the Private LASSO framework.

Summary updated

BibTeX
@inproceedings{khanna2023differentially,
  author = {Amol Khanna and Fred Lu and Edward Raff and Brian Testa},
  title = {{Differentially Private Logistic Regression with Sparse Solutions}},
  booktitle = {AISec@CCS},
  year = {2023},
  doi = {10.1145/3605764.3623910},
}
Figure