Skip to main content
QUICK REVIEW

[Paper Review] Memory-Based Model Editing at Scale

Eric Mitchell, Charles P. Lin|arXiv (Cornell University)|Jun 13, 2022
Topic ModelingComputer Science31 citations
TL;DR

SERAC introduces a semi-parametric, memory-based model editor that stores edits in an explicit memory and uses a scope classifier plus a counterfactual model to modulate base model predictions, achieving strong performance across QA, fact-checking, and dialogue tasks compared to gradient-based editors.

ABSTRACT

Even the largest neural networks make errors, and once-correct predictions can become invalid as the world changes. Model editors make local updates to the behavior of base (pre-trained) models to inject updated knowledge or correct undesirable behaviors. Existing model editors have shown promise, but also suffer from insufficient expressiveness: they struggle to accurately model an edit's intended scope (examples affected by the edit), leading to inaccurate predictions for test inputs loosely related to the edit, and they often fail altogether after many edits. As a higher-capacity alternative, we propose Semi-Parametric Editing with a Retrieval-Augmented Counterfactual Model (SERAC), which stores edits in an explicit memory and learns to reason over them to modulate the base model's predictions as needed. To enable more rigorous evaluation of model editors, we introduce three challenging language model editing problems based on question answering, fact-checking, and dialogue generation. We find that only SERAC achieves high performance on all three problems, consistently outperforming existing approaches to model editing by a significant margin. Code, data, and additional project information will be made available at https://sites.google.com/view/serac-editing.

Motivation & Objective

  • Motivate the need for fast, targeted post-deployment model updates in changing environments.
  • Address limitations of gradient-based editors that struggle with edit scope and scalability.
  • Propose a semi-parametric editing framework that decouples edit reasoning from base model parameters.
  • Evaluate on challenging editing tasks to demonstrate robustness and scalability.

Proposed method

  • Store user-provided edits in an explicit memory without modifying base model parameters.
  • Introduce a scope classifier to determine if a test input falls within the edit’s scope.
  • Incorporate a counterfactual model that predicts labels under the edited world when applicable.
  • Wrap the base model with a semi-parametric editor that uses the most relevant edit to guide predictions when in-scope.
  • Train the scope classifier and counterfactual model separately using supervised objectives.
  • Evaluate across QA, QA-hard, fact-checking, and ConvSent dialogue editing tasks.

Experimental results

Research questions

  • RQ1Can a memory-based editor accurately determine which test inputs are within the scope of stored edits?
  • RQ2Does a counterfactual model conditioned on edits improve prediction accuracy for in-scope inputs while preserving out-of-scope behavior?
  • RQ3How does SERAC perform compared to gradient-based editors under multiple simultaneous edits and across diverse tasks?

Key findings

  • SERAC achieves high edit success across QA, QA-hard, FC, and ConvSent tasks.
  • SERAC maintains performance with many simultaneous edits where baselines degrade, showing scalability.
  • The scope classifier effectively reduces interference between edits and out-of-scope inputs.
  • The decoupled design allows reuse of editors across different base models without re-training editors for each model.
  • Across tasks, SERAC consistently outperforms existing editing approaches by a substantial margin.
  • Classifier architecture (e.g., cross-attention vs embedding) impacts performance, with richer classifiers yielding better results in harder settings.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.