Uncovering a Universal Abstract Algorithm for Modular Addition in Neural Networks
Gavin McCracken, Gabriela Moisescu-Pareja, Vincent Létourneau, Doina Precup, Jonathan Love
摘要
We propose a testable universality hypothesis, asserting that seemingly disparate neural network solutions observed in the simple task of modular addition are unified under a common abstract algorithm. While prior work interpreted variations in neuron-level representations as evidence for distinct algorithms, we demonstrate - through multi-level analyses spanning neurons, neuron clusters, and entire networks - that multilayer perceptrons and transformers universally implement the abstract algorithm we call the approximate Chinese Remainder Theorem. Crucially, we introduce approximate cosets and show that neurons activate exclusively on them. Furthermore, our theory works for deep neural networks (DNNs). It predicts that universally learned solutions in DNNs with trainable embeddings or more than one hidden layer require only O(log n) features, a result we empirically confirm. This work thus provides the first theory-backed interpretation of multilayer networks solving modular addition. It advances generalizable interpretability and opens a testable universality hypothesis for group multiplication beyond modular addition.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 7 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- On The Geometry and Topology of Representations: the Manifolds of Modular Addition 引用了 The Clock and the Pizza: Two Stories in Mechanistic Explanation of Neural Networks
- On The Geometry and Topology of Representations: the Manifolds of Modular Addition 引用了 A Toy Model of Universality: Reverse Engineering how Networks Learn Group Operations
- Gradient Flow Through Diagram Expansions: Learning Regimes and Explicit Solutions 引用了 Towards Understanding Grokking: An Effective Theory of Representation Learning
- Gradient Flow Through Diagram Expansions: Learning Regimes and Explicit Solutions 引用了 The Clock and the Pizza: Two Stories in Mechanistic Explanation of Neural Networks
- Gradient Flow Through Diagram Expansions: Learning Regimes and Explicit Solutions 引用了 A Toy Model of Universality: Reverse Engineering how Networks Learn Group Operations
- The Clock and the Pizza: Two Stories in Mechanistic Explanation of Neural Networks 引用了 Towards Understanding Grokking: An Effective Theory of Representation Learning
- The Clock and the Pizza: Two Stories in Mechanistic Explanation of Neural Networks 引用了 A Toy Model of Universality: Reverse Engineering how Networks Learn Group Operations
- A Toy Model of Universality: Reverse Engineering how Networks Learn Group Operations 引用了 Towards Understanding Grokking: An Effective Theory of Representation Learning
- Grokking as the transition from lazy to rich training dynamics 引用了 Towards Understanding Grokking: An Effective Theory of Representation Learning
- The Evolution of Statistical Induction Heads: In-Context Learning Markov Chains 引用了 Grokking as the transition from lazy to rich training dynamics
- Sequential Group Composition: A Window into the Mechanics of Deep Learning 引用了 On The Geometry and Topology of Representations: the Manifolds of Modular Addition
- Sequential Group Composition: A Window into the Mechanics of Deep Learning 引用了 The Clock and the Pizza: Two Stories in Mechanistic Explanation of Neural Networks
- Sequential Group Composition: A Window into the Mechanics of Deep Learning 引用了 A Toy Model of Universality: Reverse Engineering how Networks Learn Group Operations
- Theory of Scaling Laws for In-Context Regression: Depth, Width, Context and Time 引用了 Pretrain–Test Task Alignment Governs Generalization in In-Context Learning
引用它的顶会 Paper7
- Theory of Scaling Laws for In-Context Regression: Depth, Width, Context and TimeBlake Bordelon, Mary I. Letey, Cengiz PehlevanICLR 2026 · 14 次引用
- Sequential Group Composition: A Window into the Mechanics of Deep LearningGiovanni Luca Marchetti, Daniel Kunin, Adele Myers, Francisco Acosta 等ICML 2026 · 8 次引用
- Pretrain–Test Task Alignment Governs Generalization in In-Context LearningMary Letey, Jacob A Zavatone-Veth, Yue M. Lu, Cengiz PehlevanICLR 2026 · 6 次引用
- On The Geometry and Topology of Representations: the Manifolds of Modular AdditionGabriela Moisescu-Pareja, Gavin McCracken, Harley Wiltzer, Colin Daniels 等ICLR 2026 · 3 次引用
- Gradient Flow Through Diagram Expansions: Learning Regimes and Explicit SolutionsDmitry Yarotsky, Eugene Golikov, Yaroslav GusevICML 2026 · 1 次引用
它引用的 Paper15
- Towards Understanding Grokking: An Effective Theory of Representation LearningZiming Liu, Ouail Kitouni, Niklas Nolte, Eric J. Michaud 等NeurIPS 2022 · 299 次引用
- The Clock and the Pizza: Two Stories in Mechanistic Explanation of Neural NetworksZiqian Zhong, Ziming Liu, Max Tegmark, Jacob AndreasNeurIPS 2023 · 181 次引用
- A Toy Model of Universality: Reverse Engineering how Networks Learn Group OperationsBilal Chughtai, Lawrence Chan, Neel NandaICML 2023 · 144 次引用
- The Evolution of Statistical Induction Heads: In-Context Learning Markov ChainsEzra Edelman, Nikolaos Tsilivis, Benjamin L. Edelman, Eran Malach 等NeurIPS 2024 · 140 次引用
- Grokking as the transition from lazy to rich training dynamicsTanishq Kumar, Blake Bordelon, Samuel J. Gershman, Cengiz PehlevanICLR 2024 · 86 次引用
相关 Paper
- Deep neural networks divide and conquer dihedral multiplicationSihui Wei, Gavin McCracken, Gabriela Moisescu-Pareja, Harley Wiltzer 等ICML 2026
- Emergence in non-neural models: grokking modular arithmetic via average gradient outer productNeil Mallinar, Daniel Beaglehole, Libin Zhu, Adityanarayanan Radhakrishnan 等ICML 2025
- CoFrNets: Interpretable Neural Architecture Inspired by Continued FractionsIsha Puri, Amit Dhurandhar, Tejaswini Pedapati, Karthikeyan Shanmugam 等NeurIPS 2021 · 13 次引用
- Composing Global Solutions to Reasoning Tasks via Algebraic Objects in Neural NetsYuandong TianNeurIPS 2025 · 4 次引用
- Feature emergence via margin maximization: case studies in algebraic tasksDepen Morwani, Benjamin L. Edelman, Costin-Andrei Oncescu, Rosie Zhao 等ICLR 2024 · 35 次引用
