論文解説
Evaluating the Ripple Effects of Knowledge Editing in Language Models
言語モデルにおける知識編集の波及効果の評価
- 課題 既存の知識編集の評価は、編集した事実が注入されたかと、無関係な事実が保たれたかを主に確認するため、編集が論理的につながった他の事実に一貫して伝わるかは十分に測れていません。
- 手法 著者らは編集が含意する連鎖的な変更を6つの基準に分け、WIKI DATAから作った5K規模のRIPPLE EDITSベンチマークで編集方法を評価します。
- 結果 ROME、MEMIT、MENDは単一の編集を注入できますが、平均精度は38から66の範囲にとどまります。パラメータを変えないICEベースラインは、平均で最も高い結果になっています。
既存の編集評価の限界
知識編集は、言語モデルが誤って覚えていた事実や、時間の経過で古くなった事実を修正するために使われます。既存の評価は主に、編集しようとした事実が正しく入ったかと、無関係な別の主語の予測が変わっていないかを確認します。しかし、ある事実を直すと、論理的につながった別の事実も一緒に変わる必要があります。この連鎖的な影響をripple effectと呼びます。例えば、ある人物の兄弟を新たに追加すると、その兄弟の職業や、兄弟の兄弟という関係に関する事実も一貫して変わるべきです。この論文は、こうした連鎖的な影響を評価するための基準とベンチマークの構築を目標としています。
6つの評価基準
著者らは、編集 (e, r, o)→(e, r, o*) によって間接的に変えるべき事実を6つの基準に分けています。Logical Generalizationは、対称性や推移性といった関係の論理的な制約に従って含意される事実を検査します。Compositionality Iは、編集された事実と目的語の別の事実を合成した2段階の質問を、Compositionality IIは、別の主語e′と編集対象のeを合成した質問を検査します。Subject Aliasingは同じ主語の別名にも編集が伝わるか、Preservationは複数の目的語を持つ関係で既存の目的語が保たれるか、Relation Specificityは無関係な関係が変わらないかを見ます。
これらの基準は、編集がモデルの知識の他の部分と一貫して統合されているかを確認するためのものです。
データ生成パイプライン
RIPPLE EDITSは、WIKI DATAから事実トリプルを収集し、同じ関係にある別の目的語を選んで編集要求を作り、基準ごとのテスト質問を生成します。収集対象は、最近追加されたRECENT、ランダムに選んだRANDOM、人気のある主語POPULARの3種類です。編集対象の目的語は同じ関係の候補集合から選ばれるため、目的語の型は保たれますが、事実としては誤った値になります。その後、関係ごとの自然言語テンプレートで質問に変換します。論文では、2,000個のRECENT、1,000個のRANDOM、1,000個のPOPULAR事実を使ったと報告されています。

Figure 4 : Most frequent relations and their frequency, in each subset of RIPPLE EDITS .
出典 · CC 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は勾配を修正するネットワークを学習します。この3つの方法はモデルのパラメータを修正します。一方、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 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.
出典 · CC 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.
出典 · CC 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.
出典 · CC 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 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.
出典 · CC 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.
出典 · CC 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のごく一部しか扱っていないと明らかにしています。2段階より長い連鎖や、複数の事実を一度に編集するバッチ編集は、今回の研究では扱っていません。また、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
- 掲載内容
- 論文情報・解説・論文の図
この解説は、Refivuの韓国語解説を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}
}