Language Modeling with Editable External Knowledge

Belinda Z. Li, Emmy Liu, Alexis Ross, Abbas Zeitoun, Graham Neubig +1 more
6/17/2024
cs.CLcs.AI

Official code: belindal/ERASE (40 stars, last commit 2024-06-19).

Abstract

When the world changes, so does the text that humans write about it. How do we build language models that can be easily updated to reflect these changes? One popular approach is retrieval-augmented generation, in which new documents are inserted into a knowledge base and retrieved during prediction for downstream tasks. Most prior work on these systems have focused on improving behavior during prediction through better retrieval or reasoning. This paper introduces ERASE, which instead improves model behavior when new documents are acquired, by incrementally deleting or rewriting other entries in the knowledge base each time a document is added. In two new benchmark datasets evaluating models' ability to answer questions about a stream of news articles or conversations, ERASE improves accuracy relative to conventional retrieval-augmented generation by 7-13% (Mixtral-8x7B) and 6-10% (Llama-3-8B) absolute. Code and data are available at https://github.com/belindal/ERASE

View on arXivView PDF

Code Implementations(1)

belindal/ERASEOfficial100%

Code and Data for "Language Modeling with Editable External Knowledge"

406HTML, ShellJun 16, 20242 years ago

Cite this paper

@article{li2024language,
  title  = {Language Modeling with Editable External Knowledge},
  author = {Belinda Z. Li and Emmy Liu and Alexis Ross and Abbas Zeitoun and Graham Neubig and Jacob Andreas},
  year   = {2024},
  eprint = {2406.11830},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2406.11830v1}
}

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/2406.11830.svg)](https://codeofpaper.com/paper/2406.11830)

Discussion