Differentially Private ERM Based on Data Perturbation

Yilin Kang, Yong Liu, Lizhong Ding, Xinwang Liu, Xinyi Tong, Weiping WangarXiv 2020 · arXiv · OpenReview

Abstract

In this paper, after observing that different training data instances affect the machine learning model to different extents, we attempt to improve the performance of differentially private empirical risk minimization (DP-ERM) from a new perspective. Specifically, we measure the contributions of various training data instances on the final machine learning model, and select some of them to add random noise. Considering that the key of our method is to measure each data instance separately, we propose a new 'Data perturbation' based (DB) paradigm for DP-ERM: adding random noise to the original training data and achieving ($\epsilon,\delta$)-differential privacy on the final machine learning model, along with the preservation on the original data. By introducing the Influence Function (IF), we quantitatively measure the impact of the training data on the final model. Theoretical and experimental results show that our proposed DBDP-ERM paradigm enhances the model performance significantly.

Introduction

Differential Privacy (DP) has become the gold standard for protecting individual data privacy in machine learning. Traditionally, DP is achieved through Empirical Risk Minimization (DP-ERM) by adding random noise to gradients during training, a method known as DP-SGD. However, this approach often results in a significant "utility gap," where the private model's accuracy is substantially lower than its non-private counterpart.

This research identifies two primary causes for this gap. First, standard DP-SGD treats all data points as equally risky, injecting uniform noise regardless of whether a specific point significantly influences the model. Second, existing theoretical frameworks often rely on restrictive assumptions, such as convexity or strong convexity, which do not accurately reflect the behavior of modern neural networks. To address these issues, we propose a new paradigm: Data Perturbation-based DP-ERM (DBDP-ERM).

The DBDP-ERM Paradigm

Data Heterogeneity and Influence Functions

The core innovation of DBDP-ERM is the recognition of data heterogeneity. Rather than applying a "one-size-fits-all" noise injection, we leverage Influence Functions (IF) to estimate the specific contribution of each data instance $z$ to the final model parameters.

Calculating the exact influence would require retraining the model for every data point, which is computationally prohibitive. Instead, we utilize a Taylor expansion involving the Hessian of the loss function to approximate this impact. By identifying which data points are truly "influential," the algorithm can strategically apply noise. If a data point's natural influence is already below the privacy threshold $\epsilon$, the model is inherently private regarding that point, and additional noise is redundant. This selective perturbation preserves the utility of the model while maintaining rigorous privacy guarantees.

The Algorithm: PIDP-SGD

Building on the DB paradigm, we introduce the Performance Improving DP-SGD (PIDP-SGD) algorithm. This algorithm checks the "contribution" of a data point before performing an update. To prevent the influence calculation itself from leaking sensitive information, a small portion of the privacy budget is used to add noise to the influence measurement. This ensures that the entire pipeline remains $(\epsilon, \delta)$-differentially private.

Theoretical Contributions

Tighter Risk Bounds

One of the paper's key theoretical breakthroughs is the derivation of sharper empirical risk bounds. Previous research often multiplied the noise term by the total number of iterations $T$. By treating the summation as a geometric sequence, we derive a tighter bound that improves upon existing literature by a factor of $\log(n)$. Specifically, our excess empirical risk bound is tighter by a factor of $O(k/n)$, where $k$ represents the number of highly influential data points.

The Polyak-Łojasiewicz (PL) Condition

To make the theory more applicable to modern machine learning, we move beyond the assumption of convexity. We utilize the Polyak-Łojasiewicz (PL) condition, a weaker assumption that allows for non-convex functions while still providing strong convergence guarantees. This ensures that our theoretical utility-privacy trade-offs hold for a wider range of models, including shallow multi-layer perceptrons (MLPs).

Experimental Evaluation

We evaluated the DBDP-ERM paradigm against standard DP-SGD and state-of-the-art methods like DP-LSSGD across three benchmark datasets:

  • KDDCup99: Network intrusion detection (70,000 instances).
  • Adult: Census income prediction (45,222 instances).
  • Bank: Marketing subscription prediction (41,188 instances).

Using both Logistic Regression (LR) and Multi-layer Perceptrons (MLP), the experiments demonstrated that PIDP-SGD consistently outperforms existing methods. As the privacy budget $\epsilon$ increases, the "optimality gap"—the difference between the private and non-private model—drops to nearly zero on several datasets, proving that our method effectively closes the utility gap.

Conclusion and Future Work

The DBDP-ERM paradigm represents a significant step forward in private machine learning by shifting the focus from uniform gradient noise to instance-specific data perturbation. By accounting for data heterogeneity and utilizing the PL condition, we provide both a more accurate algorithm and a more robust theoretical framework.

Future research will focus on reducing the computational complexity associated with Hessian inversion to scale this approach to deep learning architectures. Additionally, optimizing the split of the privacy budget between influence calculation and model training remains an open challenge for further refinement.

Summary updated

Abstract

In this paper, after observing that different training data instances affect the machine learning model to different extents, we attempt to improve the performance of differentially private empirical risk minimization (DP-ERM) from a new perspective. Specifically, we measure the contributions of various training data instances on the final machine learning model, and select some of them to add random noise. Considering that the key of our method is to measure each data instance separately, we propose a new `Data perturbation' based (DB) paradigm for DP-ERM: adding random noise to the original training data and achieving ($\epsilon,\delta$)-differential privacy on the final machine learning model, along with the preservation on the original data. By introducing the Influence Function (IF), we quantitatively measure the impact of the training data on the final model. Theoretical and experimental results show that our proposed DBDP-ERM paradigm enhances the model performance significantly.
BibTeX
@misc{kang2020differentially,
  author = {Yilin Kang and Yong Liu and Lizhong Ding and Xinwang Liu and Xinyi Tong and Weiping Wang},
  title = {{Differentially Private ERM Based on Data Perturbation}},
  year = {2020},
  eprint = {2002.08578},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2002.08578},
}
Figure