Locating and Editing Factual Associations in GPT

AI-generated keywords: Factual Associations ROME Model Editing Zero-Shot Relation Extraction Counterfactual Assertions

AI-generated Key Points

The license of the paper does not allow us to build upon its content and the key points are generated using the paper metadata rather than the full article.

  • Authors analyze storage and recall of factual associations in autoregressive transformer language models
  • Factual associations linked to localized, directly-editable computations within the models
  • Causal intervention technique used to identify neuron activations crucial for factual predictions
  • Specific sequence of steps in middle-layer feed-forward modules mediate factual predictions while processing subject tokens
  • Rank-One Model Editing (ROME) modifies feed-forward weights to update specific factual associations
  • ROME effective in performing standard zero-shot relation extraction (zsRE) model-editing tasks
  • New dataset of counterfactual assertions used to evaluate ROME's performance
  • ROME demonstrates both specificity and generalization simultaneously, unlike other methods
  • Mid-layer feed-forward modules play an important role in storing factual associations
  • Direct manipulation of computational mechanisms as a feasible approach for model editing
  • Access to code, datasets, visualizations, and interactive demo notebook provided at https://rome.baulab.info/
Also access our AI generated: Comprehensive summary, Lay summary, Blog-like article; or ask questions about this paper to our AI assistant.

Authors: Kevin Meng, David Bau, Alex Andonian, Yonatan Belinkov

NeurIPS 2022. 35 pages, 30 figures. Code and data at https://rome.baulab.info/

Abstract: We analyze the storage and recall of factual associations in autoregressive transformer language models, finding evidence that these associations correspond to localized, directly-editable computations. We first develop a causal intervention for identifying neuron activations that are decisive in a model's factual predictions. This reveals a distinct set of steps in middle-layer feed-forward modules that mediate factual predictions while processing subject tokens. To test our hypothesis that these computations correspond to factual association recall, we modify feed-forward weights to update specific factual associations using Rank-One Model Editing (ROME). We find that ROME is effective on a standard zero-shot relation extraction (zsRE) model-editing task, comparable to existing methods. To perform a more sensitive evaluation, we also evaluate ROME on a new dataset of counterfactual assertions, on which it simultaneously maintains both specificity and generalization, whereas other methods sacrifice one or another. Our results confirm an important role for mid-layer feed-forward modules in storing factual associations and suggest that direct manipulation of computational mechanisms may be a feasible approach for model editing. The code, dataset, visualizations, and an interactive demo notebook are available at https://rome.baulab.info/

Submitted to arXiv on 10 Feb. 2022

Ask questions about this paper to our AI assistant

You can also chat with multiple papers at once here.

The license of the paper does not allow us to build upon its content and the AI assistant only knows about the paper metadata rather than the full article.

AI assistant instructions?

Results of the summarizing process for the arXiv paper: 2202.05262v5

This paper's license doesn't allow us to build upon its content and the summarizing process is here made with the paper's metadata rather than the article.

In their paper titled "Locating and Editing Factual Associations in GPT," authors Kevin Meng, David Bau, Alex Andonian, and Yonatan Belinkov analyze the storage and recall of factual associations in autoregressive transformer language models. They provide evidence that these associations are linked to localized, directly-editable computations within the models. The authors begin by developing a causal intervention technique to identify neuron activations that play a decisive role in a model's factual predictions. Through this intervention, they uncover a specific sequence of steps in middle-layer feed-forward modules that mediate factual predictions while processing subject tokens. To validate their hypothesis that these computations correspond to the recall of factual associations, the authors introduce Rank-One Model Editing (ROME). ROME involves modifying feed-forward weights to update specific factual associations. The results show that ROME is effective in performing standard zero-shot relation extraction (zsRE) model-editing tasks, comparable to existing methods. To further evaluate ROME's performance, the authors introduce a new dataset of counterfactual assertions. In this evaluation, ROME demonstrates both specificity and generalization simultaneously - unlike other methods that sacrifice one or the other - suggesting an important role for mid-layer feed-forward modules in storing factual associations. Overall, the study highlights the potential of direct manipulation of computational mechanisms as a feasible approach for model editing. The authors provide access to code, datasets, visualizations and an interactive demo notebook at https://rome.baulab.info/, making their findings accessible for further exploration and application by researchers and practitioners alike.
Created on 02 Nov. 2023

Assess the quality of the AI-generated content by voting

Score: 0

Why do we need votes?

Votes are used to determine whether we need to re-run our summarizing tools. If the count reaches -10, our tools can be restarted.

The previous summary was created more than a year ago and can be re-run (if necessary) by clicking on the Run button below.

The license of this specific paper does not allow us to build upon its content and the summarizing tools will be run using the paper metadata rather than the full article. However, it still does a good job, and you can also try our tools on papers with more open licenses.

Similar papers summarized with our AI tools

Navigate through even more similar papers through a

tree representation

Look for similar papers (in beta version)

By clicking on the button above, our algorithm will scan all papers in our database to find the closest based on the contents of the full papers and not just on metadata. Please note that it only works for papers that we have generated summaries for and you can rerun it from time to time to get a more accurate result while our database grows.

Disclaimer: The AI-based summarization tool and virtual assistant provided on this website may not always provide accurate and complete summaries or responses. We encourage you to carefully review and evaluate the generated content to ensure its quality and relevance to your needs.