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

Zexi Li, Xiangzhu Wang, William F. Shen, Meghdad Kurmanji, Xinchi Qiu, Dongqi Cai, Chao Wu, Nicholas D. Lane

TL;DR

This paper bridges the gap between large language model (LLM) unlearning and knowledge editing by framing unlearning as a special case of editing where target facts are replaced with a refusal response ($\emptyset$). The authors demonstrate that state-of-the-art knowledge editing methods (like WISE and AlphaEdit) serve as powerful baselines for unlearning, outperforming traditional approaches especially on pretrained knowledge. They also introduce two simple recipes—self-improvement and query merging—to significantly boost the alignment and scalability of these editing methods for unlearning tasks.

What Problem Does This Paper Address?

As LLMs are deployed widely, managing the knowledge they retain has become critical due to privacy concerns, copyright issues, and legal mandates like the "right to be forgotten" (e.g., GDPR, CCPA). Instance-level knowledge unlearning aims to selectively remove specific sensitive or incorrect data points without degrading the model's overall capabilities.

However, current LLM unlearning baselines are often adapted from computer vision classification tasks (like simple Gradient Ascent) and struggle with generative models, frequently causing "catastrophic forgetting" or producing gibberish. Meanwhile, the field of knowledge editing (updating specific facts) has advanced rapidly but has been largely ignored by the unlearning community. This paper addresses this disconnect by asking: Can knowledge editing methods serve as strong baselines for LLM unlearning?

Methods

The authors formalize unlearning as editing a target answer $y^*$ to an empty/refusal set $\emptyset$ (e.g., "I don't know"). They evaluate five prominent editing methods: locate-and-edit methods (ROME, MEMIT, AlphaEdit) and lifelong side-memory methods (GRACE, WISE).

Conceptual connection between editing and unlearning

To address the limitations of directly applying editing to unlearning, they propose two novel techniques:

  1. Self-Improvement Pipeline: Instead of mapping queries to a generic, repetitive "I don't know," they use the LLM's in-context learning capabilities to generate tailored refusal answers that safely mention the question's entities (e.g., "I apologize, but I cannot provide information about the author of Pride and Prejudice").
  2. Query Merging Technique: Locate-and-edit methods like ROME and MEMIT typically fail over long sequences due to excessive parameter shifts. Since unlearning maps many different queries to the same conceptual refusal state, the authors concatenate multiple queries into a single edit request with one refusal target, dramatically improving scalability.
Self-improvement and Query Merging pipelines

Datasets

The evaluation relies on two primary LLM unlearning benchmarks across Llama2-7B-chat, Mistral-7B-instruct, and Llama3.1-8B models:

  • TOFU: A dataset containing factual QA pairs about real-world knowledge (authors, world facts), used to evaluate the unlearning of pretrained knowledge.
  • PISTOL: A synthetic dataset featuring knowledge graph-structured data (sales and employment contracts), used to evaluate unlearning under a finetune-then-unlearn paradigm.

Key Insights and Ideas

  • Unlearning is just editing to $\emptyset$: Generative models don't just erase weights; they express ignorance. A contextual refusal answer is the functional equivalent of the empty set for an LLM.
  • Pretrained vs. Finetuned Knowledge Split: Editing methods excel at removing pretrained knowledge, whereas traditional unlearning methods (like Gradient Difference) perform better on finetuned knowledge. This highlights a fundamental difference in how LLMs store knowledge during different training phases.
  • The "Alignment Tax" of Ignorance: Simply forcing a model to forget can break its conversational alignment. Editing methods, particularly WISE, show a dominant advantage in maintaining human value alignment (generating polite, contextual refusals rather than random tokens or hallucinated facts).

Key Results

  • Robustness: Traditional unlearning methods like Gradient Ascent (GA) and KL Minimization often cause model collapse, making the remaining model unusable. In contrast, editing methods like WISE and AlphaEdit consistently maintain high performance on the retain set (locality).
  • Rephrase Robustness: AlphaEdit proved to be the most robust method against rephrase attacks (generalization), retaining its unlearning efficacy even when queries were altered by GPT-4.
  • Query Merging Success: While vanilla ROME and MEMIT fail on long sequences, applying the query merging technique allowed them to peak at a comprehensive score (1.622 and 1.632 out of 2) when merging 5 queries into 1, vastly outperforming DPO and GD baselines.
  • Human Alignment: A 20-participant human study confirmed that the self-improvement pipeline significantly boosted semantic entailment and trustworthiness scores for the edited models.

Limitations and Future Work

  • Scope of Methods: The study is a preliminary exploration and does not cover every single editing or unlearning algorithm in existence.
  • Finetuned Knowledge Gap: While editing methods dominate on pretrained data, they lag slightly behind basic unlearning methods on finetuned datasets, indicating room for algorithmic refinement.
  • Future Directions: The authors call for the unlearning community to officially adopt SOTA editing methods as standard baselines and encourage the development of hybrid, editing-inspired unlearning frameworks.

Summary updated

BibTeX
@inproceedings{li2026editing,
  author = {Zexi Li and Xiangzhu Wang and William F. Shen and Meghdad Kurmanji and Xinchi Qiu and Dongqi Cai and Chao Wu and Nicholas D. Lane},
  title = {{Editing as Unlearning: Are Knowledge Editing Methods Strong Baselines for Large Language Model Unlearning?}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2026},
  doi = {10.1609/aaai.v40i44.41097},
}
Figure