Large language models can be strong differentially private learnersLarge Language Models Can Be Strong Differentially Private Learners
The paper proposes that differentially private (DP) fine-tuning directly on large pretrained language models can outperform the previous best DP-trained models and strong non-private baselines under the same privacy budget. The paper attributes this to three points, namely the use of large pretrained language models, non-standard hyperparameters suited to DP optimization, and a fine-tuning objective aligned with the pretraining process. To reduce the computational overhead of DP-SGD on large Transformers, the paper proposes a memory-saving technique that makes gradient clipping in DP-SGD avoid instantiating per-sample gradients for any linear layer in the model, bringing the memory overhead of private training close to that of non-private training, with only a small increase in runtime. Empirical results show that private learning with pretrained language models does not exhibit performance degradation as dimensionality grows, contrary to the common view that DP optimization struggles to learn high-dimensional models. Reproduction code is at github.com/lxuechen/private-transformers.