Previous studies have shown that large language models (LLMs) like GPTs store massive factual knowledge in their parameters. However, the stored knowledge could be false or out-dated. Traditional knowledge editing methods refine LLMs via fine-tuning on texts containing specific knowledge. However, with the increasing scales of LLMs, these gradient-based approaches bring large computation costs. The trend of model-as-a-service also makes it impossible to modify knowledge in black-box LMs. Inspired by in-context learning (ICL), a new paradigm based on demonstration contexts without parameter updating, we explore whether ICL can edit factual knowledge. To answer this question, we give a comprehensive empirical study of ICL strategies. Experiments show that in-context knowledge editing (IKE), without any gradient and parameter updating, achieves a competitive success rate compared to gradient-based methods on GPT-J (6B) but with much fewer side effects, including less over-editing on similar but unrelated facts and less knowledge forgetting on previously stored knowledge. We also apply the method to larger LMs with tens or hundreds of parameters like OPT-175B, which shows the scalability of our method. The code is available at https://github.com/Zce1112zslx/IKE.
ACE: Attribution-Controlled Knowledge Editing for Multi-hop Factual Recall
HKUST(GZ) Deep Interdisciplinary Intelligence Lab(香港科技大学(广州)深 interdisciplinary 智能实验室);BUAA(北京航空航天大学);HKUST(GZ) Institute of Deep Perception Technology, JITRI Deep Interdisciplinary Intelligence Lab(香港科技大学(广州)深度感知技术研究所,JITRI 深 interdisciplinary 智能实验室)
Investigating Multi-Hop Factual Shortcuts in Knowledge Editing of Large Language Models
School of Electronic Information and Electrical Engineering, Shanghai Jiao Tong University(上海交通大学电子信息与电气工程学院);School of Cyberspace Security, Southeast University(东南大学网络空间安全学院)
Factual and Edit-Sensitive Graph-to-Sequence Generation via Graph-Aware Adaptive Noising
Department of Electrical Engineering, Indian Institute of Technology Delhi, New Delhi, India(印度理工学院德里分校电子工程系);Indian Institute of Science, Bengaluru, India(印度科学研究所,班加罗尔,印度)
Locate-then-edit for Multi-hop Factual Recall under Knowledge Editing
Peking University(北京大学);Provable Responsible AI and Data Analytics (PRADA) Lab(可验证负责任人工智能与数据分析(PRADA)实验室);King Abdullah University of Science and Technology(阿卜杜拉国王科技大学);South China University of Technology(华南理工大学)
School of Computer Science and Technology, Beijing Institute of Technology(北京理工大学计算机科学与技术学院);School of Computer Science and Engineering, Beihang University(北京航空航天大学计算机科学与工程学院)
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(北京大学)
Give Me the Facts! A Survey on Factual Knowledge Probing in Pre-trained Language Models
University of Mannheim(曼海姆大学);University of Marburg(马尔堡大学);Institute for AI in Medicine (IKIM)(医学人工智能研究所(IKIM));University Hospital Essen(埃森大学医院);University of Duisburg-Essen(杜伊斯堡-埃森大学)
Beyond Factuality: A Comprehensive Evaluation of Large Language Models as Knowledge Generators
The Chinese University of Hong Kong(香港中文大学);National University of Singapore(新加坡国立大学);Tencent AI Lab(腾讯人工智能实验室);The Hong Kong University of Science and Technology(香港科技大学)
Exploring the Generalizability of Factual Hallucination Mitigation via Enhancing Precise Knowledge Utilization
Dept. of Comp. Sci. and Tech.(计算机科学与技术系);Institute for AI(人工智能研究院);Tsinghua-Bosch Joint ML Center(清华大学-博世联合机器学习中心);THBI Lab(THBI实验室);BNRist Center(BNRist中心);Tsinghua University(清华大学)
语言模型(LM)已经被证明在通过完成完形填空题(如“Punta Cana is located in _.“然而,虽然知识是书面和查询在许多语言,研究的事实表征能力的LM几乎总是在英语进行。为了评估不同语言的LM中的事实知识检索,我们为23种类型学上不同的语言创建了一个多语言的完形填空式探针基准。为了正确处理语言的变化,我们扩展探测方法从单个到多个字的实体,并开发几个解码算法来生成多令牌的预测。广泛的实验结果提供了关于当前最先进的LM在具有或多或少可用资源的语言中执行此任务的情况如何的见解。我们进一步提出了一种基于代码转换的方法来提高多语言语言学习者获取知识的能力,并在几种基准语言上验证了其有效性。基准数据和代码已在https://x-factr.github.io上发布。
GPTKB v1.5: A Massive Knowledge Base for Exploring Factual LLM Knowledge
ScaDS.AI Dresden/Leipzig & TU Dresden, Germany(德国德累斯顿/莱比锡ScaDS.AI & 德累斯顿工业大学);VNU University of Engineering and Technology, Hanoi, Vietnam(越南河内国立大学工程与技术大学)
Co-occurrence is not Factual Association in Language Models
Department of Electronics Engineering(电子工程系);Tsinghua University(清华大学);Department of Electronics Engineering, College of AI(人工智能学院电子工程系);Beijing National Research Center for Information Science and Technology(北京信息科学国家研究中心);Center for Big Data and Clinical Research, Institute for Precision Medicine(精准医学研究院大数据与临床研究中心)
Mitigating Large Language Model Hallucinations via Autonomous Knowledge Graph-based Retrofitting
Institute of Software, Chinese Academy of Sciences(中国科学院软件研究所);State Key Laboratory of Computer Science(计算机科学国家重点实验室);University of Chinese Academy of Sciences(中国科学院大学)
Survey on Factuality in Large Language Models: Knowledge, Retrieval and Domain-Specificity
Westlake University(西湖大学);Zhejiang University(浙江大学);Purdue University(普渡大学);Fudan University(复旦大学);Amazon AWS AI(亚马逊AWS人工智能);Yale University(耶鲁大学);Shanghai Jiao Tong University(上海交通大学);The Hong Kong University of Science and Technology(香港科技大学);Tsinghua University(清华大学);Microsoft Research(微软研究院)
FAITH: Factuality Alignment through Integrating Trustworthiness and Honestness
Tsinghua University, Institute for Interdisciplinary Information Sciences(清华大学,交叉信息研究院);Shanghai Qi Zhi Institute(上海期智研究院);South China Normal University, School of Electronic Science and Engineering(华南师范大学,电子科学与工程学院);Guangzhou Richstone Data Technologies Co., Ltd.(广州瑞驰数据技术有限公司);LMU Munich & Munich Center for Machine Learning(慕尼黑大学 & 慕尼黑机器学习中心)
Assessing Knowledge Editing in Language Models via Relation Perspective
University of Chinese Academy of Sciences(中国科学院大学);Institute of Automation, CAS(中国科学院自动化研究所);Kunming University of Science and Technology(昆明理工大学);Beijing Institute of Technology(北京理工大学)
EngramEdit: Decoupled Knowledge Updates in LLMs through Conditional Memory
The Hong Kong Polytechnic University(香港理工大学);Hangzhou Diagens Biotechnology Co., Ltd(杭州迪安基因生物技术有限公司);University of Science and Technology of China(中国科学技术大学)
UAlign: Leveraging Uncertainty Estimations for Factuality Alignment on Large Language Models
The Chinese University of Hong Kong(香港中文大学);Huawei Noah’s Ark Lab(华为诺亚方舟实验室);The University of Hong Kong(香港大学);The Hong Kong Polytechnic University(香港理工大学);Hong Kong University of Science and Technology, Guangzhou(香港科技大学(广州));MoE Key Laboratory of High Confidence Software Technologies(教育部高可信软件技术重点实验室)
Tracing Multilingual Factual Knowledge Acquisition in Pretraining
Center for Information and Language Processing, LMU Munich(信息与语言处理中心,慕尼黑大学);Munich Center for Machine Learning (MCML)(慕尼黑机器学习中心(MCML));Bosch Center for Artificial Intelligence(博世人工智能中心);Sorbonne Université, CNRS, ISIR, France(索邦大学,法国国家科学研究中心,ISIR)
Knowledge Graph Enhanced Large Language Model Editing
School of Computer Science and Technology, Shandong University(山东大学计算机科学与技术学院);School of Computer Science, Beijing University of Posts and Telecommunications(北京邮电大学计算机学院)
Knowledge in Superposition: Unveiling the Failures of Lifelong Knowledge Editing for Large Language Models
Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所);School of Artificial Intelligence, University of Chinese Academy of Sciences(中国科学院大学人工智能学院)