← Blog

Grokking Beyond the Euclidean Norm of Model Parameters

The Euclidean norm explains some grokking experiments, especially those driven by weight decay, but it is not a universal measure of complexity. The relevant quantity is the property favored late in training.

This post develops the main idea of our ICML 2025 paper, Grokking Beyond the Euclidean Norm of Model Parameters (Notsawo et al., 2025). We will use the memorization time t1t_1 and the generalization time t2t_2 defined in What Is Grokking?.

Paper Pascal Jr Tikeng Notsawo, Guillaume Dumas, and Guillaume Rabusseau, Grokking Beyond the Euclidean Norm of Model Parameters, ICML 2025. arXiv · OpenReview

We demonstrate that grokking can be induced by Explicit regularization adds a penalty such as βh(θ)\beta h(\theta) to the objective. Implicit regularization arises from the parameterization, optimizer, initialization, or data even when no corresponding penalty is written in the loss.. More precisely, when there exists a model with a property PP—for example, sparse or low-rank weights—that generalizes on the problem of interest, gradient descent with a small but non-zero regularization of PP—for example, 1\ell_1 or nuclear-norm regularization—can result in grokking. This extends previous work showing that small non-zero weight decay induces grokking.

Moreover, our analysis shows that overparameterization through depth can make it possible to grok or ungrok without explicit regularization, which is impossible in the corresponding shallow cases. We further show that the Euclidean norm is not a reliable proxy for generalization when the model is regularized toward another property PP: in many cases without weight decay, the Euclidean norm grows while the model generalizes anyway. Grokking can also be amplified solely through data selection, with every other hyperparameter fixed.

Why grokking?

We will present two previous explanations related to ours, highlight their limitations, and offer a more general explanation of the phenomenon based on regularization.

Goldilocks zone and LU mechanism

The Fort and Scherlis (2018) describe a shell in parameter space where the norm is neither too small to fit nor so large that overfitting dominates—hence “not too small, not too large.” Liu et al. (2023) connect this shell to grokking. (Fort and Scherlis, 2018; Liu et al., 2023) refers to a spherical shell in weight space, at an optimal weight norm wwcw\approx w_c, where models achieve good generalization. If wwcw\ll w_c, the model underfits and struggles to fit the training data. If wwcw\gg w_c, it overfits: training loss is low, but test loss is high.

The LU mechanism of Liu et al. (2023) describes the mismatch between how training and test losses behave as functions of ww. The training loss forms an L-shape: it decreases quickly and stays near zero for large ww, because many overfitting solutions exist at high norms. The test loss forms a U-shape: it is minimized near wcw_c and increases for both smaller and larger norms.

According to this mechanism, the mismatch causes grokking. With a large initialization w0wcw_0 \gg w_c and small weight decay β\beta, the model first overfits at step t1t_1: training loss drops while test loss remains high. It then drifts slowly toward wcw_c because of weight decay, eventually reaching a point where generalization improves dramatically at step t2t_2.

Goldilocks zone in weight space and the L-shaped training loss and U-shaped test loss of the LU mechanism
Left: generalizing solutions concentrate near the Goldilocks shell wwcw\approx w_c, while overfitting solutions occupy the larger-norm region. Right: the mismatch between the L-shaped training loss and U-shaped test loss produces fast memorization followed by slow generalization. Adapted from Liu et al. (2023).

Why the Euclidean norm cannot be universal

This picture is useful, but a raw parameter norm depends on how we parameterize the same function. Consider y(x)=Bϕ(Ax)\mathbf y(\mathbf x)=\mathbf B\,\phi(\mathbf A\mathbf x) where ϕ\phi is This means that ϕ(λz)=λLϕ(z)\phi(\lambda z)=\lambda^L\phi(z) for every zz and every λ>0\lambda>0.. ReLU, for instance, is positive-11-homogeneous, while the quadratic activations often used for modular arithmetic (Gromov, 2023) are positive-22-homogeneous. The reparameterization

AλA,BλLB\mathbf A\longmapsto\lambda\mathbf A, \qquad \mathbf B\longmapsto\lambda^{-L}\mathbf B

does not change the predictor, since

BλLϕ(λAx)=Bϕ(Ax)x.\frac{\mathbf B}{\lambda^L}\phi(\lambda\mathbf A\mathbf x) = \mathbf B\phi(\mathbf A\mathbf x) \quad \forall \mathbf x.

However, using a:=AF2>0a:=\|\mathbf A\|_F^2>0 and b:=BF2>0b:=\|\mathbf B\|_F^2>0, its squared parameter norm becomes w(λ)=aλ2+λ2Lbw(\lambda) = a\lambda^2+ \lambda^{-2L} b. This function decreases until

λ0=(Lba) ⁣1/(2L+2),\lambda_0=\left(\frac{Lb}{a}\right)^{\!1/(2L+2)},

then increases, with w(λ)w(\lambda)\to\infty both as λ0\lambda\to0 and as λ\lambda\to\infty. Thus, we can arbitrarily increase the norm of the parameters without changing the predictor or its generalization performance. The set of generalizing solutions is therefore not confined to one Euclidean shell around the origin.

Three log-log plots of the squared parameter norm w of lambda for a less than b, a equal to b, and a greater than b, with colors representing homogeneity degrees L from one to ten and divergence toward both ends of the lambda axis
The same predictor can have very different parameter norms after rescaling. Each panel fixes a relation between aa and bb; color represents L{1,,10}L\in\{1,\ldots,10\}, and each dot marks the unique minimizer λ0=(Lb/a)1/(2L+2)\lambda_0=(Lb/a)^{1/(2L+2)}. Both axes are logarithmic so that the divergence as λ0+\lambda\to0^+ and the eventual growth as λ\lambda\to\infty are visible. The dashed line shows λ=1\lambda=1, where every curve in a panel has the common value a+ba+b.

There is also a direct experimental objection. We trained the same modular-addition MLP described in What Is Grokking? with a layerwise The entrywise 1\ell_1 norm promotes sparse weights; the Frobenius norm is the Euclidean norm of all entries; the nuclear norm is the sum of singular values and promotes low rank.. Let θ\theta denote the collection of the model’s weight matrices. The three corresponding norms are

θ1=Wθi,jWij,θ22=WθWF2,θ=WθW.\|\theta\|_1=\sum_{\mathbf W\in\theta}\sum_{i,j}|W_{ij}|, \qquad \|\theta\|_2^2=\sum_{\mathbf W\in\theta}\|\mathbf W\|_F^2, \qquad \|\theta\|_*=\sum_{\mathbf W\in\theta}\|\mathbf W\|_*.

The first sum is the entrywise 1\ell_1 norm. In each experiment, the model is trained to minimize

f(θ)=g(θ)+βh(θ),f(\theta)=g(\theta)+\beta h(\theta),

where g(θ)g(\theta) is the average cross-entropy loss on the training data Dtrain\mathcal D_{\mathrm{train}}, β>0\beta>0 is the regularization strength, and h(θ)h(\theta) is respectively θ1\|\theta\|_1, θ22\|\theta\|_2^2, or θ\|\theta\|_*. All three induce delayed generalization. Under 1\ell_1 regularization, the Euclidean norm of the full parameter vector can even increase through generalization.

