Evaluating the Ripple Effects of Knowledge Editing in Language Models

Roi Cohen, Eden Biran, Ori Yoran, Amir Globerson, Mor Geva
7/24/2023
cs.CL

No official code found. Best implementation: edenbiran/RippleEdits (57 stars, MIT, last commit 2024-04-15).

Abstract

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.

View on arXivView PDF

Code Implementations(1)

MIT

Evaluating the Ripple Effects of Knowledge Editing in Language Models

579Shell, PythonJul 21, 20232 years agoMIT

Similar Papers

Cite this paper

@article{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    = {http://arxiv.org/abs/2307.12976v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2307.12976.svg)](https://codeofpaper.com/paper/2307.12976)

Discussion