Differentially Private Fine-tuning of Language Models
Da Yu, Saurabh Naik, Arturs Backurs, Sivakanth Gopi, Huseyin A. Inan, Gautam Kamath, Janardhan Kulkarni, Yin Tat Lee, Andre Manoel, Lukas Wutschitz, Sergey Yekhanin, Huishuai Zhang
Abstract
We give simpler, sparser, and faster algorithms for differentially private fine-tuning of large-scale pre-trained language models, which achieve the state-of-the-art privacy versus utility tradeoffs on many standard NLP tasks. We propose a meta-framework for this problem, inspired by the recent success of highly parameter-efficient methods for fine-tuning. Our experiments show that differentially private adaptations of these approaches outperform previous private algorithms in three important dimensions: utility, privacy, and the computational and memory cost of private training. On many commonly studied datasets, the utility of private models approaches that of non-private models. For example, on the MNLI dataset we achieve an accuracy of using RoBERTa-Large and using RoBERTa-Base with a privacy budget of . In comparison, absent privacy constraints, RoBERTa-Large achieves an accuracy of . Our findings are similar for natural language generation tasks. Privately fine-tuning with DART, GPT-2-Small, GPT-2-Medium, GPT-2-Large, and GPT-2-XL achieve BLEU scores of 38.5, 42.0, 43.1, and 43.8 respectively (privacy budget of 1e-5) whereas the non-private baseline is . All our experiments suggest that larger models are better suited for private fine-tuning: while they are well known to achieve superior accuracy non-privately, we find that they also better maintain their accuracy when privacy is introduced.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
145 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Membership Inference Attacks Against Machine Learning Models cites Deep Learning with Differential Privacy
- The Secret Sharer: Evaluating and Testing Unintended Memorization in Neural Networks cites Membership Inference Attacks Against Machine Learning Models
- The Secret Sharer: Evaluating and Testing Unintended Memorization in Neural Networks cites Deep Learning with Differential Privacy
- Recovering Private Text in Federated Learning of Language Models cites The Secret Sharer: Evaluating and Testing Unintended Memorization in Neural Networks
- Recovering Private Text in Federated Learning of Language Models cites Large Language Models Can Be Strong Differentially Private Learners
- Recovering Private Text in Federated Learning of Language Models cites Language Models are Few-Shot Learners
- Recovering Private Text in Federated Learning of Language Models cites Deep Learning with Differential Privacy
- Recovering Private Text in Federated Learning of Language Models cites Extracting Training Data from Large Language Models
- Large Language Models Can Be Strong Differentially Private Learners cites Membership Inference Attacks Against Machine Learning Models
- Large Language Models Can Be Strong Differentially Private Learners cites The Secret Sharer: Evaluating and Testing Unintended Memorization in Neural Networks
- Large Language Models Can Be Strong Differentially Private Learners cites Deep Learning with Differential Privacy
- Large Language Models Can Be Strong Differentially Private Learners cites Extracting Training Data from Large Language Models
- Can LLMs Keep a Secret? Testing Privacy Implications of Language Models via Contextual Integrity Theory cites Large Language Models Can Be Strong Differentially Private Learners
- Can LLMs Keep a Secret? Testing Privacy Implications of Language Models via Contextual Integrity Theory cites Deep Learning with Differential Privacy
- Improving LoRA in Privacy-preserving Federated Learning cites Large Language Models Can Be Strong Differentially Private Learners
- Improving LoRA in Privacy-preserving Federated Learning cites Deep Learning with Differential Privacy
- Improving LoRA in Privacy-preserving Federated Learning cites Extracting Training Data from Large Language Models
- Deduplicating Training Data Mitigates Privacy Risks in Language Models cites Membership Inference Attacks Against Machine Learning Models
- Deduplicating Training Data Mitigates Privacy Risks in Language Models cites The Secret Sharer: Evaluating and Testing Unintended Memorization in Neural Networks
- Deduplicating Training Data Mitigates Privacy Risks in Language Models cites Large Language Models Can Be Strong Differentially Private Learners
- Deduplicating Training Data Mitigates Privacy Risks in Language Models cites Language Models are Few-Shot Learners
- Deduplicating Training Data Mitigates Privacy Risks in Language Models cites Extracting Training Data from Large Language Models
- Extracting Training Data from Large Language Models cites Membership Inference Attacks Against Machine Learning Models
- Extracting Training Data from Large Language Models cites The Secret Sharer: Evaluating and Testing Unintended Memorization in Neural Networks
- Extracting Training Data from Large Language Models cites Language Models are Few-Shot Learners
- Extracting Training Data from Large Language Models cites Deep Learning with Differential Privacy
Cited by top-tier papers145
- Large Language Models Can Be Strong Differentially Private LearnersXuechen Li, Florian Tramèr, Percy Liang, Tatsunori HashimotoICLR 2022 · 502 citations
- Deduplicating Training Data Mitigates Privacy Risks in Language ModelsNikhil Kandpal, Eric Wallace, Colin RaffelICML 2022 · 395 citations
- Can LLMs Keep a Secret? Testing Privacy Implications of Language Models via Contextual Integrity TheoryNiloofar Mireshghallah, Hyunwoo Kim, Xuhui Zhou, Yulia Tsvetkov et al.ICLR 2024 · 198 citations
- Improving LoRA in Privacy-preserving Federated LearningYoubang Sun, Zitao Li, Yaliang Li, Bolin DingICLR 2024 · 173 citations
- Recovering Private Text in Federated Learning of Language ModelsSamyak Gupta, Yangsibo Huang, Zexuan Zhong, Tianyu Gao et al.NeurIPS 2022 · 120 citations
Builds on28
- Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
- Deep Learning with Differential PrivacyMartín Abadi, Andy Chu, Ian J. Goodfellow, H. Brendan McMahan et al.CCS 2016 · 7,620 citations
- Membership Inference Attacks Against Machine Learning ModelsReza Shokri, Marco Stronati, Congzheng Song, Vitaly ShmatikovS&P 2017 · 5,137 citations
- Extracting Training Data from Large Language ModelsNicholas Carlini, Florian Tramèr, Eric Wallace, Matthew Jagielski et al.USENIX Security 2021 · 2,866 citations
- The Secret Sharer: Evaluating and Testing Unintended Memorization in Neural NetworksNicholas Carlini, Chang Liu, Úlfar Erlingsson, Jernej Kos et al.USENIX Security 2019 · 1,386 citations
Related papers
- Differentially Private Model CompressionFatemehsadat Mireshghallah, Arturs Backurs, Huseyin A. Inan, Lukas Wutschitz et al.NeurIPS 2022 · 18 citations
- DPZero: Private Fine-Tuning of Language Models without BackpropagationLiang Zhang, Bingcong Li, Kiran Koshy Thekumparampil, Sewoong Oh et al.ICML 2024 · 27 citations
- PrivTune: Efficient and Privacy-Preserving Fine-Tuning of Large Language Models via Device-Cloud CollaborationYi Liu, Weixiang Han, Chengjun Cai, Xingliang Yuan et al.INFOCOM 2026 · 2 citations
- Differentially Private Bias-Term Fine-tuning of Foundation ModelsZhiqi Bu, Yu-Xiang Wang, Sheng Zha, George KarypisICML 2024 · 59 citations
- Training Text-to-Text Transformers with Privacy GuaranteesNatalia Ponomareva, Jasmijn Bastings, Sergei VassilvitskiiACL Findings 2022 · 9 citations
