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
-
2:43:41
Side Scrollers Podcast
17 hours agoAsmongold Says The Online Left Are “ANIMALS” + Hasan Collar-Gate Gets WORSE + More | Side Scrollers
8.28K9 -
1:33:41
Dinesh D'Souza
2 days agoThe Dragon's Prophecy Film
79.1K58 -
LIVE
Lofi Girl
2 years agoSynthwave Radio 🌌 - beats to chill/game to
226 watching -
44:08
The Why Files
6 days agoThe CIA, Men in Black and the Plot to Take Out JFK | The Maury Island Incident
43.3K63 -
2:07:23
TimcastIRL
8 hours agoTrump SLAMS China With NEW 100% Tariff, Stocks & Crypto TUMBLE | Timcast IRL
285K147 -
5:15:25
SpartakusLIVE
8 hours agoBF6 LAUNCH DAY || WZ and BF6 followed by PUBG - The PERFECT Combo?
58.1K3 -
1:33:59
Glenn Greenwald
10 hours agoQ&A with Glenn: Is the Gaza Peace Deal Real? Why was the Nobel Peace Prize Given to Venezuela's Opposition Leader? And More... | SYSTEM UPDATE #529
114K66 -
1:24:01
Flyover Conservatives
1 day agoURGENT FINANCIAL UPDATE! October 14–31: The Great and Terrible Day Has Arrived - Bo Polny; 5 Mindsets You Must Master - Clay Clark | FOC Show
52.3K5 -
4:01:36
VapinGamers
6 hours ago $4.49 earnedBattlefield 6 - All Protatoe and Nothing but Net - !rumbot !music
37.1K1 -
3:23:28
GritsGG
7 hours agoRANK GRIND! Most Wins in WORLD! 3734+!
31.7K