Differentially Private Deep Learning with Direct Feedback Alignment

Jaewoo Lee, Daniel KiferarXiv 2020

TL;DR

This paper introduces the first differentially private method for training deep neural networks using Direct Feedback Alignment (DFA), a biologically inspired alternative to backpropagation. Their DP-DFA approach significantly improves accuracy (10-20%) compared to existing differentially private backpropagation methods, especially for convolutional networks, by addressing the accuracy degradation caused by standard private training techniques.

What Problem Does This Paper Address?

Training deep neural networks with differential privacy (DP) is crucial for protecting sensitive data, but current methods, primarily based on differentially private stochastic gradient descent (DP-SGD), often lead to a substantial drop in model accuracy compared to their non-private counterparts. This accuracy gap limits the practical applicability of DP in real-world scenarios. The authors hypothesize that alternative training algorithms, less reliant on the precise gradient information used in backpropagation, might be more amenable to DP. They specifically investigate Direct Feedback Alignment (DFA), a method that uses random feedback weights instead of propagating errors through the network's weight transpose, and explore its potential for DP training.

Methods

The core contribution is the development of the first differentially private algorithm for Direct Feedback Alignment (DP-DFA). The authors adapt DFA to be privacy-preserving through several key modifications:

  • Activation and Error Clipping: Instead of clipping gradients (which introduces bias in DP-SGD), they clip the activations and the error signal after the feed-forward pass. This is a novel approach to controlling sensitivity in DFA.
  • Feedback Matrices: They use random feedback matrices ($B^l$) that are initialized and then fixed throughout training. These matrices are normalized to have a specific spectral norm ($\beta_l$) to control their influence.
  • Gaussian Noise Addition: Gaussian noise is added to the update direction, a standard technique in DP mechanisms, to ensure privacy.
  • Hybrid Approach: For convolutional neural networks, they propose a hybrid strategy that combines DP-DFA for the fully connected layers with differentially private backpropagation (DP-BP) for the convolutional layers. This leverages the strengths of both methods.
  • Privacy Accounting: They use Rényi Differential Privacy (RDP) to track the cumulative privacy loss over multiple training iterations and minibatches, which can then be converted to standard $(\epsilon, \delta)$-DP guarantees.

Datasets

The paper evaluates their proposed DP-DFA method on the following standard datasets:

  • Fashion-MNIST: A dataset of Zalando's article images, each labeled with one of 10 fashion categories.
  • CIFAR-10: A dataset of 60,000 32x32 color images in 10 classes, with 6,000 images per class.

Key Insights and Ideas

  • DFA's Suitability for DP: The paper's central insight is that DFA's inherent mechanism of using random feedback weights, rather than relying on the transpose of forward weights, makes it more robust to the noise and bias introduced by differential privacy compared to backpropagation.
  • Clipping Activations/Errors vs. Gradients: The novel approach of clipping activations and error signals, rather than gradients, is key to achieving better accuracy in DP-DFA. This avoids the bias introduced by gradient clipping in DP-SGD.
  • Hybrid DP-DFA for CNNs: The observation that a hybrid approach (DP-DFA for fully connected layers, DP-BP for convolutional layers) yields the best results for convolutional networks is significant. This suggests that different network components might benefit from different privacy-preserving training strategies.
  • Closing the Accuracy Gap: DP-DFA demonstrates a notable ability to close the accuracy gap between private and non-private models, particularly in scenarios where DP-SGD struggles.

Key Results

  • Significant Accuracy Gains: DP-DFA consistently outperforms differentially private backpropagation (DP-BP) by a margin of 10-20% in accuracy across various architectures and datasets.
  • Convolutional Networks: The hybrid DP-DFA approach shows substantial improvements on convolutional networks, significantly outperforming DP-BP. For instance, on Fashion-MNIST and CIFAR-10, the hybrid method achieves much higher test accuracies compared to DP-BP, often approaching non-private levels.
  • Fully Connected Networks: DP-DFA also shows strong performance on fully connected networks, achieving good accuracy with fewer epochs than DP-BP, suggesting more efficient private training.
  • Practical Privacy Budgets: The paper demonstrates that DP-DFA can achieve these accuracy improvements with practical privacy budgets (e.g., $\epsilon$ values in the single digits).

Limitations and Future Work

  • Activation Function Sensitivity: The DP-DFA algorithm requires that the (sub)derivatives of activation functions be bounded. While common activations like ReLU, sigmoid, and tanh satisfy this, it's a constraint to consider.
  • Hybrid Approach Complexity: While effective, the hybrid approach for convolutional networks adds a layer of complexity by requiring different strategies for different layer types.
  • Future Work: The authors suggest that DFA's behavior in the privacy-preserving setting warrants further study. They also highlight its potential for use in low-power hardware, indicating a direction for future research. The paper also notes that their algorithm is for the "modify one record" definition of neighbors, and adapting it to the "add/remove" version would require further work using Poisson sampling and its associated privacy amplification results.

Summary updated

BibTeX
@misc{lee2020differentially,
  author = {Jaewoo Lee and Daniel Kifer},
  title = {{Differentially Private Deep Learning with Direct Feedback Alignment}},
  year = {2020},
  eprint = {2010.03701},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2010.03701},
}
Figure