arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2405.02765cs.CLcs.AI
收藏

这个事实被编辑过吗?检测语言模型中的知识编辑

Has this Fact been Edited? Detecting Knowledge Edits in Language Models

Marburg University(马尔堡大学);University of Sheffield(谢菲尔德大学);University of Mannheim(曼海姆大学)

Paul Youssef, Zhixue Zhao, Christin Seifert, Jörg Schlötterer

AI总结:

本文提出检测语言模型中知识是否被编辑的新任务,利用隐藏状态和概率分布特征结合 AdaBoost 分类器,在有限数据和跨域场景下实现有效检测,为应对恶意模型编辑奠定基础。

摘要:

知识编辑方法(KEs)可以更新语言模型从预训练中学到的过时或不准确的知识。然而,KEs 可能被用于恶意应用,例如插入错误信息和有毒内容。知道一个生成的输出是基于编辑后的知识还是来自预训练的第一手知识,可以增加用户对生成模型的信任并提供更高的透明度。受此驱动,我们提出了一个新任务:检测语言模型中被编辑的知识。给定一个经过编辑的模型以及通过提示从该编辑模型中检索到的一个事实,目标是将该知识分类为未编辑(基于预训练)或已编辑(基于后续编辑)。我们用四种 KEs、两个 LLMs 和两个数据集实例化该任务。此外,我们提出使用隐藏状态表示和概率分布作为检测的特征。我们的结果表明,将这些特征输入到一个简单的 AdaBoost 分类器中可以建立一个强大的基线。该分类器只需要有限数量的数据,并且即使在跨域设置下也能保持其性能。最后,我们发现区分已编辑知识与未编辑但相关的知识更具挑战性,这凸显了进一步研究的必要性。我们的工作为解决恶意模型编辑奠定了基础,这是与 LLMs 强大生成能力相关的一个关键挑战。

英文摘要:

Knowledge editing methods (KEs) can update language models' obsolete or inaccurate knowledge learned from pre-training. However, KEs can be used for malicious applications, e.g., inserting misinformation and toxic content. Knowing whether a generated output is based on edited knowledge or first-hand knowledge from pre-training can increase users' trust in generative models and provide more transparency. Driven by this, we propose a novel task: detecting edited knowledge in language models. Given an edited model and a fact retrieved by a prompt from an edited model, the objective is to classify the knowledge as either unedited (based on the pre-training), or edited (based on subsequent editing). We instantiate the task with four KEs, two LLMs, and two datasets. Additionally, we propose using the hidden state representations and the probability distributions as features for the detection. Our results reveal that, using these features as inputs to a simple AdaBoost classifiers establishes a strong baseline. This classifier requires only a limited amount of data and maintains its performance even in cross-domain settings. Last, we find it more challenging to distinguish edited knowledge from unedited but related knowledge, highlighting the need for further research. Our work lays the groundwork for addressing malicious model editing, which is a critical challenge associated with the strong generative capabilities of LLMs.

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

↑