Premium Only Content
ROME: Locating and Editing Factual Associations in GPT (Paper Explained & Author Interview)
#ai #language #knowledge
Large Language Models have the ability to store vast amounts of facts about the world. But little is known, how these models actually do this. This paper aims at discovering the mechanism and location of storage and recall of factual associations in GPT models, and then proposes a mechanism for the targeted editing of such facts, in form of a simple rank-one update to a single MLP layer. This has wide implications both for how we understand such models' inner workings, and for our ability to gain greater control over such models in the future.
OUTLINE:
0:00 - Introduction
1:40 - What are the main questions in this subfield?
6:55 - How causal tracing reveals where facts are stored
18:40 - Clever experiments show the importance of MLPs
24:30 - How do MLPs store information?
29:10 - How to edit language model knowledge with precision?
36:45 - What does it mean to know something?
39:00 - Experimental Evaluation & the CounterFact benchmark
45:40 - How to obtain the required latent representations?
51:15 - Where is the best location in the model to perform edits?
58:00 - What do these models understand about language?
1:02:00 - Questions for the community
Paper: https://arxiv.org/abs/2202.05262
Follow-up paper on Mass-Editing Memory in a Transformer: https://arxiv.org/abs/2210.07229
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 this https URL
Authors: Kevin Meng, David Bau, Alex Andonian, Yonatan Belinkov
Links:
Homepage: https://ykilcher.com
Merch: https://ykilcher.com/merch
YouTube: https://www.youtube.com/c/yannickilcher
Twitter: https://twitter.com/ykilcher
Discord: https://ykilcher.com/discord
LinkedIn: https://www.linkedin.com/in/ykilcher
If you want to support me, the best thing to do is to share out the content :)
If you want to support me financially (completely optional and voluntary, but a lot of people have asked for this):
SubscribeStar: https://www.subscribestar.com/yannickilcher
Patreon: https://www.patreon.com/yannickilcher
Bitcoin (BTC): bc1q49lsw3q325tr58ygf8sudx2dqfguclvngvy2cq
Ethereum (ETH): 0x7ad3513E3B8f66799f507Aa7874b1B0eBC7F85e2
Litecoin (LTC): LQW2TRyKYetVC8WjFkhpPhtpbDM4Vw7r9m
Monero (XMR): 4ACL8AGrEo5hAir8A9CeVrW8pEauWvnp1WnSDZxW7tziCDLhZAGsgzhRQABDnFy8yuM9fWJDviJPHKRjV4FWt19CJZN9D4n
-
10:48
GritsGG
12 hours agoWarzone Stadium Easter Egg! Unlock Grau Blueprint EASY!
81 -
LIVE
Lofi Girl
3 years agolofi hip hop radio 📚 - beats to relax/study to
142 watching -
1:43:54
TruthStream with Joe and Scott
3 days agoStuey and Elisa V interview Joe and Scott Q, AI, Glutathione, Tylenol etc 11/5 #510
4.61K3 -
29:15
BlabberingCollector
2 days agoHarry Potter X Fortnite, Fans Reee Over Trans Rights, NEW Audiobooks Are OUT, Wizarding Quick Hits
19.2K1 -
1:20:42
The Connect: With Johnny Mitchell
6 days ago $8.06 earnedThe Truth Behind The U.S. Invasion Of Venezuela: Ed Calderon Exposes American Regime Change Secrets
24.3K13 -
2:10:18
FreshandFit
4 hours agoAfter Hours w/ Girls
112K23 -
2:06:29
TimcastIRL
10 hours agoAirlines Cancel Over 700 Flights, Travel APOCALYPSE Is Now, Trump Says END FILIBUSTER | Timcast IRL
222K101 -
SpartakusLIVE
15 hours agoTOXIC Solos on ARC Raiders || Friday Night HYPE - WZ or Redsec Later?
70.2K1 -
2:15:42
TheSaltyCracker
7 hours agoWoke is DEAD ReeEEStream 11-07-25
115K212 -
1:29:13
Sarah Westall
6 hours agoThe City of London: Infiltration, Intimidation & Centralized Power w/ Mike Harris
44.6K13