paper-with-me

홈 › Papers

Can We Edit Factual Knowledge by In-Context Learning?

2023-05-22 · Ce Zheng, Lei LI, Qingxiu Dong, Yuxuan Fan, Zhiyong Wu, Jingjing Xu, Baobao Chang

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.

📄 PDF Abstract BibTeX arXiv:2305.12740

Code (2)

pkunlp-icler/ike 공식 구현 pytorch
zce1112zslx/ike 공식 구현 pytorch

Tasks

In-Context Learningknowledge editing

Similar Papers 제목 키워드 기반

Evaluating the Ripple Effects of Knowledge Editing in Language Models

2023-07-24 · Roi Cohen, Eden Biran, Ori Yoran, Amir Globerson 외

Modern language models capture a large body of factual knowledge. However, some facts can be incorrectly induced or become obsolete over time, resulting in factually incorrect generations. This has led to the development…

Diagnosticknowledge editingModel Editing

Event-level Knowledge Editing

2024-02-20 · Hao Peng, Xiaozhi Wang, Chunyang Li, Kaisheng Zeng 외

Knowledge editing aims at updating knowledge of large language models (LLMs) to prevent them from becoming outdated. Existing work edits LLMs at the level of factual knowledge triplets. However, natural knowledge updates…

knowledge editingTriplet

Multilingual Knowledge Editing with Language-Agnostic Factual Neurons

2024-06-24 · Xue Zhang, Yunlong Liang, Fandong Meng, Songming Zhang 외

Multilingual knowledge editing (MKE) aims to simultaneously update factual knowledge across multiple languages within large language models (LLMs). Previous research indicates that the same knowledge across different lan…

knowledge editing

Is Factuality Enhancement a Free Lunch For LLMs? Better Factuality Can Lead to Worse Context-Faithfulness

2024-03-30 · Baolong Bi, Shenghua Liu, Yiwei Wang, Lingrui Mei 외

As the modern tools of choice for text understanding and generation, large language models (LLMs) are expected to accurately output answers by leveraging the input context. This requires LLMs to possess both context-fait…

knowledge editing

REACT: Representation Extraction And Controllable Tuning to Overcome Overfitting in LLM Knowledge Editing

2025-05-25 · Haitian Zhong, Yuhuan Liu, Ziyang Xu, Guofan Liu 외

Large language model editing methods frequently suffer from overfitting, wherein factual updates can propagate beyond their intended scope, overemphasizing the edited target even when it's contextually inappropriate. To …

knowledge editingLanguage ModelingLanguage ModellingLarge Language Model+1