Mechanistic Unlearning: Robust Knowledge Unlearning and Editing via Mechanistic Localization
Phillip Guo, Aaquib Syed, Abhay Sheshadri, Aidan Ewart, Gintare Karolina Dziugaite
TL;DR
This work tackles the challenge of editing and unlearning undesirable factual knowledge in large language models without sacrificing general performance. It contrasts two mechanistic localization strategies: output-tracing (OT) and fact-lookup (FLU), demonstrating that FLU-focused edits yield superior robustness to prompt variations and adversarial relearning across multiple datasets and models. Through latent-probing and weight-masking analyses, the authors show that FLU targets the latent sources of factual knowledge and achieves edits with greater parameter efficiency, while OT-based localizations tend to disrupt extraction mechanisms and are more vulnerable to relearning. The findings suggest a practical, interpretable framework for robust knowledge editing in LLMs and highlight the importance of targeting the factual lookup stage to disrupt latent knowledge rather than merely altering outputs.
Abstract
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 mechanistic interpretability -- which, in part, aims to identify model components (circuits) associated to specific interpretable mechanisms that make up a model capability -- can improve the precision and effectiveness of editing and unlearning. We find a stark difference in unlearning and edit robustness when training components localized by different methods. We highlight an important distinction between methods that localize components based primarily on preserving outputs, and those finding high level mechanisms with predictable intermediate states. In particular, localizing edits/unlearning to components associated with the lookup-table mechanism for factual recall 1) leads to more robust edits/unlearning across different input/output formats, and 2) resists attempts to relearn the unwanted information, while also reducing unintended side effects compared to baselines, on both a sports facts dataset and the CounterFact dataset across multiple models. We also find that certain localized edits disrupt the latent knowledge in the model more than any other baselines, making unlearning more robust to various attacks.
