Label Private Deep Learning Training based on Secure Multiparty Computation and Differential Privacy

Sen Yuan, Milan Shen, Ilya Mironov, Anderson NascimentoPRIML @ NeurIPS 2021

TL;DR

This paper tackles the challenge of training deep learning models when one party holds all the features, but the labels are secret and shared between parties. They introduce novel methods combining Secure Multiparty Computation (MPC) and Differential Privacy (DP) to drastically reduce training time by releasing differentially private label information during the computation, without compromising individual label privacy.

What Problem Does This Paper Address?

Training machine learning models, especially deep learning models, often requires access to large datasets. In scenarios where data is sensitive or distributed, Secure Multiparty Computation (MPC) offers a way to compute functions on this data without any single party seeing the raw inputs. However, performing complex computations like deep learning training using MPC is computationally very expensive, leading to prohibitively long training times. This paper focuses on a specific, yet common, privacy-preserving machine learning (PPML) scenario: one party (Alice) has all the training features, while the labels are secret-shared between Alice and another party (Bob). This setup is relevant for applications like ad conversion prediction, where features might be user click data and labels are conversion events, which are often not directly held by a single entity. The core problem is how to train a deep learning model efficiently and privately in this setting, where traditional methods like local differential privacy are not directly applicable because labels are not directly accessible by any single party.

Methods

The authors propose two main protocols to address this problem:

  • Randomized Response Protocol: This protocol adapts the randomized response mechanism to the label privacy setting. For binary classification, it involves Alice and Bob jointly generating a random bit that is then XORed with the secret-shared label. This randomized label is then revealed to Alice, who can use it along with the features to train the model in the clear. For multi-class classification, a more complex extension is provided. This method is efficient but may suffer in utility with high-cardinality label spaces.
  • Label DP-SGD Protocol: This protocol is an adaptation of the differentially private stochastic gradient descent (DP-SGD) algorithm. Instead of making the gradients themselves differentially private (which is standard in DP-SGD), this approach focuses on making the labels differentially private. A key insight is that for this specific scenario, gradient clipping, a computationally expensive step in standard DP-SGD, is not necessary. The protocol leverages MPC for computations involving secret-shared labels and features, while Alice performs forward passes and backpropagation in the clear. Noise is added to the aggregated gradients in a differentially private manner, ensuring that only aggregated, noisy information about the labels is revealed. This protocol is extended to handle multi-class classification.

Both protocols rely on underlying MPC building blocks like additive secret sharing, secure comparison, and secure multiplication, implemented using the Crypten library.

Datasets

  • CIFAR-10: Used for evaluating the accuracy of the Label DP-SGD protocol.
  • Not explicitly named, but implied: The paper discusses training a neural network with one convolutional layer and three fully connected layers, suggesting a general-purpose dataset suitable for image classification tasks.

Key Insights and Ideas

  • Decoupling Label Privacy from Gradient Privacy: The core innovation is realizing that for the specific problem setting (features with one party, secret labels), achieving label privacy doesn't necessarily require the full machinery of DP-SGD applied to gradients. This allows for significant efficiency gains.
  • Elimination of Gradient Clipping: For the Label DP-SGD protocol, the authors demonstrate that gradient clipping is not required when only label privacy is the concern. This is a crucial optimization.
  • Order-of-Magnitude Speedup: The combination of MPC and DP can lead to dramatic reductions in training time, making complex deep learning models feasible in privacy-preserving settings.
  • Trade-off between Utility and Privacy: While the proposed methods offer significant speedups, there's an inherent trade-off with model accuracy, especially as privacy guarantees (epsilon) become stronger.

Key Results

  • Runtime Improvement: The Label DP-SGD protocol achieved an impressive speedup, reducing MPC operation time from 38.4s per 100 data entries (traditional MPC) to 8ms per 100 data entries for a 2-class problem.
  • Accuracy Preservation: For the CIFAR-10 dataset, the Label DP-SGD protocol showed a modest accuracy drop of less than 4.2% when epsilon was greater than or equal to 4, compared to a baseline without noise. This is significantly better than standard DP-SGD, which experienced a sharper accuracy degradation.
  • Comparison to Randomized Response: The randomized response protocol is generally faster than Label DP-SGD due to fewer secure multiplications, but Label DP-SGD offers better utility for higher-cardinality label spaces.

Limitations and Future Work

  • Accuracy Degradation: While improved compared to standard DP-SGD, there is still an accuracy drop associated with the privacy guarantees. The paper notes that the accuracy degradation for Label DP-SGD is steeper than randomized response when epsilon is above 4, though similar below 4.
  • Extension to More Complex Scenarios: The paper focuses on a two-party setting and specific network architectures. Future work could explore extensions to more parties, different network types, or more complex data distributions.
  • Security Analysis: The paper mentions that a full security analysis will be presented in an extended version, implying that the current paper focuses more on the protocols and experimental results.
  • Generalization to Other Privacy Models: Exploring how these techniques can be adapted to other privacy models or threat models could be a future direction.

Summary updated

BibTeX
@inproceedings{yuan2021label,
  author = {Sen Yuan and Milan Shen and Ilya Mironov and Anderson Nascimento},
  title = {{Label Private Deep Learning Training based on Secure Multiparty Computation and Differential Privacy}},
  booktitle = {PRIML @ NeurIPS},
  year = {2021},
  url = {https://openreview.net/forum?id=tg9W8YAJVO6},
}
Figure