A Differentially Private Framework for Deep Learning With Convexified Loss Functions

Zhigang Lu, Hassan Jameel Asghar, Mohamed Ali Kâafar, Darren Webb, Peter DickinsonIEEE Trans. IFS 2022 · DOI

Abstract

Differential privacy (DP) has been applied in deep learning for preserving privacy of the underlying training sets. Existing DP practice falls into three categories—objective perturbation, gradient perturbation, and output perturbation. They suffer from three main problems: restrictive conditions on objective functions, poor privacy-utility trade-offs due to noise accumulation in gradient descent, and loose upper bounds on global sensitivity in output perturbation. To address these problems, we analyse a tighter upper bound on the global sensitivity of the model parameters. Under a black-box setting, we propose a novel output perturbation framework by injecting DP noise into a randomly sampled neuron at the output layer of a baseline non-private neural network trained with a convexified loss function. Experimental evaluations on six real-world datasets show that our framework achieves a better privacy-utility trade-off than existing DP-SGD implementations for an overall privacy budget $\epsilon \leq 1$.

Introduction

Deep learning models are notorious for "memorizing" their training data, which opens the door to Membership Inference (MI) attacks. In these attacks, an adversary can determine whether a specific individual's data was used to train a model just by observing the model's predictions. To prevent this, researchers use Differential Privacy (DP). However, existing DP methods have significant drawbacks. Gradient Perturbation (like DP-SGD) injects noise at every training step, which accumulates and often destroys model utility. Traditional Output Perturbation usually relies on "loose" upper bounds for global sensitivity, leading to excessive noise injection.

This work aims to bridge this gap by creating a framework that provides strong privacy guarantees without the massive accuracy hit seen in DP-SGD, particularly in low-privacy-budget scenarios.

Methodology

The proposed framework consists of three main pillars designed to optimize the privacy-utility trade-off:

1. Convexified Loss Functions

Deep learning loss functions are typically non-convex, making the calculation of rigorous privacy bounds difficult. The authors utilize "risk-averting" error functions to transform standard loss into a convex form. This transformation provides the mathematical rigor needed for DP proofs without significantly sacrificing the predictive power of the neural network.

2. Tighter Sensitivity Analysis

Using the concept of model stability, the authors mathematically derive a tighter upper bound for the $L_2$ global sensitivity of model parameters. As shown in the comparison below, this work achieves the $2\rho/\lambda n$ bound under more general conditions than previous literature, which often required binary classification or normalized data.

Comparison of upper bounds on global sensitivity across different works and conditions.

3. Selective Output Perturbation

Instead of adding noise to every parameter during training, the framework uses the Exponential Mechanism to randomly sample one neuron at the output layer. It then injects DP noise (Laplace or Gaussian) into only that sampled neuron before applying the final Softmax. This "per-query" approach allows for higher accuracy when a model answers a finite number of queries, as the noise injected into each individual response is relatively small.

The proposed output perturbation mechanism where noise is injected into a sampled neuron (z1) before the Softmax layer.

Key Results and Insights

The framework was evaluated on six diverse datasets, including image classification (MNIST, CIFAR-10/100) and tabular data (Adult, Purchase, Texas Hospital). Key findings include:

  • Superior Trade-offs: When the privacy budget is tight ($\epsilon \leq 1$), the proposed framework consistently achieves lower accuracy loss than state-of-the-art DP-SGD implementations.
  • Predictable Performance: Accuracy loss follows a stable, monotonic decreasing curve as the privacy budget increases, making the framework easier to deploy and tune than the often-erratic DP-SGD.
  • Effective MI Defense: The framework successfully reduces privacy leakage to near-theoretical minimums while maintaining usable prediction accuracy.

Conclusion

By linking model stability directly to privacy and utilizing convexified loss functions, this framework offers a robust alternative to gradient-based perturbation. While it faces a "query exhaustion" limit where the privacy budget is eventually consumed, it remains highly competitive for a large number of queries, providing a practical solution for privacy-preserving deep learning deployment.

Summary updated

BibTeX
@misc{lu2022differentially,
  author = {Zhigang Lu and Hassan Jameel Asghar and Mohamed Ali Kâafar and Darren Webb and Peter Dickinson},
  title = {{A Differentially Private Framework for Deep Learning With Convexified Loss Functions}},
  year = {2022},
  eprint = {2204.01049},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2204.01049},
}
Figure