Large Language Models Can Be Strong Differentially Private Learners
Xuechen Li, Florian Tramèr, Percy Liang, Tatsunori Hashimoto
摘要
Differentially Private (DP) learning has seen limited success for building large deep learning models of text, and straightforward attempts at applying Differentially Private Stochastic Gradient Descent (DP-SGD) to NLP tasks have resulted in large performance drops and high computational overhead. We show that this performance drop can be mitigated with (1) the use of large pretrained language models; (2) non-standard hyperparameters that suit DP optimization; and (3) fine-tuning objectives which are aligned with the pretraining procedure. With the above, we obtain NLP models that outperform state-of-the-art DP-trained models under the same privacy budget and strong non-private baselines -- by directly fine-tuning pretrained models with DP optimization on moderately-sized corpora. To address the computational challenge of running DP-SGD with large Transformers, we propose a memory saving technique that allows clipping in DP-SGD to run without instantiating per-example gradients for any linear layer in the model. The technique enables privately training Transformers with almost the same memory cost as non-private training at a modest run-time overhead. Contrary to conventional wisdom that DP optimization fails at learning high-dimensional models (due to noise that scales with dimension) empirical results reveal that private learning with pretrained language models doesn't tend to suffer from dimension-dependent performance degradation. Code to reproduce results can be found at https://github.com/lxuechen/private-transformers.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 169 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Memorization Without Overfitting: Analyzing the Training Dynamics of Large Language Models 引用了 Extracting Training Data from Large Language Models
- Membership Inference Attacks Against Machine Learning Models 引用了 Deep Learning with Differential Privacy
- Differentially Private Fine-tuning of Language Models 引用了 Membership Inference Attacks Against Machine Learning Models
- Differentially Private Fine-tuning of Language Models 引用了 Deep Learning with Differential Privacy
- Differentially Private Fine-tuning of Language Models 引用了 Extracting Training Data from Large Language Models
- Can LLMs Keep a Secret? Testing Privacy Implications of Language Models via Contextual Integrity Theory 引用了 Differentially Private Fine-tuning of Language Models
- Can LLMs Keep a Secret? Testing Privacy Implications of Language Models via Contextual Integrity Theory 引用了 Deep Learning with Differential Privacy
- Improving LoRA in Privacy-preserving Federated Learning 引用了 Differentially Private Fine-tuning of Language Models
- Improving LoRA in Privacy-preserving Federated Learning 引用了 Deep Learning with Differential Privacy
- Improving LoRA in Privacy-preserving Federated Learning 引用了 Extracting Training Data from Large Language Models
- Deduplicating Training Data Mitigates Privacy Risks in Language Models 引用了 Membership Inference Attacks Against Machine Learning Models
- Deduplicating Training Data Mitigates Privacy Risks in Language Models 引用了 Differentially Private Fine-tuning of Language Models
- Deduplicating Training Data Mitigates Privacy Risks in Language Models 引用了 Extracting Training Data from Large Language Models
- Extracting Training Data from Large Language Models 引用了 Membership Inference Attacks Against Machine Learning Models
- Extracting Training Data from Large Language Models 引用了 Deep Learning with Differential Privacy
- Extracting Training Data from Large Language Models 引用了 The Curious Case of Neural Text Degeneration
引用它的顶会 Paper169
- Differentially Private Fine-tuning of Language ModelsDa Yu, Saurabh Naik, Arturs Backurs, Sivakanth Gopi 等ICLR 2022 · 494 次引用
- Deduplicating Training Data Mitigates Privacy Risks in Language ModelsNikhil Kandpal, Eric Wallace, Colin RaffelICML 2022 · 395 次引用
- Memorization Without Overfitting: Analyzing the Training Dynamics of Large Language ModelsKushal Tirumala, Aram H. Markosyan, Luke Zettlemoyer, Armen AghajanyanNeurIPS 2022 · 304 次引用
- Can LLMs Keep a Secret? Testing Privacy Implications of Language Models via Contextual Integrity TheoryNiloofar Mireshghallah, Hyunwoo Kim, Xuhui Zhou, Yulia Tsvetkov 等ICLR 2024 · 198 次引用
- Improving LoRA in Privacy-preserving Federated LearningYoubang Sun, Zitao Li, Yaliang Li, Bolin DingICLR 2024 · 173 次引用
它引用的 Paper26
- Deep Learning with Differential PrivacyMartín Abadi, Andy Chu, Ian J. Goodfellow, H. Brendan McMahan 等CCS 2016 · 7,620 次引用
- Membership Inference Attacks Against Machine Learning ModelsReza Shokri, Marco Stronati, Congzheng Song, Vitaly ShmatikovS&P 2017 · 5,137 次引用
- Finetuned Language Models are Zero-Shot LearnersJason Wei, Maarten Bosma, Vincent Y. Zhao, Kelvin Guu 等ICLR 2022 · 4,966 次引用
- The Curious Case of Neural Text DegenerationAri Holtzman, Jan Buys, Li Du, Maxwell Forbes 等ICLR 2020 · 4,112 次引用
- Extracting Training Data from Large Language ModelsNicholas Carlini, Florian Tramèr, Eric Wallace, Matthew Jagielski 等USENIX Security 2021 · 2,866 次引用
相关 Paper
- Sanitizing Sentence Embeddings (and Labels) for Local Differential PrivacyMinxin Du, Xiang Yue, Sherman S. M. Chow, Huan SunWWW 2023 · 26 次引用
- Exploring the Limits of Differentially Private Deep Learning with Group-wise ClippingJiyan He, Xuechen Li, Da Yu, Huishuai Zhang 等ICLR 2023 · 4 次引用
- When Does Differentially Private Learning Not Suffer in High Dimensions?Xuechen Li, Daogao Liu, Tatsunori B. Hashimoto, Huseyin A. Inan 等NeurIPS 2022 · 64 次引用
- Differentially Private Optimization on Large Model at Small CostZhiqi Bu, Yu-Xiang Wang, Sheng Zha, George KarypisICML 2023 · 85 次引用
- Training Text-to-Text Transformers with Privacy GuaranteesNatalia Ponomareva, Jasmijn Bastings, Sergei VassilvitskiiACL Findings 2022 · 9 次引用
