Modular addition · Modular Addition

13 papers · 38 extracted observations · modular addition · Markdown · CSV · JSON API

Also indexed as: modular-addition

Comparable Cohort Timeline (proposed/measured methods; excludes quoted baselines & ablations)

Proposed/measured results matching task=Modular Addition, split=test.

81.687.893.9100.02024202520261-layer Transformer: 83.0 (2023)Network in the Forgetting phase: 100.0 (2024)Random transformer (width 1024; input embeddings and unembedding trained, other parameters fixed): 100.0 (2024)Custom Loss (α=1e-4): 99.5 (2025)FACT-RFM (geometric averaging): 100.0 (2026)
Click any point on the timeline to inspect method, protocol, and paper.

Showing 27 of 27 matching observations.

YearMethodMetricScoreProtocol / FacetsPaper & Evidence
2026FACT-RFM (geometric averaging) proposedTest accuracy100%Modular Addition · split: test · operation=(x+y) mod 61 · iterations=75 · training-data=50%FACT: a first-principles alternative to the Neural Feature Ansatz for how networks learn representations
Source quote
L203: Figure 5: We train FACT-RFM and NFA-RFM on (x + y) mod 61 for 75 iterations. Both methods achieve 100% test accuracy and exhibit delayed generalization aligned to the “grokking” phenomenon.
2026Validation-accuracy reference (Gaussian HMM)5-fold CV Ridge R20.66Modular AdditionTracking Training Phases in Compositional Learning with Task-Agnostic Measures
Source quote
L227: 0.66
2026Validation-accuracy reference (Gaussian HMM)5-fold CV Ridge R20.98Modular AdditionTracking Training Phases in Compositional Learning with Task-Agnostic Measures
Source quote
L228: 0.98
2026Prediction churn (hard)5-fold CV Ridge R20.55Modular AdditionTracking Training Phases in Compositional Learning with Task-Agnostic Measures
Source quote
L229: 0.55
2026Prediction churn (hard)5-fold CV Ridge R21.00Modular AdditionTracking Training Phases in Compositional Learning with Task-Agnostic Measures
Source quote
L230: 1.00
2026Local Learning Coefficient (LLC)5-fold CV Ridge R20.58Modular AdditionTracking Training Phases in Compositional Learning with Task-Agnostic Measures
Source quote
L233: 0.58
2026Local Learning Coefficient (LLC)5-fold CV Ridge R20.96Modular AdditionTracking Training Phases in Compositional Learning with Task-Agnostic Measures
Source quote
L234: 0.96
2026NFA-RFM baselineTest accuracy100%Modular Addition · split: test · operation=(x+y) mod 61 · iterations=75 · training-data=50%FACT: a first-principles alternative to the Neural Feature Ansatz for how networks learn representations
Source quote
L203: Figure 5: We train FACT-RFM and NFA-RFM on (x + y) mod 61 for 75 iterations. Both methods achieve 100% test accuracy and exhibit delayed generalization aligned to the “grokking” phenomenon.
2026bottlenecked ReLU network baselinemedian generalisation gap15000 stepsModular Addition · seeds=3 · architecture=bottlenecked ReLU network · training-budget=50000 steps · bottleneck-width=16Algebraic Representability as the Limiting Regime of Grokking: An Exactly Solvable Model with Holomorphic Activations
Source quote
L800: 16 │ grok │ 15000
2026bottlenecked ReLU network baselinemedian generalisation gap7250 stepsModular Addition · seeds=3 · architecture=bottlenecked ReLU network · training-budget=50000 steps · bottleneck-width=32Algebraic Representability as the Limiting Regime of Grokking: An Exactly Solvable Model with Holomorphic Activations
Source quote
L801: 32 │ grok │ 7250
2026bottlenecked ReLU network baselinemedian generalisation gap5500 stepsModular Addition · seeds=3 · architecture=bottlenecked ReLU network · training-budget=50000 steps · bottleneck-width=64Algebraic Representability as the Limiting Regime of Grokking: An Exactly Solvable Model with Holomorphic Activations
Source quote
L802: 64 │ grok │ 5500
2026bottlenecked ReLU network baselinemedian generalisation gap5250 stepsModular Addition · seeds=3 · architecture=bottlenecked ReLU network · training-budget=50000 steps · bottleneck-width=128Algebraic Representability as the Limiting Regime of Grokking: An Exactly Solvable Model with Holomorphic Activations
Source quote
L803: 128 │ grok │ 5250
2025RNN trained on modular addition proposed non-standard sliceenergy in retained components of embedding matrix W_E85.4%Modular Addition · matrix=W_E · retained-components=12Low Rank and Sparse Fourier Structure in Recurrent Networks Trained on Modular Addition
Source quote
L104: \caption{Singular value spectra of model weights are low rank. The number of components r required to maintain 100% model accuracy as follows: embedding matrix W_E : r=12 containing 85.4% of the energy , unembedding matrix W-fc : r=12 containing 95.5% of the energy, input-hidden matrix W-ih : r=12 containing 91.4% of the energy, and hidden-hidden matrix W-hh : r=32 containing 89.4% of the energy.}
2025RNN trained on modular addition proposed non-standard sliceenergy in retained components of unembedding matrix W_fc95.5%Modular Addition · matrix=W_fc · retained-components=12Low Rank and Sparse Fourier Structure in Recurrent Networks Trained on Modular Addition
Source quote
L104: \caption{Singular value spectra of model weights are low rank. The number of components r required to maintain 100% model accuracy as follows: embedding matrix W_E : r=12 containing 85.4% of the energy , unembedding matrix W-fc : r=12 containing 95.5% of the energy, input-hidden matrix W-ih : r=12 containing 91.4% of the energy, and hidden-hidden matrix W-hh : r=32 containing 89.4% of the energy.}
2025RNN trained on modular addition ablationmodel accuracy after single-frequency ablation100%Modular Addition · frequency-ablated=k3=54Low Rank and Sparse Fourier Structure in Recurrent Networks Trained on Modular Addition
Source quote
L120: k_3=54 │ 100% │ 87.3%
2025RNN trained on modular addition ablationmodel accuracy after single-frequency ablation99.4%Modular Addition · frequency-ablated=k4=6Low Rank and Sparse Fourier Structure in Recurrent Networks Trained on Modular Addition
Source quote
L121: k_4=6 │ 99.4% │ 28.3%
2024LI basis (LIB) proposedapparently-irrelevant features (incoming edges but no outgoing edges)3 featuresModular Addition · basis=LI basis (LIB) · layer=second · seeds=5 · inspected-features=25The Local Interaction Basis: Identifying Computationally-Relevant and Sparsely Interacting Features in Neural Networks
Source quote
L1260: We indeed find more apparently-irrelevant features in the PCA basis (14) than in the LI basis (3).
2024pizza ReLU transformer proposedTotal numerical abs ∫-−π (π) bound0.73Modular Addition · modulus=59 · frequency=12Modular addition without black-boxes: Compressing explanations of MLPs that compute numerical integration
Source quote
L726: Total numerical abs \int--\pi (\pi) bound │ 0.73 │ 0.59 │ 0.56 │ 0.50 │ (\ref{eq:abs-bound}) + (\ref{eq:angle-approximation-error})
2024pizza ReLU transformer proposedTotal numerical abs ∫-−π (π) bound0.59Modular Addition · modulus=59 · frequency=18Modular addition without black-boxes: Compressing explanations of MLPs that compute numerical integration
Source quote
L726: Total numerical abs \int--\pi (\pi) bound │ 0.73 │ 0.59 │ 0.56 │ 0.50 │ (\ref{eq:abs-bound}) + (\ref{eq:angle-approximation-error})
2024pizza ReLU transformer proposedTotal numerical abs ∫-−π (π) bound0.56Modular Addition · modulus=59 · frequency=21Modular addition without black-boxes: Compressing explanations of MLPs that compute numerical integration
Source quote
L726: Total numerical abs \int--\pi (\pi) bound │ 0.73 │ 0.59 │ 0.56 │ 0.50 │ (\ref{eq:abs-bound}) + (\ref{eq:angle-approximation-error})
2024pizza ReLU transformer proposedTotal numerical abs ∫-−π (π) bound0.50Modular Addition · modulus=59 · frequency=22Modular addition without black-boxes: Compressing explanations of MLPs that compute numerical integration
Source quote
L726: Total numerical abs \int--\pi (\pi) bound │ 0.73 │ 0.59 │ 0.56 │ 0.50 │ (\ref{eq:abs-bound}) + (\ref{eq:angle-approximation-error})
2024Random transformer (width 1024; input embeddings and unembedding trained, other parameters fixed) proposedTest accuracy100.0%Modular Addition · split: test · width=1024 · layers=2 · restarts=10; median · training=input-embeddings-and-unembedding-onlyAlgorithmic Capabilities of Random Transformers
Source quote
L104: Modular Addition │ 100.0% │ 1.3% │ 100.0% │ 97.2% │ 100.0%
2024Custom Loss (α=1e-4) proposedτ=0.5% Accuracy99.5%Modular Addition · split: test · N=32 · q=974269 · α=1e-4 · loss=Custom LossMaking Hard Problems Easier with Custom Data Distributions and Loss Regularization: A Case Study in Modular Arithmetic
Source quote
L558: 974269 │ 99.5% │ 98.9% │ 91.0%
2024PCA basis baselineapparently-irrelevant features (incoming edges but no outgoing edges)14 featuresModular Addition · basis=PCA · layer=second · seeds=5 · inspected-features=25The Local Interaction Basis: Identifying Computationally-Relevant and Sparsely Interacting Features in Neural Networks
Source quote
L1260: We indeed find more apparently-irrelevant features in the PCA basis (14) than in the LI basis (3).
2024XE Loss baselineτ=0.5% Accuracy91.0%Modular Addition · split: test · N=32 · q=974269 · loss=XE LossMaking Hard Problems Easier with Custom Data Distributions and Loss Regularization: A Case Study in Modular Arithmetic
Source quote
L558: 974269 │ 99.5% │ 98.9% │ 91.0%
20231-layer Transformer proposedtest accuracy83%Modular Addition · split: test · modulus=113 · condition=semi-grokking · training-data-size=approximately critical dataset sizeExplaining grokking through circuit efficiency
Source quote
L21: \caption{Semi-grokking. When \numTrainExamples \sim \criticalDatasetSize, the memorising algorithm and generalising algorithm compete with each other at convergence, so we observe a transition to improved but not perfect test loss (test accuracy of 83%).}
2023Network in the Forgetting phaseTest accuracy100%Modular Addition · split: testTo Grok or not to Grok: Disentangling Generalization and Memorization on Corrupted Algorithmic Datasets
Source quote
L318: We saw in \Cref{fig:phase_diagrams}(a) (right-most panel, wd=20.0) that extremely high weight decay leads to Forgetting phase. This phase has random guessing accuracies on both training and test datasets at the end of training. Naively, this would seem similar to the Confusion phase. However, Upon close inspection of their training dynamics, we find rich behaviour. Namely, the network initially undergoes dynamics similar to Full Inversion, i.e., the test accuracy reaches 100 % while the train accuracy plateaus around 100 (1-\xi) %. However, both accuracies subsequently decay down to random guessing. This curious phenomenon is explained by the effect of the high weight decay on the network weights. We notice that the Frobenius norms of the weights of the network steadily decay down to arbitrarily small values.