Grokking under L1, L2, and nuclear-norm regularization, with the three norms tracked under L1 regularization
Addition modulo 97 under ℓ₁, layerwise Frobenius, and nuclear-norm regularization. Top: training and test accuracy. Bottom: under ℓ₁ regularization, the ℓ₁, Euclidean, and nuclear norms of the parameters. The model generalizes even when its Euclidean norm increases.

The conclusion is not that the LU picture is useless. It is that the horizontal axis must represent the An inductive bias is the preference that selects some fitting solutions over others. Here the relevant bias is whichever property the late dynamics continue to improve after the training loss is already small.. Sometimes this is the Euclidean norm; sometimes it is sparsity, low rank, smoothness, or a property induced implicitly by the parameterization.

From the kernel regime to the rich regime

Another explanation describes grokking as a transition from In the kernel regime, parameters move little and the network is well approximated by its linearization at initialization. In the rich regime, features themselves change substantially, allowing behavior unavailable to the fixed linearized model. (Lyu et al., 2023; Kumar et al., 2023). With a sufficiently large initialization, a neural network first behaves approximately like its linearization around initialization. Continued training can eventually leave this kernel regime and enter a rich regime in which the representation changes substantially.

Informal theorem Consider continuous-time gradient flow

dθ(t)dt=θf(θ(t)),f(θ)=g(θ)+β2θ22.\frac{d\theta(t)}{dt}=-\nabla_\theta f(\theta(t)), \qquad f(\theta)=g(\theta)+\frac{\beta}{2}\|\theta\|_2^2.

Let γ=θ(0)2\gamma=\|\theta(0)\|_2 be the initialization scale and set τ:=log(γ)/β\tau:=\log(\gamma)/\beta. Assume that β=Θ(γc)\beta=\Theta(\gamma^{-c}) for some fixed c>0c>0. Define the The neural tangent features are the derivatives of the model output with respect to its parameters at initialization. Their inner products define the neural tangent kernel, which governs the linearized training dynamics. at initialization by

w(0)(x):=θyθ(x)θ=θ(0).\mathbf w^{(0)}(\mathbf x) := \left.\nabla_\theta \mathbf y_\theta(\mathbf x)\right|_{\theta=\theta(0)}.

Assume that these features are linearly separable in classification, or linearly independent in regression. Also assume that the model is For some L>0L>0, scaling all parameters by λ>0\lambda>0 scales the model output by λL\lambda^L: yλθ(x)=λLyθ(x)\mathbf y_{\lambda\theta}(\mathbf x)=\lambda^L\mathbf y_\theta(\mathbf x). Bias-free feed-forward networks with homogeneous activations such as ReLU or LeakyReLU satisfy this property; for such networks, LL is the number of layers.. Then, as γ\gamma\to\infty, the following holds for every fixed ϵ(0,1)\epsilon\in(0,1).

  1. At the early time t1=(1ϵ)τt_1=(1-\epsilon)\tau, the normalized gradient-flow solution points in the direction selected by the linearized NTK problem:

    • In binary classification, it represents the same classifier as the Among separating linear predictors, this solution minimizes v2\|\mathbf v\|_2 under unit-margin constraints. After rescaling, that is equivalent to maximizing the smallest signed distance to the decision boundary. on the NTK features, whose direction is determined by

      minimizev12v22subject toyw(0)(x),v1(x,y)Dtrain.\underset{\mathbf v}{\operatorname{minimize}} \quad \frac12\|\mathbf v\|_2^2 \qquad\text{subject to}\qquad y\langle\mathbf w^{(0)}(\mathbf x),\mathbf v\rangle\geq1 \quad \forall(\mathbf x,y)\in\mathcal D_{\mathrm{train}}.
    • In regression, it follows the When many linearized predictors fit every training target exactly, the minimum-norm interpolator selects the one with the smallest Euclidean coefficient norm. in the NTK regime:

      minimizev12v22subject tow(0)(x),v=y(x,y)Dtrain.\underset{\mathbf v}{\operatorname{minimize}} \quad \frac12\|\mathbf v\|_2^2 \qquad\text{subject to}\qquad \langle\mathbf w^{(0)}(\mathbf x),\mathbf v\rangle=y \quad \forall(\mathbf x,y)\in\mathcal D_{\mathrm{train}}.
  2. By continuing slightly longer, to t2=(1+ϵ)τt_2=(1+\epsilon)\tau, the dynamics leave the NTK regime. The normalized solution approaches the direction of a A Karush–Kuhn–Tucker point satisfies stationarity, primal and dual feasibility, and complementary slackness. Under constraint qualifications these conditions are necessary for a constrained local optimum, but in a nonconvex problem they are not sufficient. of the corresponding nonlinear minimum-norm problem

    minimizeθ12θ22\underset{\theta}{\operatorname{minimize}} \quad \frac12\|\theta\|_2^2

    subject to yyθ(x)1y\,\mathbf y_\theta(\mathbf x)\geq1 in binary classification, or yθ(x)=y\mathbf y_\theta(\mathbf x)=y in regression, for every (x,y)Dtrain(\mathbf x,y)\in\mathcal D_{\mathrm{train}}.

Here ϵ\epsilon is an arbitrary fixed relative separation from the transition time τ\tau. It is not an optimization-error tolerance. The time t1t_1 observes the dynamics an ϵ\epsilon-fraction before τ\tau, while t2t_2 observes them an ϵ\epsilon-fraction after τ\tau. A smaller ϵ\epsilon places both observations closer to the transition. This is the informal version of the result in Lyu et al. (2023); the original paper gives its precise asymptotic formulation.

Remark Under the usual constraint qualifications, a KKT condition is necessary for a constrained local optimum, and therefore for a global optimum, but it is not generally sufficient—especially when the nonlinear problem is non-convex. KKT points are nevertheless commonly used in theoretical analyses of the implicit bias of gradient methods (Lyu and Li, 2020; Wang et al., 2021; Kunin et al., 2023).

This describes an important change in the dynamics, but the change alone does not imply that the model has learned the intended rule. A late transition generalizes only when the bias of the rich regime is aligned with the target. We will return to this point in “grokking without understanding”.

A property-based mechanism

Let xRp\mathbf x \in\mathbb R^p denote the parameters being optimized. We consider

f(x)=g(x)+βh(x),f(\mathbf x)=g(\mathbf x)+\beta h(\mathbf x),

where g:Rp[0,)g:\mathbb R^p\to[0,\infty) is the training loss, h:Rp[0,)h:\mathbb R^p\to[0,\infty) measures the favored property, and β>0\beta>0 is its strength. We write h(x)\partial h(\mathbf x) is the set of vectors s\mathbf s satisfying h(y)h(x)+s,yxh(\mathbf y)\ge h(\mathbf x)+\langle\mathbf s,\mathbf y-\mathbf x\rangle for every y\mathbf y. It replaces the gradient when a convex penalty is nonsmooth. for the convex subdifferential of hh at x\mathbf x. Subgradient descent with step size α>0\alpha>0 gives

x(t+1)=x(t)α(G(x(t))+βH(x(t))),G=g,H(x(t))h(x(t)).\mathbf x^{(t+1)} = \mathbf x^{(t)} -\alpha\bigl(G(\mathbf x^{(t)})+\beta H(\mathbf x^{(t)})\bigr), \qquad G=\nabla g, \quad H(\mathbf x^{(t)})\in\partial h(\mathbf x^{(t)}).

