Modular addition
13 papers · 38 extracted observations · modular addition · Markdown · CSV · JSON API
Also indexed as: modular-addition
Tasks on Modular additionAll tasks (13)Modular Addition (10)Mathematical Reasoning (2)Modular Arithmetic (1)
Comparable Cohort Timeline (proposed/measured methods; excludes quoted baselines & ablations)
Proposed/measured results matching task=Modular Addition, split=test.
Click any point on the timeline to inspect method, protocol, and paper.
| # | Method | Score ↑ | Year | Protocol / Settings | Paper & Evidence |
|---|---|---|---|---|---|
| 1 | FACT-RFM (geometric averaging) SOTA frontier | 100% | 2026-01-01 | operation=(x+y) mod 61 · iterations=75 · training-data=50% · Trained for 75 iterations; trained on 50% of the data and tested on the other half. | FACT: a first-principles alternative to the Neural Feature Ansatz for how networks learn representationsSource quoteFigure 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. |
| 2 | Network in the Forgetting phase SOTA frontier | 100% | 2024-01-01 | Early stage of the Forgetting-phase dynamics, before accuracy subsequently decays; da… | To Grok or not to Grok: Disentangling Generalization and Memorization on Corrupted Algorithmic DatasetsSource quoteWe 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. |
| 3 | Random transformer (width 1024; input embeddings and unembedding trained, other parameters fixed) SOTA frontier | 100% | 2024-01-01 | width=1024 · layers=2 · restarts=10; median · training=input-embeddings-and-unembedding-only · Two-layer transformer; addition modulo p=199; fixed train/test split; median over 10 … | Algorithmic Capabilities of Random TransformersSource quoteModular Addition │ 100.0% │ 1.3% │ 100.0% │ 97.2% │ 100.0% |
| 4 | Custom Loss (α=1e-4) | 99.5% | 2025-01-01 | N=32 · q=974269 · α=1e-4 · loss=Custom Loss · N=32, q=974269; models use the best settings identified in the data-distribution expe… | Making Hard Problems Easier with Custom Data Distributions and Loss Regularization: A Case Study in Modular ArithmeticSource quote974269 │ 99.5% │ 98.9% │ 91.0% |
| 5 | 1-layer Transformer SOTA frontier | 83% | 2023-09-01 | modulus=113 · condition=semi-grokking · training-data-size=approximately critical dataset size · Semi-grokking condition: training dataset size approximately the critical dataset siz… | Explaining grokking through circuit efficiencySource quote\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%).} |
Metricaccuracy (9)5 fold cv ridge r2 (6)dcsp solution disagreement d (5)median generalisation gap (4)total numerical abs bound (4)apparently irrelevant features incoming edges bu (2)energy in retained components of embedding matri (1)
Splittest (8)
Regimediverse-image (1)
Showing 38 of 38 matching observations.
| Year | Method | Metric | Score | Protocol / Facets | Paper & Evidence |
|---|---|---|---|---|---|
| 2026 | FACT-RFM (geometric averaging) proposed | Test accuracy | 100% | 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 representationsSource quoteL203: 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. |
| 2026 | Flow-matching diffusion model proposed | r² between entropy-predicted and behaviorally observed critical timestep | 0.95 | Mathematical Reasoning · diverse-image | Grokking of Diffusion Models: Case Study on Modular AdditionSource quoteL16: In the single-image regime, we isolate the emergence of algorithmic circuits and reveal that the model implements modular addition precisely through trigonometric composition of periodic representations (Figure 1, left). Building on this mechanistic foundation, we then turn to the diverse-image regime and analyze the iterative denoising process. We find that the sampling trajectory naturally partitions into two functionally distinct phases: an arithmetic computation phase in which the identified circuit is active, and a visual denoising phase in which it is not (Figure 1, middle). We verify this partition behaviorally by injecting noise at varying timesteps into an incorrect result image and measuring whether the model can still rectify it. We find that the timestep beyond which rectification fails is accurately predicted by the phase transition identified from internal entropy signals alone (r^2=0.95, Figure 1, right). |
| 2026 | DiT FFN pre-activation Fourier analysis proposed | FVE of the 2D Fourier component for cos(w₁(a+b)) | 0.95 | Mathematical Reasoning · modulus=23 | Grokking of Diffusion Models: Case Study on Modular AdditionSource quoteL271: \cos(w-1 (a+b)) │ 138910 \cos(w_1 a) \cos(w_1 b) -139849 \sin(w_1 a) \sin(w_1 b) │ 0.95 |
| 2026 | DiT FFN pre-activation Fourier analysis proposed | FVE of the 2D Fourier component for cos(w₃(a+b)) | 0.95 | Mathematical Reasoning · modulus=23 | Grokking of Diffusion Models: Case Study on Modular AdditionSource quoteL275: \cos(w-3 (a+b)) │ 171404 \cos(w_3 a) \cos(w_3 b) -181490 \sin(w_3 a) \sin(w_3 b) │ 0.95 |
| 2026 | DiT FFN pre-activation Fourier analysis proposed | FVE of the 2D Fourier component for sin(w₇(a+b)) | 0.88 | Mathematical Reasoning · modulus=23 | Grokking of Diffusion Models: Case Study on Modular AdditionSource quoteL284: \sin(w-7 (a+b)) │ 64718 \cos(w_7 a) \sin(w_7 b) +64358 \sin(w_7 a) \cos(w_7 b) │ 0.88 |
| 2026 | DiT FFN pre-activation Fourier analysis proposed | FVE of the 2D Fourier component for sin(w₉(a+b)) | 0.96 | Mathematical Reasoning · modulus=23 | Grokking of Diffusion Models: Case Study on Modular AdditionSource quoteL288: \sin(w-9 (a+b)) │ 192981 \cos(w_9 a) \sin(w_9 b) +195516 \sin(w_9 a) \cos(w_9 b) │ 0.96 |
| 2026 | Validation-accuracy reference (Gaussian HMM) | 5-fold CV Ridge R2 | 0.66 | Modular Addition | Tracking Training Phases in Compositional Learning with Task-Agnostic MeasuresSource quoteL227: 0.66 |
| 2026 | Validation-accuracy reference (Gaussian HMM) | 5-fold CV Ridge R2 | 0.98 | Modular Addition | Tracking Training Phases in Compositional Learning with Task-Agnostic MeasuresSource quoteL228: 0.98 |
| 2026 | Prediction churn (hard) | 5-fold CV Ridge R2 | 0.55 | Modular Addition | Tracking Training Phases in Compositional Learning with Task-Agnostic MeasuresSource quoteL229: 0.55 |
| 2026 | Prediction churn (hard) | 5-fold CV Ridge R2 | 1.00 | Modular Addition | Tracking Training Phases in Compositional Learning with Task-Agnostic MeasuresSource quoteL230: 1.00 |
| 2026 | Local Learning Coefficient (LLC) | 5-fold CV Ridge R2 | 0.58 | Modular Addition | Tracking Training Phases in Compositional Learning with Task-Agnostic MeasuresSource quoteL233: 0.58 |
| 2026 | Local Learning Coefficient (LLC) | 5-fold CV Ridge R2 | 0.96 | Modular Addition | Tracking Training Phases in Compositional Learning with Task-Agnostic MeasuresSource quoteL234: 0.96 |
| 2026 | NFA-RFM baseline | Test accuracy | 100% | 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 representationsSource quoteL203: 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. |
| 2026 | bottlenecked ReLU network baseline | median generalisation gap | 15000 steps | Modular Addition · seeds=3 · architecture=bottlenecked ReLU network · training-budget=50000 steps · bottleneck-width=16 | Algebraic Representability as the Limiting Regime of Grokking: An Exactly Solvable Model with Holomorphic ActivationsSource quoteL800: 16 │ grok │ 15000 |
| 2026 | bottlenecked ReLU network baseline | median generalisation gap | 7250 steps | Modular Addition · seeds=3 · architecture=bottlenecked ReLU network · training-budget=50000 steps · bottleneck-width=32 | Algebraic Representability as the Limiting Regime of Grokking: An Exactly Solvable Model with Holomorphic ActivationsSource quoteL801: 32 │ grok │ 7250 |
| 2026 | bottlenecked ReLU network baseline | median generalisation gap | 5500 steps | Modular Addition · seeds=3 · architecture=bottlenecked ReLU network · training-budget=50000 steps · bottleneck-width=64 | Algebraic Representability as the Limiting Regime of Grokking: An Exactly Solvable Model with Holomorphic ActivationsSource quoteL802: 64 │ grok │ 5500 |
| 2026 | bottlenecked ReLU network baseline | median generalisation gap | 5250 steps | Modular Addition · seeds=3 · architecture=bottlenecked ReLU network · training-budget=50000 steps · bottleneck-width=128 | Algebraic Representability as the Limiting Regime of Grokking: An Exactly Solvable Model with Holomorphic ActivationsSource quoteL803: 128 │ grok │ 5250 |
| 2025 | RNN trained on modular addition proposed non-standard slice | energy in retained components of embedding matrix W_E | 85.4% | Modular Addition · matrix=W_E · retained-components=12 | Low Rank and Sparse Fourier Structure in Recurrent Networks Trained on Modular AdditionSource quoteL104: \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.} |
| 2025 | RNN trained on modular addition proposed non-standard slice | energy in retained components of unembedding matrix W_fc | 95.5% | Modular Addition · matrix=W_fc · retained-components=12 | Low Rank and Sparse Fourier Structure in Recurrent Networks Trained on Modular AdditionSource quoteL104: \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.} |
| 2025 | DCSP solution analysis proposed | DCSP solution disagreement d | 10 | Modular Arithmetic · base=k=2 | A learnability analysis on neuro-symbolic learningSource quoteL472: We evaluate \cref{thm: ensemble} using mod addition tasks with mod bases \(k_1\) and \(k_2\) under two specific configurations: an unlearnable ensemble (\(k_1 = \mathtt{2}\), \(k_2 = \mathtt{3}\)) and a learnable ensemble (\(k_1 = \mathtt{3}\), \(k_2 = \mathtt{4}\)). For \(k = \mathtt{2, 3, 4}\), the degree of DCSP solution disagreement \(d\) is \(10\). The experiments in \cref{fig: ensemble of unlearnable tasks} are based on the raw MNIST dataset. |
| 2025 | DCSP solution analysis proposed | DCSP solution disagreement d | 10 | Modular Arithmetic · base=k=3 | A learnability analysis on neuro-symbolic learningSource quoteL472: We evaluate \cref{thm: ensemble} using mod addition tasks with mod bases \(k_1\) and \(k_2\) under two specific configurations: an unlearnable ensemble (\(k_1 = \mathtt{2}\), \(k_2 = \mathtt{3}\)) and a learnable ensemble (\(k_1 = \mathtt{3}\), \(k_2 = \mathtt{4}\)). For \(k = \mathtt{2, 3, 4}\), the degree of DCSP solution disagreement \(d\) is \(10\). The experiments in \cref{fig: ensemble of unlearnable tasks} are based on the raw MNIST dataset. |
| 2025 | DCSP solution analysis proposed | DCSP solution disagreement d | 10 | Modular Arithmetic · base=k=4 | A learnability analysis on neuro-symbolic learningSource quoteL472: We evaluate \cref{thm: ensemble} using mod addition tasks with mod bases \(k_1\) and \(k_2\) under two specific configurations: an unlearnable ensemble (\(k_1 = \mathtt{2}\), \(k_2 = \mathtt{3}\)) and a learnable ensemble (\(k_1 = \mathtt{3}\), \(k_2 = \mathtt{4}\)). For \(k = \mathtt{2, 3, 4}\), the degree of DCSP solution disagreement \(d\) is \(10\). The experiments in \cref{fig: ensemble of unlearnable tasks} are based on the raw MNIST dataset. |
| 2025 | DCSP ensemble solution analysis proposed | DCSP solution disagreement d | 8 | Modular Arithmetic · ensemble-bases=k1=2,k2=3 | A learnability analysis on neuro-symbolic learningSource quoteL475: In the top of \cref{fig: ensemble of unlearnable tasks}, the unlearnable case (\(k_1 = \mathtt{2}\), \(k_2 = \mathtt{3}\)) shows that while the ensemble narrows the solution space, reducing the disagreement \(d\) to \(8\), it does not converge to a unique solution, and the task remains unlearnable. |
| 2025 | DCSP ensemble solution analysis proposed | DCSP solution disagreement d | 0 | Modular Arithmetic · ensemble-bases=k1=3,k2=4 | A learnability analysis on neuro-symbolic learningSource quoteL477: In the bottom of \cref{fig: ensemble of unlearnable tasks}, the learnable case (\(k_1 = \mathtt{3}\), \(k_2 = \mathtt{4}\)) illustrates that both tasks initially admit multiple DCSP solutions, causing reasoning accuracy to exceed concept accuracy, as shown in \cref{fig: ensemble of unlearnable tasks}. Following the ensemble, the intersection of solution spaces yields a unique solution, with the disagreement \(d\) reduced to \(0\), rendering the ensemble task learnable. |
| 2025 | RNN trained on modular addition ablation | model accuracy after single-frequency ablation | 100% | Modular Addition · frequency-ablated=k3=54 | Low Rank and Sparse Fourier Structure in Recurrent Networks Trained on Modular AdditionSource quoteL120: k_3=54 │ 100% │ 87.3% |
| 2025 | RNN trained on modular addition ablation | model accuracy after single-frequency ablation | 99.4% | Modular Addition · frequency-ablated=k4=6 | Low Rank and Sparse Fourier Structure in Recurrent Networks Trained on Modular AdditionSource quoteL121: k_4=6 │ 99.4% │ 28.3% |
| 2024 | LI basis (LIB) proposed | apparently-irrelevant features (incoming edges but no outgoing edges) | 3 features | Modular Addition · basis=LI basis (LIB) · layer=second · seeds=5 · inspected-features=25 | The Local Interaction Basis: Identifying Computationally-Relevant and Sparsely Interacting Features in Neural NetworksSource quoteL1260: We indeed find more apparently-irrelevant features in the PCA basis (14) than in the LI basis (3). |
| 2024 | pizza ReLU transformer proposed | Total numerical abs ∫-−π (π) bound | 0.73 | Modular Addition · modulus=59 · frequency=12 | Modular addition without black-boxes: Compressing explanations of MLPs that compute numerical integrationSource quoteL726: Total numerical abs \int--\pi (\pi) bound │ 0.73 │ 0.59 │ 0.56 │ 0.50 │ (\ref{eq:abs-bound}) + (\ref{eq:angle-approximation-error}) |
| 2024 | pizza ReLU transformer proposed | Total numerical abs ∫-−π (π) bound | 0.59 | Modular Addition · modulus=59 · frequency=18 | Modular addition without black-boxes: Compressing explanations of MLPs that compute numerical integrationSource quoteL726: Total numerical abs \int--\pi (\pi) bound │ 0.73 │ 0.59 │ 0.56 │ 0.50 │ (\ref{eq:abs-bound}) + (\ref{eq:angle-approximation-error}) |
| 2024 | pizza ReLU transformer proposed | Total numerical abs ∫-−π (π) bound | 0.56 | Modular Addition · modulus=59 · frequency=21 | Modular addition without black-boxes: Compressing explanations of MLPs that compute numerical integrationSource quoteL726: Total numerical abs \int--\pi (\pi) bound │ 0.73 │ 0.59 │ 0.56 │ 0.50 │ (\ref{eq:abs-bound}) + (\ref{eq:angle-approximation-error}) |
| 2024 | pizza ReLU transformer proposed | Total numerical abs ∫-−π (π) bound | 0.50 | Modular Addition · modulus=59 · frequency=22 | Modular addition without black-boxes: Compressing explanations of MLPs that compute numerical integrationSource quoteL726: Total numerical abs \int--\pi (\pi) bound │ 0.73 │ 0.59 │ 0.56 │ 0.50 │ (\ref{eq:abs-bound}) + (\ref{eq:angle-approximation-error}) |
| 2024 | Random transformer (width 1024; input embeddings and unembedding trained, other parameters fixed) proposed | Test accuracy | 100.0% | Modular Addition · split: test · width=1024 · layers=2 · restarts=10; median · training=input-embeddings-and-unembedding-only | Algorithmic Capabilities of Random TransformersSource quoteL104: Modular Addition │ 100.0% │ 1.3% │ 100.0% │ 97.2% │ 100.0% |
| 2024 | Custom Loss (α=1e-4) proposed | τ=0.5% Accuracy | 99.5% | Modular Addition · split: test · N=32 · q=974269 · α=1e-4 · loss=Custom Loss | Making Hard Problems Easier with Custom Data Distributions and Loss Regularization: A Case Study in Modular ArithmeticSource quoteL558: 974269 │ 99.5% │ 98.9% │ 91.0% |
| 2024 | PCA basis baseline | apparently-irrelevant features (incoming edges but no outgoing edges) | 14 features | Modular Addition · basis=PCA · layer=second · seeds=5 · inspected-features=25 | The Local Interaction Basis: Identifying Computationally-Relevant and Sparsely Interacting Features in Neural NetworksSource quoteL1260: We indeed find more apparently-irrelevant features in the PCA basis (14) than in the LI basis (3). |
| 2024 | XE Loss baseline | τ=0.5% Accuracy | 91.0% | Modular Addition · split: test · N=32 · q=974269 · loss=XE Loss | Making Hard Problems Easier with Custom Data Distributions and Loss Regularization: A Case Study in Modular ArithmeticSource quoteL558: 974269 │ 99.5% │ 98.9% │ 91.0% |
| 2023 | 1-layer Transformer proposed | test accuracy | 83% | Modular Addition · split: test · modulus=113 · condition=semi-grokking · training-data-size=approximately critical dataset size | Explaining grokking through circuit efficiencySource quoteL21: \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%).} |
| 2023 | Network in the Forgetting phase | Test accuracy | 100% | Modular Addition · split: test | To Grok or not to Grok: Disentangling Generalization and Memorization on Corrupted Algorithmic DatasetsSource quoteL318: 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. |
| 2023 | Edge-Popup (EP w/o WD) baseline | Generalization performance | 0.92 | Mathematical Reasoning · split: test · modulus=67 · training-data=40% | Bridging Lottery Ticket and Grokking: Understanding Grokking from Inner Structure of NetworksSource quoteL388: In \autoref{tab:edge-pop}, the result for EP without weight decay (EP w/o WD) shows that the network achieves a generalization performance of 0.92 without any changes to the weights (merely by pruning weights). This result demonstrates that generalization can be achieved solely through structural exploration without updating the weights, thereby strengthening our claim that delayed generalization occurs due to the discovery of a good structure. |