mlsanityData to 7 Oct 2026

Large Language Model Unlearning via Embedding-Corrupted Prompts

arXiv 2406.07933 ↗First posted 12 Jun 2024cs.CL cs.AI cs.LGcited by 112

On the map: LLM safety and security → Machine unlearning

Abstract (arXiv)

Large language models (LLMs) have advanced to encompass extensive knowledge across diverse domains. Yet controlling what a large language model should not know is important for ensuring alignment and thus safe use. However, accurately and efficiently unlearning knowledge from an LLM remains challenging due to the potential collateral damage caused by the fuzzy boundary between retention and forgetting, and the large computational requirements for optimization across state-of-the-art models with hundreds of billions of parameters. In this work, we present Embedding-COrrupted (ECO) Prompts, a lightweight unlearning framework for large language models to address both the challenges of knowledge entanglement and unlearning efficiency. Instead of relying on the LLM itself to unlearn, we enforce an unlearned state during inference by employing a prompt classifier to identify and safeguard prompts to forget. We learn corruptions added to prompt embeddings via zeroth order optimization toward the unlearning objective offline and corrupt prompts flagged by the classifier during inference. We find that these embedding-corrupted prompts not only lead to desirable outputs that satisfy the unlearning objective but also closely approximate the output from a model that has never been trained on the data intended for forgetting. Through extensive experiments on unlearning, we demonstrate the superiority of our method in achieving promising unlearning at textitnearly zero side effects in general domains and domains closely related to the unlearned ones. Additionally, we highlight the scalability of our method to 100 LLMs, ranging from 0.5B to 236B parameters, incurring no additional cost as the number of parameters increases. We have made our code publicly available at urlhttps://github.com/chrisliu298/llm-unlearn-eco.

Key facts. Cited by 112 papers in the map (data through 7 Oct 2026). Placed in Machine unlearning, one of 12 directions in LLM safety and security. Builds on 106 of its 148 references that are in the map. First posted on arXiv 12 Jun 2024.

Builds on

106 of 148 references.

Closest ancestors · 25

Same direction, newest first

  1. 2024Data Selection for Transfer Unlearning16 May
  2. 2024SOUL: Unlocking the Power of Second-Order Optimization for LLM Unlearning28 Apr
  3. 2024Offset Unlearning for Large Language Models17 Apr
  4. 2024Negative Preference Optimization: From Catastrophic Collapse to Effective Unlearning8 Apr
  5. 2024Guardrail Baselines for Unlearning in LLMs5 Mar
  6. 2024Inexact Unlearning Needs More Careful Evaluations to Avoid a False Sense of Privacy2 Mar
  7. 2024Eight Methods to Evaluate Robust Unlearning in LLMs26 Feb
  8. 2024Machine Unlearning of Pre-trained Large Language Models23 Feb
  9. 2024Towards Safer Large Language Models through Machine Unlearning15 Feb
  10. 2024Rethinking Machine Unlearning for Large Language Models13 Feb
  11. 2024Fast Exact Unlearning for In-Context Learning Data for LLMs1 Feb
  12. 2024TOFU: A Task of Fictitious Unlearning for LLMs11 Jan
13 more
  1. 2023Unlearn What You Want to Forget: Efficient Unlearning for LLMs31 Oct
  2. 2023SalUn: Empowering Machine Unlearning via Gradient-based Weight Saliency in Both Image Classification and Generation19 Oct
  3. 2023Large Language Model Unlearning14 Oct
  4. 2023In-Context Unlearning: Language Models as Few Shot Unlearners11 Oct
  5. 2023Who's Harry Potter? Approximate Unlearning in LLMs3 Oct
  6. 2023What can we learn from Data Leakage and Unlearning for Law?19 Jul
  7. 2023KGA: A General Machine Unlearning Framework Based on Knowledge Gap Alignment11 May
  8. 2023Exploring the Landscape of Machine Unlearning: A Comprehensive Survey and Taxonomy10 May
  9. 2023Model Sparsity Can Simplify Machine Unlearning11 Apr
  10. 2023Towards Unbounded Machine Unlearning20 Feb
  11. 2022Privacy Adhering Machine Un-learning in NLP19 Dec
  12. 2022Knowledge Unlearning for Mitigating Privacy Risks in Language Models4 Oct
  13. 2022A Survey of Machine Unlearning6 Sep

Other references · 81

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2023GPT-4 Technical Reportcited by 18,132
  3. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  4. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  5. 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,393
  6. 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 7,916
  7. 2020Measuring Massive Multitask Language Understandingcited by 7,768
  8. 2019BERTScore: Evaluating Text Generation with BERTcited by 5,462
  9. 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,710
  10. 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,243
  11. 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,018
  12. 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,464
