Uploaded November 2022 | Updated November 2026, 1 week ago
#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: arxiv.org/abs/2202.05262
Follow-up paper on Mass-Editing Memory in a Transformer: 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: ykilcher.com
Merch: ykilcher.com/merch
YouTube: youtube.com/c/yannickilcher
Twitter: twitter.com/ykilcher
Discord: ykilcher.com/discord
LinkedIn: 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: subscribestar.com/yannickilcher
Patreon: patreon.com/yannickilcher
Bitcoin (BTC): bc1q49lsw3q325tr58ygf8sudx2dqfguclvngvy2cq
Ethereum (ETH): 0x7ad3513E3B8f66799f507Aa7874b1B0eBC7F85e2
Litecoin (LTC): LQW2TRyKYetVC8WjFkhpPhtpbDM4Vw7r9m
Monero (XMR): 4ACL8AGrEo5hAir8A9CeVrW8pEauWvnp1WnSDZxW7tziCDLhZAGsgzhRQABDnFy8yuM9fWJDviJPHKRjV4FWt19CJZN9D4n
#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: arxiv.org/abs/2202.05262
Follow-up paper on Mass-Editing Memory in a Transformer: 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: ykilcher.com
Merch: ykilcher.com/merch
YouTube: youtube.com/c/yannickilcher
Twitter: twitter.com/ykilcher
Discord: ykilcher.com/discord
LinkedIn: 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: subscribestar.com/yannickilcher
Patreon: patreon.com/yannickilcher
Bitcoin (BTC): bc1q49lsw3q325tr58ygf8sudx2dqfguclvngvy2cq
Ethereum (ETH): 0x7ad3513E3B8f66799f507Aa7874b1B0eBC7F85e2
Litecoin (LTC): LQW2TRyKYetVC8WjFkhpPhtpbDM4Vw7r9m
Monero (XMR): 4ACL8AGrEo5hAir8A9CeVrW8pEauWvnp1WnSDZxW7tziCDLhZAGsgzhRQABDnFy8yuM9fWJDviJPHKRjV4FWt19CJZN9D4n


