betaFeedback

WorksComputer Science

Grokking as a Subspace Search: Computing the Destination Before Training

Abstract

Grokking is the phenomenon in which a neural network generalizes long after it has memorized its training data. Many explanations have been proposed for the delay between memorization and generalization. However, none of them can say before training where the network is heading, so they cannot be tested against one another. We show that on group tasks this destination can be computed from the task itself before training begins. It is a low-dimensional subspace of the network's embeddings, which we call the right subspace, and we prove that it is essentially unique. Knowing the destination makes our hypothesis falsifiable: the delay is a search for the right subspace, and generalization begins when the network finds it. When we give the network the right subspace from the start, the delay disappears. When we take the right subspace away, accuracy stops at a ceiling that we compute before training, and on multiplication the network cannot generalize at all. When we train the network normally, its embeddings move toward the right subspace by themselves, long before test accuracy rises. Finally, interventions during training show that this search sets the length of the delay, and that noise in the optimization does not. On every group task that we tested, grokking is a search for the right subspace, and the delay is the time that this search takes.

Introduction

Neural networks trained on small algorithmic tasks can generalize long after they have memorized their training data. Power et al. [24] first observed this behavior and named it grokking. In the typical case of Figure 1, the network memorizes every training example within a few hundred steps, while its test accuracy stays at chance for tens of thousands of steps and then jumps abruptly to perfect generalization. Between memorization and generalization lies a long delay in which nothing appears to happen from the outside. Grokking has been studied intensively since its discovery, yet the most basic question that it raises is still open: what is the network doing during the delay?

Training and test accuracy during grokking

Figure 1. Grokking and the delay. Twenty seeds of S5S_5 multiplication; thick lines are medians.

Prior work has given three kinds of answers. Reverse engineering shows that networks that have grokked implement structured algorithms, such as Fourier circuits on modular addition ([22, 38, 8]) and representation-based circuits on general groups ([5, 30]). On this

view, the delay is the time that it takes to build such a circuit. Accounts of the training dynamics describe the delay as a phase transition ([15]), a transition from lazy to rich training ([13, 20]), a competition between circuits ([33]), an optimizer instability ([31]), or an effect of weight norms ([16]). On this view, the delay is slow optimization that reshapes the network. Methods that shorten the delay through modified optimizers, regularizers, or transferred embeddings ([14, 34, 37] (Xu et al. 2025)) treat it as wasted time. Each of these answers is valid, but each reads the delay from a network that has already crossed it. For a general group, no one has been able to say before training begins where the network is heading.

This missing destination is what keeps the question open, because a hypothesis about the delay can be falsified only if we know where the network is heading. We show that on group tasks, where the network learns to complete the multiplication table of a finite group, the destination can be computed from the task itself before training begins. It is a specific low-dimensional subspace of the network’s representations, which we call the right subspace. We prove that for each task this subspace is essentially unique. Knowing the destination in advance makes our hypothesis falsifiable: the delay is a search for the right subspace, and generalization begins when the network finds it.

Because the destination is known before training, the hypothesis makes predictions that could fail (Figure 2). First, if we give the network the right subspace from the start, the delay must disappear. It does: with nothing else changed, the median grokking step falls from 64,050 to 150, and the closer the network starts to the right subspace, the shorter the delay. Second, if we take the right subspace away, the network can no longer generalize. Its accuracy stops at a ceiling that we calculate from the task in advance, and it never groks.

Giving the right subspace, taking it away, and watching the delay

Figure 2. Giving the right subspace, taking it away, and watching the delay. (a) Test accuracy when the right subspace is given and when it is taken away; faint curves (vanilla) are the untouched runs of Figure 1. (b) The memorizing and generalizing components of the logits in the untouched runs.

These two experiments place the subspace by hand, so we also watch runs to which nothing is done. The same search is present in them: the embeddings move toward the right subspace long before test accuracy rises, and the memorizing component of the logits fades as the generalizing component takes over. Finally, interventions during training show that this search is what sets the delay, and neither of the first two results depends on the optimizer.

Contributions.

  • We propose that the grokking delay on group tasks is a search for the right subspace, a specific low-dimensional subspace of the network’s representations, and that generalization begins when the network finds it.

  • We make this hypothesis falsifiable by computing the right subspace from the task itself before training begins, and we prove that it is essentially unique (Theorem 1).

  • We test the hypothesis in four ways: giving the right subspace, taking it away, watching untouched runs, and intervening during training (§ 5).

  • We show that the destination belongs to the task and not to the run: random data splits change the delay by tens of thousands of steps, yet the network ends in the same subspace and stops at the ceiling computed for each split.

Related Work

Grokking was first reported by Power et al. [24]. We organize prior work by whether it identifies where the network is heading, and by how it obtains this destination.

