大型语言模型(LLMs)可以使用参数知识——编码在模型权重中的知识——或上下文知识——在上下文中呈现的知识——来进行预测。在许多场景中,理想的行为是当上下文知识与参数知识冲突时,LLMs优先考虑上下文知识,并在上下文不相关时回退到使用其参数知识。这使得可以通过上下文编辑而不是重新训练来更新和纠正模型的知识。先前的工作表明,LLMs倾向于忽略上下文知识,并在面对不相关上下文时无法可靠地回退到参数知识。在这项工作中,我们发现,通过适当的提示方法,经过指令微调的LLMs可以高度受上下文知识控制,并对不相关上下文具有鲁棒性。利用这一特性,我们提出了EREN(Edit models by REading Notes,通过阅读笔记编辑模型)来提高LLM编辑的可扩展性和鲁棒性。为了更好地评估模型编辑器的鲁棒性,我们收集了一个新数据集,其中包含比现有数据集中更具挑战性的不相关问题。实证结果表明,我们的方法大幅优于当前最先进的方法。与现有技术不同,它可以整合来自多次编辑的知识,并正确响应句法相似但语义无关的输入(反之亦然)。源代码可在 https://github.com/thunlp/EREN 找到。
英文摘要:
Large language models (LLMs) can make predictions using parametric knowledge--knowledge encoded in the model weights--or contextual knowledge--knowledge presented in the context. In many scenarios, a desirable behavior is that LLMs give precedence to contextual knowledge when it conflicts with the parametric knowledge, and fall back to using their parametric knowledge when the context is irrelevant. This enables updating and correcting the model's knowledge by in-context editing instead of retraining. Previous works have shown that LLMs are inclined to ignore contextual knowledge and fail to reliably fall back to parametric knowledge when presented with irrelevant context. In this work, we discover that, with proper prompting methods, instruction-finetuned LLMs can be highly controllable by contextual knowledge and robust to irrelevant context. Utilizing this feature, we propose EREN (Edit models by REading Notes) to improve the scalability and robustness of LLM editing. To better evaluate the robustness of model editors, we collect a new dataset, that contains irrelevant questions that are more challenging than the ones in existing datasets. Empirical results show that our method outperforms current state-of-the-art methods by a large margin. Unlike existing techniques, it can integrate knowledge from multiple edits, and correctly respond to syntactically similar but semantically unrelated inputs (and vice versa). The source code can be found at https://github.com/thunlp/EREN.
EvoEdit: Evolving Null-space Alignment for Robust and Efficient Knowledge Editing
Institute for Clarity in Documentation(文档清晰度研究所);Inria Paris-Rocquencourt(法国国家信息与自动化研究所巴黎-罗康库尔中心);Rajiv Gandhi University(拉吉夫·甘地大学);Tsinghua University(清华大学);Palmer Research Laboratories(帕默研究实验室)
On the Robustness of Editing Large Language Models
School of Electronic Information and Electrical Engineering, Shanghai Jiao Tong University(上海交通大学电子信息与电气工程学院);Department of Computer Science and Engineering, Shanghai Jiao Tong University(上海交通大学计算机科学与工程系);Shanghai Key Laboratory of Trusted Data Circulation and Governance in Web3(上海市Web3可信数据流通与治理重点实验室)
Editing Factual Knowledge and Explanatory Ability of Medical Large Language Models
University of Science and Technology of China(中国科学技术大学);City University of Hong Kong(香港城市大学);Jarvis Research Center(贾维斯研究中心);Tencent YouTu Lab(腾讯优图实验室);Peking University(北京大学)
On the Robustness of Knowledge Editing for Detoxification
Hubei Provincial Key Laboratory of Artificial Intelligence(人工智能与智能学习湖北省重点实验室);Research Center for Network Media, School of Computer Science, Central China Normal University, Wuhan, China(网络媒体研究中心,计算机科学学院,中央民族大学,武汉,中国)
Context-Robust Knowledge Editing for Language Models
Graduate School of Data Science, Seoul National University(首尔国立大学数据科学研究生院);School of Electrical Engineering and Computer Science, Gwangju Institute of Science and Technology(全州科学技术院电子工程与计算机科学学院)
REPAIR: Robust Editing via Progressive Adaptive Intervention and Reintegration
Engineering Center for Space Utilization of Chinese Academy of Sciences(中国科学院空间利用工程技术中心);University of Chinese Academy of Sciences(中国科学院大学);School of Computer Science and Engineering(计算机科学与工程学院);Northeastern University(东北大学);New York University(纽约大学);School of Computing(计算机学院);National University of Singapore(新加坡国立大学);The Chinese University of Hong Kong(香港中文大学);Technical University of Munich(慕尼黑技术大学)
Robust Knowledge Editing via Explicit Reasoning Chains for Distractor-Resilient Multi-Hop QA
Shanghai Jiao Tong University(上海交通大学);The University of Sydney(悉尼大学);Shenzhen Campus of Sun Yat-sen University(中山大学深圳校区);Nanyang Technological University(南洋理工大学)
Beyond the Covariance Trap: Unlocking Generalization in Same-Subject Knowledge Editing for Large Language Models
Institute of Information Engineering, Chinese Academy of Sciences(中国科学院信息工程研究所);School of Cyber Security, University of Chinese Academy of Sciences(中国科学院大学网络安全学院)
Consistency-Aware Editing for Entity-level Unlearning in Language Models
Shanxi University, China(山西大学);Cardiff University, UK(卡地夫大学);Singapore University of Technology and Design, Singapore(新加坡科技设计大学);ILCC, School of Informatics, University of Edinburgh, Edinburgh, UK(爱丁堡大学信息学院ILCC)
Potential and Challenges of Model Editing for Social Debiasing
Zhejiang University School of Engineering(浙江大学工程学院);Westlake University(西湖大学);Institute of Advanced Technology, Westlake Institute for Advanced Study(西湖高等研究院先进技术研究所)
EdiText: Controllable Coarse-to-Fine Text Editing with Diffusion Language Models
Department of Electrical and Computer Engineering, Seoul National University(电子与计算机工程系,首尔国立大学);AIIS, ASRI, INMC, ISRC, and IPAI, Seoul National University(人工智能研究所、先进系统研究室、智能网络中心、信息科学研究中心和人工智能计划,首尔国立大学)
Robust Text-driven Image Editing Method that Adaptively Explores Directions in Latent Spaces of StyleGAN and CLIP
Police Info-communications Research Center, National Police Academy(警察大学校警察信息通信研究中心);NTT Human Informatics Laboratories, NTT Corporation(日本电报电话公司NTT人类信息学实验室)