[Paper Review] Fast and Memory Efficient Differentially Private-SGD via JL Projections
This paper proposes DP-SGD-JL and DP-Adam-JL, differentially private optimizers that use Johnson-Lindenstrauss (JL) projections to approximate per-sample gradient norms, drastically reducing memory and computation costs while preserving privacy. The method achieves training speed and memory usage close to non-private SGD, with privacy guarantees via the f-DP framework, and demonstrates significant speedups on the IMDb LSTM benchmark without sacrificing privacy-accuracy tradeoffs.
Differentially Private-SGD (DP-SGD) of Abadi et al. (2016) and its variations are the only known algorithms for private training of large scale neural networks. This algorithm requires computation of per-sample gradients norms which is extremely slow and memory intensive in practice. In this paper, we present a new framework to design differentially private optimizers called DP-SGD-JL and DP-Adam-JL. Our approach uses Johnson-Lindenstrauss (JL) projections to quickly approximate the per-sample gradient norms without exactly computing them, thus making the training time and memory requirements of our optimizers closer to that of their non-DP versions. Unlike previous attempts to make DP-SGD faster which work only on a subset of network architectures or use compiler techniques, we propose an algorithmic solution which works for any network in a black-box manner which is the main contribution of this paper. To illustrate this, on IMDb dataset, we train a Recurrent Neural Network (RNN) to achieve good privacy-vs-accuracy tradeoff, while being significantly faster than DP-SGD and with a similar memory footprint as non-private SGD. The privacy analysis of our algorithms is more involved than DP-SGD, we use the recently proposed f-DP framework of Dong et al. (2019) to prove privacy.
Motivation & Objective
- To address the high computational and memory overhead of per-sample gradient norm computation in standard DP-SGD, which limits its practical use in large-scale deep learning.
- To design an algorithmic solution that accelerates differentially private training without relying on compiler optimizations or architecture-specific modifications.
- To maintain strong privacy guarantees—using the f-DP framework—while achieving performance close to non-private SGD in terms of speed and memory footprint.
- To enable efficient hyper-parameter search and training of complex models like RNNs on private datasets such as IMDb.
Proposed method
- Uses Johnson-Lindenstrauss (JL) projections to stochastically estimate per-sample gradient ℓ₂ norms, avoiding exact computation.
- Applies JL projections to a random subspace of gradients, enabling fast approximation of gradient norms with controlled error.
- Integrates the JL-based norm estimation into the DP-SGD and DP-Adam frameworks, replacing exact per-sample gradient norm computation.
- Employs the f-DP framework of Dong et al. (2019) to formally analyze privacy, accounting for the error introduced by JL projections.
- Uses adaptive composition and subsampling techniques to derive end-to-end privacy bounds under the f-DP framework.
- Employs a double convex conjugate (**) to compute the tightest possible privacy curve under the composition theorem.
Experimental results
Research questions
- RQ1Can JL projections be used to approximate per-sample gradient norms in DP-SGD with minimal impact on privacy and accuracy?
- RQ2Does the proposed DP-SGD-JL method achieve training speed and memory usage comparable to non-private SGD while maintaining strong privacy guarantees?
- RQ3How does the choice of JL dimension affect the privacy-accuracy trade-off in the resulting model?
- RQ4Can the f-DP framework be effectively applied to analyze the privacy of a differentially private optimizer that uses randomized norm estimation?
- RQ5Is DP-SGD-JL suitable for hyper-parameter search and training of complex models like RNNs on private datasets?
Key findings
- On the IMDb dataset, DP-SGD-JL trains an LSTM model significantly faster than standard DP-SGD, with memory usage nearly identical to non-private SGD.
- The privacy parameter ε monotonically decreases with increasing JL dimension and converges to the ε of vanilla DP-SGD as JL dimension grows.
- The method achieves a favorable privacy-accuracy trade-off on the IMDb RNN benchmark, outperforming standard DP-SGD in training efficiency.
- Theoretical privacy analysis via f-DP shows that the error from JL projection is bounded and does not compromise the overall privacy guarantee.
- The algorithm is architecture-agnostic and works as a black-box replacement for DP-SGD across various neural network types.
- Numerical evaluation confirms that the derived privacy curve via f-DP and JL projection error is tighter than naive approximations.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.