Reverse-engineered destinations. Networks that have grokked implement structured algorithms. On modular addition, they implement Fourier circuits ([22, 38, 8]). On general groups, they implement representation circuits ([5]) or a coset circuit ([30]). Wu et al. (2025) reconcile these descriptions, and margin analyses derive them ([21, 28]). In all of these works, the destination is read off a network after it has arrived.

Explanations of the delay. A second line of work explains why the delay is long. The proposed causes are a phase transition ([15]), weight norms ([16]), a transition from lazy to rich training ([13, 20]), a competition between circuits ([33]), and an optimizer instability ([31]). Each account names a cause of the delay, but it does not name the destination. Outside grokking, the length of such a delay is known to depend on the overlap between the initialization and a low-dimensional target ([26, 2, 25, 4, 1, 3]). In these settings, however, the destination is planted in the data model and chosen by the experimenter.

Shortening the delay. Some methods change the training procedure ([14, 37, 34] (Dang et al. 2026)). Others place structure into the network: masks and embeddings taken from a run that has already grokked ([19] (Xu et al. 2025)), the known Fourier answer on abelian tasks ([39]), and, in concurrent work, equivalence priors derived from labels ([9]) and representation precursors tracked during training ([29]). These methods differ in where the structure comes from: it is extracted after arrival, inherited as a known answer, or built from labels. The operator that we use also appears in architectures that build symmetry in by design ([6, 12, 11, 32, 18]). Such architectures commit to the symmetry in advance, whereas we ask where unconstrained training goes.

Preliminaries

Our task, model, and training setup follow Stander et al. [30], who reverse-engineer networks that grok the multiplication of permutation groups.

Task and Data

A finite group GG is a set of ∣G∣|G| elements with an associative composition rule and inverses. The rule is recorded in full by the multiplication table, the ∣G∣×∣G∣|G| \times|G| grid whose entry at position (a,b)(a,b) is abab. Our running example is S5S_5, the 120 permutations of five objects under composition. The task is to complete the multiplication table: the network receives a pair (a,b)(a,b) and must predict f(a,b)=abf(a,b)=ab, which is a classification problem with ∣G∣|G| classes. We also use three further tasks built from the same rule: conjugation f(a,b)=aba−1f(a,b)=aba^{-1}, the commutator f(a,b)=a−1b−1abf(a,b)=a^{-1}b^{-1}ab, and the squared word f(a,b)=ab2a−1f(a,b)=ab^2a^{-1}.

A random 40% of the ∣G∣2|G|^2 pairs forms the training set, and the remaining pairs form the test set. We call this partition the split; on S5S_5, it leaves 8,640 test pairs. The test set contains no new elements, only new combinations of them, so the network can generalize only by learning the composition rule.

Model and Measurements

The base model is a one-hidden-layer network with separate embeddings for the two arguments,

f(a,b)=U⊤ReLU⁡(WlEla+WrErb),(1)f(a,b)=U^{\top}\operatorname{ReLU}(W_lE_la+W_rE_rb), \tag*{(1)}

where aa and bb are one-hot vectors of length ∣G∣|G|. An embedding thus assigns a vector to every group element, and each of its coordinates, read across all elements, is a vector in R∣G∣\mathbb{R}^{|G|}. We call R∣G∣\mathbb{R}^{|G|} the embedding space. Every subspace in this paper, including the right subspace, lies in this space. We train with full-batch AdamW (Kingma and Ba [10]; Loshchilov and Hutter [17]) and weight decay, and some experiments use transformers instead.

We track two events in each run. The memorization step is the first step at which training accuracy reaches 1.0, and the grokking step τ\tau is the first step at which test accuracy reaches 0.95. The delay is the gap between the two. In Figure 1, every seed memorizes by step 390, but the median grokking step is 64,050, and individual seeds range from 27,600 to 160,500. We call runs that train without any intervention untouched.

Method

We first state the hypothesis that the rest of the paper tests.

Hypothesis. On group tasks, the grokking delay is a search for the right subspace, and generalization begins when the network finds it.

The hypothesis can be tested only if the right subspace is known before training. Sections 4.1 to 4.3 write it down from the task alone and show that it is essentially unique. Sections 4.4 and 4.5 then derive two predictions that could fail, each with a quantity that is fixed in advance: a law for the delay, and a ceiling for the accuracy.

Projectors from the Group

The right subspace is built from projectors that the group itself provides. We need three notions from representation theory, which we state informally. A representation of GG assigns a matrix to each element so that composing elements corresponds to multiplying their matrices. Every representation of a finite group decomposes into a finite list of irreducible representations, which we call blocks. The blocks play the role that frequencies play in Fourier analysis: just as a periodic signal splits into frequencies, a vector in the embedding space splits into parts that belong to different blocks. Each block ρi\rho_i has a dimension did_i and a character χi\chi_i, the trace of its matrices. A character is a list of ∣G∣|G| numbers that can be computed from the multiplication table alone.

