REVIEW 3 major objections 2 minor 8 references
The Discrete-Log Clock: How a Transformer Learns Modular Multiplication
T0 review · 3 major / 2 minor · reviewed 2026-06-27 · grok-4.3
Pith's one-line read Transformers reduce modular multiplication to addition in discrete-log space when analyzed with the multiplicative character transform.
desk verdict The paper shows that the multiplicative character basis turns a dense spectrum into a sparse one with 4 key frequencies and 96.9% single-tuned neurons for mod mult, but the evidence stays descriptive rather than causal. read the letter →
The pith
A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.
The reading
What carries the argument
The multiplicative character transform, which decomposes functions on the multiplicative group into irreducible representations and thereby isolates the frequencies that implement addition after the discrete logarithm is taken.
What would settle it
Measure neuron activations on a grid of input pairs during a forward pass and test whether the pattern of which neurons fire matches the addition of the discrete logs of the two inputs rather than their direct product.
Extended reading notes
Core claim
Applying the multiplicative character transform to the embeddings of a transformer trained on a · b mod 113 yields a sparse spectrum in which only four frequencies carry significant energy. In this basis, 96.9 percent of MLP neurons are each tuned to one multiplicative frequency, and neuron activation heatmaps exhibit two-dimensional periodic structure when the inputs are reordered according to the discrete logarithm. These observations demonstrate that the transformer reduces multiplication to addition inside discrete-log space.
Load-bearing premise
The sparsity, single-frequency tuning, and periodic heatmaps observed after the basis change correspond to the actual steps executed during the model's forward pass rather than an alternative mathematical description of the same weights.
Editorial extensions
If this is right
- The network solves the task by first mapping inputs to discrete-log coordinates, performing addition there, and mapping the result back.
- Only a small number of frequencies in the multiplicative basis are required, in contrast to the full set needed in the additive basis.
- Reordering activations by discrete logarithm exposes the periodic structure that implements the addition step.
- The same basis-matching approach can be used to analyze other operations whose natural group structure differs from the additive integers.
Reading between the lines
- The same analysis could be applied to modular exponentiation or other group operations to check whether transformers similarly exploit homomorphisms.
- If the discrete-log reduction is causal, editing the weights associated with the four key frequencies should selectively impair multiplication while leaving other behaviors intact.
- The finding suggests that interpretability tools for arithmetic circuits may need to be chosen according to the operation's group rather than applied uniformly.
Editorial analysis
A structured set of objections, weighed in public.
Referee Report
Summary. The paper claims that when transformers grok modular multiplication a·b mod p, the learned embeddings exhibit a dense spectrum under the additive DFT but become sparse (Gini 0.58, only 4 key frequencies) under the multiplicative character transform on (Z/pZ)*. It further reports that 96.9% of MLP neurons are tuned to a single multiplicative frequency and that activation heatmaps become 2D-periodic when inputs are reordered by discrete logarithm, demonstrating that the model implements a 'Discrete-Log Clock' algorithm that reduces multiplication to addition in log space, analogous to the Clock algorithm for addition.
Significance. If the causal interpretation holds, the work supplies a task-matched analysis basis that converts apparently dense representations into sparse, interpretable structure, extending mechanistic interpretability techniques from additive to multiplicative group operations. The explicit matching of transform to algebraic structure is a methodological contribution that could apply to other structured tasks.
major comments (3)
- [Abstract and §4] Abstract and §4 (results on spectrum and neuron tuning): the central claim that the observed Gini coefficient, 4-frequency sparsity, and 96.9% single-frequency tuning 'demonstrate' the Discrete-Log Clock algorithm is not supported by any causal intervention (frequency ablation, neuron knockout, or path patching). The statistics are consistent with a descriptive re-expression of the weights but do not rule out alternative circuits such as direct lookup tables that happen to be sparse in the character basis.
- [§3 and §4] §3 (methods) and §4 (neuron heatmaps): the paper reports 2D-periodic structure after discrete-log reordering but provides no verification that these neurons participate in the forward-pass computation of a·b mod p (e.g., via activation patching or counterfactuals). Without such tests the periodic heatmaps remain correlational and do not establish that the model performs addition in log space.
- [§4] §4 (Gini and frequency counts): the claim that only 4 frequencies carry significant energy is load-bearing for the sparsity argument, yet the manuscript gives no equation or threshold defining 'significant energy' nor reports the corresponding quantities in the additive basis for the same model, preventing direct comparison of the two bases on identical data.
minor comments (2)
- [§2] Notation for the multiplicative character transform is introduced without an explicit equation relating it to the standard DFT; adding the definition (e.g., as Eq. (X)) would improve readability.
- [Figures in §4] Figure captions for the reordered heatmaps should state the exact discrete-log mapping used and the range of p=113 to allow reproduction.
Simulated Author's Rebuttal
Thank you for the constructive and detailed feedback. We address each major comment below and indicate the revisions we will incorporate.
read point-by-point responses
-
Referee: [Abstract and §4] Abstract and §4 (results on spectrum and neuron tuning): the central claim that the observed Gini coefficient, 4-frequency sparsity, and 96.9% single-frequency tuning 'demonstrate' the Discrete-Log Clock algorithm is not supported by any causal intervention (frequency ablation, neuron knockout, or path patching). The statistics are consistent with a descriptive re-expression of the weights but do not rule out alternative circuits such as direct lookup tables that happen to be sparse in the character basis.
Authors: We acknowledge that the analysis is observational and that causal interventions such as frequency ablation or path patching are absent. The strength of the evidence lies in the extreme sparsity (Gini 0.58 versus 0.07) appearing only in the task-matched multiplicative character basis, together with 96.9% of neurons exhibiting clean single-frequency tuning; such structure is not a generic property of sparse lookup tables. We will revise the abstract and §4 to replace 'demonstrate' with 'provide strong evidence for' and add a limitations paragraph discussing the correlational nature of the results and the desirability of future interventional tests. revision: partial
-
Referee: [§3 and §4] §3 (methods) and §4 (neuron heatmaps): the paper reports 2D-periodic structure after discrete-log reordering but provides no verification that these neurons participate in the forward-pass computation of a·b mod p (e.g., via activation patching or counterfactuals). Without such tests the periodic heatmaps remain correlational and do not establish that the model performs addition in log space.
Authors: The emergence of clean 2D periodicity exclusively under discrete-log reordering constitutes a specific, non-trivial prediction of the clock hypothesis. While we agree that activation patching would strengthen the causal claim, the consistency of the pattern across the MLP layer and its absence in the additive basis already constrain alternative explanations. We will add a short limitations subsection in §4 noting the correlational status of the heatmaps and identifying interventional verification as valuable future work. revision: partial
-
Referee: [§4] §4 (Gini and frequency counts): the claim that only 4 frequencies carry significant energy is load-bearing for the sparsity argument, yet the manuscript gives no equation or threshold defining 'significant energy' nor reports the corresponding quantities in the additive basis for the same model, preventing direct comparison of the two bases on identical data.
Authors: We will add an explicit definition and equation in §4: a frequency is deemed significant when its absolute coefficient exceeds 5% of the largest coefficient in that spectrum. We will also report the corresponding count of significant frequencies under the additive DFT on the identical embeddings, which is substantially larger and consistent with the reported Gini values. These additions will appear as a new paragraph with the relevant formulas. revision: yes
Circularity Check
No circularity: external basis applied to post-training weights yields empirical observations
full rationale
The paper trains a transformer on a·b mod p, then applies the multiplicative character transform (an external algebraic tool) to the resulting embeddings. Reported quantities (Gini 0.58, 4 key frequencies, 96.9% single-frequency neurons, 2D-periodic heatmaps) are direct measurements in that basis, not quantities defined by the paper's own equations or fitted parameters. No step reduces by construction to inputs, no self-citation chain is load-bearing, and the 'Discrete-Log Clock' claim is an interpretive inference rather than a definitional equivalence. The derivation is self-contained against external benchmarks.
Assumptions & free parameters
assumptions (2)
- standard math The multiplicative group (Z/pZ)* is cyclic for prime p, so the discrete logarithm is well-defined.
- standard math The multiplicative character transform decomposes functions on (Z/pZ)* into its irreducible representations.
invented entities (1)
-
Discrete-Log Clock
Cite this review
Pith. "Pith review of The Discrete-Log Clock: How a Transformer Learns Modular Multiplication." pith.science (2026). https://pith.science/paper/ZZJFDQRQ
@misc{pith2026260617399,
author = {Pith},
title = {Pith review of: The Discrete-Log Clock: How a Transformer Learns Modular Multiplication},
year = {2026},
howpublished = {\url{https://pith.science/paper/ZZJFDQRQ}},
note = {Machine review of arXiv:2606.17399}
}
abstract
When small transformers grok modular multiplication, prior work reports that the learned embedding has a "dense" Fourier spectrum requiring all frequencies. This contrasts with modular addition, where only a sparse set of key frequencies suffices. We show this density is an artifact of analyzing in the wrong basis. The natural Fourier transform for multiplication is not the standard additive DFT but the multiplicative character transform, which decomposes functions on the multiplicative group $(\mathbb{Z}/p\mathbb{Z})^*$ into its irreducible representations. Applying this transform to a grokked transformer trained on $a \cdot b \bmod 113$, we find the embedding spectrum becomes highly sparse (Gini coefficient 0.58 vs. 0.07 in the additive basis) with only 4 key frequencies carrying significant energy. Furthermore, 96.9% of MLP neurons are cleanly tuned to a single multiplicative frequency, and neuron activation heatmaps reveal 2D-periodic structure when reordered by the discrete logarithm. These results demonstrate the transformer reduces multiplication to addition in discrete-log space, implementing a "Discrete-Log Clock" algorithm analogous to Nanda et al.'s Clock algorithm for addition. The methodology generalizes: matching the analysis basis to the algebraic structure of the task reveals interpretable structure where standard tools see noise.
Figures
Figures from the paper (1 more)
Reference graph
Works this paper leans on
-
[1]
ICLR 2022 Workshop on MATH-AI , year=
Grokking: Generalization Beyond Overfitting on Small Algorithmic Datasets , author=. ICLR 2022 Workshop on MATH-AI , year=
2022
-
[2]
International Conference on Learning Representations , year=
Progress Measures for Grokking via Mechanistic Interpretability , author=. International Conference on Learning Representations , year=
-
[3]
Advances in Neural Information Processing Systems , year=
The Clock and the Pizza: Two Stories in Mechanistic Explanation of Neural Networks , author=. Advances in Neural Information Processing Systems , year=
-
[4]
arXiv preprint arXiv:2406.03495 , year=
Grokking Modular Polynomials , author=. arXiv preprint arXiv:2406.03495 , year=
-
[5]
Transactions on Machine Learning Research , year=
Towards Empirical Interpretation of Internal Circuits and Properties in Grokked Transformers on Modular Polynomials , author=. Transactions on Machine Learning Research , year=
-
[6]
International Conference on Machine Learning , year=
A Toy Model of Universality: Reverse Engineering How Networks Learn Group Operations , author=. International Conference on Machine Learning , year=
-
[7]
Advances in Neural Information Processing Systems , year=
Uncovering a Universal Abstract Algorithm for Modular Addition in Neural Networks , author=. Advances in Neural Information Processing Systems , year=
-
[8]
International Conference on Machine Learning , year=
Grokking Group Multiplication with Cosets , author=. International Conference on Machine Learning , year=
Reviewed June 27, 2026 · model on record in the stance chip above.
Discussion (0). Continue with ORCID to comment.