arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.10134cs.CRcs.AIcs.CL
收藏

语言模型上的逆向工程模型编辑

Reverse-Engineering Model Editing on Language Models

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

AI总结:

本文研究了语言模型中参数编辑的漏洞,提出了一种名为KSTER的逆向工程攻击方法,通过利用参数更新的低秩结构恢复编辑数据,并提出subspace camouflage防御策略以降低重建风险。

摘要:

大型语言模型(LLMs)在预训练过程中会接触到包含万亿个标记的语料库,因此不可避免地会记住敏感信息。定位然后编辑方法作为一种主流的模型编辑范式,通过修改模型参数而不重新训练,提供了一个有前景的解决方案。然而,在本工作中,我们揭示了这一范式的关键漏洞:参数更新无意中充当了侧信道,使攻击者能够恢复编辑的数据。我们提出了一种两阶段的逆向工程攻击,称为KSTER(KeySpaceReconsThenEntropyReduction),该方法利用这些更新的低秩结构。首先,我们理论证明了更新矩阵的行空间编码了被编辑主体的“指纹”,通过谱分析可以准确恢复主体。其次,我们引入了一种基于熵的提示恢复攻击,重构了编辑的语义上下文。在多个LLM上的大量实验表明,我们的攻击能够以高成功率恢复编辑数据。此外,我们提出了一种名为subspace camouflage的防御策略,通过语义伪装来混淆更新指纹,从而有效降低重建风险,而不会影响编辑的实用性。我们的代码可在https://github.com/reanatom/EditingAttack上获得。

英文摘要:

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/EditingAttack.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