# Evaluating the Ripple Effects of Knowledge Editing in Language Models

언어 모델에서 지식 편집의 파급 효과 평가

Roi Cohen, Eden Biran, Ori Yoran, Amir Globerson, Mor Geva · arXiv · 2023년 7월 24일

- **연구 문제** 기존 지식 편집 평가는 편집된 사실의 주입 성공과 무관한 사실의 보존만 주로 확인해, 편집이 논리적으로 연결된 다른 사실에 일관되게 전파되는지를 충분히 측정하지 못합니다.
- **연구 방법** 저자들은 편집이 함의하는 연쇄 변경을 여섯 가지 기준으로 나누고, WIKI DATA에서 생성한 5K개 규모의 RIPPLE EDITS 벤치마크로 편집 방법을 평가합니다.
- **주요 결과** ROME, MEMIT, MEND는 단일 편집의 주입은 가능하지만 평균 정확도가 38에서 66 사이에 머뭅니다. 파라미터를 바꾸지 않는 ICE 기준선은 평균에서 가장 높은 결과를 보입니다.

## 기존 편집 평가의 한계

지식 편집은 언어 모델이 잘못 알고 있거나 시간이 지나 낡아진 사실을 고치기 위해 쓰입니다. 기존 평가는 주로 편집하려던 사실이 주입되었는지와 무관한 다른 주어의 예측이 바뀌지 않았는지를 확인합니다. 그러나 한 사실을 고치면 논리적으로 연결된 다른 사실도 함께 바뀌어야 하며, 이 연쇄 영향을 ripple effect라고 부릅니다. 예를 들어 어떤 인물의 형제를 새로 추가하면 그 형제의 직업이나 형제의 형제 관계 같은 사실도 일관되게 달라져야 합니다. 이 논문은 이러한 연쇄 영향을 평가하는 기준과 벤치마크를 구축하는 것을 목표로 합니다.

## 여섯 가지 평가 기준

저자들은 편집 (e, r, o)→(e, r, o\*)가 간접적으로 바꿔야 하는 사실을 여섯 기준으로 나눕니다. Logical Generalization은 대칭성이나 전이성 같은 관계의 논리 제약을 따라 함의된 사실을 검사합니다. Compositionality I은 편집된 사실과 목표 객체의 다른 사실을 합성한 두 단계 질의를, Compositionality II는 다른 주어 e′와 편집 대상 e를 합성한 질의를 검사합니다. Subject Aliasing은 같은 주어의 별칭에도 편집이 전파되는지, Preservation은 다중 객체 관계에서 기존 객체가 유지되는지, Relation Specificity는 무관한 관계가 바뀌지 않는지를 봅니다.

이 기준들은 편집이 모델 지식의 다른 부분과 일관되게 통합되는지를 보기 위한 것입니다.

## 데이터 생성 파이프라인

RIPPLE EDITS는 WIKI DATA에서 사실 삼중항을 수집하고, 같은 관계의 다른 객체를 골라 편집 요청을 만든 뒤, 기준별 테스트 질의를 생성합니다. 수집 대상은 최근 추가된 RECENT, 무작위 RANDOM, 인기 주어 POPULAR 세 종류입니다. 편집 대상 객체는 같은 관계의 후보 객체 집합에서 뽑기 때문에 객체의 유형은 유지되지만 사실은 틀린 값이 됩니다. 이후 관계별 자연어 템플릿으로 질의를 바꿉니다. 원문은 2,000개 RECENT, 1,000개 RANDOM, 1,000개 POPULAR 사실을 사용했다고 보고합니다.

