アーカイブ / LLM
LLMの知識を繰り返し直すと性能が落ちる理由と、履歴を集約するD4S
Dump for Sequence(D4S)
Dump for Sequence(D4S)の原論文から掲載した図です。細部はクリックして拡大できます。
原論文の図の説明を読む
Fig. 1 : This framework outlines the comprehensive approach to understanding the performance decline of edited models. On the left, traditional knowledge editing tasks are categorized into different types, each with distinct editing objectives: yes/no, a/b/c/d, and entity/event. On the right, our experiments are structured from both data and model perspectives. From the data perspective, we conduct three experiments: (a) a comprehensive performance evaluation of the model, (b) the construction of a M ulti- Q uestion D ataset (MQD), and (c) an assessment of the impact of editing different target outputs on model performance. From the model perspective, we design four experiments: (d) an evaluation of the edited model’s forgetting ability, (e) an identification of the current knowledge editing method’s bottleneck and an exploration of the correlation between editing probability values and parameter layer norms, and (f) a proposal of a sequence editing method, which effectively enhances the performance of the edited model.
概要
- 編集対象の答えの種類や長さ、編集層のL1ノルムの増大が性能低下と関係すると著者らは報告した。
- D4Sは過去の編集情報を二つの行列に集約し、連続編集の更新計算に反映する。
- Llama 2 7Bの1000件編集後の平均指標はD4Sが81.88で、比較したROMEとMEMITを上回った。
補足:編集した模式図で仕組みを確認する
VISUAL EXPLAINER
図でつかむ、Dump for Sequence(D4S)の仕組み
- 01更新する事実
- 02編集情報を計算
- 03履歴を行列に集約
- 04モデルの重みを更新
原論文の説明をもとにした模式図です。処理の細部は省略しています。
研究の背景
D4Sは、大規模言語モデルの知識を何度も書き換える際の性能低下を抑える方法である。知識編集とは、モデルの一部の重みを変えて、特定の質問への答えを更新する操作を指す。古い事実を直せても、編集を重ねると以前の修正を忘れたり、別の質問への性能が下がったりする。
業務で仕様や制度の変更を反映するなら、直近の回答だけでなく、以前に直した回答と一般的な能力を保てるかが重要になる。
手法
著者らはまず、同じ元情報を真偽判定、選択式、文章生成の三つの質問形式にしたMQDを作り、編集する答えの違いを調べた。次に編集が加わる層のL1ノルムを観察する。これは重みの値の絶対値を足した大きさで、更新が重なると内部の値がどれほど膨らむかを見る指標である。
D4Sでは新しい事実を編集するとき、更新計算に使う入力側の情報と目標との差を求める。その組を過去の編集履歴として二つの集約行列に足し込み、行列全体を使って次の重み更新量を計算する。例えば製品名と新しい仕様の組を続けて修正しても、履歴を一件ずつ並べて保存せずに計算へ反映する。
新規性
この研究は、編集後の性能低下を編集対象の答え方とモデル内部の変化の両面から調べ、連続編集向けにD4Sを提案した。著者らは、答えの種類や長さ、編集層のL1ノルムの増大と、性能低下の関係を報告している。
D4Sは過去の編集例を一件ずつ保存せず、更新計算に必要な二つの行列へ集約する。編集件数に応じて履歴用の保存領域を増やさず、後続の編集に過去の情報を反映させる設計である。
従来手法との違い
論文は、既存の知識編集法であるROMEやMEMITなどを比較対象に置く。これらはモデルの一部の重みを更新するが、連続して多数の事実を書き換えると、過去の編集を忘れたり、新しい編集の成功率が落ちたりする場合があった。
D4Sでは各回の更新を独立に積み上げる代わりに、蓄積した行列を使って更新量を計算する。論文の比較表では500件、1000件編集後の平均指標を示しているが、全ての条件でD4Sが最高という結果ではない。
実験結果
著者らはATOMICを基に、各4000件の真偽判定、選択式、直接生成から成るMQDを構築した。編集対象の答えの種類と長さが性能低下に関係し、直接生成で低下が最も大きいと報告する。連続編集ではGPT-J 6BとLlama 2 7Bを使い、100、500、1000件後の編集成功などを比較した。
表中の平均指標では、Llamaの1000件後はD4Sが81.88、ROMEが15.53、MEMITが2.82だった。一方、Llamaの100件後はROMEの93.43がD4Sの91.81を上回る。著者らの改善主張は、とくに編集を重ねた条件に沿って評価するのが適切である。
応用の可能性
編集上の応用案 · 論文が実証した用途とは区別しています。
編集上の応用案:社内の製品仕様が頻繁に変わる質問応答モデルで、確定した仕様変更を順次反映する。入力は旧仕様を含む質問、正しい新仕様の回答、変更履歴であり、出力は更新後の回答と、過去の変更を維持できたかの記録である。
担当者は変更ごとに編集し、その直後だけでなく次の変更後にも同じ質問を再実行する。D4Sの検討目的は、以前の編集が新しい編集で失われる問題を抑えることに置く。正式な仕様書との照合は別に続ける。
応用先の候補からNauhに相談できます。
導入時の検証
導入時の検証案 · 対象データでの再評価が必要です。
導入時の検証案:変更が確認済みの事実を少数選び、同じモデルと質問集合でD4Sと既存の編集法を順番に適用する。編集直後の正答率に加え、一定件数ごとに過去の変更すべてを再質問し、忘却率を記録する。
変更対象と無関係な一般質問も固定しておき、回答の悪化を測る。編集件数、回答形式、編集層のL1ノルムを一緒に記録すれば、成績低下がどの条件で起きたかを追える。採用基準は業務上許容できる誤答数で事前に決める。
限界と課題
著者らが示した課題は、従来法では編集回数の増加とともに過去の編集を忘れ、編集層のL1ノルムが大きくなることだ。D4Sについては複数のデータセットとモデルで改善を報告するが、論文中の数値から全ての質問形式や業務文書への適用は導けない。
編集上の確認事項は、同じ事実に矛盾する変更が続く場合の振る舞い、無関係な回答への影響、更新を取り消す手順である。L1ノルムとの相関だけを因果関係の証明として扱わない。
出典
元のタイトル・要旨を確認する(英語)
Reasons and Solutions for the Decline in Model Performance after Editing
Knowledge editing technology has received widespread attention for low-cost updates of incorrect or outdated knowledge in large-scale language models. However, recent research has found that edited models often exhibit varying degrees of performance degradation. The reasons behind this phenomenon and potential solutions have not yet been provided. In order to investigate the reasons for the performance decline of the edited model and optimize the editing method, this work explores the underlying reasons from both data and model perspectives. Specifically, 1) from a data perspective, to clarify the impact of data on the performance of editing models, this paper first constructs a Multi-Question Dataset (MQD) to evaluate the impact of different types of editing data on model performance. The performance of the editing model is mainly affected by the diversity of editing targets and sequence length, as determined through experiments. 2) From a model perspective, this article explores the factors that affect the performance of editing models. The results indicate a strong correlation between the L1-norm of the editing model layer and the editing accuracy, and clarify that this is an important factor leading to the bottleneck of editing performance. Finally, in order to improve the performance of the editing model, this paper further proposes a Dump for Sequence (D4S) method, which successfully overcomes the previous editing bottleneck by reducing the L1-norm of the editing layer, allowing users to perform multiple effective edits and minimizing model damage. Our code is available at https://github.com/nlpkeg/D4S.
論文本体の取得範囲に基づく解説。AIが作成した未校閲の記事です。性能の数値は著者の評価条件に依存します。応用例と検証計画は編集上の提案です。解説更新:2026-09-29




