mlsanityData to 7 Oct 2026

Just Fine-tune Twice: Selective Differential Privacy for Large Language Models

arXiv 2204.07667 ↗First posted 15 Apr 2022cs.CL cs.AI cs.CRcited by 32

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2014Adam: A Method for Stochastic Optimizationcited by 36,960
  3. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  4. 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
  5. 2016Pointer Sentinel Mixture Modelscited by 2,992
  6. 2016Deep Learning with Differential Privacycited by 2,682
  7. 2020Extracting Training Data from Large Language Modelscited by 2,144
  8. 2018The Secret Sharer: Evaluating and Testing Unintended Memorization in Neural Networkscited by 847
  9. 2021Large Language Models Can Be Strong Differentially Private Learnerscited by 405
  10. 2021Differentially Private Fine-tuning of Language Modelscited by 392
  11. 2016Semi-supervised Knowledge Transfer for Deep Learning from Private Training Datacited by 347
  12. 2018Scalable Private Learning with PATEcited by 266
11 more
  1. 2018Privacy Amplification by Subsampling: Tight Analyses via Couplings and Divergencescited by 237
  2. 2020Differentially Private Learning Needs Better Features (or Much More Data)cited by 233
  3. 2022What Does it Mean for a Language Model to Preserve Privacy?cited by 194
  4. 2021Large-Scale Differentially Private BERTcited by 117
  5. 2021Deep Learning with Label Differential Privacycited by 113
  6. 2020Bypassing the Ambient Dimension: Private SGD with Gradient Subspace Identificationcited by 88
  7. 2021Large Scale Private Learning via Low-rank Reparametrizationcited by 87
  8. 2021Action-Based Conversations Dataset: A Corpus for Building More In-Depth Task-Oriented Dialogue Systemscited by 73
  9. 2020Training Production Language Models without Memorizing User Datacited by 68
  10. 2021Selective Differential Privacy for Language Modelingcited by 61
  11. 2017One-sided Differential Privacycited by 10

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2022: 3; 2023: 6; 2024: 12; 2025: 10; 2026: 1.

32 papers.

Sort:

By area:

  1. 2024Safeguarding Large Language Models: A Surveycited by 73
  2. 2024Risk Taxonomy, Mitigation, and Assessment Benchmarks of Large Language Model Systemscited by 63
  3. 2024Building Guardrails for Large Language Modelscited by 61
  4. 2024Be like a Goldfish, Don't Memorize! Mitigating Memorization in Generative LLMscited by 50
  5. 2023Privacy in Large Language Models: Attacks, Defenses and Future Directionscited by 48
  6. 2023Privacy-Preserving Parameter-Efficient Fine-Tuning for Large Language Model Servicescited by 43
  7. 2023Interactive Natural Language Processingcited by 31
  8. 2024Undesirable Memorization in Large Language Models: A Surveycited by 29
  9. 2023Integration of Large Language Models and Federated Learningcited by 28
  10. 2025Agentic AI Security: Threats, Defenses, Evaluation, and Open Challengescited by 26
  11. 2022CANIFE: Crafting Canaries for Empirical Privacy Measurement in Federated Learningcited by 24
  12. 2024Differential Privacy Mechanisms in Neural Tangent Kernel Regressioncited by 14
20 more
  1. 2024Provable Differentially Private Computation of the Cross-Attention Mechanismcited by 14
  2. 2025Seven Security Challenges in Cross-domain Multi-agent LLM Systemscited by 12
  3. 2022A New Linear Scaling Rule for Private Adaptive Hyperparameter Optimizationcited by 11
  4. 2023Information Flow Control in Machine Learning through Modular Model Architecturecited by 11
  5. 2025Proactive Privacy Amnesia for Large Language Models: Safeguarding PII with Negligible Impact on Model Utilitycited by 9
  6. 2024Risks, Causes, and Mitigations of Widespread Deployments of Large Language Models (LLMs): A Surveycited by 8
  7. 2024The Empirical Impact of Data Sanitization on Language Modelscited by 6
  8. 2025AugFL: Augmenting Federated Learning with Pretrained Modelscited by 6
  9. 2025LLM Access Shield: Domain-Specific LLM Framework for Privacy Policy Compliancecited by 6
  10. 2022Is Your Model Sensitive? SPeDaC: A New Benchmark for Detecting and Classifying Sensitive Personal Datacited by 3
  11. 2025PoisonedParrot: Subtle Data Poisoning Attacks to Elicit Copyright-Infringing Content from Large Language Modelscited by 3
  12. 2023Where have you been? A Study of Privacy Risk for Point-of-Interest Recommendationcited by 2
  13. 2024Federated Domain-Specific Knowledge Transfer on Large Language Models Using Synthetic Datacited by 2
  14. 2024Bridging Today and the Future of Humanity: AI Safety in 2024 and Beyondcited by 1
  15. 2025Tuning without Peeking: Provable Generalization Bounds and Robust LLM Post-Trainingcited by 1
  16. 2025Adaptive Token-Weighted Differential Privacy for LLMs: Not All Tokens Require Equal Protectioncited by 1
  17. 2024MRP-LLM: Multitask Reflective Large Language Models for Privacy-Preserving Next POI Recommendationcited by 0
  18. 2025A Study of Privacy-preserving Language Modeling Approachescited by 0
  19. 2025SA-ADP: Sensitivity-Aware Adaptive Differential Privacy for Large Language Modelscited by 0
  20. 2026Neural Gate: Mitigating Privacy Risks in LVLMs via Neuron-Level Gradient Gatingcited by 0