![[ML News] Text-to-Image models are taking over! (Imagen, DALL-E 2, Midjourney, CogView 2 & more)
#mlnews #dalle #imagen
All things text-to-image models like DALL-E and Imagen!
OUTLINE:
0:00 - Intro
0:30 - Imagen: Googles Text-to-Image Diffusion Model
7:15 - Unified I/O by AllenAI
9:40 - CogView2 is Open-Source
11:05 - Google bans DeepFakes from Colab
13:05 - DALL-E generates real Cosmopolitan cover
15:45 - DALL-E tips & tricks
17:00 - Midjourney moves to Open Beta
17:50 - DALLE-mini is not Crayon
19:00 - Deep Learning Resources
AMENDMENTS:
The Unified-IO paper is here: https://arxiv.org/abs/2206.08916
References:
Imagen: Googles Text-to-Image Diffusion Model
https://imagen.research.google/?utm_source=pocket_mylist
https://arxiv.org/pdf/2205.11487.pdf
Unified I/O by AllenAI
https://unified-io.allenai.org/
https://blog.allenai.org/introducing-ai2s-unified-io-9c0ec7fe1e43
CogView2 is Open-Source
https://github.com/THUDM/CogView2
file:///Users/yk/Downloads/big.1.pdf
https://huggingface.co/spaces/THUDM/CogView2
https://arxiv.org/pdf/2204.14217.pdf
Google bans DeepFakes from Colab
https://www-vice-com.cdn.ampproject.org/c/s/www.vice.com/amp/en/article/v7v4gx/google-bans-deepfakes-from-its-machine-learning-platform?utm_source=pocket_mylist
DALL-E generates real Cosmopolitan cover
https://www.cosmopolitan.com/lifestyle/a40314356/dall-e-2-artificial-intelligence-cover/
https://www.instagram.com/p/CfEwohiJdXW/?hl=en
DALL-E tips & tricks
https://twitter.com/GuyP/status/1544710725708513280?s=09&t=c3NpErPx80INQVeaWkIqIg&utm_source=pocket_mylist
https://twitter.com/GuyP/status/1552681939806691329?s=09&t=LV2ChcukUziXfvfNK-sY0A&utm_source=pocket_mylist
https://twitter.com/GuyP/status/1547234780001042432
https://dallery.gallery/the-dalle-2-prompt-book/
Midjourney moves to Open Beta
https://twitter.com/midjourney?lang=en
https://twitter.com/search?q=%23midjourney&f=image
DALLE-mini is not Crayon
https://www.craiyon.com/
Deep Learning Resources
https://github.com/jacobhilton/deep_learning_curriculum
https://arxiv.org/abs/2206.13446
https://arxiv.org/pdf/2206.13446.pdf
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 [ML News] Text-to-Image models are taking over! (Imagen, DALL-E 2, Midjourney, CogView 2 & more)](https://i.ytimg.com/vi/af6WPqvzjjk/mqdefault.jpg)
![[GRPO Explained] DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models
#deepseek #llm #grpo
GRPO is one of the core advancements used in Deepseek-R1, but was introduced already last year in this paper that uses a combination of new RL techniques and iterative data collection to achieve remarkable performance on mathematics benchmarks with just a 7B model.
Paper: https://arxiv.org/abs/2402.03300
Abstract:
Mathematical reasoning poses a significant challenge for language models due to its complex and structured nature. In this paper, we introduce DeepSeekMath 7B, which continues pre-training DeepSeek-Coder-Base-v1.5 7B with 120B math-related tokens sourced from Common Crawl, together with natural language and code data. DeepSeekMath 7B has achieved an impressive score of 51.7% on the competition-level MATH benchmark without relying on external toolkits and voting techniques, approaching the performance level of Gemini-Ultra and GPT-4. Self-consistency over 64 samples from DeepSeekMath 7B achieves 60.9% on MATH. The mathematical reasoning capability of DeepSeekMath is attributed to two key factors: First, we harness the significant potential of publicly available web data through a meticulously engineered data selection pipeline. Second, we introduce Group Relative Policy Optimization (GRPO), a variant of Proximal Policy Optimization (PPO), that enhances mathematical reasoning abilities while concurrently optimizing the memory usage of PPO.
Authors: Zhihong Shao, Peiyi Wang, Qihao Zhu, Runxin Xu, Junxiao Song, Xiao Bi, Haowei Zhang, Mingchuan Zhang, Y.K. Li, Y. Wu, Daya Guo
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 [GRPO Explained] DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models](https://i.ytimg.com/vi/bAWV_yrqx4w/mqdefault.jpg)




![[ML News] Geoff Hinton leaves Google | Google has NO MOAT | OpenAI down half a billion
#google #openai #mlnews
Updates from the world of Machine Learning and AI
Great AI memes here: https://twitter.com/untitled01ipynb
OUTLINE:
0:00 - Google I/O 2023: Generative AI in everything
0:20 - Anthropic announces 100k tokens context
0:35 - Intro
1:20 - Geoff Hinton leaves Google
7:00 - Google memo leaked: we have no moat
11:30 - OpenAI loses 540M
12:30 - Google AI: Product first
15:50 - Ilya Sutskever on safety vs competition
18:00 - AI works cannot be copyrighted
19:40 - OpenAI tries to trademark GPT
20:30 - StarCoder: accessible code model
21:40 - RedPyjama & OpenLlama
22:55 - Mosaic 7B model
23:50 - YoloNAS
24:10 - Mojo programming language
25:30 - Random helpful things
37:40 - DeepMind soccer robots
References:
https://twitter.com/weirddalle/status/1649908805788893185
https://www.nytimes.com/2023/05/01/technology/ai-google-chatbot-engineer-quits-hinton.html
https://www.technologyreview.com/2023/05/01/1072478/deep-learning-pioneer-geoffrey-hinton-quits-google/
https://archive.ph/TrPoH
https://twitter.com/DanHendrycks/status/1654560913939374080
https://twitter.com/ylecun/status/1654930029569101824
https://twitter.com/home
https://twitter.com/ylecun/status/1654931495419621376
https://twitter.com/pkedrosky/status/1653955254181068801
https://www.semianalysis.com/p/google-we-have-no-moat-and-neither
https://twitter.com/untitled01ipynb/media
https://www.theinformation.com/articles/openais-losses-doubled-to-540-million-as-it-developed-chatgpt
https://archive.ph/bKsdM
https://www.washingtonpost.com/technology/2023/05/04/google-ai-stop-sharing-research/
https://twitter.com/giffmana/status/1654962145707130880
https://twitter.com/Ken_Goldberg/status/1651309843804987393
https://tsdr.uspto.gov/documentviewer?caseId=sn97733259&docId=PTD20230418160641&s=09#docIndex=1&page=1
https://twitter.com/osanseviero/status/1654230764513370112
https://huggingface.co/bigcode/starcoder
https://huggingface.co/spaces/bigcode/bigcode-model-license-agreement
https://twitter.com/hardmaru/status/1654649036333514753
https://www.together.xyz/blog/redpajama-models-v1
https://huggingface.co/togethercomputer/RedPajama-INCITE-Base-3B-v1
https://github.com/openlm-research/open_llama
https://www.mosaicml.com/blog/mpt-7b
https://github.com/Deci-AI/super-gradients/blob/master/YOLONAS.md
https://www.modular.com/mojo
https://www.aicrowd.com/challenges/hackaprompt-2023
https://learnprompting.org/
https://developer.nvidia.com/blog/nvidia-enables-trustworthy-safe-and-secure-large-language-model-conversational-systems/?ncid=prsy-552511
https://blogs.nvidia.com/blog/2023/04/25/ai-chatbot-guardrails-nemo/
https://lmql.ai/#distribution
https://github.com/gventuri/pandas-ai?utm_source=pocket_reader
https://lamini.ai/blog/introducing-lamini
https://github.com/deep-floyd/IF
https://huggingface.co/spaces/DeepFloyd/IF
https://twitter.com/FaramaFound/status/1650952295901720576
https://txt.cohere.com/embedding-archives-wikipedia/?hsa_acc=509563538&hsa_ad=242008083&hsa_cam=626636963&hsa_grp=205646033&hsa_net=linkedin&hsa_ver=3&hss_channel=lcp-24024765
https://arxiv.org/abs/2304.12210
https://github.com/h2oai/h2ogpt
https://huggingface.co/h2oai/h2ogpt-oasst1-512-20b
https://github.com/h2oai/h2o-llmstudio
https://ai.facebook.com/blog/ai-dataset-animating-kids-drawings/
https://www.camel-ai.org/
https://github.com/lightaime/camel?utm_source=pocket_reader
https://huggingface.co/Writer/camel-5b-hf
https://laion.ai/blog/paella/
https://magazine.sebastianraschka.com/p/finetuning-large-language-models
https://pickapic.io/
https://github.com/yuvalkirstain/heroku_app
https://huggingface.co/datasets/yuvalkirstain/PickaPic
https://future.snorkel.ai/poster-contest/
https://twitter.com/d_feldman/status/1649466422018318338/photo/4
https://twitter.com/DeepMind/status/1651897358894919680
https://arxiv.org/abs/2304.13653
https://twitter.com/SmokeAwayyy/status/1652712832738422784
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 [ML News] Geoff Hinton leaves Google | Google has NO MOAT | OpenAI down half a billion](https://i.ytimg.com/vi/cjs7QKJNVYM/mqdefault.jpg)

