# Knowledge Editing for Large Language Models: A Survey

대규모 언어 모델을 위한 지식 편집: 서베이

Song Wang, Yaochen Zhu, Haochen Liu, Zaiyi Zheng, Chen Chen, Jundong Li · arXiv · 2023년 10월 24일

- **연구 문제** 대규모 언어 모델에 새 지식을 주입할 때 재학습과 단순 fine-tuning은 계산 비용이 크고 기존 지식을 훼손할 위험이 있습니다.
- **연구 방법** 논문은 KME를 편집 항목과 제약 최적화로 정식화하고, 외부 메모리, 전역 최적화, 국소 수정의 세 범주로 방법을 분류합니다.
- **주요 결과** 국소 수정 계열의 ROME와 MEMIT은 FFN 가중치를 갱신하여 지역성을 비교적 잘 유지하며, MEMIT은 수천 건의 편집을 다룰 수 있다고 보고됩니다. 다만 편집 수가 늘어날 때의 확장성과 유지성은 아직 충분하지 않다고 논의됩니다.

## 새 지식 주입의 어려움

대규모 언어 모델은 pre-training에 많은 계산 비용이 들며, 새로운 지식이 생길 때마다 전체를 다시 학습하기는 어렵습니다. 단순한 fine-tuning은 갱신하려는 지식뿐 아니라 관련 없는 기존 지식까지 바꿀 위험이 있습니다. 이 논문은 이런 문제를 지식 기반 모델 편집(KME)이라는 주제로 정리합니다. KME는 편집 대상 지식을 정밀하게 바꾸면서 편집과 무관한 입력에 대한 출력은 유지하는 것을 목표로 합니다.

