Sanitizing Sentence Embeddings (and Labels) for Local Differential Privacy
Minxin Du, Xiang Yue, Sherman S. M. Chow, Huan Sun
Abstract
Differentially private (DP) learning, notably DP stochastic gradient descent (DP-SGD), has limited applicability in fine-tuning gigantic pre-trained language models (LMs) for natural language processing tasks. The culprit is the perturbation of gradients (as gigantic as entire models), leading to significant efficiency and accuracy drops. We show how to achieve metric-based local DP (LDP) by sanitizing (high-dimensional) sentence embedding, extracted by LMs and much smaller than gradients. For potential utility improvement, we impose a consistency constraint on the sanitization. We explore two approaches: One is brand new and can directly output consistent noisy embeddings; the other is an upgradation with post-processing. To further mitigate "the curse of dimensionality, " we introduce two trainable linear maps for mediating dimensions without hurting privacy or utility. Our protection can effectively defend against privacy threats on embeddings. It also naturally extends to inference. Our experiments 1 show that we reach the non-private accuracy under properly configured parameters, e.g., 0.92 for SST-2 with a privacy budget 𝜖 = 10 and the reduced dimension as 16. We also sanitize the label for LDP (with another small privacy budget) with limited accuracy losses to fully protect every sequence-label pair.
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.
10 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
- PrivLM-Bench: A Multi-level Privacy Evaluation Benchmark for Language Models cites Membership Inference Attacks Against Machine Learning Models
- PrivLM-Bench: A Multi-level Privacy Evaluation Benchmark for Language Models cites The Secret Sharer: Evaluating and Testing Unintended Memorization in Neural Networks
- PrivLM-Bench: A Multi-level Privacy Evaluation Benchmark for Language Models cites Large Language Models Can Be Strong Differentially Private Learners
- PrivLM-Bench: A Multi-level Privacy Evaluation Benchmark for Language Models cites Differentially Private Fine-tuning of Language Models
- PrivLM-Bench: A Multi-level Privacy Evaluation Benchmark for Language Models cites Deep Learning with Differential Privacy
- PrivLM-Bench: A Multi-level Privacy Evaluation Benchmark for Language Models cites Synthetic Text Generation with Differential Privacy: A Simple and Practical Recipe
- DP-OPT: Make Large Language Model Your Privacy-Preserving Prompt Engineer cites Membership Inference Attacks Against Machine Learning Models
- DP-OPT: Make Large Language Model Your Privacy-Preserving Prompt Engineer cites Deep Learning with Differential Privacy
- DP-OPT: Make Large Language Model Your Privacy-Preserving Prompt Engineer cites Privacy-Preserving In-Context Learning with Differentially Private Few-Shot Generation
- 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
- 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 Differentially Private Fine-tuning of Language Models
- Differentially Private Fine-tuning of Language Models cites Large Language Models Can Be Strong Differentially Private Learners
- Large Language Models Can Be Strong Differentially Private Learners cites Deep Learning with Differential Privacy
- Differentially Private Fine-tuning of Language Models cites Membership Inference Attacks Against Machine Learning Models
- Differentially Private Fine-tuning of Language Models cites The Secret Sharer: Evaluating and Testing Unintended Memorization in Neural Networks
- Differentially Private Fine-tuning of Language Models cites Deep Learning with Differential Privacy
- Synthetic Text Generation with Differential Privacy: A Simple and Practical Recipe cites Membership Inference Attacks Against Machine Learning Models
- Synthetic Text Generation with Differential Privacy: A Simple and Practical Recipe cites The Secret Sharer: Evaluating and Testing Unintended Memorization in Neural Networks
- Synthetic Text Generation with Differential Privacy: A Simple and Practical Recipe cites Large Language Models Can Be Strong Differentially Private Learners
- Synthetic Text Generation with Differential Privacy: A Simple and Practical Recipe cites Differentially Private Fine-tuning of Language Models
- Synthetic Text Generation with Differential Privacy: A Simple and Practical Recipe cites Deep Learning with Differential Privacy
- DP-Forward: Fine-tuning and Inference on Language Models with Differential Privacy in Forward Pass cites Membership Inference Attacks Against Machine Learning Models
- DP-Forward: Fine-tuning and Inference on Language Models with Differential Privacy in Forward Pass cites The Secret Sharer: Evaluating and Testing Unintended Memorization in Neural Networks
- DP-Forward: Fine-tuning and Inference on Language Models with Differential Privacy in Forward Pass cites Large Language Models Can Be Strong Differentially Private Learners
- DP-Forward: Fine-tuning and Inference on Language Models with Differential Privacy in Forward Pass cites Differentially Private Fine-tuning of Language Models
- DP-Forward: Fine-tuning and Inference on Language Models with Differential Privacy in Forward Pass cites Deep Learning with Differential Privacy
- Privacy-Preserving In-Context Learning with Differentially Private Few-Shot Generation cites Membership Inference Attacks Against Machine Learning Models
- Privacy-Preserving In-Context Learning with Differentially Private Few-Shot Generation cites Large Language Models Can Be Strong Differentially Private Learners
- Privacy-Preserving In-Context Learning with Differentially Private Few-Shot Generation cites Differentially Private Fine-tuning of Language Models
- Privacy-Preserving In-Context Learning with Differentially Private Few-Shot Generation cites Deep Learning with Differential Privacy
- Privacy-Preserving In-Context Learning with Differentially Private Few-Shot Generation cites Synthetic Text Generation with Differential Privacy: A Simple and Practical Recipe
Cited by top-tier papers10
- Privacy-Preserving In-Context Learning with Differentially Private Few-Shot GenerationXinyu Tang, Richard Shin, Huseyin A. Inan, Andre Manoel et al.ICLR 2024 · 111 citations
- DP-OPT: Make Large Language Model Your Privacy-Preserving Prompt EngineerJunyuan Hong, Jiachen T. Wang, Chenhui Zhang, Zhangheng Li et al.ICLR 2024 · 70 citations
- DP-Forward: Fine-tuning and Inference on Language Models with Differential Privacy in Forward PassMinxin Du, Xiang Yue, Sherman S. M. Chow, Tianhao Wang et al.CCS 2023 · 35 citations
- Synthetic Text Generation with Differential Privacy: A Simple and Practical RecipeXiang Yue, Huseyin A. Inan, Xuechen Li, Girish Kumar et al.ACL 2023 · 24 citations
- PrivLM-Bench: A Multi-level Privacy Evaluation Benchmark for Language ModelsHaoran Li, Dadi Guo, Donghao Li, Wei Fan et al.ACL 2024 · 9 citations
Builds on24
- 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
- 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
- Large Language Models Can Be Strong Differentially Private LearnersXuechen Li, Florian Tramèr, Percy Liang, Tatsunori HashimotoICLR 2022 · 502 citations
- Differentially Private Fine-tuning of Language ModelsDa Yu, Saurabh Naik, Arturs Backurs, Sivakanth Gopi et al.ICLR 2022 · 494 citations
Related papers
- Differential Privacy for Text Analytics via Natural Text SanitizationXiang Yue, Minxin Du, Tianhao Wang, Yaliang Li et al.ACL Findings 2021 · 56 citations
- Differentially Private Subspace Fine-Tuning for Large Language ModelsLele Zheng, Xiang Wang, Tao Zhang, Yang Cao et al.AAAI 2026
- Learning to Generate Image Embeddings with User-Level Differential PrivacyZheng Xu, Maxwell D. Collins, Yuxiao Wang, Liviu Panait et al.CVPR 2023
- Sentence-level Privacy for Document EmbeddingsCasey Meehan, Khalil Mrini, Kamalika ChaudhuriACL 2022 · 26 citations
- Sparsity-Preserving Differentially Private Training of Large Embedding ModelsBadih Ghazi, Yangsibo Huang, Pritish Kamath, Ravi Kumar et al.NeurIPS 2023 · 9 citations
