Neural networks often exhibit emergent behavior, where qualitatively new capabilities arise from scaling up the amount of parameters, training data, or training steps. One approach to understanding emergence is to find continuous \textit{progress measures} that underlie the seemingly discontinuous qualitative changes. We argue that progress measures can be found via mechanistic interpretability: reverse-engineering learned behaviors into their individual components. As a case study, we investigate the recently-discovered phenomenon of ``grokking'' exhibited by small transformers trained on modular addition tasks. We fully reverse engineer the algorithm learned by these networks, which uses discrete Fourier transforms and trigonometric identities to convert addition to rotation about a circle. We confirm the algorithm by analyzing the activations and weights and by performing ablations in Fourier space. Based on this understanding, we define progress measures that allow us to study the dynamics of training and split training into three continuous phases: memorization, circuit formation, and cleanup. Our results show that grokking, rather than being a sudden shift, arises from the gradual amplification of structured mechanisms encoded in the weights, followed by the later removal of memorizing components.
Two Speeds of Learning: A Representation-Readout Decomposition of Grokking and Double Descent
Center for Computational Neuroscience(计算神经科学中心);Flatiron Institute(Flatiron研究所);Department of Physics(物理系);Harvard University(哈佛大学);Kempner Institute(Kempner研究所);New York University(纽约大学)
A Spectral Theory of Grokking: Weight Decay induces Feature Learning
Arnold-Sommerfeld-Center for Theoretical Physics(阿诺德-索末菲理论物理中心);Ludwig-Maximilians-Universität München(慕尼黑路德维希-马克西米利安大学);University of Cambridge(剑桥大学);Standford University(斯坦福大学)
MINAR: Mechanistic Interpretability for Neural Algorithmic Reasoning
Pacific Northwest National Laboratory, Richland, WA(太平洋西北国家实验室);Halıcıoğlu Data Science Institute, University of California, San Diego, San Diego, CA(哈利奇奥格鲁数据科学研究所,加州大学圣地亚哥分校);Department of Computer and Information Science, University of Pennsylvania, Pennsylvaina, PA(计算机与信息科学系,宾夕法尼亚大学);Department of Mathematics, University of Washington, Seattle, WA(数学系,华盛顿大学)
Mechanistic Interpretability of Fine-Tuned Vision Transformers on Distorted Images: Decoding Attention Head Behavior for Transparent and Trustworthy AI
Krembil Research Institute, University Health Network(肯贝尔研究所,大学健康网络)
The Quest for the Right Mediator: Surveying Mechanistic Interpretability Through the Lens of Causal Mediation Analysis
Boston University(波士顿大学);University of Mannheim(曼海姆大学);Northeastern University(东北大学);Anthropic(Anthropic公司);Massachusetts Institute of Technology(麻省理工学院);Stanford University(斯坦福大学);Technion – Israel Institute of Technology(技术学院–以色列理工学院)
A Unified Theory of Sparse Dictionary Learning in Mechanistic Interpretability: Piecewise Biconvexity and Spurious Minima
National University of Singapore(新加坡国立大学);Indian Institute of Technology, Dhanbad(印度德里理工学院);Chinese University of Hong Kong(香港中文大学);Hong Kong University of Science and Technology(香港科学与技术大学);Peking University(北京大学)
Prisma: An Open Source Toolkit for Mechanistic Interpretability in Vision and Video
Mila Quebec(蒙特利尔大学);McGill University(麦吉尔大学);Meta;Université de Montréal(蒙特利尔大学);Imperial College London(伦敦帝国理工学院);Fraunhofer Heinrich Hertz Institute(弗劳恩霍夫 Heinrich Hertz 研究所);Technological University Dublin(都柏林技术大学);Apollo Research(Apollo 研究所)
Mechanistic Interpretability of Brain-to-Speech Models Across Speech Modes
Department of Computer Science, University of Maryland, College Park, United States(计算机科学系,马里兰大学,College Park,美国);Department of Electrical and Computer Engineering, University of Maryland, College Park, United States(电气与计算机工程系,马里兰大学,College Park,美国)
Beyond Static Interpretability: Anticipating Post-SFT Mechanisms from Pre-SFT Parameters for Better Tuning
College of Computing and Data Science(计算与数据科学学院);Nanyang Technological University(南洋理工大学);School of Computer Science and Engineering(计算机科学与工程学院);The Chinese University of Hong Kong(香港中文大学)
Mechanistic Interpretability of Antibody Language Models Using SAEs
Department of Statistics, University of Oxford, UK(英国牛津大学统计系);Reticular, San Francisco, USA(美国旧金山Reticular公司);EECS, MIT, Cambridge MA, USA(美国麻省理工学院电子工程与计算机科学系);Leyden Laboratories BV, Leiden, The Netherlands(荷兰莱顿实验室)
When the Coffee Feature Activates on Coffins: An Analysis of Feature Extraction and Steering for Mechanistic Interpretability
Department of Philosophy of Nature and Technology(自然哲学与技术系);Munich School of Philosophy(慕尼黑哲学学院);Division of the Humanities and Social Sciences(人文与社会科学系);California Institute of Technology(加州理工学院)