arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2401.07526cs.CLcs.AIcs.LG
收藏

无需主语标签即可编辑大语言模型中的任意命题

Editing Arbitrary Propositions in LLMs without Subject Labels

Salesforce AI Research(赛富时人工智能研究院)

Itai Feigenbaum, Devansh Arpit, Huan Wang, Shelby Heinecke, Juan Carlos Niebles, Weiran Yao, Caiming Xiong, Silvio Savarese

AI总结:

本文提出梯度追踪(GT)定位方法,无需主语标签即可编辑大语言模型中的任意命题,并在新数据集FACT上验证了其对非二元命题的编辑能力。

摘要:

大语言模型(LLM)编辑会修改 LLM 中的事实信息。定位并编辑(L&E)方法通过寻找相关信息在神经网络中的存储位置,并编辑该位置的权重来实现这一目标。编辑的目标是修改 LLM 对某一命题的响应,使其不受措辞影响,同时不改变其对其他相关命题的响应。现有方法仅限于二元命题,这些命题表示主语与宾语之间直接的二元关系。此外,现有方法依赖语义主语标签,而这些标签在实践中可能不可用,甚至难以明确界定。本文表明,通过一种简单且快速的定位方法——梯度追踪(Gradient Tracing,GT),可以有效规避上述两个问题。该定位方法允许编辑任意命题,而不仅仅是二元命题,并且无需主语标签。由于命题总是具有真值,我们的实验将 LLM 作为布尔分类器进行提示,并编辑其对命题的真/假响应。我们的方法使用 GT 进行位置追踪,然后采用秩一模型编辑(Rank-One Model Editing,ROME)的温和变体在该位置编辑模型。在基于 CounterFact 数据集派生的二元命题数据集上,我们表明,在无法获取主语标签的情况下,我们的方法性能接近能够获取主语标签的最先进的 L&E 方法。随后,我们引入了一个新数据集——事实准确性分类测试(Factual Accuracy Classification Test,FACT),该数据集包含非二元命题,且主语标签通常不适用,因此超出了现有 L&E 方法的适用范围。尽管如此,我们表明使用我们的方法可以在 FACT 上进行编辑。

英文摘要:

Large Language Model (LLM) editing modifies factual information in LLMs. Locate-and-Edit (L\&E) methods accomplish this by finding where relevant information is stored within the neural network, and editing the weights at that location. The goal of editing is to modify the response of an LLM to a proposition independently of its phrasing, while not modifying its response to other related propositions. Existing methods are limited to binary propositions, which represent straightforward binary relations between a subject and an object. Furthermore, existing methods rely on semantic subject labels, which may not be available or even be well-defined in practice. In this paper, we show that both of these issues can be effectively skirted with a simple and fast localization method called Gradient Tracing (GT). This localization method allows editing arbitrary propositions instead of just binary ones, and does so without the need for subject labels. As propositions always have a truth value, our experiments prompt an LLM as a boolean classifier, and edit its T/F response to propositions. Our method applies GT for location tracing, and then edit the model at that location using a mild variant of Rank-One Model Editing (ROME). On datasets of binary propositions derived from the CounterFact dataset, we show that our method -- without access to subject labels -- performs close to state-of-the-art L\&E methods which has access subject labels. We then introduce a new dataset, Factual Accuracy Classification Test (FACT), which includes non-binary propositions and for which subject labels are not generally applicable, and therefore is beyond the scope of existing L\&E methods. Nevertheless, we show that with our method editing is possible on FACT.

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

↑