![Figure 1: An example of KME for efficient update of knowledge in LLMs](https://refivu.com/papers/e8b4372f-fd6c-46de-840d-c0bb621cb202/figures/figure-ce9070c159d12d8c9ebac23a03d707b7.png?thumb=512)

**Fig. 1** . An example of KME for efficient update of knowledge in LLMs.

[원문](https://arxiv.org/abs/2310.16218v4) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Song Wang, Yaochen Zhu, Haochen Liu, Zaiyi Zheng, Chen Chen, Jundong Li · Knowledge Editing for Large Language Models: A Survey · 원문 그림 인용 · 원본 PDF 2쪽에서 그림 영역을 추출했습니다.

## 편집 항목과 제약 최적화 정식화

논문은 지식을 주체·관계·객체의 세 원소로 이루어진 triple로 표현하고, 원래 지식 t와 목표 지식 t\*를 묶은 편집 항목 e=(t,t\*)를 정의합니다. 편집 대상 입력 집합 X\_e와 편집 범위 밖 입력 집합 O\_e가 구분되며, 모델은 편집 대상 입력에서는 목표 출력을, 범위 밖 입력에서는 원래 출력을 내도록 제약됩니다. 이 정식화에서 일반성은 편집된 입력에서의 정답 성공을, 지역성은 범위 밖 입력에서 원래 출력을 유지하는 성질을 가리킵니다.

![Table 1: Important notations used in this survey](https://refivu.com/papers/e8b4372f-fd6c-46de-840d-c0bb621cb202/figures/figure-e591d4bcc5565a244d0a3bfcdf0e2772.png?thumb=512)

**Table 1** . Important notations used in this survey.

[원문](https://arxiv.org/abs/2310.16218v4) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Song Wang, Yaochen Zhu, Haochen Liu, Zaiyi Zheng, Chen Chen, Jundong Li · Knowledge Editing for Large Language Models: A Survey · 원문 그림 인용 · 원본 PDF 5쪽에서 그림 영역을 추출했습니다.

![Figure 2: The formulation of the KME objective](https://refivu.com/papers/e8b4372f-fd6c-46de-840d-c0bb621cb202/figures/figure-04c0c6935eb3b7db4174262c85844345.png?thumb=512)

**Fig. 2** . The formulation of the KME objective.

[원문](https://arxiv.org/abs/2310.16218v4) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Song Wang, Yaochen Zhu, Haochen Liu, Zaiyi Zheng, Chen Chen, Jundong Li · Knowledge Editing for Large Language Models: A Survey · 원문 그림 인용 · 원본 PDF 7쪽에서 그림 영역을 추출했습니다.

## 정확도·지역성·일반성 지표

정확도는 사전 정의된 입력-출력 쌍에서 편집이 성공한 비율로 측정됩니다. 지역성은 편집 범위 밖 입력에서 편집 모델의 출력이 원 모델의 출력과 일치하는 비율로 정의되며, 실제로는 모든 범위 밖 입력을 열거하기 어려워 미리 정한 집합 O\_e를 사용합니다. 일반성은 편집된 지식과 의미적으로 유사한 입력에 대해 목표 출력 집합에 속하는지를 봅니다. 여기에 지식 간 연쇄 효과를 보는 이식성과 연속 편집 후 유지 정도를 보는 유지성도 함께 소개됩니다.

## 외부 메모리, 전역 최적화, 국소 수정의 분류

논문은 KME 방법을 외부 메모리(external memorization), 전역 최적화(global optimization), 국소 수정(local modification)의 세 범주로 나눕니다. 외부 메모리 계열은 pre-training 가중치를 바꾸지 않고 외부 메모리나 추가 파라미터에 새 지식을 둡니다. 전역 최적화는 제약을 둔 미세조정이나 하이퍼네트워크로 모든 파라미터를 갱신하며, 국소 수정은 지식과 관련된 가중치를 찾아 소수의 가중치만 고칩니다. 각 범주는 확장성, 일반성, 계산 효율 사이에서 다른 장단점을 가집니다.

![Figure 4: The illustration of three categories of KME methods: External Memorization, Global Optimization, and Local Modification](https://refivu.com/papers/e8b4372f-fd6c-46de-840d-c0bb621cb202/figures/figure-f491ebdc321621ac1ca7dc118b2030ac.png?thumb=512)

**Fig. 4** . The illustration of three categories of KME methods: External Memorization, Global Optimization, and Local Modification.

[원문](https://arxiv.org/abs/2310.16218v4) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Song Wang, Yaochen Zhu, Haochen Liu, Zaiyi Zheng, Chen Chen, Jundong Li · Knowledge Editing for Large Language Models: A Survey · 원문 그림 인용 · 원본 PDF 12쪽에서 그림 영역을 추출했습니다.

## FFN 가중치를 수정하는 국소 수정 방법

국소 수정 범주의 대표 방법인 ROME는 FFN 두 번째 층의 가중치 W2를 선형 연관 메모리로 보고, 키와 값의 관계 KW2=V를 바탕으로 랭크-1 갱신을 수행합니다. 목적은 주체에 대응하는 키 k\*에서 목표 활성화 h\*를 얻도록 W2를 바꾸는 것입니다. MEMIT은 같은 관점을 여러 편집으로 확장하여 여러 FFN 층에 걸쳐 갱신을 나누고, 잔차를 여러 층에 분산시키는 방식으로 대규모 편집을 다룹니다. 원문은 MEMIT이 수천 건의 편집을 편집 정확도에 큰 손실 없이 수행한다고 보고합니다.

## 확장성과 유지성의 한계

국소 수정 방법은 지역성을 비교적 잘 유지하지만, 편집 수가 많아질수록 확장성과 유지성이 충분히 개선되지 않았다고 논의됩니다. 외부 메모리 방법은 저장된 편집에 따라 저장 공간 부담이 커질 수 있고, 전역 최적화는 모든 파라미터를 갱신하므로 지역성을 유지하기 어렵습니다. 따라서 논문은 지역성, 일반성, 확장성 사이의 균형이 여전히 열린 문제라고 정리합니다.

## 논문 정보

- **저자**: Song Wang, Yaochen Zhu, Haochen Liu, Zaiyi Zheng, Chen Chen, Jundong Li
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2023년 10월 24일
- **등록일**: 2026년 11월 6일
- **수정일**: 2024년 9월 19일
- **버전**: v4
- **arXiv**: 2310.16218
- **분류**: cs.CL · cs.AI
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

[논문 원문 ↗](https://arxiv.org/abs/2310.16218v4) · [원문 PDF ↗](https://arxiv.org/pdf/2310.16218v4)

AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.

## 초록

Large language models (LLMs) have recently transformed both the academic and industrial landscapes due to their remarkable capacity to understand, analyze, and generate texts based on their vast knowledge and reasoning ability. Nevertheless, one major drawback of LLMs is their substantial computational cost for pre-training due to their unprecedented amounts of parameters. The disadvantage is exacerbated when new knowledge frequently needs to be introduced into the pre-trained model. Therefore, it is imperative to develop effective and efficient techniques to update pre-trained LLMs. Traditional methods encode new knowledge in pre-trained LLMs through direct fine-tuning. However, naively re-training LLMs can be computationally intensive and risks degenerating valuable pre-trained knowledge irrelevant to the update in the model. Recently, Knowledge-based Model Editing (KME) has attracted increasing attention, which aims to precisely modify the LLMs to incorporate specific knowledge, without negatively influencing other irrelevant knowledge. In this survey, we aim to provide a comprehensive and in-depth overview of recent advances in the field of KME. We first introduce a general formulation of KME to encompass different KME strategies. Afterward, we provide an innovative taxonomy of KME techniques based on how the new knowledge is introduced into pre-trained LLMs, and investigate existing KME strategies while analyzing key insights, advantages, and limitations of methods from each category. Moreover, representative metrics, datasets, and applications of KME are introduced accordingly. Finally, we provide an in-depth analysis regarding the practicality and remaining challenges of KME and suggest promising research directions for further advancement in this field.

## 원문 인용

Song Wang, Yaochen Zhu, Haochen Liu, Zaiyi Zheng, Chen Chen, Jundong Li (2023). Knowledge Editing for Large Language Models: A Survey. arXiv:2310.16218v4. https://arxiv.org/abs/2310.16218v4

**BibTeX**

```
@misc{wang2023knowledge,
  title = {{Knowledge Editing for Large Language Models: A Survey}},
  author = {Song Wang and Yaochen Zhu and Haochen Liu and Zaiyi Zheng and Chen Chen and Jundong Li},
  year = {2023},
  eprint = {2310.16218},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2310.16218v4}
}
```

## 이 논문의 용어

- [accuracy](https://refivu.com/terms/1995c0cd6282-accuracy)
- [CounterFact](https://refivu.com/terms/160f3b7fcb50-counterfact)
- [ROME](https://refivu.com/terms/93bf94d84e2a-rome)
- [zsRE](https://refivu.com/terms/474ed9786ab5-zsre)
- [MEMIT](https://refivu.com/terms/ea92ed8d8f7d-memit)
- [Generality](https://refivu.com/terms/618d8517f692-generality)
- [Locality](https://refivu.com/terms/df11afa83fb7-locality)
- [MEND](https://refivu.com/terms/5f2194704142-mend)
- [RecAdam](https://refivu.com/terms/f359f2223502-recadam)

## 다른 논문 해설

- [A Comparative Study of Pretrained Language Models for Long Clinical Text](https://refivu.com/papers/ed69d2a9-3e2f-44cb-bd90-d392bab52411-a-comparative-study-of-pretrained-language-models-for.md)
- [Explainability for Large Language Models: A Survey](https://refivu.com/papers/b3acf8e8-790e-4e5c-b4f9-9a9d779bf843-explainability-for-large-language-models-a-survey.md)
- [Retrieval-Pretrained Transformer: Long-range Language Modeling with Self-retrieval](https://refivu.com/papers/624b0d3d-2626-449c-9b8d-15b795867446-retrieval-pretrained-transformer-long-range-language.md)
- [Reinforced Prompt Personalization for Recommendation with Large Language Models](https://refivu.com/papers/27afc2ea-b641-4b86-8888-206972777f90-reinforced-prompt-personalization-for-recommendation-with.md)
- [Six Fallacies in Substituting Large Language Models for Human Participants](https://refivu.com/papers/bb0ec81c-502c-4c66-a26c-df852f429e31-six-fallacies-in-substituting-large-language-models-for.md)
- [An Evaluation of Estimative Uncertainty in Large Language Models](https://refivu.com/papers/0d144c86-50c2-4aaf-9bd1-8e8267322414-an-evaluation-of-estimative-uncertainty-in-large-language.md)
- [Fuzzy neural networks to create an expert system for detecting attacks by SQL Injection](https://refivu.com/papers/c5fd76a4-7038-44bd-9865-b4ccaaa3feb7-fuzzy-neural-networks-to-create-an-expert-system.md)
- [Benchmarking Actor-Critic Deep Reinforcement Learning Algorithms for Robotics Control with Action Constraints](https://refivu.com/papers/aea4752e-4e63-49fa-915b-e78c993dd8b6-benchmarking-actor-critic-deep-reinforcement-learning.md)
- [Improving Trajectory Modelling for DNN-based Speech Synthesis by using Stacked Bottleneck Features and Minimum Generation Error Training](https://refivu.com/papers/36443c38-5b40-424c-8038-80ee195b0e2f-improving-trajectory-modelling-for-dnn-based-speech.md)
- [Semantics of the Black-Box: Can knowledge graphs help make deep learning systems more interpretable and explainable?](https://refivu.com/papers/85267fa0-2b3d-4954-b2e6-72745cba0c72-semantics-of-the-black-box-can-knowledge-graphs.md)
- [SimCVD: Simple Contrastive Voxel-Wise Representation Distillation for Semi-Supervised Medical Image Segmentation](https://refivu.com/papers/9fe07e0d-e6bd-4f05-af8b-da8f2c313b89-simcvd-simple-contrastive-voxel-wise-representation.md)
- [Raspberry Pi Based Intelligent Robot that Recognizes and Places Puzzle Objects](https://refivu.com/papers/da34ede8-43ba-46f7-b3fa-7952c7775e6d-raspberry-pi-based-intelligent-robot-that-recognizes-and.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/e8b4372f-fd6c-46de-840d-c0bb621cb202-knowledge-editing-for-large-language-models-a-survey)
