看影片(在新分頁開啟原站)連到 YouTube・Neel Nanda
摘要
Neel Nanda 進行實時研究走訪,探討 60 億參數模型 GPT-J 如何執行加法運算。他透過分析嵌入空間、SVD、傅立葉轉換以及殘留流修補(residual stream patching),發現模型利用特定的 MLP 層與神經元(如奇偶性、模 3、模 5 神經元)來處理不同位數的加法邏輯。
A real-time research walkthrough by Neel Nanda investigating how the GPT-J model performs addition, utilizing techniques like SVD, Fourier transforms, and residual stream patching to uncover specific neural circuits and periodic patterns.
摘要、重點與章節標題由語言模型整理,細節(誰說的、數字、先後)可能有誤;要引用請以原始內容為準。
重點
- 模型在特定 MLP 層進行加法計算,並依賴殘留流傳遞資訊。
- 發現專門處理奇偶性、模 3 及模 5 的特定神經元。
- 加法並非單純記憶,而是結合了週期性特徵與位數處理。
章節
依話題轉折切分,標題由 AI 產生
- 00:00Introduction and paper discussion
- 01:50Setting expectations and workflow discussion
- 05:00Brainstorming potential open questions
- 06:07[Idea 1] How does the model handle different tokenizations of the same numbers?
- 08:04[Idea 2] How do the embeddings of numbers relate to each other?
- 12:06[Idea 3] To what degree does the model memorize addition?
- 13:30[Idea 4] Can we find hints of the model using Fourier transforms for addition?
- 18:19High-level framing of the investigation
- 22:21GPT-J can do addition!
- 23:39Investigation of the tokenization of 3-digit numbers
- 27:43Examining the embedding space using SVD
- 34:37Fourier transform on singular vectors
- 51:46Significance of case 10 and speculations on the periodicity
- 56:29Setting the next steps
- 59:29Building a prompt function and other utils
- 1:10:37Setting up residual stream patching and discussing observations
- 1:51:55How does GPT-J handle addition of three numbers?
- 2:01:22Discussion on specialized attention heads, and parallel attention and MLP layers in GPT-J
- 2:06:01Comparison of our observations with the original paper
- 2:13:21Setting up direct logit attribution and discussing observations
- 2:33:40Hypothesizing about GPT-J’s handling of addition
- 2:55:01Investigation of the role of different layers and neurons
- 3:29:24In-depth model error analysis
- 3:44:53Is the model doing parallel modular addition and carrying?
- 3:52:58Setting up direct logit attribution in the unembedding and discussing observations
- 4:23:31Checking neuron activations and identifying roles of parity neurons
- 4:33:16Uncovering a ends-in-seven neuron
- 4:38:19Uncovering a mod 3 neuron
- 4:57:40Identifying neuron patterns
- 5:18:00Setting up direct neuron attribution
- 5:21:45Analyzing neuron compositions in layer 16
- 5:30:37Uncovering a proto-parity neuron
- 5:37:02Questioning the existence of a true addition algorithm and considering next steps
- 5:38:22Closing thoughts and code availability
提到的工具與公司
- GPT-J
- SVD
- Hugging Face
適合誰看
適合對機械可解釋性、大型語言模型內部運作機制或機器學習研究感興趣的讀者。
摘要依據
- 依據
- 自動字幕
為什麼排在這裡
- 人氣
- 0.09
- 新鮮
- 0.01
在主題頁與搜尋結果裡,名次由相關、人氣、新鮮三個分數決定;這一頁沒有搜尋的關鍵字,所以沒有相關分數。排序怎麼算
相關內容
- The most complex model we actually understand影片 ・ Welch Labs ・ 35 分鐘 ・
- Realtime Research Walkthrough: Parenthesis Balancing in 1L Toy Language Model (Part 1)影片 ・ Neel Nanda ・ 1 小時 46 分 ・
- Qwen3.8 27B addition in words文章 ・ Simon Willison's Weblog ・
- LLMs Don’t Calculate - They Just Remember Everything影片 ・ Chris Hay ・ 40 分鐘 ・
- Implementing GPT-2 From Scratch (Transformer Walkthrough Part 2/2)影片 ・ Neel Nanda ・ 1 小時 19 分 ・
- Build an LLM from Scratch 4: Implementing a GPT model from Scratch To Generate Text影片 ・ Sebastian Raschka ・ 1 小時 46 分 ・
這個來源最近的內容
摘要由 AI 根據原文產生,可能有誤;完整內容請看原站。看影片(在新分頁開啟原站)