![Figure 4: Most frequent relations and their frequency, in each subset of RIPPLE EDITS](https://refivu.com/papers/b5a70e67-045a-47b7-96d8-dbc886057a9e/figures/figure-3fb8ef4cba29c8784c3b54cb5b7c4c4c.png?thumb=512)

**Figure 4** : Most frequent relations and their frequency, in each subset of RIPPLE EDITS .

[원문](https://arxiv.org/abs/2307.12976v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Roi Cohen, Eden Biran, Ori Yoran, Amir Globerson, Mor Geva · Evaluating the Ripple Effects of Knowledge Editing in Language Models · 원문 그림 인용 · 원본 PDF 7쪽에서 그림 영역을 추출했습니다.

## 평가 설정과 편집 방법

평가는 편집 전 모델이 원래 객체를 맞히고 편집 후 o′를 생성한 사례만 사용합니다. ROME은 MLP 가중치에 랭크-원 업데이트를 가하고, MEMIT은 이를 여러 사실에 확장하며, MEND는 그래디언트를 수정하는 네트워크를 학습합니다. 이 세 방법은 모델 파라미터를 수정합니다. 반면 ICE 기준선은 파라미터를 바꾸지 않고 편집된 사실을 입력 문맥으로 제공하는 방식입니다. 정확도는 테스트 질의마다 목표 객체의 별칭이 최대 20개 토큰 생성에 포함되는지로 계산하며, 기준별 평균을 먼저 낸 뒤 예시별로 평균합니다.

![Table 2: (a) Number of edits considered in our evalu- ation (i.e., that have successfully applied), from each subset, averaged overROME , MEMIT and MEND , for…](https://refivu.com/papers/b5a70e67-045a-47b7-96d8-dbc886057a9e/figures/figure-9493b56c2978ec016d3798c3e585f2d4.png?thumb=512)

**Table 2** : (a) Number of edits considered in our evalu- ation (i.e., that have successfully applied), from each subset, averaged overROME , MEMIT and MEND , for the models: GPT-2 , GPT-J , GPT-N EO and LLAMA, and the ICE baseline for GPT-3 . (b) Portion of queries, on average, that were used in our evaluation.

[원문](https://arxiv.org/abs/2307.12976v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Roi Cohen, Eden Biran, Ori Yoran, Amir Globerson, Mor Geva · Evaluating the Ripple Effects of Knowledge Editing in Language Models · 원문 그림 인용 · 원본 PDF 8쪽에서 그림 영역을 추출했습니다.

## 주요 비교 결과

GPT-NeoX에서는 ICE가 ROME보다 평균에서 10점 이상 높고, LLAMA에서는 29점 높게 나타납니다. GPT-3에 적용한 ICE는 평균이 가장 높지만, 7B 규모의 LLAMA에 ICE를 적용한 결과는 RECENT와 POPULAR 부분집합에서 이와 비슷하거나 더 높게 나타납니다. 기존 편집 방법의 평균 정확도는 모든 설정에서 38에서 66 사이입니다. Subject Aliasing은 86.8 이상으로 높지만 Logical Generalization은 방법과 데이터 부분집합에 따라 크게 달라집니다. 이 결과는 단일 사실 주입은 가능하지만 연관 사실의 일관된 변경은 어렵다는 관찰을 뒷받침합니다.

![Table 3: Accuracy on the RECENT subset, by MEND , ROME , MEMIT , and the ICE baseline, on GPT-2 , GPT-J, GPT-N EO, LL AMA, and GPT-3](https://refivu.com/papers/b5a70e67-045a-47b7-96d8-dbc886057a9e/figures/figure-20c7545b6627136ef672b511960847ee.png?thumb=512)

**Table 3** : Accuracy on the RECENT subset, by MEND , ROME , MEMIT , and the ICE baseline, on GPT-2 , GPT-J, GPT-N EO, LL AMA, and GPT-3.

[원문](https://arxiv.org/abs/2307.12976v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Roi Cohen, Eden Biran, Ori Yoran, Amir Globerson, Mor Geva · Evaluating the Ripple Effects of Knowledge Editing in Language Models · 원문 그림 인용 · 원본 PDF 9쪽에서 그림 영역을 추출했습니다.

![Table 7: Error type distribution on 200 failures of ROME and ICE, on GPT-2 , GPT-N EO, and LL AMA](https://refivu.com/papers/b5a70e67-045a-47b7-96d8-dbc886057a9e/figures/figure-a26c52b7163aa24ce77d95f7e5361646.png?thumb=512)

**Table 7** : Error type distribution on 200 failures of ROME and ICE, on GPT-2 , GPT-N EO, and LL AMA.

[원문](https://arxiv.org/abs/2307.12976v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Roi Cohen, Eden Biran, Ori Yoran, Amir Globerson, Mor Geva · Evaluating the Ripple Effects of Knowledge Editing in Language Models · 원문 그림 인용 · 원본 PDF 10쪽에서 그림 영역을 추출했습니다.

## 모델 크기와 데이터 부분집합

ROME을 GPT2-M, GPT2-L, GPT2-XL, GPT-J, LLAMA, GPT-NeoX에 적용한 결과, 모델 파라미터 수가 커질수록 평균 정확도가 증가합니다. 같은 비교에서 ICE를 쓴 LLAMA는 더 큰 GPT-3과 경쟁력이 있다고 보고되었습니다. 또한 RANDOM에서는 Logical Generalization 정확도가 높고 POPULAR에서는 Preservation 정확도가 높습니다. 저자들은 인기 있는 주어의 편집이 더 많은 관련 사실에 영향을 주기 때문이라고 해석합니다. 이 해석은 저자의 해석이며 별도의 인과 실험으로 확인된 결론은 아닙니다.

![Table 1: Statistics per subset of RIPPLE EDITS , showing the average of different metrics. Breakdown by evalua- tion criteria shows the number of queries of ea…](https://refivu.com/papers/b5a70e67-045a-47b7-96d8-dbc886057a9e/figures/figure-0c37cf472a458f79a761044a8245df95.png?thumb=512)

**Table 1** : Statistics per subset of RIPPLE EDITS , showing the average of different metrics. Breakdown by evalua- tion criteria shows the number of queries of each crite- rion per edit. For a given subject/object entity, triplets count is the number of WIKI DATA facts it is associated with, page back-links is the number of Wikipedia pages with a link to the entity’s page, and page views is the recent average daily view count of the entity’s page.

[원문](https://arxiv.org/abs/2307.12976v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Roi Cohen, Eden Biran, Ori Yoran, Amir Globerson, Mor Geva · Evaluating the Ripple Effects of Knowledge Editing in Language Models · 원문 그림 인용 · 원본 PDF 7쪽에서 그림 영역을 추출했습니다.

![Table 5: Accuracy on the POPULAR subset, by MEND , ROME , MEMIT , and the ICE baseline, on GPT-2 , GPT-J, GPT-N EO, LL AMA, and GPT-3](https://refivu.com/papers/b5a70e67-045a-47b7-96d8-dbc886057a9e/figures/figure-f416f94c4ea594e86031baaa4af9bc8e.png?thumb=512)

**Table 5** : Accuracy on the POPULAR subset, by MEND , ROME , MEMIT , and the ICE baseline, on GPT-2 , GPT-J, GPT-N EO, LL AMA, and GPT-3.

[원문](https://arxiv.org/abs/2307.12976v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Roi Cohen, Eden Biran, Ori Yoran, Amir Globerson, Mor Geva · Evaluating the Ripple Effects of Knowledge Editing in Language Models · 원문 그림 인용 · 원본 PDF 9쪽에서 그림 영역을 추출했습니다.

## 데이터 품질 검증

저자들은 무작위 200개 테스트 질의를 의미적 정확성과 문법적 정확성 기준으로 수동 검사했습니다. 검사 결과 100%의 질의가 의미적으로 옳았고 98.5%가 문법적으로 올바랐습니다. 문법 오류는 영어가 아닌 이름 표기에서 발생했다고 보고됩니다. 이 검사는 생성 파이프라인이 유효한 테스트 질의를 만든다는 근거이며, 모델 성능 자체를 검증하는 실험은 아닙니다.

## 범위와 한계

저자들은 벤치마크가 가능한 ripple edit의 작은 일부만 다룬다고 밝힙니다. 두 단계보다 긴 연결과 여러 사실을 한 번에 편집하는 배치 편집은 이번 연구에서 다루지 않습니다. 또한 RIPPLE EDITS는 편집 자체의 paraphrase 검사와 subject specificity 검사를 포함하지 않으며, 편집과 멀리 떨어진 사실의 보존도 명시적으로 검사하지 않습니다. 데이터 생성은 WIKI DATA라는 외부 지식베이스에 의존하므로 그 불완전성과 최신성의 영향을 받습니다.

## 논문 정보

- **저자**: Roi Cohen, Eden Biran, Ori Yoran, Amir Globerson, Mor Geva
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2023년 7월 24일
- **등록일**: 2026년 11월 6일
- **수정일**: 2023년 12월 20일
- **버전**: v2
- **arXiv**: 2307.12976
- **분류**: cs.CL
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

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

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

## 초록

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 of various editing methods that allow updating facts encoded by the model. Evaluation of these methods has primarily focused on testing whether an individual fact has been successfully injected, and if similar predictions for other subjects have not changed. Here we argue that such evaluation is limited, since injecting one fact (e.g. \`\`Jack Depp is the son of Johnny Depp'') introduces a \`\`ripple effect'' in the form of additional facts that the model needs to update (e.g.\`\`Jack Depp is the sibling of Lily-Rose Depp''). To address this issue, we propose a novel set of evaluation criteria that consider the implications of an edit on related facts. Using these criteria, we then construct RippleEdits, a diagnostic benchmark of 5K factual edits, capturing a variety of types of ripple effects. We evaluate prominent editing methods on RippleEdits, showing that current methods fail to introduce consistent changes in the model's knowledge. In addition, we find that a simple in-context editing baseline obtains the best scores on our benchmark, suggesting a promising research direction for model editing.

## 원문 인용

Roi Cohen, Eden Biran, Ori Yoran, Amir Globerson, Mor Geva (2023). Evaluating the Ripple Effects of Knowledge Editing in Language Models. arXiv:2307.12976v2. https://arxiv.org/abs/2307.12976v2

**BibTeX**

```
@misc{cohen2023evaluating,
  title = {{Evaluating the Ripple Effects of Knowledge Editing in Language Models}},
  author = {Roi Cohen and Eden Biran and Ori Yoran and Amir Globerson and Mor Geva},
  year = {2023},
  eprint = {2307.12976},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2307.12976v2}
}
```

## 이 논문의 용어

- [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)
- [GPT-J](https://refivu.com/terms/5c5de64fde2d-gpt-j)
- [MEMIT](https://refivu.com/terms/ea92ed8d8f7d-memit)
- [GPT-NeoX](https://refivu.com/terms/ff2d293fa69a-gpt-neox)
- [ICE](https://refivu.com/terms/f6cc89dd05fe-ice)
- [MEND](https://refivu.com/terms/5f2194704142-mend)

## 다른 논문 해설

- [Does the Magic of BERT Apply to Medical Code Assignment? A Quantitative Study](https://refivu.com/papers/9db22439-ebb1-4274-82e5-98c07b5b5366-does-the-magic-of-bert-apply-to-medical.md)
- [Knowledge Graphs, Large Language Models, and Hallucinations: An NLP Perspective](https://refivu.com/papers/bfd02873-c02f-410b-8245-d4b6a31c8a37-knowledge-graphs-large-language-models-and-hallucinations-an.md)
- [Safety Guardrails for LLM-Enabled Robots](https://refivu.com/papers/c1fe3394-f384-4a56-aef5-471e70d0ad0d-safety-guardrails-for-llm-enabled-robots.md)
- [mGPT: Few-Shot Learners Go Multilingual](https://refivu.com/papers/deca13d8-8626-4e2a-b8d3-2fa10ef64b1e-mgpt-few-shot-learners-go-multilingual.md)
- [Prompting Is Programming: A Query Language for Large Language Models](https://refivu.com/papers/688fcde1-89d3-44fe-b9ec-673455f09c78-prompting-is-programming-a-query-language-for-large.md)
- [Generalization Bias in Large Language Model Summarization of Scientific Research](https://refivu.com/papers/a94eb4ad-1127-44b7-8b1e-bd54053679fe-generalization-bias-in-large-language-model-summarization-of.md)
- [Enhancing Interpretability and Interactivity in Robot Manipulation: A Neurosymbolic Approach](https://refivu.com/papers/55591da7-1c8f-4bc8-8632-b516564b48ef-enhancing-interpretability-and-interactivity-in-robot.md)
- [Event-based Object Detection and Tracking for Space Situational Awareness](https://refivu.com/papers/66a8b893-f439-439f-8682-4e58e340a5e1-event-based-object-detection-and-tracking-for-space.md)
- [Tactile Gym 2.0: Sim-to-real Deep Reinforcement Learning for Comparing Low-cost High-Resolution Robot Touch](https://refivu.com/papers/61c0d524-5433-4ed8-93a3-e6b1ee376999-tactile-gym-2-0-sim-to-real-deep.md)
- [Multilingual Offensive Language Identification for Low-resource Languages](https://refivu.com/papers/655b8e31-e903-4648-a8f9-4c0b95db0df7-multilingual-offensive-language-identification-for-low.md)
- [MFuseNet: Robust Depth Estimation with Learned Multiscopic Fusion](https://refivu.com/papers/e9f98436-c7dd-4915-a961-6b8bf97b8d07-mfusenet-robust-depth-estimation-with-learned-multiscopic.md)
- [Modeling Realistic Adversarial Attacks against Network Intrusion Detection Systems](https://refivu.com/papers/f13ca6e0-6eca-4426-afaf-381b59126578-modeling-realistic-adversarial-attacks-against-network.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/b5a70e67-045a-47b7-96d8-dbc886057a9e-evaluating-the-ripple-effects-of-knowledge-editing-in)