A single classical formula (Serre [27]; Fulton and Harris [7]) turns characters into projectors that extract these parts. Let R(g)R(g) be the permutation matrix that sends the basis vector of each element xx to that of gxgx; these matrices form the regular representation of GG. The central idempotent of a block ρi\rho_i, and of a set SS of blocks, is

Pi=di∣G∣∑g∈Gχi(g)R(g),PS=∑i∈SPi.(2)P_i=\frac{d_i}{|G|}\sum_{g\in G}\chi_i(g)R(g),\qquad P_S=\sum_{i\in S}P_i. \tag*{(2)}

The matrix PSP_S is the orthogonal projector onto the part of the embedding space that belongs to the blocks in SS, and each block contributes di2d_i^2 dimensions to it. Because everything in Eq. (2) comes from the multiplication table, PSP_S is available before training. On the cyclic group Zn\mathbb{Z}_n, where the task is modular addition, PSP_S reduces to the cosine and sine of one Fourier frequency. The familiar Fourier answer on modular addition is therefore the abelian special case of our construction.

The Right Subspace

(2) gives one projector for every set of blocks. Two requirements decide which set gives the right subspace.

The first requirement is faithfulness. A block may send some elements other than the identity to the identity matrix, and it then cannot distinguish these elements from the identity. The elements that every block in SS confuses with the identity form the kernel KSK_S of the set, and SS is faithful if KSK_S contains only the identity. An unfaithful set is blind to part of the group, and the size of KSK_S measures how blind it is. On S5S_5, for example, the sign block is unfaithful.

The second requirement is completeness: the embedding must contain the whole subspace of each chosen block, and not only a part of it. The reason is the form of the solution. The margin-optimal readout scores each class by comparing, for every chosen block, the matrix of the block at that class with the product of its matrices at the two inputs (Morwani et al. [21]). This score is bilinear in all matrix entries of the block at the two inputs. If the embedding keeps only part of a block, every term that contains a missing entry vanishes, and the attainable margin falls with each entry that is removed. A partial subspace thus still distinguishes every element, and yet the exact solution is unavailable in it.

Definition 1 (Right subspace). The right subspace of a group task is the complete subspace of a faithful set of blocks, that

is, the image of PSP_S for a faithful set SS. The minimal right subspace uses the faithful set of smallest total dimension.

Symmetry Determines the Candidates

Definition 1 selects among the projectors PSP_S, but the embedding space contains a continuum of other subspaces, and we must rule them out. The symmetry of the task does so. The multiplication task is symmetric on both sides: if we multiply the first input by an element gg on the left and the second input by an element hh on the right, the answer abab becomes g(ab)hg(ab)h. The other three tasks place the same element on both sides of the expression. Such a relabeling changes the names of the elements but not the task, so a subspace that serves these tasks must respect it on both sides.

We state this requirement for projectors. The left translation by gg moves the basis vector of each element xx to that of gxgx, and the right translation by hh moves it to that of xhxh. A projector respects the symmetry of the task if it commutes with every left translation and with every right translation. One side alone would not suffice, because a projector that commutes with only one kind of translation can still cut out part of a block.

Theorem 1 (Symmetry determines the family). A projector on the embedding space commutes with every left translation and every right translation if and only if it equals PSP_S for some set SS of blocks, with complex blocks entering in conjugate pairs.

Proof sketch. Commuting with every right translation makes the projector a left convolution by one vector. Commuting with every left translation makes this vector central in the group algebra. Idempotence forces its coefficients to be 0 or 1.

Theorem 1 states precisely what essentially unique means. Outside the family {PS}\{P_S\}, there are no candidates at all. Within the family, faithfulness and completeness select the right subspaces, and minimality selects among them. The destination is therefore unique up to a short tie, and the theory itself identifies this tie. On S5S_5, exactly two minimal candidates remain, which we call the two tied blocks. Each of them spans a minimal right subspace of dimension 16 inside the 120-dimensional embedding space, and the choice between them is the only freedom that our account leaves open.

Our contribution is not the classical argument behind the theorem, but the condition that invokes it and the boundary that it draws: the theorem is about the task, and every result that follows is about the optimizer. Gradient descent is never equivariant during training, so nothing obliges it to end in the family that the symmetry permits. Whether it does is an empirical question, and this is what makes the hypothesis falsifiable: the destination is fixed before training, and the network is free to go elsewhere.

Prediction 1: Giving the Right Subspace

If the delay is the time that a search takes, a network that starts at the destination has nothing left to search for. We give the network the right subspace by restricting its embeddings to it: we apply the projector to the embeddings at every training step, so that they cannot leave the subspace. The first prediction is that the delay then disappears.

