LLM Surgery: Efficient Knowledge Unlearning and Editing in Large Language Models
On the map: LLM safety and security → Machine unlearning
Abstract (arXiv)
Large language models (LLMs) have revolutionized various domains, yet their utility comes with significant challenges related to outdated or problematic knowledge embedded during pretraining. This paper addresses the challenge of modifying LLMs to unlearn problematic and outdated information while efficiently integrating new knowledge without retraining from scratch. Here, we propose LLM Surgery, a framework to efficiently modify LLM behaviour by optimizing a three component objective function that: (1) Performs reverse gradient on unlearning dataset (problematic and outdated information), (2) Performs gradient descent on the update dataset (new and updated information), and (3) Minimizes the KL divergence on the retain dataset (small subset of unchanged text), ensuring alignment between pretrained and modified model outputs. Due to the lack of publicly available datasets specifically tailored for our novel task, we compiled a new dataset and an evaluation benchmark. Using Llama2-7B, we demonstrate that LLM Surgery can achieve significant forgetting on the unlearn set, a 20% increase in accuracy on the update set, and maintain performance on the retain set.
Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Placed in Machine unlearning, one of 12 directions in LLM safety and security. Builds on 28 of its 36 references that are in the map. First posted on arXiv 19 Sep 2024.
Builds on
28 of 36 references.
Closest ancestors · 7
Same direction, newest first
- 2024Digital Forgetting in Large Language Models: A Survey of Unlearning Methods2 Apr
- 2024Guardrail Baselines for Unlearning in LLMs5 Mar
- 2024Rethinking Machine Unlearning for Large Language Models13 Feb
- 2023Unlearn What You Want to Forget: Efficient Unlearning for LLMs31 Oct
- 2023Large Language Model Unlearning14 Oct
- 2023Who's Harry Potter? Approximate Unlearning in LLMs3 Oct
- 2023Right to be Forgotten in the Era of Large Language Models: Implications, Challenges, and Solutions8 Jul
Other references · 21
- 2023GPT-4 Technical Reportcited by 18,132
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,710
- 2022Locating and Editing Factual Associations in GPTcited by 2,609
- 2022Mass-Editing Memory in a Transformercited by 976
- 2023SelfCheckGPT: Zero-Resource Black-Box Hallucination Detection for Generative Large Language Modelscited by 787
- 2021Knowledge Neurons in Pretrained Transformerscited by 590
- 2021Fast Model Editing at Scalecited by 491
- 2023Editing Large Language Models: Problems, Methods, and Opportunitiescited by 367
- 2022Aging with GRACE: Lifelong Model Editing with Discrete Key-Value Adaptorscited by 267
- 2023Sentiment Analysis in the Era of Large Language Models: A Reality Checkcited by 262
- 2021Mind the Gap: Assessing Temporal Generalization in Neural Language Modelscited by 226
9 more
- 2023Multilingual Machine Translation with Large Language Models: Empirical Results and Analysiscited by 156
- 2023Can Sensitive Information Be Deleted From LLMs? Objectives for Defending Against Extraction Attackscited by 156
- 2022Prompting PaLM for Translation: Assessing Strategies and Performancecited by 144
- 2021Temporal Effects on Pre-trained Models for Language Processing Taskscited by 46
- 2023Unveiling the Pitfalls of Knowledge Editing for Large Language Modelscited by 43
- 2023Identifying and Mitigating Privacy Risks Stemming from Language Models: A Surveycited by 30
- 2024Everything is Editable: Extend Knowledge Editing to Unstructured Data in Large Language Modelscited by 18
- 2024Knowledge Editing in Language Models via Adapted Direct Preference Optimizationcited by 17
- 2024Stable Knowledge Editing in Large Language Modelscited by 12
Built on by
Citing papers per year: 2025: 3; 2026: 1.
4 papers.
- 2025SoK: Machine Unlearning for Large Language Modelscited by 9
- 2025UniErase: Towards Balanced and Precise Unlearning in Language Modelscited by 4
- 2026Training data attribution in diffusion models via mirrored unlearning and noise-consistent skewcited by 1
- 2025CTIGuardian: A Few-Shot Framework for Mitigating Privacy Leakage in Fine-Tuned LLMscited by 0
- 2026Training data attribution in diffusion models via mirrored unlearning and noise-consistent skew18 May 2026
- 2025CTIGuardian: A Few-Shot Framework for Mitigating Privacy Leakage in Fine-Tuned LLMs15 Dec 2025
- 2025SoK: Machine Unlearning for Large Language Models10 Jun 2025
- 2025UniErase: Towards Balanced and Precise Unlearning in Language Models21 May 2025