38 more
  1. 2023Qwen Technical Reportcited by 3,273
  2. 2023Mistral 7Bcited by 3,065
  3. 2021TruthfulQA: Measuring How Models Mimic Human Falsehoodscited by 2,919
  4. 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 2,914
  5. 2019BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questionscited by 2,140
  6. 2018Can a Suit of Armor Conduct Electricity? A New Dataset for Open Book Question Answeringcited by 2,114
  7. 2023Code Llama: Open Foundation Models for Codecited by 2,105
  8. 2024Phi-3 Technical Report: A Highly Capable Language Model Locally on Your Phonecited by 1,883
  9. 2018CommonsenseQA: A Question Answering Challenge Targeting Commonsense Knowledgecited by 1,793
  10. 2018A Call for Clarity in Reporting BLEU Scorescited by 1,790
  11. 2024Mixtral of Expertscited by 1,785
  12. 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,734
  13. 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,154
  14. 2023Llama Guard: LLM-based Input-Output Safeguard for Human-AI Conversationscited by 1,124
  15. 2023WizardLM: Empowering large pre-trained language models to follow complex instructionscited by 1,116
  16. 2024DeepSeek-V2: A Strong, Economical, and Efficient Mixture-of-Experts Language Modelcited by 1,093
  17. 2022Editing Models with Task Arithmeticcited by 1,076
  18. 2024Gemma: Open Models Based on Gemini Research and Technologycited by 889
  19. 2023Gemini: A Family of Highly Capable Multimodal Modelscited by 810
  20. 2024Yi: Open Foundation Models by 01.AIcited by 706
  21. 2023Baichuan 2: Open Large-scale Language Modelscited by 664
  22. 2024OLMo: Accelerating the Science of Language Modelscited by 599
  23. 2023Textbooks Are All You Need II: phi-1.5 technical reportcited by 559
  24. 2023Zephyr: Direct Distillation of LM Alignmentcited by 498
  25. 2024The WMDP Benchmark: Measuring and Reducing Malicious Use With Unlearningcited by 488
  26. 2024InternLM2 Technical Reportcited by 391
  27. 2023Detecting Pretraining Data from Large Language Modelscited by 375
  28. 2023Orca: Progressive Learning from Complex Explanation Traces of GPT-4cited by 369
  29. 2023NeMo Guardrails: A Toolkit for Controllable and Safe LLM Applications with Programmable Railscited by 347
  30. 2020On the Stability of Fine-tuning BERT: Misconceptions, Explanations, and Strong Baselinescited by 254
  31. 2023LEACE: Perfect linear concept erasure in closed formcited by 254
  32. 2023OpenChat: Advancing Open-source Language Models with Mixed-Quality Datacited by 250
  33. 2023Can LLMs Keep a Secret? Testing Privacy Implications of Language Models via Contextual Integrity Theorycited by 218
  34. 2024Do Membership Inference Attacks Work on Large Language Models?cited by 188
  35. 2023Beyond Memorization: Violating Privacy Via Inference with Large Language Modelscited by 167
  36. 2024AmpleGCG: Learning a Universal and Transferable Generative Model of Adversarial Suffixes for Jailbreaking Both Open and Closed LLMscited by 160
  37. 2023Composing Parameter-Efficient Modules with Arithmetic Operationscited by 155
  38. 2024AdvPrompter: Fast Adaptive Adversarial Prompting for LLMscited by 146

50 most cited of 81 All 81 (JSON)

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 12; 2025: 62; 2026: 38.

112 papers.

Sort:

By area:

  1. 2024Simplicity Prevails: Rethinking Negative Preference Optimization for LLM Unlearningcited by 160
  2. 2024LLM Defenses Are Not Robust to Multi-Turn Human Jailbreaks Yetcited by 145
  3. 2024An Adversarial Perspective on Machine Unlearning for AI Safetycited by 113
  4. 2024Unlearning or Obfuscating? Jogging the Memory of Unlearned LLMs via Benign Relearningcited by 81
  5. 2025Towards LLM Unlearning Resilient to Relearning Attacks: A Sharpness-Aware Minimization Perspective and Beyondcited by 76
  6. 2024LLM Unlearning via Loss Adjustment with Only Forget Datacited by 71
  7. 2024Position: LLM Unlearning Benchmarks are Weak Measures of Progresscited by 58
  8. 2024A Closer Look at Machine Unlearning for Large Language Modelscited by 54
  9. 2025Unlearning Isn't Deletion: Investigating Reversibility of Machine Unlearning in LLMscited by 41
  10. 2024Meta-Unlearning on Diffusion Models: Preventing Relearning Unlearned Conceptscited by 39
  11. 2025Exploring Criteria of Loss Reweighting to Enhance LLM Unlearningcited by 39
  12. 2025LLM Unlearning via Neural Activation Redirectioncited by 38