The same reasoning applies by degrees. To measure how close a network is to the destination, we define the alignment of an embedding with a subspace as the fraction of its squared Frobenius norm that lies in the subspace, so that an alignment of 1 means that the embedding lies entirely in the subspace. We write α0\alpha_0 for the alignment of the initial embedding with the right subspace. A random initialization on S5S_5 has an alignment of about 0.133, because the right subspace occupies 16 of the 120 dimensions; we call this value the chance alignment. An untouched network thus starts with most of its embedding outside the right subspace, and a network that starts closer must have a shorter delay, in a graded and lawful way.

To fix what lawful means before seeing any data, we registered five candidate forms for the grokking step τ\tau as a function of α0\alpha_0, and we committed to the form that fits best. The form that we expected is

τ(α0)=t0+Cα0−p,(3)\tau(\alpha_0) = t_0 + C\alpha_0^{-p}, \tag*{(3)}

a power law with a floor, where t0t_0, CC, and pp are fitted constants. It follows from a first-passage argument with two assumptions. A head start compounds, so that the alignment grows faster the larger it already is, and grokking arrives a bounded time after the alignment crosses a threshold. The four alternatives were a pure power law and hyperbolic, exponential, and logarithmic forms. The argument models only when the threshold is reached, and not the path that the alignment takes, a difference to which Section 6 returns.

Prediction 2: Taking It Away

If the network can succeed only through the right subspace, a network that is denied it cannot generalize, and how much of the task survives can be computed in advance. This is the second prediction. We take the right subspace away by restricting the embeddings to an unfaithful set SS instead. The restriction collapses information about the input. Two elements that differ by an element of the kernel KSK_S receive identical embeddings. These elements merge into cosets of KSK_S, groups of elements that the network can no longer tell apart, and every later layer sees only the pair of cosets to which an input belongs. The best that any network can then do is to bet, for each pair of cosets, on its most common answer. This count is available from the multiplication table before training.

Theorem 2 (Accuracy ceiling). Let the inputs of any task of Section 3.1 enter the network only through embeddings restricted to an unfaithful set SS. Then the accuracy over all input pairs of any network, of any depth and trained for any length of time, is at most the fraction of input pairs whose answer is the most common answer within their pair of cosets. If one of the two arguments appears exactly once in the task, as in multiplication and conjugation, this ceiling equals 1/∣KS∣1/|K_S|.

The ceiling has no free parameters: the larger the kernel, the lower the ceiling. The ceiling is not always small, however. If the kernel lies in the center of GG, it leaves the commutator unchanged, and the ceiling is 1. Such a restriction would leave the task learnable without the right subspace, and we enforce none of this kind.

Experiments

We test the hypothesis in four experiments, each of which tests one of its consequences. If the delay is a search for the right subspace, a network that is given the right subspace should show no delay (§ 5.1), and a network that is denied it should stop at the ceiling of Theorem 2 (§ 5.2). An untouched network should move toward the right subspace during the delay (§ 5.3), and moving it there sooner should shorten the delay (§ 5.4). Unless stated otherwise, the task is S5S_5 multiplication and numbers are medians over seeds.

Giving the Right Subspace

We restricted the embeddings to the minimal right subspace of S5S_5 and changed nothing else. The delay disappeared on every one of the twenty seeds (Figure 2(a)). This effect requires neither the regularizer nor a projector that stays in place. The restricted network still grokked with weight decay removed entirely, and a network that was projected once at initialization, and never again, grokked at 240 to 270 steps.

Starting closer shortened the delay in the predicted way. We rotated the initialization so that a chosen fraction α0\alpha_0 of its norm lay in the right subspace, preserved all norms, and left training otherwise untouched. The rotated and untouched runs together followed Eq. (3), which fit best among the five registered forms (Figure 3), with ΔAIC=30.2\Delta\mathrm{AIC} = 30.2 over the nearest alternative even when every alternative is given a floor of its own. The form also holds out of sample. No rotated run started at the chance alignment of the untouched runs, so we fitted the form on the rotated runs alone and asked where it places the untouched runs. It placed their median grokking step at 63,158, against the observed 64,050, an error of 1.4%. The four rejected forms, refitted in the same way, missed this target by 29% or more.

Starting closer shortens the delay

Figure 3. Starting closer shortens the delay. The curve is Eq. (3). Runs rotated toward a random subspace are plotted at their alignment with that subspace.

The effect is specific to the right subspace. As a placebo, we rotated the initialization toward a random subspace of the

