Unlearned but Not Forgotten: Data Extraction after Exact Unlearning in LLM
On the map: LLM safety and security → Machine unlearning
Abstract (arXiv)
Large Language Models are typically trained on datasets collected from the web, which may inadvertently contain harmful or sensitive personal information. To address growing privacy concerns, unlearning methods have been proposed to remove the influence of specific data from trained models. Of these, exact unlearning -- which retrains the model from scratch without the target data -- is widely regarded the gold standard for mitigating privacy risks in deployment. In this paper, we revisit this assumption in a practical deployment setting where both the pre- and post-unlearning logits API are exposed, such as in open-weight scenarios. Targeting this setting, we introduce a novel data extraction attack that leverages signals from the pre-unlearning model to guide the post-unlearning model, uncovering patterns that reflect the removed data distribution. Combining model guidance with a token filtering strategy, our attack significantly improves extraction success rates -- doubling performance in some cases -- across common benchmarks such as MUSE, TOFU, and WMDP. Furthermore, we demonstrate our attack's effectiveness on a simulated medical diagnosis dataset to highlight real-world privacy risks associated with exact unlearning. In light of our findings, which suggest that unlearning may, in a contradictory way, increase the risk of privacy leakage during real-world deployments, we advocate for evaluation of unlearning methods to consider broader threat models that account not only for post-unlearning models but also for adversarial access to prior checkpoints. Code is publicly available at: https://github.com/Nicholas0228/unlearned_data_extraction_llm.
Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). Placed in Machine unlearning, one of 12 directions in LLM safety and security. Builds on 25 of its 39 references that are in the map. First posted on arXiv 30 May 2025.
Builds on
25 of 39 references.
Closest ancestors · 12
Same direction, newest first
- 2025Exact Unlearning of Finetuning Data via Model Merging at Scale6 Apr
- 2024Edge Unlearning is Not "on Edge"! An Adaptive Exact Unlearning System on Resource-Constrained Devices14 Oct
- 2024An Adversarial Perspective on Machine Unlearning for AI Safety26 Sep
- 2024MUSE: Machine Unlearning Six-Way Evaluation for Language Models8 Jul
- 2024Unlearning or Obfuscating? Jogging the Memory of Unlearned LLMs via Benign Relearning19 Jun
- 2024Reconstruction Attacks on Machine Unlearning: Simple Models are Vulnerable30 May
- 2024Negative Preference Optimization: From Catastrophic Collapse to Effective Unlearning8 Apr
- 2024Learn What You Want to Unlearn: Unlearning Inversion Attacks against Machine Unlearning4 Apr
- 2024TOFU: A Task of Fictitious Unlearning for LLMs11 Jan
- 2023Who's Harry Potter? Approximate Unlearning in LLMs3 Oct
- 2023Model Sparsity Can Simplify Machine Unlearning11 Apr
- 2022Knowledge Unlearning for Mitigating Privacy Risks in Language Models4 Oct
Other references · 13
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2016Deep Learning with Differential Privacycited by 2,728
- 2020Extracting Training Data from Large Language Modelscited by 2,189
- 2024Mixtral of Expertscited by 1,823
- 2022Editing Models with Task Arithmeticcited by 1,120
- 2022Contrastive Decoding: Open-ended Text Generation as Optimizationcited by 609
- 2023Textbooks Are All You Need II: phi-1.5 technical reportcited by 565
- 2024The WMDP Benchmark: Measuring and Reducing Malicious Use With Unlearningcited by 509
- 2019Making AI Forget You: Data Deletion in Machine Learningcited by 465
- 2023Scalable Extraction of Training Data from (Production) Language Modelscited by 434
- 2023Stay on topic with Classifier-Free Guidancecited by 91
- 2023Ethicist: Targeted Training Data Extraction Through Loss Smoothed Soft Prompting and Calibrated Confidence Estimationcited by 36
Built on by
Citing papers per year: 2026: 5.
5 papers.
- 2026REBEL: Hidden Knowledge Recovery via Evolutionary-Based Evaluation Loopcited by 4
- 2026Models Designed to Forget: Machine Unlearning via Key Deletioncited by 3
- 2026Can an AI Assistant Really Forget? Auditable Deletion from Addressable Memorycited by 3
- 2026Beyond Forgetting: Representation Misdirection Elicits Controllable Side Behaviors and Capabilitiescited by 1
- 2026Extracting Forgotten Prompts from Targeted Unlearned Modelscited by 0
- 2026Extracting Forgotten Prompts from Targeted Unlearned Models3 Sep 2026
- 2026Can an AI Assistant Really Forget? Auditable Deletion from Addressable Memory30 Jul 2026
- 2026Models Designed to Forget: Machine Unlearning via Key Deletion16 Mar 2026
- 2026REBEL: Hidden Knowledge Recovery via Evolutionary-Based Evaluation Loop5 Feb 2026
- 2026Beyond Forgetting: Representation Misdirection Elicits Controllable Side Behaviors and Capabilities29 Jan 2026
Similar, not cited
Close in wording, no citation either way
- 2024Forget to Flourish: Leveraging Machine-Unlearning on Pretrained Language Models for Privacy Leakage
- 2024Textual Unlearning Gives a False Sense of Unlearning
- 2025Rectifying Privacy and Efficacy Measurements in Machine Unlearning: A New Inference Attack Perspective
- 2024Releasing Malevolence from Benevolence: The Menace of Benign Data on Machine Unlearning
- 2026On the Recoverability of Private Information Unlearning in Large Language Models
- 2025Does Machine Unlearning Truly Remove Knowledge?
- 2025Unlearning Isn't Invisible: Detecting Unlearning Traces in LLMs from Model Outputs
- 2026Mitigating Privacy Risk via Forget Set-Free Unlearning