Tracing and Reversing Rank-One Model Edits
Paul Youssef, Zhixue Zhao, Christin Seifert, Jörg Schlötterer
TL;DR
This work investigates the traceability and reversibility of Rank-One Model Editing (ROME) in large language models. By analyzing the rank-one weight update $W_N = u v^T$ added to the MLP projection $W_V$, the authors show distinctive patterns that reveal edited weights, enable prediction of the edited relation, and allow inference of the edited object with high accuracy without editing prompts. They introduce bottom-rank SVD approximations to reverse edits, recovering original outputs with substantial accuracy across GPT-XL, GPT-J, and LLAMA3. The study demonstrates practical pathways to detect, localize, and reverse malicious edits, contributing to safer AI systems and offering a framework adaptable to new editing scenarios. Overall, the work provides a weight-centric methodology to defend against adversarial knowledge edits by tracing, interpreting, and neutralizing edits at the parameter level.
Abstract
Knowledge editing methods (KEs) are a cost-effective way to update the factual content of large language models (LLMs), but they pose a dual-use risk. While KEs are beneficial for updating outdated or incorrect information, they can be exploited maliciously to implant misinformation or bias. In order to defend against these types of malicious manipulation, we need robust techniques that can reliably detect, interpret, and mitigate adversarial edits. This work investigates the traceability and reversibility of knowledge edits, focusing on the widely used Rank-One Model Editing (ROME) method. We first show that ROME introduces distinctive distributional patterns in the edited weight matrices, which can serve as effective signals for locating the edited weights. Second, we show that these altered weights can reliably be used to predict the edited factual relation, enabling partial reconstruction of the modified fact. Building on this, we propose a method to infer the edited object entity directly from the modified weights, without access to the editing prompt, achieving over 95% accuracy. Finally, we demonstrate that ROME edits can be reversed, recovering the model's original outputs with $\geq$ 80% accuracy. Our findings highlight the feasibility of detecting, tracing, and reversing edits based on the edited weights, offering a robust framework for safeguarding LLMs against adversarial manipulations.
