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

局部定位是否指导编辑?基于因果性的定位与语言模型知识编辑之间的惊人差异

Does Localization Inform Editing? Surprising Differences in Causality-Based Localization vs. Knowledge Editing in Language Models

Google Research(谷歌研究院);UNC Chapel Hill(北卡罗来纳大学教堂山分校)

Peter Hase, Mohit Bansal, Been Kim, Asma Ghandeharioun

AI总结:

本文发现基于因果追踪的定位结果无法指导语言模型知识编辑的层选择,编辑层位置比定位结果更能预测性能,挑战了机制理解对行为改变的假设。

摘要:

语言模型在预训练期间学习大量事实信息,近期的研究将这些信息定位到特定的模型权重,如中间层MLP权重。在本文中,我们发现可以通过编辑与现有方法所指出的事实存储位置不同的权重来改变事实在模型中的存储方式。这一发现令人惊讶,因为我们原本预期将事实定位到特定模型参数会告诉我们应在何处操纵模型中的知识,而这一假设也推动了以往模型编辑方法的研究。具体而言,我们表明,来自表示去噪(也称为因果追踪)的定位结论并不能提供任何关于应编辑哪个模型MLP层以用新事实覆盖现有存储事实的见解。这一发现对以往工作依赖因果追踪来选择要编辑的模型层提出了质疑。接下来,我们考虑了编辑问题的几种变体,包括擦除和放大事实。对于我们的一个编辑问题,编辑性能确实与表示去噪的定位结果相关,但我们发现,编辑哪个层是性能更好的预测指标。我们的结果反直觉地表明,对预训练语言模型工作机制的更好理解可能并不总能转化为关于如何最佳改变其行为的见解。我们的代码可在 https://github.com/google/belief-localization 获取。

英文摘要:

Language models learn a great quantity of factual information during pretraining, and recent work localizes this information to specific model weights like mid-layer MLP weights. In this paper, we find that we can change how a fact is stored in a model by editing weights that are in a different location than where existing methods suggest that the fact is stored. This is surprising because we would expect that localizing facts to specific model parameters would tell us where to manipulate knowledge in models, and this assumption has motivated past work on model editing methods. Specifically, we show that localization conclusions from representation denoising (also known as Causal Tracing) do not provide any insight into which model MLP layer would be best to edit in order to override an existing stored fact with a new one. This finding raises questions about how past work relies on Causal Tracing to select which model layers to edit. Next, we consider several variants of the editing problem, including erasing and amplifying facts. For one of our editing problems, editing performance does relate to localization results from representation denoising, but we find that which layer we edit is a far better predictor of performance. Our results suggest, counterintuitively, that better mechanistic understanding of how pretrained language models work may not always translate to insights about how to best change their behavior. Our code is available at https://github.com/google/belief-localization

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

↑