Tokens for Learning, Tokens for Unlearning: Mitigating Membership Inference Attacks in Large Language Models via Dual-Purpose Training
On the map: LLM safety and security → Membership inference attacks
Abstract (arXiv)
Large language models (LLMs) have become the backbone of modern natural language processing but pose privacy concerns about leaking sensitive training data. Membership inference attacks (MIAs), which aim to infer whether a sample is included in a model's training dataset, can serve as a foundation for broader privacy threats. Existing defenses designed for traditional classification models do not account for the sequential nature of text data. As a result, they either require significant computational resources or fail to effectively mitigate privacy risks in LLMs. In this work, we propose methodname, a lightweight yet effective empirical privacy defense for protecting training data of language models by leveraging token-specific characteristics. By analyzing token dynamics during training, we propose a token selection strategy that categorizes tokens into hard tokens for learning and memorized tokens for unlearning. Subsequently, our training-phase defense optimizes a novel dual-purpose token-level loss to achieve a Pareto-optimal balance between utility and privacy. Extensive experiments demonstrate that our approach not only provides strong protection against MIAs but also improves language modeling performance by around 10% across various LLM architectures and datasets compared to the baselines.
Key facts. Cited by 14 papers in the map (data through 7 Oct 2026). Placed in Membership inference attacks, one of 12 directions in LLM safety and security. Builds on 36 of its 52 references that are in the map. First posted on arXiv 27 Feb 2025.
Builds on
36 of 52 references.
Closest ancestors · 5
Same direction, newest first
- 2024PreCurious: How Innocent Pre-Trained Language Models Turn into Privacy Traps14 Mar
- 2024SoK: Reducing the Vulnerability of Fine-tuned Language Models to Membership Inference Attacks13 Mar
- 2023Membership Inference Attacks against Language Models via Neighbourhood Comparison29 May
- 2023Analyzing Leakage of Personally Identifiable Information in Language Models1 Feb
- 2021Mitigating Membership Inference Attacks by Self-Distillation Through a Novel Ensemble Architecture15 Oct
Other references · 31
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2020Scaling Laws for Neural Language Modelscited by 6,411
- 2016Deep Learning with Differential Privacycited by 2,682
- 2016Membership Inference Attacks against Machine Learning Modelscited by 2,221
- 2020Extracting Training Data from Large Language Modelscited by 2,144
- 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,734
- 2021Deduplicating Training Data Makes Language Models Bettercited by 705
- 2021Large Language Models Can Be Strong Differentially Private Learnerscited by 405
- 2021Differentially Private Fine-tuning of Language Modelscited by 392
- 2023DoReMi: Optimizing Data Mixtures Speeds Up Language Model Pretrainingcited by 385
- 2019Selection via Proxy: Efficient Data Selection for Deep Learningcited by 337
- 2018Not All Samples Are Created Equal: Deep Learning with Importance Samplingcited by 323
19 more
- 2022Deduplicating Training Data Mitigates Privacy Risks in Language Modelscited by 309
- 2020Systematic Evaluation of Privacy Risks of Machine Learning Modelscited by 273
- 2022Prioritized Training on Points that are Learnable, Worth Learning, and Not Yet Learntcited by 233
- 2018Machine Learning with Membership Privacy using Adversarial Regularizationcited by 177
- 2015Online Batch Selection for Faster Training of Neural Networkscited by 121
- 2022The Text Anonymization Benchmark (TAB): A Dedicated Corpus and Evaluation Framework for Text Anonymizationcited by 94
- 2022Automatic Clipping: Differentially Private Deep Learning Made Easier and Strongercited by 87
- 2022Position: Considerations for Differentially Private Learning with Large-Scale Public Pretrainingcited by 86
- 2022Differentially Private Optimization on Large Model at Small Costcited by 65
- 2019Ordered SGD: A New Stochastic Optimization Framework for Empirical Risk Minimizationcited by 51
- 2024Be like a Goldfish, Don't Memorize! Mitigating Memorization in Generative LLMscited by 50
- 2022When Does Differentially Private Learning Not Suffer in High Dimensions?cited by 48
- 2024Get more for less: Principled Data Selection for Warming Up Fine-Tuning in LLMscited by 32
- 2025Scaling Laws for Differentially Private Language Modelscited by 22
- 2024Why Does Differential Privacy with Large Epsilon Defend Against Practical Membership Inference Attacks?cited by 12
- 2024When Attention Collapses: How Degenerate Layers in LLMs Enable Smaller, Stronger Modelscited by 12
- 2024Pre-training Differentially Private Models with Limited Public Datacited by 8
- 2023On the accuracy and efficiency of group-wise clipping in differentially private optimizationcited by 7
- 2023Zero redundancy distributed learning with differential privacycited by 7
Built on by
Citing papers per year: 2025: 6; 2026: 8.
14 papers.
Sort:
By area:
- 2025A Comprehensive Survey in LLM(-Agent) Full Stack Safety: Data, Training and Deploymentcited by 110
- 2025Safeguarding Privacy of Retrieval Data against Membership Inference Attacks: Is This Query Too Close to Home?cited by 8
- 2025Be Careful When Fine-tuning On Open-Source LLMs: Your Fine-tuning Data Could Be Secretly Stolen!cited by 5
- 2026Do LLMs Know What Is Private Internally? Probing and Steering Contextual Privacy Norms in Large Language Model Representationscited by 2
- 2025Beyond Sharp Minima: Robust LLM Unlearning via Feedback-Guided Multi-Point Optimizationcited by 1
- 2025Ensemble Privacy Defense for Knowledge-Intensive LLMs against Membership Inference Attackscited by 1
- 2026AI Security in the Foundation Model Era: A Comprehensive Survey from a Unified Perspectivecited by 1
- 2026From Anchors to Supervision: Memory-Graph Guided Corpus-Free Unlearning for Large Language Modelscited by 1
- 2026Beyond Indistinguishability: Measuring Extraction Risk in LLM APIscited by 1
- 2026Pretraining Data Exposure in Large Language Models: A Survey of Membership Inference, Data Contamination, and Security Implicationscited by 1
- 2025Hierarchical Dual-Strategy Unlearning for Biomedical and Healthcare Intelligence Using Imperfect and Privacy-Sensitive Medical Datacited by 0
- 2026Unlearning What Matters: Token-Level Attribution for Precise Language Model Unlearningcited by 0
- 2026Tokenized Key-Gated Adapter Routing: A Secure Access Control Mechanism Against Private Data Leakage in LLMs28 Sep 2026
- 2026One Framework for All: Cross-Modal Membership Inference for Generative Models5 Jul 2026
- 2026Pretraining Data Exposure in Large Language Models: A Survey of Membership Inference, Data Contamination, and Security Implications21 May 2026
- 2026Unlearning What Matters: Token-Level Attribution for Precise Language Model Unlearning1 May 2026
- 2026Beyond Indistinguishability: Measuring Extraction Risk in LLM APIs20 Apr 2026
- 2026From Anchors to Supervision: Memory-Graph Guided Corpus-Free Unlearning for Large Language Models15 Apr 2026
- 2026Do LLMs Know What Is Private Internally? Probing and Steering Contextual Privacy Norms in Large Language Model Representations31 Mar 2026
- 2026AI Security in the Foundation Model Era: A Comprehensive Survey from a Unified Perspective25 Mar 2026
- 2025Ensemble Privacy Defense for Knowledge-Intensive LLMs against Membership Inference Attacks1 Dec 2025
- 2025Hierarchical Dual-Strategy Unlearning for Biomedical and Healthcare Intelligence Using Imperfect and Privacy-Sensitive Medical Data23 Nov 2025
- 2025Beyond Sharp Minima: Robust LLM Unlearning via Feedback-Guided Multi-Point Optimization24 Sep 2025
- 2025Safeguarding Privacy of Retrieval Data against Membership Inference Attacks: Is This Query Too Close to Home?28 May 2025
- 2025Be Careful When Fine-tuning On Open-Source LLMs: Your Fine-tuning Data Could Be Secretly Stolen!cited by 5
- 2025Beyond Sharp Minima: Robust LLM Unlearning via Feedback-Guided Multi-Point Optimizationcited by 1
- 2026AI Security in the Foundation Model Era: A Comprehensive Survey from a Unified Perspectivecited by 1
- 2026From Anchors to Supervision: Memory-Graph Guided Corpus-Free Unlearning for Large Language Modelscited by 1
- 2026Beyond Indistinguishability: Measuring Extraction Risk in LLM APIscited by 1
- 2026Pretraining Data Exposure in Large Language Models: A Survey of Membership Inference, Data Contamination, and Security Implicationscited by 1
- 2025Hierarchical Dual-Strategy Unlearning for Biomedical and Healthcare Intelligence Using Imperfect and Privacy-Sensitive Medical Datacited by 0
- 2026Unlearning What Matters: Token-Level Attribution for Precise Language Model Unlearningcited by 0
- 2026One Framework for All: Cross-Modal Membership Inference for Generative Modelscited by 0
- 2026One Framework for All: Cross-Modal Membership Inference for Generative Models5 Jul 2026
- 2026Pretraining Data Exposure in Large Language Models: A Survey of Membership Inference, Data Contamination, and Security Implications21 May 2026
- 2026Unlearning What Matters: Token-Level Attribution for Precise Language Model Unlearning1 May 2026
- 2026Beyond Indistinguishability: Measuring Extraction Risk in LLM APIs20 Apr 2026
- 2026From Anchors to Supervision: Memory-Graph Guided Corpus-Free Unlearning for Large Language Models15 Apr 2026
- 2026AI Security in the Foundation Model Era: A Comprehensive Survey from a Unified Perspective25 Mar 2026
- 2025Hierarchical Dual-Strategy Unlearning for Biomedical and Healthcare Intelligence Using Imperfect and Privacy-Sensitive Medical Data23 Nov 2025
- 2025Beyond Sharp Minima: Robust LLM Unlearning via Feedback-Guided Multi-Point Optimization24 Sep 2025
- 2025Be Careful When Fine-tuning On Open-Source LLMs: Your Fine-tuning Data Could Be Secretly Stolen!21 May 2025