DP-Forward: Fine-tuning and Inference on Language Models with Differential Privacy in Forward Pass
Minxin Du, Xiang Yue, Sherman S. M. Chow, Tianhao Wang, Chenyu Huang, Huan Sun
摘要
Differentially private stochastic gradient descent (DP-SGD) adds noise to gradients in back-propagation, safeguarding training data from privacy leakage, particularly membership inference. It fails to cover (inference-time) threats like embedding inversion and sensitive attribute inference. It is also costly in storage and computation when used to fine-tune large pre-trained language models (LMs). We propose DP-Forward, which directly perturbs embedding matrices in the forward pass of LMs. It satisfies stringent local DP requirements for training and inference data. To instantiate it using the smallest matrix-valued noise, we devise an analytic matrix Gaussian mechanism (aMGM) by drawing possibly non-i.i.d. noise from a matrix Gaussian distribution. We then investigate perturbing outputs from different hidden (sub-)layers of LMs with aMGM noises. Its utility on three typical tasks almost hits the non-private baseline and outperforms DP-SGD by up to 7.7pp at a moderate privacy level. It saves 3× time and memory costs compared to DP-SGD with the latest high-speed library. It also reduces the average success rates of embedding inversion and sensitive attribute inference by up to 88pp and 41pp, respectively, whereas DP-SGD fails.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 28 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Practical Secure Aggregation for Privacy-Preserving Machine Learning 引用了 Membership Inference Attacks Against Machine Learning Models
- Practical Secure Aggregation for Privacy-Preserving Machine Learning 引用了 Deep Learning with Differential Privacy
- Membership Inference Attacks Against Machine Learning Models 引用了 Deep Learning with Differential Privacy
- DPZero: Private Fine-Tuning of Language Models without Backpropagation 引用了 LoRA: Low-Rank Adaptation of Large Language Models
- DPZero: Private Fine-Tuning of Language Models without Backpropagation 引用了 Membership Inference Attacks Against Machine Learning Models
- DPZero: Private Fine-Tuning of Language Models without Backpropagation 引用了 Deep Learning with Differential Privacy
- The Secret Sharer: Evaluating and Testing Unintended Memorization in Neural Networks 引用了 Membership Inference Attacks Against Machine Learning Models
- The Secret Sharer: Evaluating and Testing Unintended Memorization in Neural Networks 引用了 Deep Learning with Differential Privacy
- PrE-Text: Training Language Models on Private Federated Data in the Age of LLMs 引用了 Privacy-Preserving Instructions for Aligning Large Language Models
- PrE-Text: Training Language Models on Private Federated Data in the Age of LLMs 引用了 Deep Learning with Differential Privacy
- FedFed: Feature Distillation against Data Heterogeneity in Federated Learning 引用了 Membership Inference Attacks Against Machine Learning Models
- FedFed: Feature Distillation against Data Heterogeneity in Federated Learning 引用了 The Secret Sharer: Evaluating and Testing Unintended Memorization in Neural Networks
- FedFed: Feature Distillation against Data Heterogeneity in Federated Learning 引用了 Deep Learning with Differential Privacy
- Privacy-Preserving Instructions for Aligning Large Language Models 引用了 The Secret Sharer: Evaluating and Testing Unintended Memorization in Neural Networks
- Privacy-Preserving Instructions for Aligning Large Language Models 引用了 Deep Learning with Differential Privacy
引用它的顶会 Paper28
- FedFed: Feature Distillation against Data Heterogeneity in Federated LearningZhiqin Yang, Yonggang Zhang, Yu Zheng, Xinmei Tian 等NeurIPS 2023 · 166 次引用
- Split-and-Denoise: Protect large language model inference with local differential privacyPeihua Mai, Ran Yan, Zhe Huang, Youjia Yang 等ICML 2024 · 41 次引用
- Privacy-Preserving Instructions for Aligning Large Language ModelsDa Yu, Peter Kairouz, Sewoong Oh, Zheng XuICML 2024 · 41 次引用
- PrE-Text: Training Language Models on Private Federated Data in the Age of LLMsCharlie Hou, Akshat Shrivastava, Hongyuan Zhan, Rylan Conway 等ICML 2024 · 30 次引用
- DPZero: Private Fine-Tuning of Language Models without BackpropagationLiang Zhang, Bingcong Li, Kiran Koshy Thekumparampil, Sewoong Oh 等ICML 2024 · 27 次引用
它引用的 Paper31
- LoRA: Low-Rank Adaptation of Large Language ModelsEdward J. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu 等ICLR 2022 · 18,833 次引用
- 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 次引用
- Practical Secure Aggregation for Privacy-Preserving Machine LearningKallista A. Bonawitz, Vladimir Ivanov, Ben Kreuter, Antonio Marcedone 等CCS 2017 · 3,936 次引用
- The Secret Sharer: Evaluating and Testing Unintended Memorization in Neural NetworksNicholas Carlini, Chang Liu, Úlfar Erlingsson, Jernej Kos 等USENIX Security 2019 · 1,386 次引用
相关 Paper
- Sanitizing Sentence Embeddings (and Labels) for Local Differential PrivacyMinxin Du, Xiang Yue, Sherman S. M. Chow, Huan SunWWW 2023 · 26 次引用
- Closed-Form Bounds for DP-SGD against Record-level InferenceGiovanni Cherubin, Boris Köpf, Andrew Paverd, Shruti Tople 等USENIX Security 2024 · 2 次引用
- Large Language Models Can Be Strong Differentially Private LearnersXuechen Li, Florian Tramèr, Percy Liang, Tatsunori HashimotoICLR 2022 · 502 次引用
- Sparsity-Preserving Differentially Private Training of Large Embedding ModelsBadih Ghazi, Yangsibo Huang, Pritish Kamath, Ravi Kumar 等NeurIPS 2023 · 9 次引用
- Fine-Tuning Language Models with Differential Privacy through Adaptive Noise AllocationXianzhi Li, Ran Zmigrod, Zhiqiang Ma, Xiaomo Liu 等EMNLP Findings 2024 · 9 次引用
