Ethicist: Targeted Training Data Extraction Through Loss Smoothed Soft Prompting and Calibrated Confidence Estimation
Not on the map. Why?
Abstract (arXiv)
Large pre-trained language models achieve impressive results across many tasks. However, recent works point out that pre-trained language models may memorize a considerable fraction of their training data, leading to the privacy risk of information leakage. In this paper, we propose a method named Ethicist for targeted training data extraction through loss smoothed soft prompting and calibrated confidence estimation, investigating how to recover the suffix in the training data when given a prefix. To elicit memorization in the attacked model, we tune soft prompt embeddings while keeping the model fixed. We further propose a smoothing loss that smooths the loss distribution of the suffix tokens to make it easier to sample the correct suffix. In order to select the most probable suffix from a collection of sampled suffixes and estimate the prediction confidence, we propose a calibrated confidence estimation method, which normalizes the confidence of the generated suffixes with a local estimation. We show that Ethicist significantly improves the extraction performance on a recently proposed public benchmark. We also investigate several factors influencing the data extraction performance, including decoding strategy, model scale, prefix length, and suffix length. Our code is available at https://github.com/thu-coai/Targeted-Data-Extraction.
Key facts. Cited by 36 papers in the map (data through 7 Oct 2026). Builds on 24 of its 39 references that are in the map. First posted on arXiv 10 Jul 2023.
Builds on
24 of 39 references.
References · 24
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
- 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,464
- 2021Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsitycited by 3,014
- 2019The Curious Case of Neural Text Degenerationcited by 2,881
- 2016Deep Learning with Differential Privacycited by 2,682
- 2022Emergent Abilities of Large Language Modelscited by 2,483
- 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
12 more
- 2018Hierarchical Neural Story Generationcited by 1,182
- 2018The Secret Sharer: Evaluating and Testing Unintended Memorization in Neural Networkscited by 847
- 2022Quantifying Memorization Across Neural Language Modelscited by 755
- 2020What Neural Networks Memorize and Why: Discovering the Long Tail via Influence Estimationcited by 492
- 2019Does Learning Require Memorization? A Short Tale about a Long Tailcited by 452
- 2022Deduplicating Training Data Mitigates Privacy Risks in Language Modelscited by 309
- 2022Memorization Without Overfitting: Analyzing the Training Dynamics of Large Language Modelscited by 218
- 2020Information Leakage in Embedding Modelscited by 199
- 2022Quantifying Privacy Risks of Masked Language Models Using Membership Inference Attackscited by 168
- 2021Does BERT Pretrained on Clinical Notes Reveal Sensitive Data?cited by 91
- 2019Analyzing Information Leakage of Updates to Natural Language Modelscited by 89
- 2019Membership Inference Attacks on Sequence-to-Sequence Models: Is My Data In Your Machine Translation System?cited by 68
Built on by
Citing papers per year: 2023: 7; 2024: 15; 2025: 11; 2026: 3.
36 papers.
Sort:
By area:
- 2023A Survey on Large Language Model (LLM) Security and Privacy: The Good, the Bad, and the Uglycited by 380
- 2024Agent-SafetyBench: Evaluating the Safety of LLM Agentscited by 280
- 2023SafetyBench: Evaluating the Safety of Large Language Modelscited by 189
- 2023Defending Large Language Models Against Jailbreaking Attacks Through Goal Prioritizationcited by 156
- 2025Advances and Challenges in Foundation Agents: From Brain-Inspired Intelligence to Evolutionary, Collaborative, and Safe Systemscited by 125
- 2025A Comprehensive Survey in LLM(-Agent) Full Stack Safety: Data, Training and Deploymentcited by 110
- 2023Unveiling the Implicit Toxicity in Large Language Modelscited by 51
- 2023Privacy in Large Language Models: Attacks, Defenses and Future Directionscited by 48
- 2024ShieldLM: Empowering LLMs as Aligned, Customizable and Explainable Safety Detectorscited by 48
- 2024Feedback-Guided Extraction of Knowledge Base from Retrieval-Augmented LLM Applicationscited by 36
- 2023The Janus Interface: How Fine-Tuning in Large Language Models Amplifies the Privacy Riskscited by 35
- 2023Identifying and Mitigating Privacy Risks Stemming from Language Models: A Surveycited by 30
24 more
- 2024Privacy Leakage on DNNs: A Survey of Model Inversion Attacks and Defensescited by 30
- 2024From Theft to Bomb-Making: The Ripple Effect of Unlearning in Defending Against Jailbreak Attackscited by 29
- 2024Undesirable Memorization in Large Language Models: A Surveycited by 29
- 2024Large Model Based Agents: State-of-the-Art, Cooperation Paradigms, Security and Privacy, and Future Trendscited by 26
- 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
- 2025How Should We Enhance the Safety of Large Reasoning Models: An Empirical Studycited by 18
- 2025A Survey on Model Extraction Attacks and Defenses for Large Language Modelscited by 18
- 2024MIA-Tuner: Adapting Large Language Models as Pre-training Text Detectorcited by 13
- 2025AISafetyLab: A Comprehensive Framework for AI Safety Evaluation and Improvementcited by 11
- 2025Guiding not Forcing: Enhancing the Transferability of Jailbreaking Attacks on LLMs via Removing Superfluous Constraintscited by 11
- 2025R.R.: Unveiling LLM Training Privacy through Recollection and Rankingcited by 10
- 2024TUNI: A Textual Unimodal Detector for Identity Inference in CLIP Modelscited by 8
- 2024PII-Scope: A Comprehensive Study on Training Data PII Extraction Attacks in LLMscited by 6
- 2024Enhancing Safety in Reinforcement Learning with Human Feedback via Rectified Policy Optimizationcited by 5
- 2025Be Careful When Fine-tuning On Open-Source LLMs: Your Fine-tuning Data Could Be Secretly Stolen!cited by 5
- 2025Unlearned but Not Forgotten: Data Extraction after Exact Unlearning in LLMcited by 5
- 2025Leaner Training, Lower Leakage: Revisiting Memorization in LLM Fine-Tuning with LoRAcited by 3
- 2024On the Validity of Traditional Vulnerability Scoring Systems for Adversarial Attacks against LLMscited by 2
- 2026What Does the Server See? Understanding Privacy Leakage from Large Language Models in Split Inferencecited by 1
- 2024Exploring the Privacy Protection Capabilities of Chinese Large Language Modelscited by 0
- 2025Current State in Privacy-Preserving Text Preprocessing for Domain-Agnostic NLPcited by 0
- 2026The Missing Half: Unveiling Training-time Implicit Safety Risks Beyond Deploymentcited by 0
- 2026Secret Stealing Attacks on Local LLM Fine-Tuning through Supply-Chain Model Code Backdoorscited by 0
- 2026What Does the Server See? Understanding Privacy Leakage from Large Language Models in Split Inference22 May 2026
- 2026Secret Stealing Attacks on Local LLM Fine-Tuning through Supply-Chain Model Code Backdoors30 Apr 2026
- 2026The Missing Half: Unveiling Training-time Implicit Safety Risks Beyond Deployment4 Feb 2026
- 2025Current State in Privacy-Preserving Text Preprocessing for Domain-Agnostic NLP5 Aug 2025
- 2025A Survey on Model Extraction Attacks and Defenses for Large Language Models26 Jun 2025
- 2025Leaner Training, Lower Leakage: Revisiting Memorization in LLM Fine-Tuning with LoRA25 Jun 2025
- 2025Unlearned but Not Forgotten: Data Extraction after Exact Unlearning in LLM30 May 2025
- 2025Be Careful When Fine-tuning On Open-Source LLMs: Your Fine-tuning Data Could Be Secretly Stolen!21 May 2025
- 2025How Should We Enhance the Safety of Large Reasoning Models: An Empirical Study21 May 2025
- 2025A Comprehensive Survey in LLM(-Agent) Full Stack Safety: Data, Training and Deployment22 Apr 2025
- 2025Advances and Challenges in Foundation Agents: From Brain-Inspired Intelligence to Evolutionary, Collaborative, and Safe Systems31 Mar 2025
- 2025Guiding not Forcing: Enhancing the Transferability of Jailbreaking Attacks on LLMs via Removing Superfluous Constraints25 Feb 2025
24 more
- 2025AISafetyLab: A Comprehensive Framework for AI Safety Evaluation and Improvement24 Feb 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
- 2024Agent-SafetyBench: Evaluating the Safety of LLM Agents19 Dec 2024
- 2024Feedback-Guided Extraction of Knowledge Base from Retrieval-Augmented LLM Applications21 Nov 2024
- 2024Enhancing Safety in Reinforcement Learning with Human Feedback via Rectified Policy Optimization25 Oct 2024
- 2024PII-Scope: A Comprehensive Study on Training Data PII Extraction Attacks in LLMs9 Oct 2024
- 2024Undesirable Memorization in Large Language Models: A Survey3 Oct 2024
- 2024Large Model Based Agents: State-of-the-Art, Cooperation Paradigms, Security and Privacy, and Future Trends22 Sep 2024
- 2024MIA-Tuner: Adapting Large Language Models as Pre-training Text Detector16 Aug 2024
- 2024PII-Compass: Guiding LLM training data extraction prompts towards the target PII via grounding3 Jul 2024
- 2024From Theft to Bomb-Making: The Ripple Effect of Unlearning in Defending Against Jailbreak Attacks3 Jul 2024
- 2024Deconstructing The Ethics of Large Language Models from Long-standing Issues to New-emerging Dilemmas: A Survey8 Jun 2024
- 2024TUNI: A Textual Unimodal Detector for Identity Inference in CLIP Models23 May 2024
- 2024Exploring the Privacy Protection Capabilities of Chinese Large Language Models27 Mar 2024
- 2024ShieldLM: Empowering LLMs as Aligned, Customizable and Explainable Safety Detectors26 Feb 2024
- 2024Privacy Leakage on DNNs: A Survey of Model Inversion Attacks and Defenses6 Feb 2024
- 2023A Survey on Large Language Model (LLM) Security and Privacy: The Good, the Bad, and the Ugly4 Dec 2023
- 2023Unveiling the Implicit Toxicity in Large Language Models29 Nov 2023
- 2023Defending Large Language Models Against Jailbreaking Attacks Through Goal Prioritization15 Nov 2023
- 2023The Janus Interface: How Fine-Tuning in Large Language Models Amplifies the Privacy Risks24 Oct 2023
- 2023Privacy in Large Language Models: Attacks, Defenses and Future Directions16 Oct 2023
- 2023Identifying and Mitigating Privacy Risks Stemming from Language Models: A Survey27 Sep 2023
- 2023SafetyBench: Evaluating the Safety of Large Language Models13 Sep 2023
- 2023Defending Large Language Models Against Jailbreaking Attacks Through Goal Prioritizationcited by 156
- 2024From Theft to Bomb-Making: The Ripple Effect of Unlearning in Defending Against Jailbreak Attackscited by 29
- 2025Guiding not Forcing: Enhancing the Transferability of Jailbreaking Attacks on LLMs via Removing Superfluous Constraintscited by 11
- 2025R.R.: Unveiling LLM Training Privacy through Recollection and Rankingcited by 10
- 2025Be Careful When Fine-tuning On Open-Source LLMs: Your Fine-tuning Data Could Be Secretly Stolen!cited by 5
- 2025Unlearned but Not Forgotten: Data Extraction after Exact Unlearning in LLMcited by 5
- 2025Leaner Training, Lower Leakage: Revisiting Memorization in LLM Fine-Tuning with LoRAcited by 3
- 2026The Missing Half: Unveiling Training-time Implicit Safety Risks Beyond Deploymentcited by 0
- 2026Secret Stealing Attacks on Local LLM Fine-Tuning through Supply-Chain Model Code Backdoorscited by 0
- 2026Secret Stealing Attacks on Local LLM Fine-Tuning through Supply-Chain Model Code Backdoors30 Apr 2026
- 2026The Missing Half: Unveiling Training-time Implicit Safety Risks Beyond Deployment4 Feb 2026
- 2025Leaner Training, Lower Leakage: Revisiting Memorization in LLM Fine-Tuning with LoRA25 Jun 2025
- 2025Unlearned but Not Forgotten: Data Extraction after Exact Unlearning in LLM30 May 2025
- 2025Be Careful When Fine-tuning On Open-Source LLMs: Your Fine-tuning Data Could Be Secretly Stolen!21 May 2025
- 2025Guiding not Forcing: Enhancing the Transferability of Jailbreaking Attacks on LLMs via Removing Superfluous Constraints25 Feb 2025
- 2025R.R.: Unveiling LLM Training Privacy through Recollection and Ranking18 Feb 2025
- 2024From Theft to Bomb-Making: The Ripple Effect of Unlearning in Defending Against Jailbreak Attacks3 Jul 2024
- 2023Defending Large Language Models Against Jailbreaking Attacks Through Goal Prioritization15 Nov 2023
- 2023A Survey on Large Language Model (LLM) Security and Privacy: The Good, the Bad, and the Uglycited by 380
- 2023SafetyBench: Evaluating the Safety of Large Language Modelscited by 189
- 2023Unveiling the Implicit Toxicity in Large Language Modelscited by 51
- 2023Privacy in Large Language Models: Attacks, Defenses and Future Directionscited by 48
- 2024ShieldLM: Empowering LLMs as Aligned, Customizable and Explainable Safety Detectorscited by 48
- 2023The Janus Interface: How Fine-Tuning in Large Language Models Amplifies the Privacy Riskscited by 35
- 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
- 2024Large Model Based Agents: State-of-the-Art, Cooperation Paradigms, Security and Privacy, and Future Trendscited by 26
- 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
12 most cited of 21 All 21 (JSON)
- 2026What Does the Server See? Understanding Privacy Leakage from Large Language Models in Split Inference22 May 2026
- 2025Current State in Privacy-Preserving Text Preprocessing for Domain-Agnostic NLP5 Aug 2025
- 2025A Survey on Model Extraction Attacks and Defenses for Large Language Models26 Jun 2025
- 2025AISafetyLab: A Comprehensive Framework for AI Safety Evaluation and Improvement24 Feb 2025
- 2024On the Validity of Traditional Vulnerability Scoring Systems for Adversarial Attacks against LLMs28 Dec 2024
- 2024PII-Scope: A Comprehensive Study on Training Data PII Extraction Attacks in LLMs9 Oct 2024
- 2024Undesirable Memorization in Large Language Models: A Survey3 Oct 2024
- 2024Large Model Based Agents: State-of-the-Art, Cooperation Paradigms, Security and Privacy, and Future Trends22 Sep 2024
- 2024MIA-Tuner: Adapting Large Language Models as Pre-training Text Detector16 Aug 2024
- 2024PII-Compass: Guiding LLM training data extraction prompts towards the target PII via grounding3 Jul 2024
- 2024Deconstructing The Ethics of Large Language Models from Long-standing Issues to New-emerging Dilemmas: A Survey8 Jun 2024
- 2024TUNI: A Textual Unimodal Detector for Identity Inference in CLIP Models23 May 2024
12 newest of 21 All 21 (JSON)