paper-with-me

홈 › Papers

LLM Surgery: Efficient Knowledge Unlearning and Editing in Large Language Models

2024-09-19 · Akshaj Kumar Veldanda, Shi-Xiong Zhang, Anirban Das, Supriyo Chakraborty, Stephen Rawls, Sambit Sahu, Milind Naphade

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.

📄 PDF Abstract BibTeX arXiv:2409.13054

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Editing as Unlearning: Are Knowledge Editing Methods Strong Baselines for Large Language Model Unlearning?

2025-05-26 · Zexi Li, Xiangzhu Wang, William F. Shen, Meghdad Kurmanji 외

Large language Model (LLM) unlearning, i.e., selectively removing information from LLMs, is vital for responsible model deployment. Differently, LLM knowledge editing aims to modify LLM knowledge instead of removing it. …

In-Context Learningknowledge editingLanguage ModelingLanguage Modelling+1

Investigating Model Editing for Unlearning in Large Language Models

2025-12-23 · Shariqah Hossain, Lalana Kagal arxiv

Machine unlearning aims to remove unwanted information from a model, but many methods are inefficient for LLMs with large numbers of parameters or fail to fully remove the intended information without degrading performan…

Mechanistic Unlearning: Robust Knowledge Unlearning and Editing via Mechanistic Localization

2024-10-16 · Phillip Guo, Aaquib Syed, Abhay Sheshadri, Aidan Ewart 외

Methods for knowledge editing and unlearning in large language models seek to edit or remove undesirable knowledge or capabilities without compromising general language modeling performance. This work investigates how me…

knowledge editingLanguage ModelingLanguage Modelling

KnowledgeSmith: Uncovering Knowledge Updating in LLMs with Model Editing and Unlearning

2025-10-01 · Yinyi Luo, Zhexian Zhou, Hao Chen, Kai Qiu 외 arxiv

Knowledge editing and machine unlearning are two popular approaches for large language models (LLMs) to stay up-to-date. However, the knowledge updating mechanism of LLMs remains largely unexplored due to insufficient, i…

knowledge editing

Consistency-Aware Editing for Entity-level Unlearning in Language Models

2025-12-19 · Xiaoqi Han, Víctor Gutiérrez-Basulto, Ru Li, Xiaoli Li 외 arxiv

Large language models (LLMs) risk retaining sensitive, copyrighted, or harmful information from their training data. Entity-level unlearning addresses this issue by removing all knowledge of a specific entity while prese…