For small β\beta, the dynamics have two time scales.

  1. Memorization Initially, GG dominates βH\beta H. The iterates remain close to x(0)\mathbf x^{(0)} and rapidly reduce gg.
  2. Generalization Once gg and GG are small, the slower term βH\beta H becomes visible. It moves the solution toward smaller values of hh while the training loss remains small.

The paper formalizes the first phase with a local condition. For r>0r>0, define

B(x,r):={y:yx2r},B(\mathbf x,r):=\{\mathbf y:\|\mathbf y-\mathbf x\|_2\leq r\},

and the Chatterjee–Łojasiewicz constant introduced by Chatterjee (2022)

χ(g,x,r):=infyB(x,r)g(y)0g(y)22g(y).\chi(g,\mathbf x,r) := \inf_{\substack{\mathbf y\in B(\mathbf x,r)\\g(\mathbf y)\neq0}} \frac{\|\nabla g(\mathbf y)\|_2^2}{g(\mathbf y)}.

We say that gg is rr-CL at x\mathbf x when

4g(x)<r2χ(g,x,r).4g(\mathbf x)<r^2\chi(g,\mathbf x,r).

The A PL inequality lower-bounds g22\|\nabla g\|_2^2 by a multiple of the objective gap throughout a region. The local CL condition packages such a gradient-to-loss ratio with enough radius to guarantee that the trajectory stays inside the region where the estimate is useful. (Chatterjee, 2022). PL-type inequalities have been shown to hold for wide overparameterized neural networks in a neighbourhood of their initialization (Liu et al., 2021). The advantage here is that we require the CL inequality only at initialization, whereas standard convergence results under the PL condition assume it over an entire region or domain (Karimi et al., 2020).

This condition only concerns a neighbourhood of the initialization. Under the regularity assumptions in Theorem 2.1 of the paper, if gg is rr-CL at x(0)\mathbf x^{(0)}, then sufficiently small α\alpha and β\beta produce the two phases above. For some constant C>0C>0, the first reaches g(x(t1))ϵgg(\mathbf x^{(t_1)})\leq\epsilon_g for any attainable precision Here ϵg=Ω(βC)\epsilon_g=\Omega(\beta^C) means that the requested precision is not asymptotically smaller than a constant multiple of βC\beta^C as β0\beta\to0. The theorem guarantees every tolerance above that floor., while staying in B(x(0),r)B(\mathbf x^{(0)},r). For fixed tolerance and distance to the solution set, the sufficient late-phase horizon contains the factor 1/(αβ)1/(\alpha\beta).

Theorem 2.1 The following is the main two-phase theorem of Notsawo et al. (2025). Take x(0)Rp\mathbf x^{(0)}\in\mathbb R^p with

g(0):=g(x(0))>0,g^{(0)}:=g(\mathbf x^{(0)})>0,

and assume that gg is rr-CL at x(0)\mathbf x^{(0)} for some r>0r>0. Write

χ:=χ(g,x(0),r),4g(0)<r2χ.\chi:=\chi(g,\mathbf x^{(0)},r), \qquad 4g^{(0)}<r^2\chi.

