Manuscript Offprint

arXiv:2609.02091

Selective Knowledge Edit Reversal via Gated Singular Vector Shrinkage

Weifeng Jiang, Ruirui Chen, Qianren Mao, Junnan Liu, Qili Zhang, Kwok-Yan Lam

Abstract

Knowledge editing provides an efficient way to update factual knowledge in large language models. However, malicious edits may introduce safety risks, making it necessary to reverse undesirable editing effects. Existing reversal methods for parameter-modifying edits mainly focus on global removal, which may also erase beneficial edits that should be preserved. In this paper, we study selective reversal of edited knowledge, where the goal is to reverse targeted edited facts while preserving the remaining edited facts. Based on the hypothesis that each edit is sparsely encoded within the dominant subspace of the edited matrix, we propose a spectral-based reversal framework that locates edit-sensitive components within the dominant singular subspace of edited weights. Experiments across multiple settings demonstrate the effectiveness of our method in reversing selected edits while preserving unrelated edited facts. These results suggest that different edits are sparsely encoded within dominant singular components and can be separable when the number of edits is moderate, making selective spectral reversal a promising direction for locating edit-specific components and repairing edited language models. 1^{1}

1 Introduction

Large language models (LLMs) have demonstrated strong capabilities across diverse application domains (Qin et al., 2023; Li et al., 2023; Cui et al., 2024; Ye et al., 2025). As these models are increasingly deployed in real-world applications, it becomes important to keep their factual knowledge up to date (Yao et al., 2023; Zhang et al., 2024). Knowledge editing (Mitchell et al., 2022a; Meng et al., 2022, 2023; Yao et al., 2023; Zhang et al., 2024; Li et al., 2024; Fang et al., 2025) provides

Figure

Figure 1: A model may contain both beneficial and harmful edits. Simply assuming that all edits are unknown and removing all edits from the model would also eliminate beneficial modifications. A more realistic scenario is to combine existing detection methods to identify harmful edits, and then selectively remove the detected edits without affecting other unknown edits.

an efficient way to update specific factual associations in a model while preserving unrelated knowledge, thereby avoiding expensive retraining and catastrophic forgetting (Zhu et al., 2020; Cao et al., 2021; Mitchell et al., 2022a; Huang et al., 2023; Zhang et al., 2024).

However, despite their impressive performance, recent studies have shown that knowledge editing may introduce safety risks (Youssef et al., 2025a). Due to its low overhead and ease of use, adversaries can exploit knowledge editing to inject backdoors, introduce biases, enable jailbreaking, and spread misinformation in LLMs (Qiu et al., 2025; Hazra et al., 2024; Chen et al., 2024a; Ju et al., 2024; Youssef et al., 2025a). Although several methods have been proposed to detect the editedness of a model or its output (Li et al., 2025; Youssef et al.,

1^{1}Code and data are available at: https://github.com/marvinhehehe/spectral-reverse

2025b,c, 2026), reversing edits back to the pretrained state remains a challenging research problem, especially for parameter-modifying editing methods, where edited knowledge is directly embedded into the model weights.

Recent work has explored spectral approaches to reversing parameter-modifying edits (Youssef et al., 2026). It achieves global reversal by deleting dominant singular subspace of the edited matrix. However, global deletion is not sufficient for realistic scenarios. As shown in Figure 1, an edited model may contain both harmful and beneficial edits. Simply removing all edits will also erase useful knowledge updates that should be preserved.

Therefore, in this work, we aim to locate where different edits are encoded in the parameter space of an edited model, and use this localization to selectively reverse edited knowledge. More specifically, given a set of subject-relation facts that have been confirmed to be edited, we identify the edit-sensitive components associated with these facts using only the edited model. Based on the identified components, the model's outputs for the selected facts should become similar to those of the original pretrained model, while its outputs for the remaining edited facts should remain close to those of the edited model.

To achieve this objective, we propose a spectral-based reversal framework. We hypothesize that the information associated with each edit is sparsely encoded within the dominant rank-one singular components of the edited matrix. Based on this hypothesis, we use learnable entry-wise gates over the singular vectors of the edited weight matrix to locate and shrink edit-sensitive components associated with selected edits. We evaluate the proposed method on multiple language models, editing methods, and factual editing benchmarks.

Our contributions are summarized as follows:

  • We formulate the problem of selective reversal for parameter-modifying knowledge editing, where the goal is to locate and reverse targeted edited facts while preserving the remaining edited facts (Section 3).

  • We propose a spectral-based reversal framework that uses learnable entry-wise gates over singular vectors to locate and shrink edit-sensitive components inside the dominant rank-one singular components of edited weights (Section 5).

  • We conduct extensive experiments across multiple models, editing methods, and factual editing benchmarks, showing that the proposed framework can effectively reverse selected edits while preserving remaining edits. The results provide empirical evidence that, given a moderate number of edits, different edits can be sparse and not strongly entangled within the dominant singular components of the edited matrix (Section 6).

References (25)