Uncovering a Universal Abstract Algorithm for Modular Addition in Neural Networks
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. Cited by 10 papers in the map (data through 14 Oct 2026). First posted on arXiv 23 May 2025.
Builds on
0 of 0 references.
No references here yet.
Built on by
Citing papers per year: 2025: 4; 2026: 6.
10 papers.
- 2025Theory of Scaling Laws for In-Context Regression: Depth, Width, Context and Timecited by 16
- 2026Sequential Group Composition: A Window into the Mechanics of Deep Learningcited by 10
- 2025Pretrain-Test Task Alignment Governs Generalization in In-Context Learningcited by 8
- 2025On the geometry and topology of representations: the manifolds of modular additioncited by 3
- 2026Can Neural Networks Learn Small Algebraic Worlds? An Investigation Into the Group-theoretic Structures Learned By Narrow Models Trained To Predict Group Operationscited by 3
- 2025Correspondence Between Ising Machines and Neural Networkscited by 1
- 2026Gradient Flow Through Diagram Expansions: Learning Regimes and Explicit Solutionscited by 1
- 2026Unveiling Memorization-Generalization Coexistence: A Case Study on Arithmetic Tasks with Label Noisecited by 1
- 2026Learning Large-Scale Modular Addition with an Auxiliary Moduluscited by 0
- 2026The Discrete-Log Clock: How a Transformer Learns Modular Multiplicationcited by 0
- 2026The Discrete-Log Clock: How a Transformer Learns Modular Multiplication16 Jun 2026
- 2026Unveiling Memorization-Generalization Coexistence: A Case Study on Arithmetic Tasks with Label Noise18 May 2026
- 2026Learning Large-Scale Modular Addition with an Auxiliary Modulus8 May 2026
- 2026Gradient Flow Through Diagram Expansions: Learning Regimes and Explicit Solutions4 Feb 2026
- 2026Sequential Group Composition: A Window into the Mechanics of Deep Learning3 Feb 2026
- 2026Can Neural Networks Learn Small Algebraic Worlds? An Investigation Into the Group-theoretic Structures Learned By Narrow Models Trained To Predict Group Operations29 Jan 2026
- 2025On the geometry and topology of representations: the manifolds of modular addition31 Dec 2025
- 2025Correspondence Between Ising Machines and Neural Networks2 Nov 2025
- 2025Theory of Scaling Laws for In-Context Regression: Depth, Width, Context and Time1 Oct 2025
- 2025Pretrain-Test Task Alignment Governs Generalization in In-Context Learning30 Sep 2025