Assume that gg is twice continuously differentiable on a neighbourhood of B(x(0),2r)B(\mathbf x^{(0)},2r) and that the subgradients of hh are bounded on B(x(0),r)B(\mathbf x^{(0)},r). Then there exist αmax,βmax>0\alpha_{\max},\beta_{\max}>0 such that, for every α(0,αmax)\alpha\in(0,\alpha_{\max}), one can choose constants C,D>0C,D>0 for which the following statements hold for every β(0,βmax)\beta\in(0,\beta_{\max}).

  1. Fast phase. For any attainable precision

    ϵgDβC,\epsilon_g\geq D\beta^C,

    there is a δ(0,1)\delta\in(0,1) with δ=Θ(αχ)\delta=\Theta(\alpha\chi) such that one may take

    t1=max{0,log(ϵg/g(0))log(1δ)}t_1 = \left\lceil \max\left\{ 0, \frac{\log(\epsilon_g/g^{(0)})}{\log(1-\delta)} \right\} \right\rceil

    When ϵg<g(0)\epsilon_g<g^{(0)}, this choice is O ⁣((αχ)1log(g(0)/ϵg))\mathcal O\!\left((\alpha\chi)^{-1}\log(g^{(0)}/\epsilon_g)\right), and it satisfies

    g(x(t1))ϵg,G(x(t1))22=O(ϵg),x(t)B(x(0),r)tt1.g(\mathbf x^{(t_1)})\leq\epsilon_g, \qquad \|G(\mathbf x^{(t_1)})\|_2^2=\mathcal O(\epsilon_g), \qquad \mathbf x^{(t)}\in B(\mathbf x^{(0)},r) \quad\forall t\leq t_1.
  2. Late phase. Define

    Θf:=argminxf(x),f:=infxf(x),\Theta_f:=\operatorname*{argmin}_{\mathbf x}f(\mathbf x), \qquad f^*:=\inf_{\mathbf x}f(\mathbf x),

    and assume that Θf\Theta_f is nonempty. Let

    dist(x,Θf):=infuΘfxu2,\operatorname{dist}(\mathbf x,\Theta_f) := \inf_{\mathbf u\in\Theta_f}\|\mathbf x-\mathbf u\|_2,

    and let

    F(x(t)):=G(x(t))+βH(x(t)).F(\mathbf x^{(t)}) := G(\mathbf x^{(t)})+\beta H(\mathbf x^{(t)}).

    Suppose that, for t1t<t2t_1\leq t<t_2,

    f(u)f(x(t))+F(x(t)),ux(t)uRp,(S)f(\mathbf u) \geq f(\mathbf x^{(t)}) +\left\langle F(\mathbf x^{(t)}),\mathbf u-\mathbf x^{(t)}\right\rangle \qquad \forall\mathbf u\in\mathbb R^p, \tag{S}

    and, for a constant C>0C'>0 independent of tt, α\alpha, and β\beta,

    F(x(t))22Cβ2.(B)\|F(\mathbf x^{(t)})\|_2^2\leq C'\beta^2. \tag{B}

    Convexity of gg and hh is sufficient for (S). For every η>0\eta>0, the observation horizon

    t2t1dist2(x(t1),Θf)αβη(H)t_2-t_1 \geq \frac{\operatorname{dist}^2(\mathbf x^{(t_1)},\Theta_f)} {\alpha\beta\eta} \tag{H}

    is sufficient to guarantee

    mint1t<t2(f(x(t))f)β2(η+Cαβ).(F)\min_{t_1\leq t<t_2} \bigl(f(\mathbf x^{(t)})-f^*\bigr) \leq \frac{\beta}{2}\bigl(\eta+C'\alpha\beta\bigr). \tag{F}

    If g:=infxg(x)=0g^*:=\inf_{\mathbf x}g(\mathbf x)=0, define

    Θg:={x:g(x)=0},hg:=infxΘgh(x).\Theta_g:=\{\mathbf x:g(\mathbf x)=0\}, \qquad h_g^*:=\inf_{\mathbf x\in\Theta_g}h(\mathbf x).

    When ΘfΘg\Theta_f\cap\Theta_g\neq\varnothing, the same interval contains an iterate satisfying

    h(x(t))hg12(η+Cαβ).(P)h(\mathbf x^{(t)})-h_g^* \leq \frac12\bigl(\eta+C'\alpha\beta\bigr). \tag{P}

The first item formalizes memorization: for sufficiently small β\beta, the iterates stay near initialization and minimize gg geometrically down to any precision above the DβCD\beta^C floor. If β\beta is too large, regularization may intervene before gg reaches a smaller precision. In the second phase, once GG is of the same order as βH\beta H, the regularizer drives the iterates toward small values of ff and hh. The sufficient delay is of order 1/(αβ)1/(\alpha\beta). The factor α\alpha is absent from the continuous-time result of Lyu et al. (2023) because their dynamics are parameterized directly by time.

The bounds are for the best iterate in the interval. Condition (H) is a sufficient observation horizon; it is not asserted to be the exact first-crossing time.

Complete proof of Theorem 2.1

Show the complete five-step proof

We now prove both phases under the local assumptions above. The descent estimate used in the first phase is the second-order Taylor estimate from the report, equivalently the local descent lemma proved in Smoothness, Descent, and Cocoercivity.

Choice of the local constants

Set

Mg:=supxB(x(0),r)G(x)2,Mh:=supxB(x(0),r)supHh(x)H2,M_g := \sup_{\mathbf x\in B(\mathbf x^{(0)},r)}\|G(\mathbf x)\|_2, \qquad M_h := \sup_{\mathbf x\in B(\mathbf x^{(0)},r)} \sup_{H\in\partial h(\mathbf x)}\|H\|_2,

and

L:=supxB(x(0),2r)2g(x)22.L := \sup_{\mathbf x\in B(\mathbf x^{(0)},2r)} \|\nabla^2g(\mathbf x)\|_{2\to2}.

These quantities are The closed finite-dimensional balls are compact. Continuity of GG and 2g\nabla^2g makes their norms attain finite maxima there, while boundedness of the subgradients of hh is assumed explicitly.. Because 4g(0)<r2χ4g^{(0)}<r^2\chi, we can choose ε0(0,1)\varepsilon_0\in(0,1) and κ(0,ε0)\kappa\in(0,\varepsilon_0) such that

4g(0)<(1ε01+κ)2r2χ.(1)4g^{(0)} < \left(\frac{1-\varepsilon_0}{1+\kappa}\right)^2r^2\chi. \tag{1}

Choose βmax>0\beta_{\max}>0 so that

βmaxMhκG(x(0))2,(2)\beta_{\max}M_h \leq \kappa\|G(\mathbf x^{(0)})\|_2, \tag{2}

and choose α>0\alpha>0 small enough that

α<min{rMg+βmaxMh,2(ε0κ)L(1+κ)2,1L(1+κ),1(1ε0)χ}.(3)\alpha < \min\left\{ \frac{r}{M_g+\beta_{\max}M_h}, \frac{2(\varepsilon_0-\kappa)}{L(1+\kappa)^2}, \frac{1}{L(1+\kappa)}, \frac{1}{(1-\varepsilon_0)\chi} \right\}. \tag{3}

Finally, define

δ:=(1ε0)αχ(0,1),q:=1αL(1+κ)(0,1).(4)\delta:=(1-\varepsilon_0)\alpha\chi\in(0,1), \qquad q:=1-\alpha L(1+\kappa)\in(0,1). \tag{4}

The symbols ε0\varepsilon_0 and κ\kappa are local proof parameters; they are unrelated to the ϵ\epsilon used in the preceding kernel-to-rich theorem.

Step 1: geometric decay while the loss gradient dominates

For brevity, write

gt:=g(x(t)),Gt:=G(x(t)),Ht:=H(x(t)),Ft:=Gt+βHt.g_t:=g(\mathbf x^{(t)}), \qquad G_t:=G(\mathbf x^{(t)}), \qquad H_t:=H(\mathbf x^{(t)}), \qquad F_t:=G_t+\beta H_t.

Suppose that x(t)B(x(0),r)\mathbf x^{(t)}\in B(\mathbf x^{(0)},r) and that

βHt2κGt2.(5)\beta\|H_t\|_2\leq\kappa\|G_t\|_2. \tag{5}

The first condition in (3) ensures that the segment from x(t)\mathbf x^{(t)} to x(t+1)\mathbf x^{(t+1)} remains in B(x(0),2r)B(\mathbf x^{(0)},2r). On that segment, gg is LL-smooth. Applying the descent lemma and then adding and subtracting the regularization contribution gives

gt+1gtαGt,Ft+Lα22Ft22=gtαGt22αβGt,Ht+Lα22Gt+βHt22gtα[1κLα2(1+κ)2]Gt22gt(1ε0)αGt22.(6)\begin{aligned} g_{t+1} &\leq g_t-\alpha\langle G_t,F_t\rangle +\frac{L\alpha^2}{2}\|F_t\|_2^2\\ &= g_t-\alpha\|G_t\|_2^2 -\color{#a55a65}{\alpha\beta\langle G_t,H_t\rangle} +\frac{L\alpha^2}{2}\|G_t+\beta H_t\|_2^2\\ &\leq g_t-\alpha\left[ 1-\kappa-\frac{L\alpha}{2}(1+\kappa)^2 \right]\|G_t\|_2^2\\ &\leq g_t-(1-\varepsilon_0)\alpha\|G_t\|_2^2. \end{aligned} \tag{6}

The penultimate line uses (5), Cauchy–Schwarz, and Ft2(1+κ)Gt2\|F_t\|_2\leq(1+\kappa)\|G_t\|_2; the last line follows from (3). Because x(t)\mathbf x^{(t)} lies in the CL ball,

Gt22χgt.\|G_t\|_2^2\geq\chi g_t.

Consequently,

gt+1(1δ)gt,gtgt+1δχGt22.(7)g_{t+1} \leq (1-\delta)g_t, \qquad g_t-g_{t+1} \geq \frac{\delta}{\chi}\|G_t\|_2^2. \tag{7}

As long as (5) holds, iterating the first inequality yields

gt(1δ)tg(0).(8)g_t\leq(1-\delta)^t g^{(0)}. \tag{8}

Step 2: the iterates remain in the CL neighbourhood

Assume that (5) holds for t=j,,k1t=j,\ldots,k-1. From (7),

t=jk1αFt2α(1+κ)t=jk1Gt2α(1+κ)χδt=jk1gtgt+1.(9)\begin{aligned} \sum_{t=j}^{k-1}\alpha\|F_t\|_2 &\leq \alpha(1+\kappa)\sum_{t=j}^{k-1}\|G_t\|_2\\ &\leq \alpha(1+\kappa)\sqrt{\frac{\chi}{\delta}} \sum_{t=j}^{k-1}\sqrt{g_t-g_{t+1}}. \end{aligned} \tag{9}

To bound the last sum, factor each difference and use Cauchy–Schwarz:

t=jk1gtgt+1=t=jk1(gtgt+1)(gt+gt+1)[(gjgk)t=jk1(gt+gt+1)]1/22g(0)δ(1δ)j/2.(10)\begin{aligned} \sum_{t=j}^{k-1}\sqrt{g_t-g_{t+1}} &= \sum_{t=j}^{k-1} \sqrt{\bigl(\sqrt{g_t}-\sqrt{g_{t+1}}\bigr) \bigl(\sqrt{g_t}+\sqrt{g_{t+1}}\bigr)}\\ &\leq \left[ \bigl(\sqrt{g_j}-\sqrt{g_k}\bigr) \sum_{t=j}^{k-1} \bigl(\sqrt{g_t}+\sqrt{g_{t+1}}\bigr) \right]^{1/2}\\ &\leq 2\sqrt{\frac{g^{(0)}}{\delta}} (1-\delta)^{j/2}. \end{aligned} \tag{10}

For the last inequality, we used (8) and

t=j(1δ)t/2=(1δ)j/211δ2(1δ)j/2δ.\sum_{t=j}^{\infty}(1-\delta)^{t/2} = \frac{(1-\delta)^{j/2}}{1-\sqrt{1-\delta}} \leq \frac{2(1-\delta)^{j/2}}{\delta}.

Combining (9) and (10), and using the definition of δ\delta, gives

t=jk1αFt2(1δ)j/24(1+κ)2g(0)χ(1ε0)2.(11)\sum_{t=j}^{k-1}\alpha\|F_t\|_2 \leq (1-\delta)^{j/2} \sqrt{ \frac{4(1+\kappa)^2g^{(0)}} {\chi(1-\varepsilon_0)^2} }. \tag{11}

At j=0j=0, the right-hand side is strictly smaller than rr by (1). Since

x(k)x(0)2t=0k1αFt2,\|\mathbf x^{(k)}-\mathbf x^{(0)}\|_2 \leq \sum_{t=0}^{k-1}\alpha\|F_t\|_2,

we obtain x(k)B(x(0),r)\mathbf x^{(k)}\in B(\mathbf x^{(0)},r). This proves inductively that every iterate remains in the CL ball for as long as the dominance condition (5) holds.

Step 3: the dominance condition lasts long enough

While (5) holds, local LL-smoothness and the update give

Gt+12Gt2Gt+1Gt2Gt2Lx(t+1)x(t)2(1αL(1+κ))Gt2=qGt2.(12)\begin{aligned} \|G_{t+1}\|_2 &\geq \|G_t\|_2-\|G_{t+1}-G_t\|_2\\ &\geq \|G_t\|_2-L\|\mathbf x^{(t+1)}-\mathbf x^{(t)}\|_2\\ &\geq \bigl(1-\alpha L(1+\kappa)\bigr)\|G_t\|_2\\ &=q\|G_t\|_2. \end{aligned} \tag{12}

Fix an integer k0k\geq0. If

κG02qkβMh,(13)\kappa\|G_0\|_2 \geq q^{-k}\beta M_h, \tag{13}

then an induction using (12) gives, for every 0tk0\leq t\leq k,

Gt2qtG02βMhκqkt.\|G_t\|_2 \geq q^t\|G_0\|_2 \geq \frac{\beta M_h}{\kappa q^{k-t}}.

Hence

βHt2βMhκGt2.\beta\|H_t\|_2 \leq \beta M_h \leq \kappa\|G_t\|_2.

Thus (13) guarantees the dominance condition, the geometric loss decay, and containment in the CL ball through step kk.

Step 4: reaching every precision above the βC\beta^C floor

For 0<ϵg<g(0)0<\epsilon_g<g^{(0)}, define

t1:=log(ϵg/g(0))log(1δ);t_1 := \left\lceil \frac{\log(\epsilon_g/g^{(0)})} {\log(1-\delta)} \right\rceil;

take t1=0t_1=0 when ϵgg(0)\epsilon_g\geq g^{(0)}. Equation (8) gives gt1ϵgg_{t_1}\leq\epsilon_g. It remains to ensure that (13) is valid up to this step.

Define

C:=log(1δ)logq>0,D:=g(0)(MhκqG02)C.(14)C := \frac{\log(1-\delta)}{\log q}>0, \qquad D := g^{(0)} \left( \frac{M_h}{\kappa q\|G_0\|_2} \right)^C. \tag{14}

If ϵgDβC\epsilon_g\geq D\beta^C, then t1t_1 satisfies (13). Indeed, t1t_1 is at most one plus its unrounded value, and (14) is exactly the rearrangement of

βMhqt1κG02.\beta M_hq^{-t_1} \leq \kappa\|G_0\|_2.

Therefore x(t)B(x(0),r)\mathbf x^{(t)}\in B(\mathbf x^{(0)},r) for every tt1t\leq t_1, and gt1ϵgg_{t_1}\leq\epsilon_g. Finally, (6) and the nonnegativity of gg imply

(1ε0)αGt122gt1gt1+1gt1.(1-\varepsilon_0)\alpha\|G_{t_1}\|_2^2 \leq g_{t_1}-g_{t_1+1} \leq g_{t_1}.

Thus

Gt122ϵg(1ε0)α=O(ϵg),\|G_{t_1}\|_2^2 \leq \frac{\epsilon_g}{(1-\varepsilon_0)\alpha} = \mathcal O(\epsilon_g),

which completes the proof of the fast phase.

Step 5: the late-phase distance argument

Take any xΘf\mathbf x^*\in\Theta_f. From (S),

Ft,x(t)xf(x(t))f.(15)\langle F_t,\mathbf x^{(t)}-\mathbf x^*\rangle \geq f(\mathbf x^{(t)})-f^*. \tag{15}

Using the update x(t+1)=x(t)αFt\mathbf x^{(t+1)}=\mathbf x^{(t)}-\alpha F_t and then (15), we obtain

x(t+1)x22=x(t)x222αFt,x(t)x+α2Ft22x(t)x222α(f(x(t))f)+α2Ft22.(16)\begin{aligned} \|\mathbf x^{(t+1)}-\mathbf x^*\|_2^2 &= \|\mathbf x^{(t)}-\mathbf x^*\|_2^2 -2\alpha\langle F_t,\mathbf x^{(t)}-\mathbf x^*\rangle +\alpha^2\|F_t\|_2^2\\ &\leq \|\mathbf x^{(t)}-\mathbf x^*\|_2^2 -2\alpha\bigl(f(\mathbf x^{(t)})-f^*\bigr) +\alpha^2\|F_t\|_2^2. \end{aligned} \tag{16}

Sum (16) from t=t1t=t_1 to t21t_2-1. The squared-distance terms telescope, so dropping the final nonnegative distance gives

2αt=t1t21(f(x(t))f)x(t1)x22+α2t=t1t21Ft22.2\alpha \sum_{t=t_1}^{t_2-1} \bigl(f(\mathbf x^{(t)})-f^*\bigr) \leq \|\mathbf x^{(t_1)}-\mathbf x^*\|_2^2 +\alpha^2 \sum_{t=t_1}^{t_2-1}\|F_t\|_2^2.

Divide by 2α(t2t1)2\alpha(t_2-t_1), bound the minimum by the average, and minimize over xΘf\mathbf x^*\in\Theta_f:

mint1t<t2(f(x(t))f)dist2(x(t1),Θf)2α(t2t1)+α2maxt1t<t2Ft22.(17)\min_{t_1\leq t<t_2} \bigl(f(\mathbf x^{(t)})-f^*\bigr) \leq \frac{\operatorname{dist}^2(\mathbf x^{(t_1)},\Theta_f)} {2\alpha(t_2-t_1)} + \frac{\alpha}{2} \max_{t_1\leq t<t_2}\|F_t\|_2^2. \tag{17}

By (B) and (H),

dist2(x(t1),Θf)2α(t2t1)βη2,α2maxt1t<t2Ft22Cαβ22.\frac{\operatorname{dist}^2(\mathbf x^{(t_1)},\Theta_f)} {2\alpha(t_2-t_1)} \leq \frac{\beta\eta}{2}, \qquad \frac{\alpha}{2}\max_{t_1\leq t<t_2}\|F_t\|_2^2 \leq \frac{C'\alpha\beta^2}{2}.

Substitution into (17) proves (F).

Finally, suppose ΘfΘg\Theta_f\cap\Theta_g\neq\varnothing. Then f=βhgf^*=\beta h_g^*; otherwise a zero-loss point with smaller hh would contradict optimality in Θf\Theta_f. Since g0g\geq0,

β(h(x(t))hg)f(x(t))f.\beta\bigl(h(\mathbf x^{(t)})-h_g^*\bigr) \leq f(\mathbf x^{(t)})-f^*.

Taking the minimum over the interval and dividing (F) by β\beta proves (P). This completes the proof.

Sparse recovery: the ℓ₁ bias

Let aRn\mathbf a^*\in\mathbb R^n be a sparse vector and suppose that we observe

y=Xa+ξ,XRN×n,\mathbf y^*=\mathbf X\mathbf a^*+\boldsymbol\xi, \qquad \mathbf X\in\mathbb R^{N\times n},

where y,ξRN\mathbf y^*,\boldsymbol\xi\in\mathbb R^N and ξ\boldsymbol\xi is measurement noise. We optimize the coefficients aRn\mathbf a\in\mathbb R^n using

f(a)=12Xay22+βa1.f(\mathbf a) = \frac12\|\mathbf X\mathbf a-\mathbf y^*\|_2^2 +\beta\|\mathbf a\|_1.

This is the sparse-recovery specialization studied in Theorems 3.1 and 3.3 of Notsawo et al. (2025). The ideal formulation minimizes a0\|\mathbf a\|_0, the number of non-zero coefficients, subject to fitting the measurements within the noise tolerance. That problem is NP-hard (Natarajan, 1995), so 0\ell_0 directly counts nonzero entries but is combinatorial and nonconvex. 1\ell_1 is its tightest convex, positively homogeneous surrogate and can recover the same sparse solution under suitable measurement conditions. (Donoho, 2006; Chandrasekaran et al., 2012). See Foucart and Rauhut (2013) for a systematic treatment of compressed sensing.

With the near-zero initialization used in our experiment, the early, data-fit-dominated phase moves toward the The Moore–Penrose pseudoinverse selects, among all least-squares solutions, the one orthogonal to the null space of X\mathbf X—equivalently, the solution with the smallest Euclidean norm.

a^:=(XX)Xy.\widehat{\mathbf a} := (\mathbf X^\top\mathbf X)^\dagger\mathbf X^\top\mathbf y^*.

This solution minimizes the measurement residual and, when y\mathbf y^* lies in the range of X\mathbf X, fits the measurements. In an underdetermined problem it need not equal the sparse target. After memorization, the 1\ell_1 subgradient dominates and pushes the iterates toward a sparse fitting solution.

Definition A matrix XRN×n\mathbf X\in\mathbb R^{N\times n} satisfies the No vector that is nearly invisible to X\mathbf X may concentrate most of its 1\ell_1 mass on the target support SS. This prevents an alternative sparse vector from fitting almost the same measurements. with constants ρ(0,1)\rho\in(0,1) and τ>0\tau>0 relative to a set S[n]S\subset[n] when

uS1ρuSc1+τXu2for every uRn.\|\mathbf u_S\|_1 \leq \rho\|\mathbf u_{S^c}\|_1 +\tau\|\mathbf X\mathbf u\|_2 \qquad\text{for every }\mathbf u\in\mathbb R^n.

Recovery theorem If X\mathbf X satisfies this property relative to the support of a\mathbf a^*, then, under the learning-rate, regularization, and noise conditions of Notsawo et al. (2025), there exist constants C1,C2,C3>0C_1,C_2,C_3>0 such that the best iterate in the late phase satisfies

a(t)a1C1η+C2αβ+C3ξ2\|\mathbf a^{(t)}-\mathbf a^*\|_1 \leq C_1\eta+C_2\alpha\beta+C_3\|\boldsymbol\xi\|_2

once t2t1a(t1)a22/(αβη)t_2-t_1\geq\|\mathbf a^{(t_1)}-\mathbf a^*\|_2^2/(\alpha\beta\eta).

When X\mathbf X contains enough information for a\mathbf a^* to be the stable minimum-1\ell_1 fit, the recovery theorems give a best-iterate 1\ell_1 recovery error of order η+αβ+ξ2\eta+\alpha\beta+\|\boldsymbol\xi\|_2 once the late-phase horizon is of order

a(t1)a22αβη.\frac{\|\mathbf a^{(t_1)}-\mathbf a^*\|_2^2} {\alpha\beta\eta}.

In the noiseless scaling experiment, let We choose the first pair of recorded recovery errors lying within 5%5\% of the mean of the final three. If no such pair exists, we use the final checkpoint.. We observe

a(tplat)a1αβ,tplata^aαβ.\|\mathbf a^{(t_{\mathrm{plat}})}-\mathbf a^*\|_1 \propto\alpha\beta, \qquad t_{\mathrm{plat}} \propto \frac{\|\widehat{\mathbf a}-\mathbf a^*\|_\infty}{\alpha\beta}.

This is grokking in a recovery problem. A small residual Xa(t)y2\|\mathbf X\mathbf a^{(t)}-\mathbf y^*\|_2 marks memorization; a small recovery error a(t)a2\|\mathbf a^{(t)}-\mathbf a^*\|_2 marks generalization.

Sparse-recovery errors, gradient ratio, L1 norm, and coefficient trajectories across memorization and generalization
The loss gradient dominates before memorization. Afterwards, the ℓ₁ subgradient controls the slow motion toward the sparse target and generalization.
Sparse-recovery time and error as functions of alpha beta
The selected plateau time scales as the distance from the least-squares fit to the target, divided by αβ, while the error at that checkpoint scales as αβ. The plateau is the first pair of recorded errors lying within 5% of the mean of the final three; runs without such a pair are shown at their final checkpoint.

Small αβ\alpha\beta therefore lowers the observed recovery error, but makes the generalization phase longer. This is the same tradeoff predicted by the generic theorem.

Low-rank recovery: the nuclear norm

The matrix analogue replaces sparsity by low rank. Let ARn1×n2\mathbf A^*\in\mathbb R^{n_1\times n_2} have rank much smaller than min(n1,n2)\min(n_1,n_2), and observe

y=Xvec(A)+ξ,y,ξRN.\mathbf y^*=\mathbf X\operatorname{vec}(\mathbf A^*)+\boldsymbol\xi, \qquad \mathbf y^*,\boldsymbol\xi\in\mathbb R^N.

Here vec(A)\operatorname{vec}(\mathbf A) stacks the columns of A\mathbf A one beneath another to form a vector in Rn1n2\mathbb R^{n_1n_2}. and XRN×n1n2\mathbf X\in\mathbb R^{N\times n_1n_2} is the measurement matrix. We optimize the matrix A\mathbf A through

f(A)=12Xvec(A)y22+βA,f(\mathbf A) = \frac12\|\mathbf X\operatorname{vec}(\mathbf A)-\mathbf y^*\|_2^2 +\beta\|\mathbf A\|_*,

where The nuclear norm sums the singular values. It is the matrix analogue of the 1\ell_1 norm and is the standard convex surrogate for rank.. If

vec(A^):=(XX)Xy,\operatorname{vec}(\widehat{\mathbf A}) := (\mathbf X^\top\mathbf X)^\dagger\mathbf X^\top\mathbf y^*,

then, from the near-zero initialization used in our experiment, the early phase approaches the least-squares fit A^\widehat{\mathbf A}, while the late nuclear-norm dynamics favor a low-rank solution. Under the recovery conditions in the paper, a best iterate has nuclear-norm recovery error of order η+αβ+ξ2\eta+\alpha\beta+\|\boldsymbol\xi\|_2 once the late-phase horizon is of order

A(t1)AF2αβη.\frac{\|\mathbf A^{(t_1)}-\mathbf A^*\|_F^2} {\alpha\beta\eta}.

In the noiseless scaling experiment, again let tplatt_{\mathrm{plat}} denote the selected plateau checkpoint. We observe

A(tplat)Aαβ,tplatA^A22αβ,\|\mathbf A^{(t_{\mathrm{plat}})}-\mathbf A^*\|_* \propto\alpha\beta, \qquad t_{\mathrm{plat}} \propto \frac{\|\widehat{\mathbf A}-\mathbf A^*\|_{2\to2}}{\alpha\beta},

where The spectral norm is the largest singular value, equivalently the largest Euclidean stretching factor of the matrix.. If A=UΣV\mathbf A=\mathbf U\boldsymbol\Sigma\mathbf V^\top is a For a rank-rr matrix, the thin SVD keeps only the rr positive singular values and their singular vectors: URn1×r\mathbf U\in\mathbb R^{n_1\times r}, ΣRr×r\boldsymbol\Sigma\in\mathbb R^{r\times r}, and VRn2×r\mathbf V\in\mathbb R^{n_2\times r}., the experiment selects the At A=UΣV\mathbf A=\mathbf U\boldsymbol\Sigma\mathbf V^\top, the nuclear-norm subdifferential contains UV+W\mathbf U\mathbf V^\top+\mathbf W with orthogonality and norm constraints on W\mathbf W. Choosing W=0\mathbf W=0 gives the canonical element.. A pure regularization step decreases each positive singular value by αβ\alpha\beta until discretization causes an O(αβ)\mathcal O(\alpha\beta) oscillation; the small loss gradient perturbs this picture.

We use Wedin’s theorem bounds the angle between singular subspaces of two nearby matrices in terms of the perturbation size divided by an appropriate singular-value gap. (Wedin, 1972) to control the variation of the singular vectors after memorization. When G(A)G(\mathbf A) becomes negligible compared with βH(A)\beta H(\mathbf A), the singular values decay on multiple scales: the smallest singular value converges toward zero first, followed by the next smallest, until A(t)A\|\mathbf A^{(t)}\|_*\approx\|\mathbf A^*\|_*. This process takes Θ(1/(αβ))\Theta(1/(\alpha\beta)) steps. The formal argument is given in the appendix of Notsawo et al. (2025).

Low-rank matrix-recovery time and nuclear-norm error as functions of alpha beta
Low-rank matrix completion shows the same scaling: the late-phase time is proportional to the spectral distance from the least-squares fit to the target, divided by αβ, and the nuclear-norm recovery error is proportional to αβ. The orange recovery error is normalized by √n, where n = n₁n₂, correcting the archived figure legend. Plateau checkpoints use the same empirical rule as in the sparse experiment.

Matrix sensing, completion, and data selection

This framework encompasses several matrix-factorization problems. In Matrix sensing observes general linear measurements Xi,A\langle\mathbf X_i,\mathbf A^*\rangle. Matrix completion is the special case in which each measurement reveals one entry of the matrix., one seeks A\mathbf A^* from measurement matrices {Xi}i=1N\{\mathbf X_i\}_{i=1}^N and observations

yi=tr(XiA).y_i^*=\operatorname{tr}(\mathbf X_i^\top\mathbf A^*).

In standard matrix completion, each measurement selects one entry: for one-hot row and column vectors xi(1)\mathbf x_i^{(1)} and xi(2)\mathbf x_i^{(2)},

yi=xi(1)Axi(2).y_i^*=\mathbf x_i^{(1)\top}\mathbf A^*\mathbf x_i^{(2)}.

The recovery guarantees depend on the Leverage scores measure how strongly coordinate axes align with the leading row and column singular subspaces. High coherence means that a few entries carry disproportionate information; sampling those entries can be especially valuable in matrix completion. of the compact SVD A=UΣV\mathbf A^*=\mathbf U^*\boldsymbol\Sigma^*\mathbf V^{*\top}:

μi=n1rUei22,νj=n2rVej22\mu_i=\frac{n_1}{r}\|\mathbf U^{*\top}\mathbf e_i\|_2^2, \qquad \nu_j=\frac{n_2}{r}\|\mathbf V^{*\top}\mathbf e_j\|_2^2

measure how strongly each row and column aligns with the leading singular subspaces. For Nn1n2N\leq n_1n_2 and τ[0,1]\tau\in[0,1], we select the first τN\tau N entries with the largest values of μi+νj\mu_i+\nu_j, then sample the remaining (1τ)N(1-\tau)N entries uniformly from the rest. As τ1\tau\to1, performance improves: both the number of examples needed for generalization and the time needed to generalize decrease (Notsawo et al., 2025).

Matrix-completion training and recovery error for data-selection strengths from zero to one
Training error (solid) and recovery error (dashed) for N=70N=70. Increasing τ\tau allocates more samples to entries with large leverage scores and substantially accelerates recovery.

For compressed sensing, the direction is reversed: Measurements that are not aligned with the sparse coordinate basis mix information across coordinates. They reduce redundancy and make different sparse signals easier to distinguish with fewer observations. are beneficial, whereas high coherence between measurement vectors and the sparse basis is detrimental. Thus data selection can amplify or suppress grokking even when the model and optimization hyperparameters remain fixed.

Sparse and low-rank recovery make the point especially clean: generalization is controlled by the property that identifies the hidden object, not by a universal parameter norm.

Grokking without understanding

A late transition can still occur when the active bias is misaligned with the target. Return to sparse recovery, but replace 1\ell_1 regularization with weight decay:

f(a)=12Xay22+β2a22.f(\mathbf a) = \frac12\|\mathbf X\mathbf a-\mathbf y^*\|_2^2 +\frac\beta2\|\mathbf a\|_2^2.

For

0<α<2σmax(XX+βIn),0<\alpha< \frac{2}{\sigma_{\max}(\mathbf X^\top\mathbf X+\beta\mathbf I_n)},

gradient descent converges to the Ridge regression adds an 22\ell_2^2 penalty, making the normal-equation matrix invertible when β>0\beta>0 and shrinking coefficients toward zero.

a^β=(XX+βIn)1Xy.\widehat{\mathbf a}_\beta = (\mathbf X^\top\mathbf X+\beta\mathbf I_n)^{-1} \mathbf X^\top\mathbf y^*.

As β0\beta\to0, this approaches the minimum-Euclidean-norm least-squares solution. If N<nN<n, then

a^a22(InX(XX)X)a22.\|\widehat{\mathbf a}-\mathbf a^*\|_2^2 \geq \|\bigl(\mathbf I_n-\mathbf X^\top(\mathbf X\mathbf X^\top)^\dagger\mathbf X\bigr)\mathbf a^*\|_2^2.

In particular, if a\mathbf a^* has a non-zero component The measurements Xa\mathbf X\mathbf a depend only on the projection of a\mathbf a onto the row space of X\mathbf X. Any orthogonal component lies in the null space and is therefore invisible to the data., the minimum-Euclidean-norm solution cannot recover a\mathbf a^* perfectly; see Theorem 3.6 of Notsawo et al. (2025). With a large initialization, weight decay can nevertheless produce an abrupt late drop in a proxy error as the parameters move toward a^β\widehat{\mathbf a}_\beta.

Sparse-recovery training and recovery errors, Euclidean norm, and coefficient trajectories under large initialization and L2 regularization
Memorization occurs when the measurement residual becomes small near t1t_1, but the recovery error remains large. Much later, the Euclidean norm and coefficients undergo a sharp transition without converging to the sparse target: an instance of grokking without understanding.

We call this grokking without understanding. A sharp transition in training loss, parameter norm, or another proxy does not establish recovery of the intended rule. The generalization observable must measure what we actually want the model to learn.

The bias need not be an explicit norm

The same mechanism extends beyond an explicit penalty in the objective.

Depth as an implicit bias

In sparse recovery, let D2D\geq2 and parameterize the effective coefficient vector with u1,,uDRn\mathbf u_1,\ldots,\mathbf u_D\in\mathbb R^n as

a=u1uD,\mathbf a=\mathbf u_1\odot\cdots\odot\mathbf u_D,

where \odot denotes the coordinatewise product. The predictions remain Xa\mathbf X\mathbf a, but gradient descent acts on the factors u1,,uD\mathbf u_1,\ldots,\mathbf u_D. Depth introduces overparameterization without changing the linear function class. With small initialization, the updates create an Although the predictor is linear in the effective coefficient a\mathbf a, gradient descent occurs in factor space. Mapping those updates back to a\mathbf a produces a state-dependent scaling of coordinates that preferentially amplifies sparse solutions. that promotes sparsity and can recover the target without an explicit 1\ell_1 term. Unlike the shallow case D=1D=1, depth can therefore replace 1\ell_1 regularization and permit recovery with fewer measurements.

Sparse-recovery error as a function of the number of measurements for depths one, two, and three
Recovery error as a function of the number of measurements NN. Greater depth creates a stronger implicit sparsity bias and improves recovery in the low-data regime.

For D2D\geq2, a large initialization combined with small non-zero 2\ell_2 regularization can result in grokking, unlike the shallow case, where we observe grokking without understanding (Notsawo et al., 2025). Related work has established that depth can also produce an implicit low-rank bias in matrix factorization (Gunasekar et al., 2017; Arora et al., 2019; Gidel et al., 2019; Gissin et al., 2019; Razin and Cohen, 2020; Li et al., 2020).

Data selection as an implicit bias

As the matrix-completion experiment above shows, sampling entries with high leverage scores can lower the sample requirement and shorten recovery time. In compressed sensing, choosing measurements incoherent with the sparsifying basis plays the same role. The data determine whether the desired low-complexity solution is identifiable and how quickly it can be reached.

Nonlinear models

The same mechanism appears beyond linear inverse problems.

Algorithmic data

We consider addition modulo p=97p=97 with a 40%40\% training fraction, as described in What Is Grokking?. For the MLP, 1\ell_1 and nuclear-norm regularization have the same qualitative effect on grokking as 2\ell_2 regularization: larger values of αβ\alpha\beta lead to faster grokking. The earlier norm-comparison figure varies β\beta across all three regularizers; the following figure also varies the learning rate for 1\ell_1 regularization.

Training and test accuracy on modular addition under L1 regularization for combinations of learning rate and regularization strength
Training accuracy (solid) and test accuracy (dashed) for 1\ell_1-regularized modular addition. Across learning rates α\alpha, increasing β\beta shortens the delay between memorization and generalization.

Nonlinear teacher–student model

Consider a ReLU teacher

y(x)=Bϕ(Ax)\mathbf y^*(\mathbf x)=\mathbf B^*\phi(\mathbf A^*\mathbf x)

from Rd\mathbb R^d to Rc\mathbb R^c with rr hidden neurons, where ARr×d\mathbf A^*\in\mathbb R^{r\times d}, BRc×r\mathbf B^*\in\mathbb R^{c\times r}, and ϕ(z)=max(z,0)\phi(z)=\max(z,0). We draw NN input-output pairs independently and optimize a student yθ(x)=Bϕ(Ax)\mathbf y_\theta(\mathbf x)=\mathbf B\phi(\mathbf A\mathbf x) from a random normal initialization using

g(θ)=12Ni=1Nyθ(xi)y(xi)22.g(\theta) = \frac{1}{2N}\sum_{i=1}^N \|\mathbf y_\theta(\mathbf x_i)-\mathbf y^*(\mathbf x_i)\|_2^2.

For 1\ell_1, 2\ell_2, and nuclear-norm regularization, the smaller αβ\alpha\beta is, the longer the delay between memorization and generalization. The following representative experiment uses (d,r,c,N)=(100,500,2,102)(d,r,c,N)=(100,500,2,10^2) and 1\ell_1 regularization.

Training and test losses for a two-layer ReLU teacher-student model under L1 regularization
Training loss (solid) and test loss (dashed) for the two-layer ReLU teacher–student model. Each panel fixes α\alpha and varies β\beta; small αβ\alpha\beta produces a longer generalization delay.

Domain-specific regularization

PINNs use automatic differentiation to evaluate differential-equation residuals and add those residuals to the training objective, encouraging predictions that satisfy the governing equations. incorporate residuals of differential equations into the loss so that solutions remain consistent with physical laws (Raissi et al., 2019). Sobolev training matches derivatives of the target as well as function values. It therefore controls local behavior that ordinary pointwise supervision may leave unconstrained. extends this idea by matching derivatives of the target function (Czarnecki et al., 2017).

For a student Fθ\mathbf F_\theta learning from a teacher F\mathbf F_* on inputs x1,,xN\mathbf x_1,\ldots,\mathbf x_N, a first-order Sobolev penalty is

h(θ)=1Ni=1NxFθ(xi)xF(xi)F2h(\theta) = \frac1N\sum_{i=1}^N \|\nabla_{\mathbf x}\mathbf F_\theta(\mathbf x_i) -\nabla_{\mathbf x}\mathbf F_*(\mathbf x_i)\|_F^2

It favors agreement of input derivatives; For a vector-valued function, the input Jacobian is the matrix whose (i,j)(i,j) entry is Fi/xj\partial F_i/\partial x_j. It describes the local sensitivity of every output to every input coordinate.. Here the relevant property is Jacobian agreement, rather than the size of the parameter vector.

Training and test losses for a two-layer ReLU teacher-student model with first-order Sobolev regularization
Training loss (solid) and test loss (dashed) under first-order Sobolev regularization. Larger values of αβ\alpha\beta again lead to faster grokking, now through a domain-specific derivative-matching bias.

The common structure is simple: the fast dynamics fit the observations; the slow bias selects one fitting solution. Grokking occurs when that selection process eventually favors a solution that generalizes.

References

Cite this post

If you would like to cite this post, you can use the following BibTeX entry:

@misc{tikengnotsawo2025grokkingbeyondl2,
  author = {Tikeng Notsawo, Pascal Jr.},
  title = {{Grokking Beyond the Euclidean Norm of Model Parameters}},
  year = {2025},
  month = jul,
  url = {https://tikquuss.github.io/blog/grokking-beyond-l2/},
  note = {Blog post}
}