Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Reverse-Engineering Model Editing on Language Models

About

Large language models (LLMs) are pretrained on corpora containing trillions of tokens and, therefore, inevitably memorize sensitive information. Locate-then-edit methods, as a mainstream paradigm of model editing, offer a promising solution by modifying model parameters without retraining. However, in this work, we reveal a critical vulnerability of this paradigm: the parameter updates inadvertently serve as a side channel, enabling attackers to recover the edited data. We propose a two-stage reverse-engineering attack named \textit{KSTER} (\textbf{K}ey\textbf{S}paceRecons\textbf{T}ruction-then-\textbf{E}ntropy\textbf{R}eduction) that leverages the low-rank structure of these updates. First, we theoretically show that the row space of the update matrix encodes a ``fingerprint" of the edited subjects, enabling accurate subject recovery via spectral analysis. Second, we introduce an entropy-based prompt recovery attack that reconstructs the semantic context of the edit. Extensive experiments on multiple LLMs demonstrate that our attacks can recover edited data with high success rates. Furthermore, we propose \textit{subspace camouflage}, a defense strategy that obfuscates the update fingerprint with semantic decoys. This approach effectively mitigates reconstruction risks without compromising editing utility. Our code is available at https://github.com/reanatom/EditingAtk.git.

Zhiyu Sun, Minrui Luo, Yu Wang, Zhili Chen, Tianxing He• 2026

Related benchmarks

TaskDatasetResultRank
Subject inference attackCounterFact batch-edit tasks
Recall100
36
Subject inference attackzsRE batch-edit tasks
Recall99
36
Prompt recovery attackCounterFact
Top-1 Accuracy60
12
Prompt recovery attackzsRE
Top-1 Accuracy40
12
Prompt recovery attackCounterFact (test)--
9
Prompt recovery attackZSRE (test)--
9
Subject inference attackCounterFact
Attack Performance100
6
Subject inference attackzsRE
Attack Performance100
6
Showing 8 of 8 rows

Other info

Follow for update