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

知识定位是否成立?语言模型中实体与关系视角之间的惊人差异

Does Knowledge Localization Hold True? Surprising Differences Between Entity and Relation Perspectives in Language Models

Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所);NLPR

Yifan Wei, Xiaoyan Yu, Yixuan Weng, Huanhuan Ma, Yuanzhe Zhang, Jun Zhao, Kang Liu

AI总结:

本文通过知识编辑和因果分析发现语言模型中实体知识与关系知识不能直接迁移,且关系知识显著存储于注意力模块,揭示了知识存储的多面性。

摘要:

大型语言模型封装了知识,并在各种自然语言处理任务上表现出卓越的性能。近期研究已将此类知识定位到特定的模型参数,例如中间层的 MLP 权重。本研究通过知识编辑来考察实体知识与关系知识之间的差异。我们的发现表明,实体知识和关系知识无法直接相互迁移或映射。这一结果出乎意料,因为从逻辑上讲,在同一知识三元组中修改实体或关系应当产生等效的结果。为了进一步阐明实体知识与关系知识之间的差异,我们采用因果分析来研究关系知识在预训练模型中的存储方式。与先前认为知识存储在 MLP 权重中的研究相反,我们的实验表明,关系知识也显著编码在注意力模块中。这一见解凸显了语言模型中知识存储的多面性,强调了在这些模型中操纵特定类型知识的复杂性。

英文摘要:

Large language models encapsulate knowledge and have demonstrated superior performance on various natural language processing tasks. Recent studies have localized this knowledge to specific model parameters, such as the MLP weights in intermediate layers. This study investigates the differences between entity and relational knowledge through knowledge editing. Our findings reveal that entity and relational knowledge cannot be directly transferred or mapped to each other. This result is unexpected, as logically, modifying the entity or the relation within the same knowledge triplet should yield equivalent outcomes. To further elucidate the differences between entity and relational knowledge, we employ causal analysis to investigate how relational knowledge is stored in pre-trained models. Contrary to prior research suggesting that knowledge is stored in MLP weights, our experiments demonstrate that relational knowledge is also significantly encoded in attention modules. This insight highlights the multifaceted nature of knowledge storage in language models, underscoring the complexity of manipulating specific types of knowledge within these models.

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

↑