Modular addition without black-boxes: Compressing explanations of MLPs that compute numerical integration
On the map: Mechanistic interpretability → Circuits and mechanistic analysis
Abstract (arXiv)
The goal of mechanistic interpretability is discovering simpler, low-rank algorithms implemented by models. While we can compress activations into features, compressing nonlinear feature-maps -- like MLP layers -- is an open problem. In this work, we present the first case study in rigorously compressing nonlinear feature-maps, which are the leading asymptotic bottleneck to compressing small transformer models. We work in the classic setting of the modular addition models, and target a non-vacuous bound on the behaviour of the ReLU MLP in time linear in the parameter-count of the circuit. To study the ReLU MLP analytically, we use the infinite-width lens, which turns post-activation matrix multiplications into approximate integrals. We discover a novel interpretation of} the MLP layer in one-layer transformers implementing the ``pizza'' algorithm: the MLP can be understood as evaluating a quadrature scheme, where each neuron computes the area of a rectangle under the curve of a trigonometric integral identity. Our code is available at https://tinyurl.com/mod-add-integration.
Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Placed in Circuits and mechanistic analysis, one of 13 directions in Mechanistic interpretability. Builds on 6 of its 10 references that are in the map. First posted on arXiv 4 Dec 2024.
Builds on
6 of 10 references.
Closest ancestors · 2
Same direction, newest first
- 2024Compact Proofs of Model Performance via Mechanistic Interpretability17 Jun
- 2023Progress measures for grokking via mechanistic interpretability12 Jan
Other references · 4
- 2023Sparse Autoencoders Find Highly Interpretable Features in Language Modelscited by 1,420
- 2022Toy Models of Superpositioncited by 971
- 2024Sparse Feature Circuits: Discovering and Editing Interpretable Causal Graphs in Language Modelscited by 435
- 2023The Clock and the Pizza: Two Stories in Mechanistic Explanation of Neural Networkscited by 156
Built on by
Citing papers per year: 2025: 2; 2026: 1.
3 papers.
Similar, not cited
Close in wording, no citation either way
- 2024Fourier Circuits in Neural Networks and Transformers: A Case Study of Modular Arithmetic with Multiple Inputs
- 2023A technical note on bilinear layers for interpretability
- 2025Secret mixtures of experts inside your LLM
- 2024Towards Empirical Interpretation of Internal Circuits and Properties in Grokked Transformers on Modular Polynomials
- 2026ITNet: A Learnable Integral Transform That Subsumes Convolution, Attention, and Recurrence
- 2026Arbitrary-Accuracy Neural Approximation with Optimal Neuron Count and Near-Optimal Bit Complexity
- 2026Variance Is Not Importance: Structural Analysis of Transformer Compressibility Across Model Scales
- 2026Sparsity Moves Computation: How FFN Architecture Reshapes Attention in Small Transformers