一掩蔽之:编辑后的隐藏事实及其发现方法
One Mask to Rule Them All: On Hidden Facts after Editing and How to Find Them
AI总结:
本文通过训练二进制掩码揭示ROME和MEMIT知识编辑方法依赖共同权重子集,并证明编辑抑制而非覆盖知识,导致无法传播至相关事实。
摘要:
知识编辑方法(如ROME和MEMIT)通过修改MLP权重来更新Transformer模型中的事实关联。虽然主要通过输出行为进行评估,但其内部机制仍未得到充分探索。我们研究了编辑是否依赖于一种通用机制,无论修改哪个事实。尽管存在特定于事实的权重变化,我们认为ROME和MEMIT针对的是维持编辑所必需的相同权重子集。为了隔离这个子集,我们在编辑后的权重上训练了一个紧凑的二进制掩码。该掩码在训练集上逆转了80%的编辑,在测试集上逆转了超过70%,证实了不同的编辑共享一个共同的功能结构。我们的分析表明,掩码通过消除后期层中的过度注意力来逆转编辑。此外,我们展示了在编辑过程中注入掩码会将编辑成功率从98%降至38%,证明这种机制对于编辑成功是必要的。我们的发现——编辑抑制而非覆盖知识——解释了为什么ROME和MEMIT无法将变化传播到相关事实。所识别的共同功能子空间为检测和防御不想要的编辑提供了信息。
英文摘要:
Knowledge editing methods such as ROME and MEMIT update factual associations in transformer models by modifying MLP weights. While evaluated mainly by output behavior, their internal mechanism remains underexplored. We investigate whether edits rely on a common mechanism, regardless of which fact is modified. Despite fact-specific weight changes, we argue that ROME and MEMIT target the same subset of weights critical for maintaining edits. To isolate this subset, we train a compact binary mask over the edited weights. The mask reverses 80% of edits on the training set and over 70% on the test set, confirming that diverse edits share a common functional structure. Our analysis reveals that the mask reverses edits by eliminating overattention in later layers. Additionally, we show that injecting the mask during editing drops editing success from 98% to 38%, demonstrating that this mechanism is necessary for edits to succeed. Our finding that edits suppress rather than overwrite knowledge explains why ROME and MEMIT fail to propagate changes to related facts. The identified common functional subspace informs detection and defense against unwanted edits.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。