same rank, over the same alignment levels and seeds, and the delay did not move at all (Figure 3): the slope of the log grokking step against the log initial alignment was +0.07, with an interval of [−0.07,+0.18][-0.07, +0.18]. Both rotations concentrate the same amount of the embedding in a subspace of the same rank, and only the target differs. The delay therefore depends on where the embedding energy is concentrated, and not on how much of it is concentrated. The controls of Table 1 sharpen this point. No subspace outside the family {PS}\{P_S\} helped. Subspaces that contain only part of a block failed in a graded way, exactly as completeness demands. The coset basis never grokked, and the top principal directions of a converged network stalled short of full accuracy until the missing directions returned. The full coset construction, which contains the faithful block, recovered the speed of the right subspace. The subspace also had to be nearly exact, because restricted subspaces grokked only above a sharp alignment threshold between 0.85 and 0.93. In contrast, the way in which the right subspace was delivered did not matter.

ControlOutcome
Outside the family {PS}\{P_S\}
Random subspaceNever fits the training set
Rotation toward random subspaceNo speedup
Free rank-kk embedding, k≤48k \le48†No speedup
Part of a block
Coset basis; half a block†Never groks
Top-16 principal directionsGroks, then stalls at 0.97
Right subspace, delivered differently
Soft penalty, no projection†Groks
Projected once at initializationGroks

Table 1. Controls for giving the right subspace. Each control matches the right subspace in dimension, norm, or rank, unless it truncates a larger construction. †Measured on a different seed grid.

The effect is also general. The collapse of the delay recurred on twelve groups of order up to 720, on transformers with one to twelve layers, and on five random splits, across which the untouched ten-seed median ranged from 73k to 85k steps while the restricted median stayed at 150. The split thus changes how long the search takes, but not where it ends. The effect also survived a change of optimizer. Under mini-batch AdamW and under SGD with momentum, untouched training memorized and generalized almost together, so there was no plateau to shorten. The right subspace still brought generalization 74 and 22 times sooner, respectively, and starting closer still helped under both optimizers. The delay itself is therefore a ratio of two speeds. Measured in epochs, the search ran about forty times faster under mini-batch training, while memorization ran about three times slower, which was enough to close the gap between them.

Changing the training does not come close to this effect. We grid-searched seven published accelerators under one protocol and one budget. Wherever they grokked at all, they stayed one to three orders of magnitude behind the right subspace, and on the commutator neither they nor untouched training grokked within the budget. The right subspace uses

oracle information, however, so we regard it as an instrument for reading the delay, and not as a proposed accelerator.

Taking the Right Subspace Away

We restricted the embeddings to an unfaithful set at every training step and compared the plateau, the accuracy at which the restricted network levels off, with the ceiling of Theorem 2. The restricted network never grokked (Figure 2(a)). Across 163 restricted configurations, each of which fixes a group, a task, and an unfaithful set, and which together span the four tasks and both abelian and non-abelian groups, the plateaus followed the predicted ceilings over three orders of magnitude (Figure 4). The plateaus lay 3.0% from the predicted ceiling on average, and never more than a fifth away. The few plateaus that lie slightly above the ceiling do not violate the theorem: plateaus are measured on the test split, where the bound is the same count taken over the test pairs, and no plateau exceeded it.

Observed versus predicted ceilings for 163 restricted configurations

Figure 4. No trained network exceeds the ceiling. Each point is one of the 163 restricted configurations.

Some plateaus were not merely bounded but hit exactly. Where the unembedding is projected together with the embedding, every class in a coset receives the same logit, so nothing during training can choose between them. The number of test pairs that the network gets right then depends on the split alone, and not on the seed. On S5, removing every faithful block left the network 149 of the 8,640 test pairs, and removing the sign block as well left it 75. All ten seeds landed on these counts with zero variance. Both counts depend on which pairs are held out: recomputed on five random splits, they came out different every time, and every time the trained networks landed on them. Twenty-four commutator and squared-word configurations were also hit exactly, because their kernel covers the whole group and leaves the most common answer as the only one available.

Theorem 2 constrains only what reaches the network, so nothing after the embedding should move the ceiling, and nothing did. Six-layer transformers reproduced every unfaithful plateau, mini-batch AdamW reached the same plateaus, and resampling 30% of the training labels left them unchanged to four decimals, which the theorem does not even require. In each case, the faithful restriction still grokked. The failure therefore comes from the blindness of the unfaithful set, and not from the harshness of the setting.

Watching Untouched Runs

The first two experiments put the subspace where we wanted it. We now watch the twenty untouched runs and use the projector only to measure. To see what a network computes during the delay, we split its logits into a group-structured component, which the blocks of GG carry, and a residual. The early accuracy of the residual reproduces the memorized training fraction, so the residual is the memorizing component of Figure 2(b), and the group-structured component is the generalizing component. The share of a block is the fraction of the group-structured component that sits on this block.