38 more
  1. 2024Alternate Preference Optimization for Unlearning Factual Knowledge in Large Language Modelscited by 32
  2. 2025SafeEraser: Enhancing Safety in Multimodal Large Language Models through Multimodal Machine Unlearningcited by 31
  3. 2025A Comprehensive Survey of Machine Unlearning Techniques for Large Language Modelscited by 30
  4. 2024On Effects of Steering Latent Representation for Large Language Model Unlearningcited by 27
  5. 2025Invariance Makes LLM Unlearning Resilient Even to Unanticipated Downstream Fine-Tuningcited by 20
  6. 2025FORTRESS: Frontier Risk Evaluation for National Security and Public Safetycited by 20
  7. 2025GUARD: Generation-time LLM Unlearning via Adaptive Restriction and Detectioncited by 17
  8. 2025Model Unlearning via Sparse Autoencoder Subspace Guided Projectionscited by 17
  9. 2025LLM Unlearning with LLM Beliefscited by 17
  10. 2024MEOW: MEMOry Supervised LLM Unlearning Via Inverted Factscited by 16
  11. 2024SEUF: Is Unlearning One Expert Enough for Mixture-of-Experts LLMs?cited by 14
  12. 2025Editing as Unlearning: Are Knowledge Editing Methods Strong Baselines for Large Language Model Unlearning?cited by 13
  13. 2025A General Framework to Enhance Fine-tuning-based LLM Unlearningcited by 12
  14. 2025Reasoning Model Unlearning: Forgetting Traces, Not Just Answers, While Preserving Reasoning Skillscited by 12
  15. 2025UIPE: Enhancing LLM Unlearning by Removing Knowledge Related to Forgetting Targetscited by 10
  16. 2025SALAD: Systematic Assessment of Machine Unlearning on LLM-Aided Hardware Designcited by 10
  17. 2025Constrained Entropic Unlearning: A Primal-Dual Framework for Large Language Modelscited by 10
  18. 2025RepIt: Steering Language Models with Concept-Specific Refusal Vectorscited by 10
  19. 2026Machine Unlearning under Retain-Forget Entanglementcited by 10
  20. 2025OBLIVIATE: Robust and Practical Machine Unlearning for Large Language Modelscited by 9
  21. 2025SoK: Machine Unlearning for Large Language Modelscited by 9
  22. 2025UCD: Unlearning in LLMs via Contrastive Decodingcited by 9
  23. 2025Jailbreaking to Jailbreakcited by 8
  24. 2026BalDRO: A Distributionally Robust Optimization based Framework for Large Language Model Unlearningcited by 8
  25. 2025Does Machine Unlearning Truly Remove Knowledge?cited by 7
  26. 2025CLUE: Conflict-guided Localization for LLM Unlearning Frameworkcited by 7
  27. 2025DRAGON: Guard LLM Unlearning in Context via Negative Detection and Reasoningcited by 7
  28. 2025PEBench: A Fictitious Dataset to Benchmark Machine Unlearning for Multimodal Large Language Modelscited by 6
  29. 2025Harry Potter is Still Here! Probing Knowledge Leakage in Targeted Unlearned Large Language Models via Automated Adversarial Promptingcited by 6
  30. 2025Not All Tokens Are Meant to Be Forgottencited by 6
  31. 2026Agentic Unlearning: When LLM Agent Meets Machine Unlearningcited by 6
  32. 2026Attention Smoothing Is All You Need For Unlearningcited by 6
  33. 2026Multimodal Unlearning Across Vision, Language, Video, and Audio: Survey of Methods, Datasets, and Benchmarkscited by 6
  34. 2025Erasing Without Remembering: Implicit Knowledge Forgetting in Large Language Modelscited by 5
  35. 2025SEPS: A Separability Measure for Robust Unlearning in LLMscited by 5
  36. 2025Wisdom is Knowing What not to Say: Hallucination-Free LLMs Unlearning via Attention Shiftingcited by 5
  37. 2025Curvature-Aware Safety Restoration In LLMs Fine-Tuningcited by 5
  38. 2026When Benchmarks Leak: Inference-Time Decontamination for LLMscited by 5

50 most cited of 112 All 112 (JSON)