Bag of Tricks for Training Data Extraction from Language Models
Not on the map. Why?
Cited by 23 in LLM safety and security, but placed by its own abstract, which didn’t fit.
Abstract (arXiv)
With the advance of language models, privacy protection is receiving more attention. Training data extraction is therefore of great importance, as it can serve as a potential tool to assess privacy leakage. However, due to the difficulty of this task, most of the existing methods are proof-of-concept and still not effective enough. In this paper, we investigate and benchmark tricks for improving training data extraction using a publicly available dataset. Because most existing extraction methods use a pipeline of generating-then-ranking, i.e., generating text candidates as potential training data and then ranking them based on specific criteria, our research focuses on the tricks for both text generation (e.g., sampling strategy) and text ranking (e.g., token-level criteria). The experimental results show that several previously overlooked tricks can be crucial to the success of training data extraction. Based on the GPT-Neo 1.3B evaluation results, our proposed tricks outperform the baseline by a large margin in most cases, providing a much stronger baseline for future research. The code is available at https://github.com/weichen-yu/LM-Extraction.
Key facts. Cited by 67 papers in the map (data through 7 Oct 2026). Builds on 37 of its 62 references that are in the map. First posted on arXiv 9 Feb 2023.
Builds on
37 of 62 references.
References · 37
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2015Distilling the Knowledge in a Neural Networkcited by 10,076
- 2019The Curious Case of Neural Text Degenerationcited by 2,881
- 2019Optuna: A Next-generation Hyperparameter Optimization Frameworkcited by 2,455
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
- 2016Membership Inference Attacks against Machine Learning Modelscited by 2,221
- 2020Extracting Training Data from Large Language Modelscited by 2,144
- 2018Hierarchical Neural Story Generationcited by 1,182
- 2017A Closer Look at Memorization in Deep Networkscited by 936
- 2018The Secret Sharer: Evaluating and Testing Unintended Memorization in Neural Networkscited by 847
- 2022Quantifying Memorization Across Neural Language Modelscited by 755
25 more
- 2019CTRL: A Conditional Transformer Language Model for Controllable Generationcited by 754
- 2016Stealing Machine Learning Models via Prediction APIscited by 602
- 2019Neural Text Generation with Unlikelihood Trainingcited by 489
- 2018ML-Leaks: Model and Data Independent Membership Inference Attacks and Defenses on Machine Learning Modelscited by 475
- 2019Does Learning Require Memorization? A Short Tale about a Long Tailcited by 452
- 2020Label-Only Membership Inference Attackscited by 371
- 2022Deduplicating Training Data Mitigates Privacy Risks in Language Modelscited by 309
- 2021Membership Inference Attacks on Machine Learning: A Surveycited by 306
- 2020Systematic Evaluation of Privacy Risks of Machine Learning Modelscited by 273
- 2019White-box vs Black-box: Bayes Optimal Strategies for Membership Inferencecited by 265
- 2017Beam Search Strategies for Neural Machine Translationcited by 232
- 2019Stolen Memories: Leveraging Model Memorization for Calibrated White-Box Membership Inferencecited by 168
- 2018PRADA: Protecting against DNN Model Stealing Attackscited by 159
- 2019Reconstruction and Membership Inference Attacks against Generative Modelscited by 122
- 2018Learning to Write with Cooperative Discriminatorscited by 119
- 2022Measuring Forgetting of Memorized Training Examplescited by 118
- 2022Locally Typical Samplingcited by 108
- 2021Does BERT Pretrained on Clinical Notes Reveal Sensitive Data?cited by 91
- 2020Model Extraction Attacks on Graph Neural Networks: Taxonomy and Realizationcited by 39
- 2016You are Who You Know and How You Behave: Attribute Inference Attacks via Users' Social Friends and Behaviorscited by 34
- 2020Against Membership Inference Attack: Pruning is All You Needcited by 32
- 2019Segmentations-Leak: Membership Inference Attacks and Defenses in Semantic Image Segmentationcited by 29
- 2018Autotune: A Derivative-free Optimization Framework for Hyperparameter Tuningcited by 20
- 2019Alleviating Privacy Attacks via Causal Learningcited by 19
- 2021Property Inference Attacks on Convolutional Neural Networks: Influence and Implications of Target Model's Complexitycited by 19
Built on by
Citing papers per year: 2023: 9; 2024: 24; 2025: 21; 2026: 13.
67 papers.
Sort:
By area:
- 2024Magpie: Alignment Data Synthesis from Scratch by Prompting Aligned LLMs with Nothingcited by 341
- 2024SecAlign: Defending Against Prompt Injection with Preference Optimizationcited by 179
- 2023DNA-GPT: Divergent N-Gram Analysis for Training-Free Detection of GPT-Generated Textcited by 127
- 2023Foundation Models and Fair Usecited by 112
- 2023Jatmo: Prompt Injection Defense by Task-Specific Finetuningcited by 89
- 2024Harmful Fine-tuning Attacks and Defenses for Large Language Models: A Surveycited by 86
- 2024Operationalizing a Threat Model for Red-Teaming Large Language Models (LLMs)cited by 44
- 2024LLM-PBE: Assessing Data Privacy in Large Language Modelscited by 38
- 2024Alpaca against Vicuna: Using LLMs to Uncover Memorization of LLMscited by 33
- 2023Identifying and Mitigating Privacy Risks Stemming from Language Models: A Surveycited by 30
- 2024Privacy Leakage on DNNs: A Survey of Model Inversion Attacks and Defensescited by 30
- 2024Undesirable Memorization in Large Language Models: A Surveycited by 29
38 more
- 2023Towards Machine Unlearning Benchmarks: Forgetting the Personal Identities in Facial Recognition Systemscited by 27
- 2023MoPe: Model Perturbation-based Privacy Attacks on Language Modelscited by 25
- 2024Purifying Large Language Models by Ensembling a Small Language Modelcited by 25
- 2025RepreGuard: Detecting LLM-Generated Text by Revealing Hidden Representation Patternscited by 24
- 2024Deconstructing The Ethics of Large Language Models from Long-standing Issues to New-emerging Dilemmas: A Surveycited by 23
- 2024Avoiding Copyright Infringement via Large Language Model Unlearningcited by 22
- 2024PII-Compass: Guiding LLM training data extraction prompts towards the target PII via groundingcited by 22
- 2024Sampling-based Pseudo-Likelihood for Membership Inference Attackscited by 18
- 2024Poison-splat: Computation Cost Attack on 3D Gaussian Splattingcited by 17
- 2023On the Trustworthiness Landscape of State-of-the-art Generative Models: A Survey and Outlookcited by 15
- 2023PrivacyMind: Large Language Models Can Be Contextual Privacy Protection Learnerscited by 13
- 2023Building Privacy-Preserving and Secure Geospatial Artificial Intelligence Foundation Modelscited by 12
- 2024Privacy-Aware Visual Language Modelscited by 12
- 2025Do LLMs Memorize Recommendation Datasets? A Preliminary Study on MovieLens-1Mcited by 12
- 2024SoK: Reducing the Vulnerability of Fine-tuned Language Models to Membership Inference Attackscited by 10
- 2025R.R.: Unveiling LLM Training Privacy through Recollection and Rankingcited by 10
- 2025SOFT: Selective Data Obfuscation for Protecting LLM Fine-tuning against Membership Inference Attackscited by 9
- 2025The Landscape of Memorization in LLMs: Mechanisms, Measurement, and Mitigationcited by 9
- 2024Towards More Realistic Extraction Attacks: An Adversarial Perspectivecited by 8
- 2024Distribution-Level Feature Distancing for Machine Unlearning: Towards a Better Trade-off Between Model Utility and Forgettingcited by 7
- 2025Mitigating Memorization in LLMs using Activation Steeringcited by 7
- 2025Be the Change You Want to See: Revisiting Remote Sensing Change Detection Practicescited by 6
- 2025Automated Detection of Pre-training Text in Black-box LLMscited by 5
- 2024Promise and Peril of Collaborative Code Generation Models: Balancing Effectiveness and Memorizationcited by 4
- 2026AttenMIA: LLM Membership Inference Attack through Attention Signalscited by 4
- 2024Multi-PA: A Multi-perspective Benchmark on Privacy Assessment for Large Vision-Language Modelscited by 3
- 2024Quantifying Memorization and Detecting Training Data of Pre-trained Language Models using Japanese Newspapercited by 2
- 2024On the Validity of Traditional Vulnerability Scoring Systems for Adversarial Attacks against LLMscited by 2
- 2025PATCH: Mitigating PII Leakage in Language Models with Privacy-Aware Targeted Circuit PatcHingcited by 2
- 2024On Active Privacy Auditing in Supervised Fine-tuning for White-Box Language Modelscited by 1
- 2025AC-LoRA: (Almost) Training-Free Access Control-Aware Multi-Modal LLMscited by 1
- 2025Simple Yet Effective: Extracting Private Data Across Clients in Federated Fine-Tuning of Large Language Modelscited by 1
- 2025Efficient Unlearning with Privacy Guaranteescited by 1
- 2025Guess or Recall? Training CNNs to Classify and Localize Memorization in LLMscited by 1
- 2025Layer-Wise Perturbations via Sparse Autoencoders for Adversarial Text Generationcited by 1
- 2025ToFU: Transforming How Federated Learning Systems Forget User Datacited by 1
- 2025Black Box Absorption: LLMs Undermining Innovative Ideascited by 1
- 2026A Prior-Aware Metric for Efficiently Distinguishing Memorization from Generalization in Large Language Modelscited by 1
50 most cited of 67 All 67 (JSON)
- 2026Estimating and Orthogonalizing Unknown Pre-training Gradients for Continual Fine-tuning of Large Language Models25 Sep 2026
- 2026kappa-LoRA: Condition Numbers Reveal Which LoRA Matrices Worth Updating24 Jul 2026
- 2026Loss Landscape Poisoning: Targeted Extraction of Unseen Training Data from LLMs15 Jun 2026
- 2026Extracting Training Data from Diffusion Language Models via Infilling22 May 2026
- 2026What Does the Server See? Understanding Privacy Leakage from Large Language Models in Split Inference22 May 2026
- 2026Boundary-targeted Membership Inference Attacks on Safety Classifiers21 May 2026
- 2026Beyond Indistinguishability: Measuring Extraction Risk in LLM APIs20 Apr 2026
- 2026Toward Reliable, Safe, and Secure LLMs for Scientific Applications18 Mar 2026
- 2026Neural Gate: Mitigating Privacy Risks in LVLMs via Neuron-Level Gradient Gating13 Mar 2026
- 2026Extracting Training Dialogue Data from Large Language Model based Task Bots2 Mar 2026
- 2026Nonparametric Teaching of Attention Learners24 Feb 2026
- 2026A Prior-Aware Metric for Efficiently Distinguishing Memorization from Generalization in Large Language Models21 Feb 2026
38 more
- 2026AttenMIA: LLM Membership Inference Attack through Attention Signals26 Jan 2026
- 2025On the Effectiveness of Membership Inference in Targeted Data Extraction from Large Language Models15 Dec 2025
- 2025CTIGuardian: A Few-Shot Framework for Mitigating Privacy Leakage in Fine-Tuned LLMs15 Dec 2025
- 2025Black Box Absorption: LLMs Undermining Innovative Ideas23 Oct 2025
- 2025Auditing Information Disclosure During Large-Scale Gradient-Based Training via Gradient Uniqueness13 Oct 2025
- 2025PATCH: Mitigating PII Leakage in Language Models with Privacy-Aware Targeted Circuit PatcHing8 Oct 2025
- 2025ToFU: Transforming How Federated Learning Systems Forget User Data19 Sep 2025
- 2025RepreGuard: Detecting LLM-Generated Text by Revealing Hidden Representation Patterns18 Aug 2025
- 2025Layer-Wise Perturbations via Sparse Autoencoders for Adversarial Text Generation14 Aug 2025
- 2025Guess or Recall? Training CNNs to Classify and Localize Memorization in LLMs4 Aug 2025
- 2025The Landscape of Memorization in LLMs: Mechanisms, Measurement, and Mitigation8 Jul 2025
- 2025Efficient Unlearning with Privacy Guarantees7 Jul 2025
- 2025Be the Change You Want to See: Revisiting Remote Sensing Change Detection Practices4 Jul 2025
- 2025Automated Detection of Pre-training Text in Black-box LLMs24 Jun 2025
- 2025SOFT: Selective Data Obfuscation for Protecting LLM Fine-tuning against Membership Inference Attacks12 Jun 2025
- 2025Simple Yet Effective: Extracting Private Data Across Clients in Federated Fine-Tuning of Large Language Models6 Jun 2025
- 2025Fragments to Facts: Partial-Information Fragment Inference from LLMs20 May 2025
- 2025AC-LoRA: (Almost) Training-Free Access Control-Aware Multi-Modal LLMs15 May 2025
- 2025Do LLMs Memorize Recommendation Datasets? A Preliminary Study on MovieLens-1M15 May 2025
- 2025DMRL: Data- and Model-aware Reward Learning for Data Extraction7 May 2025
- 2025Mitigating Memorization in LLMs using Activation Steering8 Mar 2025
- 2025R.R.: Unveiling LLM Training Privacy through Recollection and Ranking18 Feb 2025
- 2024On the Validity of Traditional Vulnerability Scoring Systems for Adversarial Attacks against LLMs28 Dec 2024
- 2024Multi-PA: A Multi-perspective Benchmark on Privacy Assessment for Large Vision-Language Models27 Dec 2024
- 2024On Active Privacy Auditing in Supervised Fine-tuning for White-Box Language Models11 Nov 2024
- 2024Poison-splat: Computation Cost Attack on 3D Gaussian Splatting10 Oct 2024
- 2024SecAlign: Defending Against Prompt Injection with Preference Optimization7 Oct 2024
- 2024Undesirable Memorization in Large Language Models: A Survey3 Oct 2024
- 2024Harmful Fine-tuning Attacks and Defenses for Large Language Models: A Survey26 Sep 2024
- 2024Distribution-Level Feature Distancing for Machine Unlearning: Towards a Better Trade-off Between Model Utility and Forgetting23 Sep 2024
- 2024Promise and Peril of Collaborative Code Generation Models: Balancing Effectiveness and Memorization18 Sep 2024
- 2024LLM-PBE: Assessing Data Privacy in Large Language Models23 Aug 2024
- 2024Operationalizing a Threat Model for Red-Teaming Large Language Models (LLMs)20 Jul 2024
- 2024PII-Compass: Guiding LLM training data extraction prompts towards the target PII via grounding3 Jul 2024
- 2024Towards More Realistic Extraction Attacks: An Adversarial Perspective2 Jul 2024
- 2024Avoiding Copyright Infringement via Large Language Model Unlearning16 Jun 2024
- 2024Magpie: Alignment Data Synthesis from Scratch by Prompting Aligned LLMs with Nothing12 Jun 2024
- 2024Deconstructing The Ethics of Large Language Models from Long-standing Issues to New-emerging Dilemmas: A Survey8 Jun 2024
50 newest of 67 All 67 (JSON)
- 2023Jatmo: Prompt Injection Defense by Task-Specific Finetuningcited by 89
- 2024Operationalizing a Threat Model for Red-Teaming Large Language Models (LLMs)cited by 44
- 2023Towards Machine Unlearning Benchmarks: Forgetting the Personal Identities in Facial Recognition Systemscited by 27
- 2024Purifying Large Language Models by Ensembling a Small Language Modelcited by 25
- 2024Avoiding Copyright Infringement via Large Language Model Unlearningcited by 22
- 2024Sampling-based Pseudo-Likelihood for Membership Inference Attackscited by 18
- 2024SoK: Reducing the Vulnerability of Fine-tuned Language Models to Membership Inference Attackscited by 10
- 2025R.R.: Unveiling LLM Training Privacy through Recollection and Rankingcited by 10
- 2025SOFT: Selective Data Obfuscation for Protecting LLM Fine-tuning against Membership Inference Attackscited by 9
- 2025The Landscape of Memorization in LLMs: Mechanisms, Measurement, and Mitigationcited by 9
- 2024Distribution-Level Feature Distancing for Machine Unlearning: Towards a Better Trade-off Between Model Utility and Forgettingcited by 7
- 2026AttenMIA: LLM Membership Inference Attack through Attention Signalscited by 4
12 most cited of 21 All 21 (JSON)
- 2026Boundary-targeted Membership Inference Attacks on Safety Classifiers21 May 2026
- 2026Beyond Indistinguishability: Measuring Extraction Risk in LLM APIs20 Apr 2026
- 2026Extracting Training Dialogue Data from Large Language Model based Task Bots2 Mar 2026
- 2026AttenMIA: LLM Membership Inference Attack through Attention Signals26 Jan 2026
- 2025On the Effectiveness of Membership Inference in Targeted Data Extraction from Large Language Models15 Dec 2025
- 2025CTIGuardian: A Few-Shot Framework for Mitigating Privacy Leakage in Fine-Tuned LLMs15 Dec 2025
- 2025ToFU: Transforming How Federated Learning Systems Forget User Data19 Sep 2025
- 2025Layer-Wise Perturbations via Sparse Autoencoders for Adversarial Text Generation14 Aug 2025
- 2025The Landscape of Memorization in LLMs: Mechanisms, Measurement, and Mitigation8 Jul 2025
- 2025Efficient Unlearning with Privacy Guarantees7 Jul 2025
- 2025SOFT: Selective Data Obfuscation for Protecting LLM Fine-tuning against Membership Inference Attacks12 Jun 2025
- 2025Fragments to Facts: Partial-Information Fragment Inference from LLMs20 May 2025
12 newest of 21 All 21 (JSON)
- 2023DNA-GPT: Divergent N-Gram Analysis for Training-Free Detection of GPT-Generated Textcited by 127
- 2023Foundation Models and Fair Usecited by 112
- 2024LLM-PBE: Assessing Data Privacy in Large Language Modelscited by 38
- 2023Identifying and Mitigating Privacy Risks Stemming from Language Models: A Surveycited by 30
- 2024Privacy Leakage on DNNs: A Survey of Model Inversion Attacks and Defensescited by 30
- 2024Undesirable Memorization in Large Language Models: A Surveycited by 29
- 2023MoPe: Model Perturbation-based Privacy Attacks on Language Modelscited by 25
- 2025RepreGuard: Detecting LLM-Generated Text by Revealing Hidden Representation Patternscited by 24
- 2024Deconstructing The Ethics of Large Language Models from Long-standing Issues to New-emerging Dilemmas: A Surveycited by 23
- 2024PII-Compass: Guiding LLM training data extraction prompts towards the target PII via groundingcited by 22
- 2024Poison-splat: Computation Cost Attack on 3D Gaussian Splattingcited by 17
- 2023PrivacyMind: Large Language Models Can Be Contextual Privacy Protection Learnerscited by 13
12 most cited of 35 All 35 (JSON)
- 2026Estimating and Orthogonalizing Unknown Pre-training Gradients for Continual Fine-tuning of Large Language Models25 Sep 2026
- 2026kappa-LoRA: Condition Numbers Reveal Which LoRA Matrices Worth Updating24 Jul 2026
- 2026Loss Landscape Poisoning: Targeted Extraction of Unseen Training Data from LLMs15 Jun 2026
- 2026What Does the Server See? Understanding Privacy Leakage from Large Language Models in Split Inference22 May 2026
- 2026Nonparametric Teaching of Attention Learners24 Feb 2026
- 2026A Prior-Aware Metric for Efficiently Distinguishing Memorization from Generalization in Large Language Models21 Feb 2026
- 2025Black Box Absorption: LLMs Undermining Innovative Ideas23 Oct 2025
- 2025Auditing Information Disclosure During Large-Scale Gradient-Based Training via Gradient Uniqueness13 Oct 2025
- 2025PATCH: Mitigating PII Leakage in Language Models with Privacy-Aware Targeted Circuit PatcHing8 Oct 2025
- 2025RepreGuard: Detecting LLM-Generated Text by Revealing Hidden Representation Patterns18 Aug 2025
- 2025Guess or Recall? Training CNNs to Classify and Localize Memorization in LLMs4 Aug 2025
- 2025Be the Change You Want to See: Revisiting Remote Sensing Change Detection Practices4 Jul 2025
12 newest of 35 All 35 (JSON)