The delay is spent on a block that cannot work. Through the middle of the delay, almost all of the group-structured component sat on the sign block, which held a share of 0.96 at step 10,000 (Figure 5). The sign block is unfaithful, so by Theorem 2 it cannot carry the task past an accuracy of 1/60. The memorizing component was no better, and it reached zero only as test accuracy took off. Meanwhile, the tied block that training finally selects, which we call the winning block, climbed out of a floor in the middle of the delay. In absolute terms, it grew while the sign block stood still, so the crossing in Figure 5 is one block outgrowing another, and not one block replacing another. On the median trajectory, the winning block overtook the sign block, the memorizing component reached zero, and test accuracy completed its jump, in that order and all within the last stretch of the delay.

Accuracy and component shares during optimization

Figure 5. The search during the delay. Medians over the twenty untouched runs. The canonical component is the group-structured component of the logits, and the dotted line marks the share that dimension alone gives a block of dimension 16.

The network reaches the right subspace without any help. With the embeddings left fully free, the twenty converged embeddings placed a median of 0.905 of their squared Frobenius norm in the right subspace, against a chance alignment of 0.133. At the grokking step, the median was only 0.545, so a run generalizes once it is close enough to the right subspace, and not once it has arrived. Eight of the twenty runs stopped between 0.33 and 0.58 and generalized fully anyway, and the two least aligned runs were the two slowest.

The only freedom that remains is the tie of § 4.3, and it was broken in the same way on all twenty seeds, regardless of which tied block drew more energy at initialization. The winning block is the block of the coset circuit that was identified by reverse engineering ([30] (Wu et al. 2025)). This outcome is a default, and not a rule. An initial alignment of 0.15 planted on the other tied block flipped the outcome in three of ten runs, and an alignment of 0.18 flipped it in all ten. A nudge inside the family thus moves the destination, while nothing outside the family helps (Table 1), which is exactly the latitude that Theorem 1 leaves open.

Intervening During Training

Section 5.3 shows that untouched runs approach the right subspace during the delay, but it does not show that this approach sets the length of the delay. The delay could instead be an escape from a plateau, with the alignment as a mere gauge of how far the escape has progressed. In that case, moving the gauge would not move the delay.

We therefore reached into untouched runs at step 5k and rotated their embeddings toward the right subspace, with nothing else touched (Figure 6). The rotation cut the delay by 2.2× in the paired median, and it shortened the delay on all five seeds. Resuming without rotating reproduced the parent run step for step, so it was the rotation that shortened the delay, and not the restart. The same rotation at step 30k cut the delay by only 1.4×. An earlier intervention thus buys more, as it should if the network is searching and the alignment measures how far the search has come. Rotating the other way, below the chance alignment, cost nothing, because the imposed drop was undone within 1,400 steps.

Alignment with the right subspace over optimization steps

Figure 6. The alignment is a cause, not a gauge. Untouched runs were resumed at t∗=5kt^* = 5k with the embedding rotated to a chosen alignment. Thick lines show one run, and dashed vertical lines mark its grokking steps.

Noise does not set the delay either. We varied the gradient noise and the weight decay in two sweeps. A hundredfold increase in the power of the gradient noise changed the delay by a factor of only 1.10, and the delay stayed finite when the gradient was exact, so the delay is not the crossing of a barrier. What noise and weight decay do change is the speed of the search. Across the two sweeps, the delay of runs that started at the chance alignment ranged from 45,700 to 137,600 steps, and most of this range came from weight decay. Neither setting changed the dependence on alignment: in all eight cells, the slope of the log grokking step against the log initial alignment stayed between −2.4 and −2.6, and none of the intervals contains zero. Under the projector, the same two settings moved the grokking step by only 130 steps, against tens of thousands without it. They lengthen the search, and not what follows it.

Discussion

Our results separate the delay from the destination. Under a different optimizer, the delay can vanish while the destination stays where it was. The destination still sets the timing of generalization, and it still caps accuracy at the same precomputed ceiling. On this evidence, the accounts of Section 2 that locate grokking in the optimization process describe the speed of the search rather than its object. The same separation fixes how much the right subspace buys: the speedup tracks the length of the untouched delay, and not the order of the group.

Naming the destination also names what the delay is spent on. Most untouched runs spend it with their group-structured logits committed to the sign block, whose blindness we can quantify before training. What looks like a plateau from the outside is therefore a network holding a representation that cannot do the task. Circuit accounts describe a competition between a memorizing and a generalizing solution. In our account, the competitor is a specific block with a known dimension and a known ceiling. The delay is also a search in a strong sense, because moving the alignment moves the delay.

Limitations. Our scope is that of a visible group action. Behind an ordinary encoder, the features no longer carry the regular representation, and the projector becomes indistinguishable from a random subspace of the same size. On tasks without algebraic structure, the right subspace is undefined. Within this scope, three things remain open. First, taking the right subspace away certifies the accounting of the ceiling rather than the search, so the claim that the delay is a search rests on the timing results alone. Second, the mechanism behind Eq. (3) is not established. The equation predicts τ\tau from α0\alpha_0 without describing the path of the alignment, and its exponent is identified only within a seed set (3.2 here, 4.4 on a second set), so what replicates is the form. Third, the alignment is not a distance. Pushing it below the chance alignment is undone at no cost, and we do not know what restores it, or why one tied block always wins.

