Tracing and Reversing Edits in LLMs

Paul Youssef, Zhixue Zhao, Christin Seifert, Jörg Schlötterer
5/27/2025
cs.CL

No confident code implementation found for this paper.

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.

Show full abstract

In order to defend against these types of malicious manipulation, we need robust techniques that can reliably detect, interpret, and mitigate malicious edits. To that end, we introduce the tasks of tracing and reversing edits. We propose a novel method to infer the edited object entity, solely based on the modified weights, without access to the editing prompt or any other semantically similar prompts, with up to 99% accuracy. Further, we propose an effective and training-free method for reversing edits. Our method reverses up to 94% of the edits, and helps regain the original model's output distribution without access to any information about the edit. This method can further be repurposed to distinguish between edited and unedited weights. Our findings highlight the feasibility of tracing and reversing edits based on the edited weights, opening a new research direction for safeguarding LLMs against adversarial manipulations.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{youssef2025tracing,
  title  = {Tracing and Reversing Edits in LLMs},
  author = {Paul Youssef and Zhixue Zhao and Christin Seifert and Jörg Schlötterer},
  year   = {2025},
  eprint = {2505.20819},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2505.20819v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2505.20819.svg)](https://codeofpaper.com/paper/2505.20819)

Discussion