Just Fine-tune Twice: Selective Differential Privacy for Large Language Models
Not on the map. Why?
Abstract (arXiv)
Protecting large language models from privacy leakage is becoming increasingly crucial with their wide adoption in real-world products. Yet applying differential privacy (DP), a canonical notion with provable privacy guarantees for machine learning models, to those models remains challenging due to the trade-off between model utility and privacy loss. Utilizing the fact that sensitive information in language data tends to be sparse, Shi et al. (2021) formalized a DP notion extension called Selective Differential Privacy (SDP) to protect only the sensitive tokens defined by a policy function. However, their algorithm only works for RNN-based models. In this paper, we develop a novel framework, Just Fine-tune Twice (JFT), that achieves SDP for state-of-the-art large transformer-based models. Our method is easy to implement: it first fine-tunes the model with redacted in-domain data, and then fine-tunes it again with the original in-domain data using a private training mechanism. Furthermore, we study the scenario of imperfect implementation of policy functions that misses sensitive tokens and develop systematic methods to handle it. Experiments show that our method achieves strong utility compared to previous baselines. We also analyze the SDP privacy guarantee empirically with the canary insertion attack.
Key facts. Cited by 32 papers in the map (data through 7 Oct 2026). Builds on 23 of its 43 references that are in the map. First posted on arXiv 15 Apr 2022.
Builds on
23 of 43 references.
References · 23
- 2017Attention Is All You Needcited by 59,932
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
- 2016Pointer Sentinel Mixture Modelscited by 2,992
- 2016Deep Learning with Differential Privacycited by 2,682
- 2020Extracting Training Data from Large Language Modelscited by 2,144
- 2018The Secret Sharer: Evaluating and Testing Unintended Memorization in Neural Networkscited by 847
- 2021Large Language Models Can Be Strong Differentially Private Learnerscited by 405
- 2021Differentially Private Fine-tuning of Language Modelscited by 392
- 2016Semi-supervised Knowledge Transfer for Deep Learning from Private Training Datacited by 347
- 2018Scalable Private Learning with PATEcited by 266
11 more
- 2018Privacy Amplification by Subsampling: Tight Analyses via Couplings and Divergencescited by 237
- 2020Differentially Private Learning Needs Better Features (or Much More Data)cited by 233
- 2022What Does it Mean for a Language Model to Preserve Privacy?cited by 194
- 2021Large-Scale Differentially Private BERTcited by 117
- 2021Deep Learning with Label Differential Privacycited by 113
- 2020Bypassing the Ambient Dimension: Private SGD with Gradient Subspace Identificationcited by 88
- 2021Large Scale Private Learning via Low-rank Reparametrizationcited by 87
- 2021Action-Based Conversations Dataset: A Corpus for Building More In-Depth Task-Oriented Dialogue Systemscited by 73
- 2020Training Production Language Models without Memorizing User Datacited by 68
- 2021Selective Differential Privacy for Language Modelingcited by 61
- 2017One-sided Differential Privacycited by 10
Built on by
Citing papers per year: 2022: 3; 2023: 6; 2024: 12; 2025: 10; 2026: 1.
32 papers.
Sort:
By area:
- 2024Safeguarding Large Language Models: A Surveycited by 73
- 2024Risk Taxonomy, Mitigation, and Assessment Benchmarks of Large Language Model Systemscited by 63
- 2024Building Guardrails for Large Language Modelscited by 61
- 2024Be like a Goldfish, Don't Memorize! Mitigating Memorization in Generative LLMscited by 50
- 2023Privacy in Large Language Models: Attacks, Defenses and Future Directionscited by 48
- 2023Privacy-Preserving Parameter-Efficient Fine-Tuning for Large Language Model Servicescited by 43
- 2023Interactive Natural Language Processingcited by 31
- 2024Undesirable Memorization in Large Language Models: A Surveycited by 29
- 2023Integration of Large Language Models and Federated Learningcited by 28
- 2025Agentic AI Security: Threats, Defenses, Evaluation, and Open Challengescited by 26
- 2022CANIFE: Crafting Canaries for Empirical Privacy Measurement in Federated Learningcited by 24
- 2024Differential Privacy Mechanisms in Neural Tangent Kernel Regressioncited by 14
20 more
- 2024Provable Differentially Private Computation of the Cross-Attention Mechanismcited by 14
- 2025Seven Security Challenges in Cross-domain Multi-agent LLM Systemscited by 12
- 2022A New Linear Scaling Rule for Private Adaptive Hyperparameter Optimizationcited by 11
- 2023Information Flow Control in Machine Learning through Modular Model Architecturecited by 11
- 2025Proactive Privacy Amnesia for Large Language Models: Safeguarding PII with Negligible Impact on Model Utilitycited by 9
- 2024Risks, Causes, and Mitigations of Widespread Deployments of Large Language Models (LLMs): A Surveycited by 8
- 2024The Empirical Impact of Data Sanitization on Language Modelscited by 6
- 2025AugFL: Augmenting Federated Learning with Pretrained Modelscited by 6
- 2025LLM Access Shield: Domain-Specific LLM Framework for Privacy Policy Compliancecited by 6
- 2022Is Your Model Sensitive? SPeDaC: A New Benchmark for Detecting and Classifying Sensitive Personal Datacited by 3
- 2025PoisonedParrot: Subtle Data Poisoning Attacks to Elicit Copyright-Infringing Content from Large Language Modelscited by 3
- 2023Where have you been? A Study of Privacy Risk for Point-of-Interest Recommendationcited by 2
- 2024Federated Domain-Specific Knowledge Transfer on Large Language Models Using Synthetic Datacited by 2
- 2024Bridging Today and the Future of Humanity: AI Safety in 2024 and Beyondcited by 1
- 2025Tuning without Peeking: Provable Generalization Bounds and Robust LLM Post-Trainingcited by 1
- 2025Adaptive Token-Weighted Differential Privacy for LLMs: Not All Tokens Require Equal Protectioncited by 1
- 2024MRP-LLM: Multitask Reflective Large Language Models for Privacy-Preserving Next POI Recommendationcited by 0
- 2025A Study of Privacy-preserving Language Modeling Approachescited by 0
- 2025SA-ADP: Sensitivity-Aware Adaptive Differential Privacy for Large Language Modelscited by 0
- 2026Neural Gate: Mitigating Privacy Risks in LVLMs via Neuron-Level Gradient Gatingcited by 0
- 2026Neural Gate: Mitigating Privacy Risks in LVLMs via Neuron-Level Gradient Gating13 Mar 2026
- 2025SA-ADP: Sensitivity-Aware Adaptive Differential Privacy for Large Language Models1 Dec 2025
- 2025Agentic AI Security: Threats, Defenses, Evaluation, and Open Challenges27 Oct 2025
- 2025Adaptive Token-Weighted Differential Privacy for LLMs: Not All Tokens Require Equal Protection27 Sep 2025
- 2025A Study of Privacy-preserving Language Modeling Approaches21 Aug 2025
- 2025Tuning without Peeking: Provable Generalization Bounds and Robust LLM Post-Training2 Jul 2025
- 2025Seven Security Challenges in Cross-domain Multi-agent LLM Systems28 May 2025
- 2025LLM Access Shield: Domain-Specific LLM Framework for Privacy Policy Compliance22 May 2025
- 2025PoisonedParrot: Subtle Data Poisoning Attacks to Elicit Copyright-Infringing Content from Large Language Models10 Mar 2025
- 2025AugFL: Augmenting Federated Learning with Pretrained Models4 Mar 2025
- 2025Proactive Privacy Amnesia for Large Language Models: Safeguarding PII with Negligible Impact on Model Utility24 Feb 2025
- 2024MRP-LLM: Multitask Reflective Large Language Models for Privacy-Preserving Next POI Recommendation3 Dec 2024
20 more
- 2024The Empirical Impact of Data Sanitization on Language Models8 Nov 2024
- 2024Bridging Today and the Future of Humanity: AI Safety in 2024 and Beyond9 Oct 2024
- 2024Undesirable Memorization in Large Language Models: A Survey3 Oct 2024
- 2024Risks, Causes, and Mitigations of Widespread Deployments of Large Language Models (LLMs): A Survey1 Aug 2024
- 2024Provable Differentially Private Computation of the Cross-Attention Mechanism20 Jul 2024
- 2024Differential Privacy Mechanisms in Neural Tangent Kernel Regression18 Jul 2024
- 2024Be like a Goldfish, Don't Memorize! Mitigating Memorization in Generative LLMs14 Jun 2024
- 2024Safeguarding Large Language Models: A Survey3 Jun 2024
- 2024Federated Domain-Specific Knowledge Transfer on Large Language Models Using Synthetic Data23 May 2024
- 2024Building Guardrails for Large Language Models2 Feb 2024
- 2024Risk Taxonomy, Mitigation, and Assessment Benchmarks of Large Language Model Systems11 Jan 2024
- 2023Where have you been? A Study of Privacy Risk for Point-of-Interest Recommendation28 Oct 2023
- 2023Privacy in Large Language Models: Attacks, Defenses and Future Directions16 Oct 2023
- 2023Integration of Large Language Models and Federated Learning18 Jul 2023
- 2023Information Flow Control in Machine Learning through Modular Model Architecture5 Jun 2023
- 2023Interactive Natural Language Processing22 May 2023
- 2023Privacy-Preserving Parameter-Efficient Fine-Tuning for Large Language Model Services10 May 2023
- 2022A New Linear Scaling Rule for Private Adaptive Hyperparameter Optimization8 Dec 2022
- 2022CANIFE: Crafting Canaries for Empirical Privacy Measurement in Federated Learning6 Oct 2022
- 2022Is Your Model Sensitive? SPeDaC: A New Benchmark for Detecting and Classifying Sensitive Personal Data12 Aug 2022
- 2024Safeguarding Large Language Models: A Surveycited by 73
- 2024Building Guardrails for Large Language Modelscited by 61
- 2025PoisonedParrot: Subtle Data Poisoning Attacks to Elicit Copyright-Infringing Content from Large Language Modelscited by 3
- 2025Tuning without Peeking: Provable Generalization Bounds and Robust LLM Post-Trainingcited by 1
- 2025Tuning without Peeking: Provable Generalization Bounds and Robust LLM Post-Training2 Jul 2025
- 2025PoisonedParrot: Subtle Data Poisoning Attacks to Elicit Copyright-Infringing Content from Large Language Models10 Mar 2025
- 2024Safeguarding Large Language Models: A Survey3 Jun 2024
- 2024Building Guardrails for Large Language Models2 Feb 2024
- 2024Risk Taxonomy, Mitigation, and Assessment Benchmarks of Large Language Model Systemscited by 63
- 2024Be like a Goldfish, Don't Memorize! Mitigating Memorization in Generative LLMscited by 50
- 2023Privacy in Large Language Models: Attacks, Defenses and Future Directionscited by 48
- 2023Privacy-Preserving Parameter-Efficient Fine-Tuning for Large Language Model Servicescited by 43
- 2023Interactive Natural Language Processingcited by 31
- 2024Undesirable Memorization in Large Language Models: A Surveycited by 29
- 2023Integration of Large Language Models and Federated Learningcited by 28
- 2022CANIFE: Crafting Canaries for Empirical Privacy Measurement in Federated Learningcited by 24
- 2024Differential Privacy Mechanisms in Neural Tangent Kernel Regressioncited by 14
- 2022A New Linear Scaling Rule for Private Adaptive Hyperparameter Optimizationcited by 11
- 2023Information Flow Control in Machine Learning through Modular Model Architecturecited by 11
- 2025Proactive Privacy Amnesia for Large Language Models: Safeguarding PII with Negligible Impact on Model Utilitycited by 9
12 most cited of 23 All 23 (JSON)
- 2025SA-ADP: Sensitivity-Aware Adaptive Differential Privacy for Large Language Models1 Dec 2025
- 2025Adaptive Token-Weighted Differential Privacy for LLMs: Not All Tokens Require Equal Protection27 Sep 2025
- 2025A Study of Privacy-preserving Language Modeling Approaches21 Aug 2025
- 2025LLM Access Shield: Domain-Specific LLM Framework for Privacy Policy Compliance22 May 2025
- 2025AugFL: Augmenting Federated Learning with Pretrained Models4 Mar 2025
- 2025Proactive Privacy Amnesia for Large Language Models: Safeguarding PII with Negligible Impact on Model Utility24 Feb 2025
- 2024MRP-LLM: Multitask Reflective Large Language Models for Privacy-Preserving Next POI Recommendation3 Dec 2024
- 2024The Empirical Impact of Data Sanitization on Language Models8 Nov 2024
- 2024Bridging Today and the Future of Humanity: AI Safety in 2024 and Beyond9 Oct 2024
- 2024Undesirable Memorization in Large Language Models: A Survey3 Oct 2024
- 2024Risks, Causes, and Mitigations of Widespread Deployments of Large Language Models (LLMs): A Survey1 Aug 2024
- 2024Differential Privacy Mechanisms in Neural Tangent Kernel Regression18 Jul 2024
12 newest of 23 All 23 (JSON)