Conclusion

We computed the destination of training on group tasks before training begins, and we used it to test what a network does during the grokking delay. Giving the network the right subspace removes the delay, taking it away caps accuracy at a ceiling that we compute in advance, and untouched networks move toward it by themselves, long before they generalize. On group tasks, the delay is therefore not an intrinsic cost of generalization. Transfer to natural data is the largest open question. On every group task that we tested, grokking is a search for the right subspace, and the delay is the time that this search takes.

References

  1. [1]Abbe, E.; Boix-Adserà, E.; and Misiakiewicz, T. 2023. SGD learning on neural networks: leap complexity and saddle-to-saddle dynamics. In Conference on Learning Theory (COLT), 2552–2623.arxiv.org/abs/2302.11055
  2. [2]Atanasov, A.; Bordelon, B.; and Pehlevan, C. 2022. Neural networks as kernel learners: The silent alignment effect. In International Conference on Learning Representations (ICLR).arxiv.org/abs/2111.00034
  3. [3]Barak, B.; Edelman, B. L.; Goel, S.; Kakade, S.; Malach, E.; and Zhang, C. 2022. Hidden progress in deep learning: SGD learns priorities near the computational limit. In Advances in Neural Information Processing Systems (NeurIPS).arxiv.org/abs/2207.08799
  4. [4]Ben Arous, G.; Gheissari, R.; and Jagannath, A. 2021. Online stochastic gradient descent on non-convex losses from high-dimensional inference. Journal of Machine Learning Research, 22(106): 1–51.arxiv.org/abs/2003.10409
  5. [5]Chughtai, B.; Chan, L.; and Nanda, N. 2023. A toy model of universality: Reverse engineering how networks learn group operations. In International Conference on Machine Learning (ICML).arxiv.org/abs/2302.03025
  6. [6]Cohen, T.; and Welling, M. 2016. Group equivariant convolutional networks. In International Conference on Machine Learning (ICML), 2990–2999.arxiv.org/abs/1602.07576
  7. [7]Fulton, W.; and Harris, J. 1991. Representation theory: A first course, volume 129 of Graduate Texts in Mathematics. Springer.DOI
  8. [8]Gromov, A. 2023. Grokking modular arithmetic. arXiv preprint arXiv:2301.02679.arxiv.org/abs/2301.02679
  9. [9]Howe, G. L. 2026. Structure-Specific Representational Priors Causally Control the Grokking Delay. arXiv preprint arXiv:2607.04333. Concurrent preprint.arxiv.org/abs/2607.04333
  10. [10]Kingma, D. P.; and Ba, J. 2015. Adam: A method for stochastic optimization. In International Conference on Learning Representations (ICLR).arxiv.org/abs/1412.6980
  11. [11]Kondor, R.; Lin, Z.; and Trivedi, S. 2018. Clebsch–Gordan Nets: A Fully Fourier Space Spherical Convolutional Neural Network. In Advances in Neural Information Processing Systems (NeurIPS).arxiv.org/abs/1806.09231
  12. [12]Kondor, R.; and Trivedi, S. 2018. On the generalization of equivariance and convolution in neural networks to the action of compact groups. In International Conference on Machine Learning (ICML), 2747–2755.arxiv.org/abs/1802.03690
  13. [13]Kumar, T.; Bordelon, B.; Gershman, S. J.; and Pehlevan, C. 2024. Grokking as the transition from lazy to rich training dynamics. In International Conference on Learning Representations (ICLR).arxiv.org/abs/2310.06110
  14. [14]Lee, J.; Kang, B. G.; Kim, K.; and Lee, K. M. 2024. Grokfast: Accelerated grokking by amplifying slow gradients. arXiv preprint arXiv:2405.20233.arxiv.org/abs/2405.20233
  15. [15]Liu, Z.; Kitouni, O.; Nolte, N.; Michaud, E. J.; Tegmark, M.; and Williams, M. 2022. Towards understanding grokking: An effective theory of representation learning. In Advances in Neural Information Processing Systems (NeurIPS).arxiv.org/abs/2205.10343
  16. [16]Liu, Z.; Michaud, E. J.; and Tegmark, M. 2023. Omnigrok: Grokking beyond algorithmic data. In International Conference on Learning Representations (ICLR).arxiv.org/abs/2210.01117
  17. [17]Loshchilov, I.; and Hutter, F. 2019. Decoupled weight decay regularization. In International Conference on Learning Representations (ICLR).
  18. [18]Marchetti, G. L.; Hillar, C. J.; Kragic, D.; and Sanborn, S. 2024. Harmonics of Learning: Universal Fourier Features Emerge in Invariant Networks. In Proceedings of the Thirty Seventh Conference on Learning Theory, volume 247 of Proceedings of Machine Learning Research, 3775–3797. PMLR.arxiv.org/abs/2312.08550
  19. [19]Minegishi, G.; Iwasawa, Y.; and Matsuo, Y. 2025. Bridging Lottery Ticket and Grokking: Understanding Grokking from Inner Structure of Networks. Transactions on Machine Learning Research.
  20. [20]Mohamadi, M. A.; Li, Z.; Wu, L.; and Sutherland, D. J. 2024. Why do you grok? A theoretical analysis of grokking modular addition. In International Conference on Machine Learning (ICML).arxiv.org/abs/2407.12332
  21. [21]Morwani, D.; Edelman, B. L.; Oncescu, C.-A.; Zhao, R.; and Kakade, S. 2024. Feature emergence via margin maximization: Case studies in algebraic tasks. In International Conference on Learning Representations (ICLR).arxiv.org/abs/2311.07568
  22. [22]Nanda, N.; Chan, L.; Lieberum, T.; Smith, J.; and Steinhardt, J. 2023. Progress measures for grokking via mechanistic interpretability. In International Conference on Learning Representations (ICLR).arxiv.org/abs/2301.05217
  23. [24]Power, A.; Burda, Y.; Edwards, H.; Babuschkin, I.; and Misra, V. 2022. Grokking: Generalization beyond over-fitting on small algorithmic datasets. arXiv preprint arXiv:2201.02177.arxiv.org/abs/2201.02177
  24. [25]Saad, D.; and Solla, S. A. 1995. On-line learning in soft committee machines. Physical Review E, 52(4): 4225–4243.pubmed.ncbi.nlm.nih.gov/9963894
  25. [26]Saxe, A. M.; McClelland, J. L.; and Ganguli, S. 2014. Exact solutions to the nonlinear dynamics of learning in deep linear neural networks. In International Conference on Learning Representations (ICLR).
  26. [27]Serre, J.-P. 1977. Linear representations of finite groups, volume 42. New York: Springer-Verlag.DOI
  27. [28]Shutman, M.; Louidor, O.; and Tessler, R. 2025. Learning words in groups: fusion algebras, tensor ranks and grokking. arXiv preprint arXiv:2509.06931.arxiv.org/abs/2509.06931
  28. [29]Sivasankar, A. 2026. Circuit Synchronization Precedes Generalization: A Causal Precursor to Grokking. arXiv preprint arXiv:2606.12966. Concurrent preprint.
  29. [30]Stander, D.; Yu, Q.; Fan, H.; and Biderman, S. 2024. Grokking group multiplication with cosets. In International Conference on Machine Learning (ICML).arxiv.org/abs/2312.06581
  30. [31]Thilak, V.; Littwin, E.; Zhai, S.; Saremi, O.; Paiss, R.; and Susskind, J. 2022. The Slingshot Mechanism: An Empirical Study of Adaptive Optimizers and the Grokking Phenomenon. arXiv preprint arXiv:2206.04817.arxiv.org/abs/2206.04817
  31. [32]Tian, Y. 2025. Provable Scaling Laws of Feature Emergence from Learning Dynamics of Grokking. arXiv preprint arXiv:2509.21519.arxiv.org/abs/2509.21519
  32. [33]Varma, V.; Shah, R.; Kenton, Z.; Kramár, J.; and Kumar, R. 2023. Explaining grokking through circuit efficiency. arXiv preprint arXiv:2309.02390.arxiv.org/abs/2309.02390
  33. [34]Walker, T.; Humayun, A. I.; Balestriero, R.; and Baraniuk, R. 2025. GrokAlign: Geometric Characterisation and Acceleration of Grokking. arXiv preprint arXiv:2506.12284.arxiv.org/abs/2506.12284
  34. [37]Zhang, Z.; Liu, J. W.; Ré, C.; and Zhang, H. R. 2024. A Hessian View of Grokking in Mathematical Reasoning. In The 4th Workshop on Mathematical Reasoning and AI at NeurIPS 2024 (MATH-AI).
  35. [38]Zhong, Z.; Liu, Z.; Tegmark, M.; and Andreas, J. 2023. The Clock and the Pizza: Two Stories in Mechanistic Explanation of Neural Networks. In Advances in Neural Information Processing Systems (NeurIPS).arxiv.org/abs/2306.17844
  36. [39]Zhou, T.; Fu, D.; Sharan, V.; and Jia, R. 2024. Pre-trained Large Language Models Use Fourier Features to Compute Addition. In Advances in Neural Information Processing Systems (NeurIPS).arxiv.org/abs/2406.03445

Paper details

vlnc:W_gdehee77
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 10

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents