arXiv is now an independent nonprofit! Learn more
License: CC BY 4.0
arXiv:2502.21009v2 [stat.ML] 26 May 2025

Position: Solve Layerwise Linear Models First to Understand Neural Dynamical Phenomena (Neural Collapse, Emergence, Lazy/Rich Regime, and Grokking)

Yoonsoo Nam Affiliation: Department of Theoretical Physics, University of Oxford, Oxfordshire, United Kingdom    Seok Hyeong Lee Affiliation: Center for Quantum Structures in Modules and Spaces, Seoul National University, Seoul, South Korea    Clémentine C J Dominé Affiliation: Gatsby Computational Neuroscience Unit, University College London, London, United Kingdom    Yeachan Park Affiliation: Department of Mathematics and Statistics, Sejong University, Seoul, South Korea    Charles London Affiliation: Department of Computer Science, University of Oxford, Oxfordshire, United Kingdom    Wonyl Choi Affiliation: Department of Computer Science, Boston University, Massachusetts, United States of America    Niclas Göring Affiliation: Department of Theoretical Physics, University of Oxford, Oxfordshire, United Kingdom    Seungjai Lee Correspondence to: seungjai.lee@inu.ac.kr Affiliation: Department of Mathematics, Incheon National University, Incheon, South Korea
Abstract

In physics, complex systems are often simplified into minimal, solvable models that retain only the core principles. In machine learning, layerwise linear models (e.g., linear neural networks) act as simplified representations of neural network dynamics. These models follow the dynamical feedback principle, which describes how layers mutually govern and amplify each other’s evolution. This principle extends beyond the simplified models, successfully explaining a wide range of dynamical phenomena in deep neural networks, including neural collapse, emergence, lazy and rich regimes, and grokking. In this position paper, we call for the use of layerwise linear models retaining the core principles of neural dynamical phenomena to accelerate the science of deep learning.

Keywords: 
Machine Learning, ICML
††affiliationnotice: Equal contribution

1 Introduction

Physicists often build intuition about complex natural phenomena by abstracting away intricate details—for instance, modeling a cow as a sphere (Kaiser, 2014), linearizing pendulum motion (Huygens, 1966), or using simplified frameworks like Hopfield networks to explore associative memory and network dynamics (Hopfield, 2007). These abstractions enable tractable analysis while preserving the core principles of the system. A good model not only allows analytical solutions but also captures the underlying principle, often providing insights and extending their utility beyond their formal limits.

Deep neural networks (DNNs) are complex dynamical systems, with non-linear activations (e.g., ReLU) posing major challenges in analysis. Without non-linear activations, DNNs become layerwise linear models (e.g., linear neural networks), often underappreciated as simple product of matrices for their lack of expressivity. However, the dynamics of layerwise linear models are non-linear (Saxe et al., 2014), allowing them to explain key DNN phenomena such as emergence (Nam et al., 2024) observed in large language models (Brown et al., 2020), neural collapse (Mixon et al., 2020) observed in image classification tasks (Papyan et al., 2020), lazy/rich regimes (Dominé et al., 2025) observed in extreme limits (Jacot et al., 2018; Chizat et al., 2019), and grokking (Kunin et al., 2024) observed in algorithmic tasks (Power et al., 2022), and more as dynamical phenomena of layerwise structure.

Contrary to most non-linear models, the dynamics of layerwise linear models, under suitable assumptions, are exactly solvable (e.g., Baldi & Hornik (1989); Saxe et al. (2014); and Braun et al. (2022)). These solutions allow mathematical interpretations that extend beyond the limits of the models. In this paper, we propose the dynamical feedback principle (Section 3) as a unified principle for understanding layerwise linear models, and review how they accurately represent DNN dynamics to argue our position:

Position: We call for new studies to prioritize the dynamics of layerwise structure as the key feature over the non-linear activations, until its limits are fully explored.

Figure 1: Paper outline For a systematic presentation of various works on layerwise linear models, we begin the section by building intuition on how the key principle (green) behaves under a condition (yellow). We then formalize this intuition as a key property (blue) using a solvable layerwise linear model. Finally, we discuss how this property from the layerwise linear model extends to describe an empirical phenomenon in DNNs (red).

Layerwise linear models help identify whether the dynamics of layerwise structure drives a phenomenon, demystifying perceptions of the complex roles of datasets, logic, and non-linear activations. Their solvability enables a theoretical approach, while their simplicity makes them accessible to a broader audience, accelerating the science of deep learning.

1.1 Contributions

  • •

    We propose dynamical feedback principle (Section 3) as a novel unifying principle for understanding seemingly uncorrelated DNN phenomena (neural collapse, emergence, lazy/rich regimes, and grokking) as consequences of dynamics under layerwise structure.

  • •

    We review solvable layerwise linear models (Sections 4, 5, 6 and 7) and discuss their significance through the principle and intuitive derivations.

  • •

    We solve a toy model that offers intuitive insight on various lazy regimes and methods to induce rich regimes (Section 7).

1.2 Paper outline

Figure 1 illustrates the paper outline. In Section 3, we introduce the dynamical feedback principle, which unifies the explanation of seemingly unrelated DNN phenomena.

In Sections 4, 5, 6 and 7, we first demonstrate how the principle applies under specific conditions, then formalize the intuition using a solvable layerwise linear model, prioritizing intuitive derivations over rigor found in the references. Finally, we explore how the principle extends beyond layerwise linear models to explain phenomena in practical DNNs.

In the discussion, we argue that solvable layerwise linear models effectively capture the dynamics of DNN through the feedback principle, making them essential for advancing DNN theory, hence our position. We conclude with promising research directions. For a glossary of notations and terms (emphasized in italic), see Appendix A.

2 Setup

Throughout the paper, unless explicitly stated, we assume the input features x∈ℝdx\in\mathbb{R}^{d} to be dd dimensional independent zero-mean Gaussian random variables. We only consider gradient flow (GF) and assume that the training dataset follows a certain probability distribution for analytic simplicity.

Target function We assume a realizable target function f∗f^{*} with target scales Si∈ℝS_{i}\in\mathbb{R} for i=1,…,di=1,\dots,d:

f∗​(x)=∑i=1dxi​Si.\displaystyle f^{*}(x)=\sum_{i=1}^{d}x_{i}S_{i}. (1)

Loss We consider the mean square error (MSE) loss

ℒ:=12​𝐄​[(f∗​(x)−f⁡(x))2].\mathcal{L}:=\frac{1}{2}\mathbf{E}\left[\left(f^{*}(x)-f(x)\right)^{2}\right]. (2)

Models We define layerwise linear models as 2-layer models whose outputs are multilinear with respect to any layers of parameters. Examples include the variants of linear neural networks, illustrated in Figure 2:

fa,b(d​i​a​g)​(x)\displaystyle f^{(diag)}_{a,b}(x) =∑i=1dxi​ai​bi,a,b∈ℝd,\displaystyle=\sum_{i=1}^{d}x_{i}a_{i}b_{i},\quad a,b\in\mathbb{R}^{d}, (3)
fW1,W2(l​n​n)​(x)\displaystyle f^{(lnn)}_{W_{1},W_{2}}(x) =xT​W1​W2,W1∈ℝd×p,W2∈ℝp×c.\displaystyle=x^{T}W_{1}W_{2},\quad W_{1}\in\mathbb{R}^{d\times p},W_{2}\in\mathbb{R}^{p\times c}. (4)

A linear model with no hidden layer is used as a base model for comparison:

fθ(l​i​n)​(x)\displaystyle f^{(lin)}_{\theta}(x) =xT​θ,θ∈ℝd.\displaystyle=x^{T}\theta,\quad\theta\in\mathbb{R}^{d}. (5)

Like linear models, layerwise linear models do not require linearity with the input features xix_{i}, though we use them for demonstrative purposes. See Appendix B for details.

Figure 2: Layerwise linear models. Layerwise linear models (Appendix B) include, but are not limited to, (a): diagonal linear neural networks (Equation 3) and (b): linear neural networks (Equation 4). The layerwise structure leads to distinct dynamics compared to linear models (Equation 5).

3 The Dynamical Feedback Principle

Dynamical feedback principle describes how the magnitude of one layer mutually scales the rate of change in other layers (Figure 1). The dynamical feedback principle arises from the gradient descent dynamics under layerwise structure. For example, the GF equation of diagonal linear neural network is

d​aid​t=−bi​𝐄​[xi2]​(ai​bi−Si),d​bid​t=−ai​𝐄​[xi2]​(ai​bi−Si).\frac{da_{i}}{dt}=-b_{i}\mathbf{E}[x_{i}^{2}](a_{i}b_{i}-S_{i}),\quad\frac{db_{i}}{dt}=-a_{i}\mathbf{E}[x_{i}^{2}](a_{i}b_{i}-S_{i}). (6)

The product of parameters (i.e., layerwise structure) creates an amplifying dynamics: the size of aia_{i} governs the rate of change for bib_{i}, and vice versa, yielding a dynamical feedback. To highlight its significance, we compare the gradient equation to that of the linear model:

d​θid​t=−𝐄⁡[xi2]​(θi−Si).\frac{d\theta_{i}}{dt}=-\mathbf{E}[x_{i}^{2}](\theta_{i}-S_{i}). (7)

In linear models, parameters evolve depending only on their distances to respective target scales (θi−Si\theta_{i}-S_{i}), lacking the feedback with other parameters. The following sections focus on exploring the consequences of feedback.

Conservation of magnitude difference

Because of the commutativity of products in Equation 3, we identify a conserved quantity in Equation 6 as

ai​dd​t​ai−bi​dd​t​bi=0⇒ai2−bi2=𝒞i,\displaystyle a_{i}\frac{d}{dt}a_{i}-b_{i}\frac{d}{dt}b_{i}=0\quad\Rightarrow\quad a_{i}^{2}-b_{i}^{2}=\mathcal{C}_{i}, (8)

where 𝒞i\mathcal{C}_{i} is determined at initialization. We can extend the argument for linear neural networks to show that W2​W2T−W1T​W1W_{2}W_{2}^{T}-W_{1}^{T}W_{1} is conserved (Appendix C).

4 From Amplifying Dynamics to Emergence

In Equation 6, when ai≈bia_{i}\approx b_{i}, the dynamical feedback exhibits rich-get-richer (poor-get-poorer) property: a larger (smaller) |ai||a_{i}| results in a faster (slower) evolution of bib_{i}, which amplifies (attenuates) in positive (negative) feedback. In this section, we formalize this property as sigmoidal growth (delayed saturation) of ai​bia_{i}b_{i} in diagonal linear neural networks, which explains the emergence – or sudden change in task or subtask performance – observed in large language models (Ganguli et al., 2022; Srivastava et al., 2023; Wei et al., 2022; Chen et al., 2023).

4.1 Sigmoidal dynamics and stage-like training

We consider dynamics of diagonal linear neural networks (Equation 6) with small and equal initialization; ai​(0)=bi​(0)a_{i}(0)=b_{i}(0) and 0<ai​(0)≪10<a_{i}(0)\ll 1. The dynamics decouples into dd independent modes, where each mode follows a sigmoidal saturation:

ai​(t)​bi​(t)/Si=11+(Siai​(0)​bi​(0)−1)​e−2​Si​𝐄​[xi2]​t.a_{i}(t)b_{i}(t)/S_{i}=\frac{1}{1+\left(\frac{S_{i}}{a_{i}(0)b_{i}(0)}-1\right)e^{-2S_{i}\mathbf{E}[x_{i}^{2}]t}}. (9)

This contrasts to the exponential saturation of modes in the linear model with θi​(0)=0\theta_{i}(0)=0 (Equation 7):

θi​(t)/Si=1−e−𝐄⁡[xi2]​t.\theta_{i}(t)/S_{i}=1-e^{-\mathbf{E}[x_{i}^{2}]t}. (10)

See Appendix C for the derivation of both models. For a general derivation when ai≠bia_{i}\neq b_{i}, see Appendix A of Saxe et al. (2014).

Figure 3 demonstrates the difference between the dynamics of two models. While a mode in linear models saturates immediately after initialization (Figure 3(a)), that of diagonal linear neural network saturates after a delay. The small value of ai​bia_{i}b_{i} delays the saturation as small aia_{i} downscales the gradient of bib_{i} and vice versa (feedback principle). After sufficient evolution, the feedback principle abruptly saturates ai​bia_{i}b_{i} (Figure 3(b)).

Figure 3: Dynamics of the linear model and the diagonal linear neural network. The colored lines show the saturation curves of modes with different variances for (a): the linear model (Equation 10) and (b): the diagonal linear neural network (Equation 9) with Si=1S_{i}=1. For the linear model, all θi\theta_{i}’s saturate from t=0t=0 only differing in the saturation speed. For the layerwise model, ai​bia_{i}b_{i}’s show delayed saturations depending on 𝐄⁡[xi2]\mathbf{E}[x^{2}_{i}], learning the modes in sequences.

Stage-like training

In Figure 3(b), the first mode (blue) saturates fully while the next mode remains negligible, contrasting with the concurrent saturation of modes in linear models (Figure 3(a)). The sequential learning of modes or the stage-like training occurs in layerwise models when saturation time scales (1/(Si​𝐄​[xi2])1/(S_{i}\mathbf{E}[x_{i}^{2}])) differ sufficiently; the sigmoidal dynamics (Equation 9) delays slower modes long enough for faster modes to fully saturate.

4.2 Application 1: Saddle-to-saddle learning

Saddle-to-saddle learning refers to sudden drops and plateaus of the loss during training (Jacot et al., 2022; Pesme & Flammarion, 2023; Atanasov et al., 2025). We can describe the DNN phenomenon with the stage-like training of diagonal linear neural network with varying Si​𝐄​[xi2]S_{i}\mathbf{E}[x_{i}^{2}]. A drop maps to the abrupt saturation of a feature, while a plateau to the delay before the saturation of the next feature.

4.3 Application 2: Emergence

Emergence is an empirical observation that larger languages models suddenly gain performance when using more data or parameters (Wei et al., 2022).11 1 Emergence differs from grokking in that it does not account for the gap between achieving prefect training and test accuracies. Emergence has been considered challenging to explain through “analysis of gradient-based training” (Arora & Goyal, 2023), and studies have been focused on defining basic skills and how they cumulate to a sudden improvement in more complex abilities (Arora & Goyal, 2023; Chen et al., 2023; Yu et al., 2024; Okawa et al., 2024).

Diagonal linear neural network with prebuilt skills

In Nam et al. (2024), the authors modeled emergence as a dynamical outcome of sigmoidal growth. They studied the multitask parity problem, consisting of parity tasks (skills) whose frequencies follow a power-law distribution. They used diagonal linear neural network with the input features (xix_{i} in Equation 3) replaced by the skill functions gk​(x)g_{k}(x):

f⁡(x)=∑k=1pak​bk​gk​(x),f∗​(x)=S​∑k=1p∗gk​(x).\displaystyle f(x)=\sum_{k=1}^{p}a_{k}b_{k}g_{k}(x),\quad\quad f^{*}(x)=S\sum_{k=1}^{p^{*}}g_{k}(x). (11)

The skill functions gk​(x)g_{k}(x) are prebuilt features that map the inputs to a scalar by calculating the spare parity function. The constants pp and p∗p^{*} are the number of skill functions in the model and target function, respectively. In their setup, the model learns the skills through sigmoidal dynamics (Equation 9), prioritizing the more frequent skills (with larger 𝐄​[gk2​(x)]\mathbf{E}[g_{k}^{2}(x)]) first — thus the time emergence.

Figure 4: Predicting emergence with layerwise linear model (Figure 1 from (Nam et al., 2024)). The skill strength ℛk=𝐄⁡[f⁡(x)​gk​(x)]/𝐄⁡[(gk​(x))2]\mathcal{R}_{k}=\mathbf{E}[f(x)g_{k}(x)]/\mathbf{E}[(g_{k}(x))^{2}] measures the linear correlation between the kthk^{\mathrm{th}} skill function and the learned function or how well the skill is learned. Each color represents a different skill. The solid lines show the theoretical layerwise model (Equation 11) calibrated on the first skill, while the dashed lines represent the empirical results of a 2-layer neural network trained on the multitask sparse parity problem.

The decoupled skills in the model induce decoupled dynamics: the kthk^{\mathrm{th}} skill is learned only if gk​(x)g_{k}(x) exists in the model (k≤pk\leq p) and a corresponding sample (from the kthk^{\mathrm{th}} skill) appears in the training set. This leads to abrupt shifts (emergence) in learning — for instance, the kthk^{\mathrm{th}} function is suddenly acquired as pp increases from k−1k-1 to kk. Similar discontinuities arise in the data, depending on the likelihood of encountering a sample from the kthk^{\mathrm{th}} skill. In Figure 4, the model (Equation 11) accurately captures the emergent dynamics in a 2-layer neural network (with ReLU activation) for time, data, and the number of parameters. See Appendix D or Nam et al. (2024) for details.

4.4 Application 3: Scaling laws

Scaling laws refer to how the performance of large language models scales as a power law with additional resources (e.g., compute, data, parameters) (Hestness et al., 2017; Kaplan et al., 2020). Michaud et al. (2023) proposed that scaling laws arise from the emergent learning of numerous subtasks or skills whose frequencies follow a power law. Consequently, Nam et al. (2024) predicted the scaling laws observed in 2-layer neural networks trained on multitask sparse parity problem with Equation 11.

Intuition

The authors of Nam et al.(2024) derived emergence and scaling laws (for time, data, and parameters), relying heavily on the a priori given skill functions gkg_{k} (Equation 11) and their decoupled dynamics. But why does a neural network — without any information on the skill functions or decoupled dynamics — show similar behavior? This behavior can be attributed to the layerwise structure and the power-law distribution of skill frequencies, which together induce stage-like training in neural networks, where skills are feature-learned on different time scales. This effectively decouples feature learning, allowing the network to distinguish features and justifying the use of prebuilt skill functions in Equation 11. See Appendix D or Nam et al. (2024) for a detailed discussion.

5 From Greedy (Low-Rank) Dynamics Toward Salient Features to Neural Collapse

In Section 4, we demonstrated that sigmoidal saturation (Equation 9) in diagonal linear neural networks prioritizes learning features that are more correlated (with larger Si​𝐄​[xi2]=𝐄⁡[xi​yi]S_{i}\mathbf{E}[x_{i}^{2}]=\mathbf{E}[x_{i}y_{i}]). In this section, by building on Saxe et al. (2014), we show how the preference toward correlated features leads to a low-rank bias (greedy dynamics) in linear neural networks. We then draw on Mixon et al. (2020) to explain neural collapse — the collapse of last-layer features into a low-rank structure —observed in vision classification tasks (Papyan et al., 2020).

5.1 Greedy dynamics

The dynamics of linear neural networks is challenging to solve in general. Assuming small initialization and whitened input (𝐄⁡[x​xT]=I\mathbf{E}[xx^{T}]=I), Saxe et al. (2014) and following works (Ji & Telgarsky, 2019; Arora et al., 2019a; Lampinen & Ganguli, 2019; Gidel et al., 2019; Tarmoun et al., 2021) solved the exact dynamics of linear neural networks. The dynamics decouples into cc independent modes similar to that of diagonal linear neural network (Appendix C):

αi2​(t)ρi=11+(ρiαi2​(0)−1)​e−2​ρi​t,\frac{\alpha_{i}^{2}(t)}{\rho_{i}}=\frac{1}{1+\left(\frac{\rho_{i}}{\alpha_{i}^{2}(0)}-1\right)e^{-2\rho_{i}t}}, (12)

where αi:=uiT​W1​W2​vi\alpha_{i}:=u_{i}^{T}W_{1}W_{2}v_{i}, and ui,ρi,viu_{i},\rho_{i},v_{i} are the ithi^{\mathrm{th}} left singular vector, singular value, and the right singular vector of the correlation matrix 𝐄⁡[x​f∗​(x)T]=U​P​V\mathbf{E}\left[xf^{*}(x)^{T}\right]=UPV, respectively.

Note the similarity between Equation 9 and Equation 12, where ai​bia_{i}b_{i} and SiS_{i} in Equation 9 are replaced by αi2\alpha_{i}^{2} and ρi\rho_{i} in Equation 12, respectively. Linear neural networks automatically identify the linear combination of input features most correlated (largest ρi\rho_{i}) with the target (salient features). As discussed in stage-like training, modes are learned sequentially based on the order of ρi\rho_{i} or their saliency. This bias toward salient features introduces a preference for minimum rank, as only target-relevant cc (the dimension of the output) modes are trained, even though W1W_{1} can reach a rank of min⁡(d,p)\min(d,p). We will refer to the tendency toward learning the most target-relevant features first as the greedy dynamics.

5.2 Application: Neural collapse

Neural collapse (NC) (Papyan et al., 2020) describes the phenomenon where last-layer features form a simplex equiangular tight frame (ETF) – orthogonal vectors projected at the complement of the global mean. For instance, last layer feature vectors of ResNet18 trained on CIFAR10 converge to 10 orthogonal vectors (99-simplex ETF), corresponding to the number of classes (Papyan et al., 2020). See Appendix E or (Papyan et al., 2020) for the formal definition.

Figure 5: Illustration of neural collapse. In NC, the last layer feature vectors (the post-activation of the penultimate layer), illustrated as colored dots, cluster by their class mean vector, illustrated as colored arrow, and form a simplex ETF structure (orthogonal vectors projected at the compliment of the global mean vector).

The NC gained attention as the last layer feature vectors occupied only cc dimensions out of pp dimensional feature space, where cc is the number of classes and pp is the width of the last layer. Mixon et al. 2020 and similar works (Fang et al., 2021; Han et al., 2022) studied the dynamics of NC through the unconstrained feature model (UFM). The UFM trains a product of two matrices where one matrix represents the features and the other matrix represents the last layer weights, a special case of linear neural networks. See also relevant works on matrix factorization (Arora et al., 2019b; Li et al., 2021).

Informal derivation of NC

We show a non-rigorous derivation of NC and discuss why feature vectors of linear neural network X​W1XW_{1}, where X∈ℝn×dX\in\mathbb{R}^{n\times d} is the input feature matrix for nn training datapoins, collapse into a rank cc matrix. For rigorous theorems, see Mixon et al. (2020) or Fang et al. (2021). First, we assume sufficiently small initialization such that the conserved quantity (Equation 8) is W1​(0)T​W1​(0)−W2​(0)​W2​(0)T≈0W_{1}(0)^{T}W_{1}(0)-W_{2}(0)W_{2}(0)^{T}\approx 0. After training,

X​W1​(∞)​W2​(∞)=Y,XW_{1}(\infty)W_{2}(\infty)=Y, (13)

where Y∈ℝn×cY\in\mathbb{R}^{n\times c} is the label matrix with one-hot vector as the labels, and Wi​(∞)W_{i}(\infty) the trained matrices. Since YY is a rank cc matrix, W2​(∞)W_{2}(\infty) is also rank cc. The small initialization condition W1T​W1−W2​W2T≈0W_{1}^{T}W_{1}-W_{2}W_{2}^{T}\approx 0 ensures that W1W_{1} and W2W_{2} have the same rank, resulting in the feature matrix X​W1XW_{1} having rank cc instead of min⁡(n,p)\min(n,p). The matrix X​W1XW_{1} collapses into cc orthogonal directions, with each direction trivially mapping to a class to satisfy Equation 13.

Intuition

Loosely speaking, W1T​W1−W2​W2T≈0W_{1}^{T}W_{1}-W_{2}W_{2}^{T}\approx 0 is analogous to the small initialization in Saxe et al. (2014).22 2 Large initialization can achieve W1T​W1−W2​W2T≈0W_{1}^{T}W_{1}-W_{2}W_{2}^{T}\approx 0 and similar dynamics (Braun et al., 2022; Dominé et al., 2025). From the dynamics perspective, the greedy dynamics of layerwise models (Equation 12) sends gradients toward only the relevant cc directions (modes), effectively limiting the rank of the feature matrix (X​W1XW_{1}).

Practical DNNs are often initialized with small weights and are expressive enough to fit the training set without using all layers. Because of the layerwise structure, we can expect the greedy dynamics toward minimal rank to approximately hold even with non-linear activations, resulting in NC.

Greedy dynamics and depth

In deeper networks, the additional parameter products intensify amplifying dynamics, sharpening sigmoidal saturation into a Heaviside-like step functions, and widening the gap between more and less correlated features. Under mild assumptions, such models admit analytic solutions (Saxe et al., 2014; Lyu & Zhu, 2023; Súkeník et al., 2023; Kunin et al., 2024), revealing biases toward L1L_{1}-norm solutions and stronger reliance on the network’s initial representation. The analysis also offers an explanation for the Lottery Ticket Hypothesis (Frankle & Carbin, 2019) where most parameters can be pruned with minimal performance loss.

6 From Layer Imbalance to Lazy/Rich Regimes

So far, we assumed that layers have similar magnitudes (ai≈bia_{i}\approx b_{i}), where the feedback principle creates positive or negative feedback on their change. However, for heavily imbalanced layers (e.g., ai≫1≫bia_{i}\gg 1\gg b_{i}), the heavier layer receives negligible gradients, remaining nearly fixed and disrupting nonlinear reinforcement between layers. In this section, we formalize the role of layer imbalance in linear neural networks and review Kunin et al. (2024) to show how layer imbalance can control lazy/rich regimes (Chizat et al., 2019; Dominé et al., 2025) — a linear/non-linear dynamics — and grokking (Power et al., 2022) — a delayed generalization — in neural networks.

6.1 λ\lambda-balanced assumption

Deriving explicit dynamics for linear neural networks with general initialization is challenging. However, we can formalize the intuition of layer imbalance as a solvable model under the following condition (Fukumizu, 2000; Arora et al., 2018; Braun et al., 2022; Dominé et al., 2025; Kunin et al., 2024; Varre et al., 2024):

W2​W2T−W1T​W1=λ​I,\displaystyle W_{2}W_{2}^{T}-W_{1}^{T}W_{1}=\lambda I, (14)

where II is an identity matrix. Recent analytical models (Dominé et al., 2025; Kunin et al., 2024; Tu et al., 2024; Xu & Ziyin, 2024) solved the exact dynamics for a square (d=cd=c) linear neural network satisfying Equation 14 and confirmed the intuition on layer imbalance. They showed that smaller |λ||\lambda| (balanced layers) leads to nonlinear dynamics similar to greedy dynamics even with large weight initialization, while larger |λ||\lambda| (imbalanced layers) results in linear dynamics where only the lighter layer is trained (Figure 6(a)). For details and their relationship to the architecture, see Appendix F.

6.2 Application 1: Target learning a layer with layer imbalance

Lazy regimes (Chizat et al., 2019; Woodworth et al., 2020; Azulay et al., 2021) refer to when neural networks shows a linear dynamics (Equation 7) while rich regime refers to a sufficient deviation from it (e.g., non-linear dynamics of Equation 6).

In 2-layer linear neural networks, learning only W1W_{1} or W2W_{2} through layer imbalance results in linear dynamics (lazy). In 2-layer neural networks, the non-linear activations (e.g., ReLU) breaks the symmetry between layers: updating only the last layer results in linear dynamics, whereas updating only the first layer can facilitate feature learning. Kunin et al. (2024) demonstrated that the upstream initialization — heavier later layers — promotes the learning in the earlier layers of convolutional neural networks and improves their interpretability and feature learning.

Refer to caption
(a) Layer Imbalance
Refer to caption
(b) Weight-to-target Scale
Figure 6: Two ways to get lazy dynamics. Figures show the changes in NTK (measure of non-linear dynamics) of linear neural network trained on randomized regression. (a): In Section 6, when Equation 14 holds, layer imbalance governs the transition between rich (red) and lazy (blue) dynamics. (b): In Section 7, when Equation 14 does not hold, larger weight-to-target ratio pushes the dynamics toward lazy regime, although layer imbalance still has an effect. For details of the experiment, see Appendix F.

6.3 Application 2: Controlling grokking with layer imbalance

Grokking (Power et al., 2022) refers to a delayed generalization. Grokking was considered as an artifact of algorithmic dataset, but recent studies (Kumar et al., 2024; Lyu et al., 2024; Kunin et al., 2024) showed that grokking is a transition from a lazy overfitting regime to a rich generalizing regime. See Appendix G for details. Kunin et al. (2024) used upstream initialization to focus learning on earlier layers, reducing the generalization delay in a transformer trained on a modular arithmetic task. See Appendix F or Kunin et al. (2024) for details.

Intuition

The dynamical feedback principle, valid even with non-linear activations, enables layer imbalance to control which layer is trained significantly. Thus, the layer imbalance can control lazy/rich regimes and grokking.

7 From weight-to-Target Ratio to Grokking

As discussed in Section 6, sufficient layer imbalance can mitigate feedback effects (Figure 6(a)). At the same time, Equation 6 suggests that mitigation can also arise when ai​(0)​bi​(0)a_{i}(0)b_{i}(0) closely matches SiS_{i}, allowing dynamics to complete before feedback takes effect (Figure 6(b)). In this section, we use linear neural networks to formalize this intuition through the weight-to-target ratio that can explain two lazy regime methods — NTK initialization (Jacot et al., 2020) and target downscaling (Chizat et al., 2019; Geiger et al., 2020) — within a single framework. We then empirically show that reducing the weight-to-target ratio eliminates the delay in grokking, accelerating generalization.

Figure 7: Illustration of rich vs. lazy dynamics. The colored arrows represent features (e.g., ai​bi​xia_{i}b_{i}x_{i} in Equation 15), the dotted arrows represent their gradients, and the black dashed arrow represents the learned function in function space. (a): With smaller initialization and larger SS, amplifying dynamics reinforce the growth of the aligned feature (larger parameters lead to faster growth) while mitigating the reduction of the anti-aligned feature (smaller parameters lead to slower decay), resulting in the aligned feature to dominate. (b): With a smaller target scale (or larger initialization), minimal adjustments per feature are sufficient to fit the target (lazy).(c): Under the NTK initialization with numerous features, gradients toward the target are distributed across the features, resulting in negligible movement for each feature to fit the target (lazy). See Appendix B for details of the illustration.
(a) Default
(b) Weight Downscaling
(c) Target Upscaling
(d) Input Downscaling
(e) Output Downscaling
Figure 8: Removing (accelerating) grokking in a Multilayer Perceptron (MLP). A 4-layer tanh MLP with large weight initialization, trained on 1000 MNIST samples, exhibits grokking (a). All techniques that reduce the weight-to-target ratio Σ0/S\Sigma_{0}/S (b–e), described in Section 7, place the model in the rich regime and eliminate the generalization delay. See Section G.3 for setup details.

7.1 Toy model for NTK initialization and target downscaling

We assume a 2-layer pp-wide linear neural network with scalar input xx and scalar output (d=c=1d=c=1):

f⁡(x)=xZ​∑i=1pai​bi,f∗​(x)=x​S,\displaystyle f(x)=\frac{x}{Z}\sum_{i=1}^{p}a_{i}b_{i},\quad f^{*}(x)=xS, (15)

where x∈ℝx\in\mathbb{R}, S>0S>0, and Z∈ℝZ\in\mathbb{R} is a normalization or output rescaling constant. In Appendix H, we solve the exact dynamics of Equation 15 for any initialization (e.g., Gaussian distribution). For simplicity, we demonstrate a special case where ai​(0)a_{i}(0) and bi​(0)b_{i}(0) are initialized from {−1,1}\{-1,1\} with equal probabilities.

The dynamics can be decomposed into two modes: the aligned mode ℐ+={i:ai​(0)​bi​(0)​S>0}\mathcal{I}_{+}=\{i:a_{i}(0)b_{i}(0)S>0\}, and the anti-aligned mode ℐ−={i:ai​(0)​bi​(0)​S<0}\mathcal{I}_{-}=\{i:a_{i}(0)b_{i}(0)S<0\}, where i∈{1,⋯,p}i\in\{1,\cdots,p\}. This gives

∑i∈ℐ±d​ai2d​t\displaystyle\sum_{i\in\mathcal{I}_{\pm}}\frac{da_{i}^{2}}{dt} =∓2Z(θ−S)∑i∈ℐ±ai2,\displaystyle=\mp\frac{2}{Z}(\theta-S)\sum_{i\in\mathcal{I}_{\pm}}a_{i}^{2},

where we used the conserved quantity ai2−bi2=0a_{i}^{2}-b_{i}^{2}=0 and expressed θ:=Z−1​∑i=1pai​bi\theta:=Z^{-1}\sum_{i=1}^{p}a_{i}b_{i} so that f⁡(x)=x​θf(x)=x\theta. Letting Δ​θ:=Z−1​(∑i∈ℐ+ai​bi−∑j∈ℐ−aj​bj)\Delta\theta:=Z^{-1}\left(\sum_{i\in\mathcal{I}_{+}}a_{i}b_{i}-\sum_{j\in\mathcal{I}_{-}}a_{j}b_{j}\right), the above equations can be rearranged into

d​θd​t\displaystyle\frac{d\theta}{dt} =−2​Δ​θZ​(θ−S),\displaystyle=-2\frac{\Delta\theta}{Z}(\theta-S), (16)
d⁡(Δ​θ)d​t\displaystyle\frac{d(\Delta\theta)}{dt} =−2​θZ​(θ−S).\displaystyle=-2\frac{\theta}{Z}(\theta-S). (17)

If the right hand side of Equation 17 is 0 or Δ​θ\Delta\theta is constant, Equation 16 reduces to linear dynamics (Equation 7). Thus, variations in Δ​θ\Delta\theta reflect the differences in the learning speed of aligned and anti-aligned modes. In the rich (greedy) setup, the aligned mode greedily saturate before the anti-aligned mode (Figure 7(a)), while in the lazy (NTK initialization and target downscale) setup, both modes evolve infinitesimally.

Target downscaling

Target downscaling assumes Z=1Z=1, S→0S\rightarrow 0, and θ⁡(0)=0\theta(0)=0 (or pp even). Then d​Δ​θd​t≈0\frac{d\Delta\theta}{dt}\approx 0 as both θ\theta and SS are close to 00. In this case, all features barely need to move to fit the target (Figure 7(b)), avoiding greedy dynamics where a few features dominate. For more rigorous arguments, see Chizat et al. (2019).

NTK initialization

The NTK limit requires p→∞p\rightarrow\infty with Z=pZ=\sqrt{p}. Then Δ​θ/Z=𝒪⁡(1)\Delta\theta/Z=\mathcal{O}(1) is fixed with d​Δ​θd​t≈0\frac{d\Delta\theta}{dt}\approx 0 as both θ\theta and SS are of 𝒪⁡(1)\mathcal{O}(1) as p→∞p\to\infty. Intuitively, Δ​θ\Delta\theta is fixed because the dynamics spread the required movement θ−S=𝒪⁡(1)\theta-S=\mathcal{O}(1) among pp features, resulting in minimal change for individual features. To be specific, each feature moves 𝒪(p−1/2)\mathcal{O}(p^{-1/2}), and the collective change of pp features sums to 𝒪⁡(1)\mathcal{O}(1) change in θ\theta. See Figure 7(c) for illustration and Luo et al. (2021) for more rigorous arguments.

General initialization

In Appendix H, we solve the exact dynamics of Equation 15 on general initialization of aa and bb (Theorem 3). The analogue of Δ​θ\Delta\theta or the deviation among the features are captured in the following quantity

γ+=S+Σ02−𝒮02+S2Σ0+𝒮0,\gamma_{+}=\frac{S+\sqrt{\Sigma_{0}^{2}-\mathcal{S}_{0}^{2}+S^{2}}}{\Sigma_{0}+\mathcal{S}_{0}},

where

𝒮0\displaystyle\mathcal{S}_{0} =∑i=1pai​(0)​bi​(0)Z,Σ0=∑i=1pai​(0)2+bi​(0)22​Z.\displaystyle=\sum_{i=1}^{p}\frac{a_{i}(0)b_{i}(0)}{Z},\quad\Sigma_{0}=\sum_{i=1}^{p}\frac{a_{i}(0)^{2}+b_{i}(0)^{2}}{2Z}.

The constant γ+\gamma_{+}, loosely speaking, determines how aia_{i} and bib_{i} scale with their initial values. Explicitly, the final limiting value of ai​(∞)​bi​(∞)a_{i}(\infty)b_{i}(\infty) is given as

(ai​(0)+bi​(0)2)2​γ+−(ai​(0)−bi​(0)2)2​γ+−1.\left(\frac{a_{i}(0)+b_{i}(0)}{2}\right)^{2}\gamma_{+}-\left(\frac{a_{i}(0)-b_{i}(0)}{2}\right)^{2}\gamma_{+}^{-1}.

For S>S0S>S_{0}, a large γ+\gamma_{+} indicates a non-trivial changes in parameters with greater difference in contributions between more and less aligned features — the rich dynamics. However, γ+≈1\gamma_{+}\approx 1 implies trivial dynamics with negligible changes in aia_{i} and bib_{i}, resulting in lazy dynamics. See Appendix H for further discussion.

Note that the ratio between SS (target scale) and Σ0\Sigma_{0} (norm at initialization) determines γ+\gamma_{+} (Remark 5). The small initialization in Sections 4 and 5 maps to small Σ0/S\Sigma_{0}/S, while the NTK initialization (by infinite width) and target downscaling (by small SS) map to large Σ0/S\Sigma_{0}/S.

7.2 Application: Controlling grokking with weight-to-target ratio

As discussed in Section 6, grokking is a transition from the lazy (overfitting) regime to the rich (generalizing) regime. Instead of waiting for the rich regime through overtraining, we can set the model in the rich regime from the initialization. Kumar et al. (2024) empirically verified that the methods to escape the lazy regime (decreasing Σ0/S\Sigma_{0}/S) in our toy model also eliminate the delay in grokking in various settings.

Several methods decrease Σ0/S\Sigma_{0}/S, which coincides with the transition out of the lazy regime: we can increase SS by upscaling the target or analogously downscaling the input features (as SS is the ratio between yy and xx). Alternatively, we can decrease Σ0\Sigma_{0} by downscaling initialization (Jeffares et al., 2024) or by downscaling the output of the function by increasing ZZ. See Figure 8 or Kumar et al. (2024) for empirical verification and a summary of methods that remove grokking.

Intuition

For greedy dynamics to emerge, the target must be sufficiently distant from initial output function for better and worse features (modes) to form a gap. Reducing the weight-to-target ratio widens this gap, promoting greedy dynamics that generalize. Based on this understanding, we can interpret grokking as a special case of a poorly initialized setup in the lazy regime.

8 Discussion

We demonstrated how the feedback principle unifies seemingly unrelated phenomena as consequences of dynamics of the layerwise structure. In Sections 4 and 5, we explained emergence, scaling laws, and neural collapse through the amplifying dynamics from feedback principle. In Sections 6 and 7, we linked the lazy regime and grokking to the lack of amplification. Throughout, layerwise linear models with specific conditions served as the formal bridge between phenomenon and intuition.

While our investigation mainly focused on layerwise linear models and four phenomena, similar models have also been applied to understand other phenomena, including various architectures (Pinson et al., 2023; Heij et al., 2007; Ahn et al., 2024; Katharopoulos et al., 2020), self supervised learning (Simon et al., 2023), modularization (Jarvis et al., 2023; Zhang et al., 2024a), specialization (Jarvis et al., 2024), fine-tunning (Lippl & Lindsey, 2024), generalization (Advani et al., 2020), and neural representation in neuroscience (Saxe et al., 2019; Richards et al., 2019; Nelli et al., 2023; Flesch et al., 2022; Farrell et al., 2023; Lippl et al., 2024).

9 Alternative Views

While layerwise linear models provide valuable insights, we acknowledge their limitations. These models are not used in practice, as DNNs lose expressiveness and performance without non-linearities. Some phenomena may require non-linear activations for explanation, making layerwise linear models too simple. However, given their success in explaining various phenomena — such as grokking which was initially thought to be linked to complicated nature of algorithmic datasets (Power et al., 2022) — the limits of layerwise linear models have yet to be fully explored.

10 Conclusion

The success of feedback principle in describing seemingly unrelated phenomena highlights that layerwise structure, even without non-linear activations, is a defining characteristic of DNNs. The simplicity and solvability of this approach in determining whether DNN phenomena result from dynamics make the approach highly appealing.

While layerwise linear models do not offer a complete theory of deep learning, they mark a critical milestone by clarifying how dynamical phenomena emerge from layerwise architecture. They lay the groundwork for deeper intuition and more comprehensive frameworks, helping avoid potential overcomplications. Thus, in this position paper, we argue that layerwise linear models must be solved first to understand a dynamical phenomenon in DNNs.

10.1 Call to action: Research directions

The role of depth

As explored in (Kunin et al., 2024), initialization can be controlled to concentrate feature learning in a few layers or distribute it across many. The former effectively reduces the depth, while the latter fully leverages it. When do these approaches differ in generalization, and why? If performances are similar, what is the true role of depth — purely dynamical or something more fundamental? See for example, Lyu & Zhu (2023) and Wang & Jacot (2024).

Can we incorporate non-linearity as perturbation?

Physicists often extend simple and solvable systems with perturbative methods to describe more complex systems (Sulejmanpasic & Ünsal, 2018). Since ReLU is partially linear, can we similarly integrate non-linearity into layerwise linear models as a perturbation? Several studies have laid the groundwork in this direction, highlighting the need for continued exploration (Saxe et al., 2022; Kunin et al., 2024; Zhang et al., 2024b).

The role of batch normalization

Batch normalization (Ioffe & Szegedy, 2015) has an interesting connection to the setup of layerwise linear models. For a given layer, it normalizes the features and introduces a learnable parameter — γ(k)\gamma^{(k)} in Ioffe & Szegedy (2015) — that scales the input. The Gaussianized inputs align with the whitening assumption in linear neural networks, while the scaling parameter increases similarity to diagonal linear neural networks. Further research in this direction may provide a connection between batch normalization and the rich regime.

The role of skip connections

Skip connections introduce varying degrees of multilinearity across layers, potentially inducing lazy dynamics in some and rich dynamics in others, thereby assigning distinct roles to each layer. A deeper dynamical understanding of skip connections may clarify the roles of layers at different depths.

The role of optimizers

The role of optimizers in shaping amplifying dynamics — such as whether they enhance or regulate greedy behavior — remains underexplored. While the inductive bias of stochastic gradient descent has been studied (Lyu & Zhu, 2023), the impact of second-order methods is largely unknown. A solvable model could provide clearer insights into the benefits and limitations of these methods in the context of rich dynamics.

For additional research directions, see Appendix I.

Acknowledgement

We thank Nayara Fonseca de Sá, Sewook Oh, Zhanxing Zhu, and Bochen Lyu for helpful discussions. SL was supported by the National Research Foundation of Korea (NRF) grants No.2020R1A5A1016126 and No.RS–2024-00462910. CD was supported by the Gatsby Charitable Foundation (GAT3755). This research was funded in whole, or in part, by the Wellcome Trust [216386/Z/19/Z]. YP is supported by the faculty research fund of Sejong University in 2025. CL was supported by the Engineering and Physical Sciences Research Council grant EP/W524311/1. This research was funded in whole or in part by the Wellcome Trust [216386/Z/19/Z]. For the purpose of Open Access, the author has applied a CC BY public copyright licence to any Author Accepted Manuscript version arising from this submission. The authors would also acknowledge support from His Majesty’s Government in the development of this research.

Impact Statement

This position paper advocates for research directions based on a dynamic principle and intuitively explains phenomena of DNN. Therefore, we assess no societal impact that requires attention.

References

  • Advani et al. (2020) Advani, M. S., Saxe, A. M., and Sompolinsky, H. High-dimensional dynamics of generalization error in neural networks. Neural Networks, 132:428–446, 2020.
  • Ahn et al. (2024) Ahn, K., Cheng, X., Song, M., Yun, C., Jadbabaie, A., and Sra, S. Linear attention is (maybe) all you need (to understand transformer optimization). In The Twelfth International Conference on Learning Representations, 2024.
  • Anwar et al. (2024) Anwar, U., Saparov, A., Rando, J., Paleka, D., Turpin, M., Hase, P., Lubana, E. S., Jenner, E., Casper, S., Sourbut, O., Edelman, B. L., Zhang, Z., Günther, M., Korinek, A., Hernandez-Orallo, J., Hammond, L., Bigelow, E. J., Pan, A., Langosco, L., Korbak, T., Zhang, H. C., Zhong, R., hEigeartaigh, S. O., Recchia, G., Corsi, G., Chan, A., Anderljung, M., Edwards, L., Petrov, A., de Witt, C. S., Motwani, S. R., Bengio, Y., Chen, D., Torr, P., Albanie, S., Maharaj, T., Foerster, J. N., Tramèr, F., He, H., Kasirzadeh, A., Choi, Y., and Krueger, D. Foundational challenges in assuring alignment and safety of large language models. Transactions on Machine Learning Research, 2024. ISSN 2835-8856.
  • Arora & Goyal (2023) Arora, S. and Goyal, A. A theory for emergence of complex skills in language models. arXiv preprint:2307.15936, 2023.
  • Arora et al. (2018) Arora, S., Ge, R., Neyshabur, B., and Zhang, Y. Stronger generalization bounds for deep nets via a compression approach. In Proceedings of the 35th International Conference on Machine Learning, volume 80 of Proceedings of Machine Learning Research, pp. 254–263. PMLR, 10–15 Jul 2018.
  • Arora et al. (2019a) Arora, S., Cohen, N., Golowich, N., and Hu, W. A convergence analysis of gradient descent for deep linear neural networks. In International Conference on Learning Representations, 2019a.
  • Arora et al. (2019b) Arora, S., Cohen, N., Hu, W., and Luo, Y. Implicit regularization in deep matrix factorization. Advances in Neural Information Processing Systems, 32, 2019b.
  • Atanasov et al. (2025) Atanasov, A., Meterez, A., Simon, J. B., and Pehlevan, C. The optimization landscape of SGD across the feature learning strength. In The Thirteenth International Conference on Learning Representations, 2025.
  • Azulay et al. (2021) Azulay, S., Moroshko, E., Nacson, M. S., Woodworth, B. E., Srebro, N., Globerson, A., and Soudry, D. On the implicit bias of initialization shape: Beyond infinitesimal mirror descent. In International Conference on Machine Learning, pp. 468–477. PMLR, 2021.
  • Bachmann et al. (2024) Bachmann, G., Anagnostidis, S., and Hofmann, T. Scaling mlps: A tale of inductive bias. Advances in Neural Information Processing Systems, 36, 2024.
  • Bahri et al. (2021) Bahri, Y., Dyer, E., Kaplan, J., Lee, J., and Sharma, U. Explaining neural scaling laws. arXiv preprint:2102.06701, 2021.
  • Baldi & Hornik (1989) Baldi, P. and Hornik, K. Neural networks and principal component analysis: Learning from examples without local minima. Neural networks, 2(1):53–58, 1989.
  • Bordelon et al. (2020) Bordelon, B., Canatar, A., and Pehlevan, C. Spectrum dependent learning curves in kernel regression and wide neural networks. In International Conference on Machine Learning, pp. 1024–1034. PMLR, 2020.
  • Bordelon et al. (2024) Bordelon, B., Atanasov, A., and Pehlevan, C. A dynamical model of neural scaling laws. In Forty-first International Conference on Machine Learning, 2024.
  • Braun et al. (2022) Braun, L., Dominé, C., Fitzgerald, J., and Saxe, A. Exact learning dynamics of deep linear networks with prior knowledge. Advances in Neural Information Processing Systems, 35:6615–6629, 2022.
  • Brown et al. (2020) Brown, T., Mann, B., Ryder, N., Subbiah, M., Kaplan, J. D., Dhariwal, P., Neelakantan, A., Shyam, P., Sastry, G., Askell, A., et al. Language models are few-shot learners. Advances in neural information processing systems, 33:1877–1901, 2020.
  • Cabannes et al. (2024) Cabannes, V., Dohmatob, E., and Bietti, A. Scaling laws for associative memories. In The Twelfth International Conference on Learning Representations, 2024.
  • Chen et al. (2023) Chen, M., Roberts, N., Bhatia, K., Wang, J., Zhang, C., Sala, F., and Ré, C. Skill-it! a data-driven skills framework for understanding and training language models. Advances in Neural Information Processing Systems, 36, 2023.
  • Chizat et al. (2019) Chizat, L., Oyallon, E., and Bach, F. On lazy training in differentiable programming. Advances in neural information processing systems, 32, 2019.
  • Cui et al. (2021) Cui, H., Loureiro, B., Krzakala, F., and Zdeborová, L. Generalization error rates in kernel regression: The crossover from the noiseless to noisy regime. Advances in Neural Information Processing Systems, 34:10131–10143, 2021.
  • Dominé et al. (2025) Dominé, C. C. J., Anguita, N., Proca, A. M., Braun, L., Kunin, D., Mediano, P. A. M., and Saxe, A. M. From lazy to rich: Exact learning dynamics in deep linear networks. In The Thirteenth International Conference on Learning Representations, 2025.
  • Fang et al. (2021) Fang, C., He, H., Long, Q., and Su, W. J. Layer-peeled model: Toward understanding well-trained deep neural networks. arXiv preprint arXiv:2101.12699, 4, 2021.
  • Farrell et al. (2023) Farrell, M., Recanatesi, S., and Shea-Brown, E. From lazy to rich to exclusive task representations in neural networks and neural codes. Current opinion in neurobiology, 83:102780, 2023.
  • Flesch et al. (2022) Flesch, T., Juechems, K., Dumbalska, T., Saxe, A., and Summerfield, C. Orthogonal representations for robust context-dependent task performance in brains and neural networks. Neuron, 110(7):1258–1270, 2022.
  • Fort et al. (2020) Fort, S., Dziugaite, G. K., Paul, M., Kharaghani, S., Roy, D. M., and Ganguli, S. Deep learning versus kernel learning: an empirical study of loss landscape geometry and the time evolution of the neural tangent kernel. Advances in Neural Information Processing Systems, 33:5850–5861, 2020.
  • Frankle & Carbin (2019) Frankle, J. and Carbin, M. The lottery ticket hypothesis: Finding sparse, trainable neural networks, 2019.
  • Fukumizu (2000) Fukumizu, K. Statistical active learning in multilayer perceptrons. IEEE Transactions on Neural Networks, 11(1):17–26, 2000.
  • Furuta et al. (2024) Furuta, H., Minegishi, G., Iwasawa, Y., and Matsuo, Y. Towards empirical interpretation of internal circuits and properties in grokked transformers on modular polynomials. Transactions on Machine Learning Research, 2024.
  • Ganguli et al. (2022) Ganguli, D., Hernandez, D., Lovitt, L., Askell, A., Bai, Y., Chen, A., Conerly, T., Dassarma, N., Drain, D., Elhage, N., et al. Predictability and surprise in large generative models. In Proceedings of the 2022 ACM Conference on Fairness, Accountability, and Transparency, pp. 1747–1764, 2022.
  • Geiger et al. (2020) Geiger, M., Spigler, S., Jacot, A., and Wyart, M. Disentangling feature and lazy training in deep neural networks. Journal of Statistical Mechanics: Theory and Experiment, 2020(11):113301, 2020.
  • Gidel et al. (2019) Gidel, G., Bach, F., and Lacoste-Julien, S. Implicit regularization of discrete gradient dynamics in linear neural networks. Advances in Neural Information Processing Systems, 32, 2019.
  • Gordon et al. (2021) Gordon, M. A., Duh, K., and Kaplan, J. Data and parameter scaling laws for neural machine translation. In Moens, M.-F., Huang, X., Specia, L., and Yih, S. W.-t. (eds.), Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, pp. 5915–5922, Online and Punta Cana, Dominican Republic, November 2021. Association for Computational Linguistics. doi: 10.18653/v1/2021.emnlp-main.478.
  • Gromov (2023) Gromov, A. Grokking modular arithmetic. arXiv preprint arXiv:2301.02679, 2023.
  • Han et al. (2022) Han, X., Papyan, V., and Donoho, D. L. Neural collapse under MSE loss: Proximity to and dynamics on the central path. In International Conference on Learning Representations, 2022.
  • He et al. (2024) He, T., Doshi, D., Das, A., and Gromov, A. Learning to grok: Emergence of in-context learning and skill composition in modular arithmetic tasks. In The Thirty-eighth Annual Conference on Neural Information Processing Systems, 2024.
  • Heij et al. (2007) Heij, C., Ran, A. C., and Van Schagen, F. Introduction to mathematical systems theory. Springer, 2007.
  • Henighan et al. (2020) Henighan, T., Kaplan, J., Katz, M., Chen, M., Hesse, C., Jackson, J., Jun, H., Brown, T. B., Dhariwal, P., Gray, S., et al. Scaling laws for autoregressive generative modeling. arXiv preprint:2010.14701, 2020.
  • Hestness et al. (2017) Hestness, J., Narang, S., Ardalani, N., Diamos, G., Jun, H., Kianinejad, H., Patwary, M. M. A., Yang, Y., and Zhou, Y. Deep learning scaling is predictable, empirically. arXiv preprint:1712.00409, 2017.
  • Hoffmann et al. (2022) Hoffmann, J., Borgeaud, S., Mensch, A., Buchatskaya, E., Cai, T., Rutherford, E., de las Casas, D., Hendricks, L. A., Welbl, J., Clark, A., Hennigan, T., Noland, E., Millican, K., van den Driessche, G., Damoc, B., Guy, A., Osindero, S., Simonyan, K., Elsen, E., Vinyals, O., Rae, J. W., and Sifre, L. An empirical analysis of compute-optimal large language model training. In Oh, A. H., Agarwal, A., Belgrave, D., and Cho, K. (eds.), Advances in Neural Information Processing Systems, 2022.
  • Hopfield (2007) Hopfield, J. J. Hopfield network. Scholarpedia, 2(5):1977, 2007.
  • Humayun et al. (2024) Humayun, A. I., Balestriero, R., and Baraniuk, R. Deep networks always grok and here is why. In Forty-first International Conference on Machine Learning, 2024.
  • Hutter (2021) Hutter, M. Learning curve theory. arXiv preprint:2102.04074, 2021.
  • Huygens (1966) Huygens, C. 1673 horologium oscillatorium, sive, de motu pendulorum ad horologia aptato demonstrationes geometricae. Paris: Apud F. Muguet, 1966.
  • Ioffe & Szegedy (2015) Ioffe, S. and Szegedy, C. Batch normalization: accelerating deep network training by reducing internal covariate shift. In Proceedings of the 32nd International Conference on International Conference on Machine Learning - Volume 37, ICML’15, pp. 448–456. JMLR.org, 2015.
  • Jacot et al. (2018) Jacot, A., Gabriel, F., and Hongler, C. Neural tangent kernel: Convergence and generalization in neural networks. In Advances in neural information processing systems, pp. 8571–8580, 2018.
  • Jacot et al. (2020) Jacot, A., Simsek, B., Spadaro, F., Hongler, C., and Gabriel, F. Kernel alignment risk estimator: Risk prediction from training data. Advances in Neural Information Processing Systems, 33:15568–15578, 2020.
  • Jacot et al. (2022) Jacot, A., Ged, F., Şimşek, B., Hongler, C., and Gabriel, F. Saddle-to-saddle dynamics in deep linear networks: Small initialization training, symmetry, and sparsity, 2022.
  • Jarvis et al. (2023) Jarvis, D., Klein, R., Rosman, B., and Saxe, A. M. On the specialization of neural modules. In The Eleventh International Conference on Learning Representations, 2023.
  • Jarvis et al. (2024) Jarvis, D., Lee, S., Dominé, C. C. J., Saxe, A. M., and Mannelli, S. S. A theory of initialisation’s impact on specialisation. In NeurIPS 2024 Workshop on Mathematics of Modern Machine Learning, 2024.
  • Jeffares et al. (2024) Jeffares, A., Curth, A., and van der Schaar, M. Deep learning through a telescoping lens: A simple model provides empirical insights on grokking, gradient boosting & beyond. In The Thirty-eighth Annual Conference on Neural Information Processing Systems, 2024.
  • Ji & Telgarsky (2019) Ji, Z. and Telgarsky, M. Gradient descent aligns the layers of deep linear networks. In International Conference on Learning Representations, 2019.
  • Kaiser (2014) Kaiser, D. The sacred, spherical cows of physics. Nautilus Quaterly, 2014.
  • Kaplan et al. (2020) Kaplan, J., McCandlish, S., Henighan, T., Brown, T. B., Chess, B., Child, R., Gray, S., Radford, A., Wu, J., and Amodei, D. Scaling laws for neural language models. arXiv preprint:2001.08361, 2020.
  • Katharopoulos et al. (2020) Katharopoulos, A., Vyas, A., Pappas, N., and Fleuret, F. Transformers are rnns: Fast autoregressive transformers with linear attention. In International conference on machine learning, pp. 5156–5165. PMLR, 2020.
  • Kumar et al. (2024) Kumar, T., Bordelon, B., Gershman, S. J., and Pehlevan, C. Grokking as the transition from lazy to rich training dynamics. In The Twelfth International Conference on Learning Representations, 2024.
  • Kunin et al. (2024) Kunin, D., Raventos, A., Dominé, C. C. J., Chen, F., Klindt, D., Saxe, A. M., and Ganguli, S. Get rich quick: exact solutions reveal how unbalanced initializations promote rapid feature learning. In The Thirty-eighth Annual Conference on Neural Information Processing Systems, 2024.
  • Lampinen & Ganguli (2019) Lampinen, A. K. and Ganguli, S. An analytic theory of generalization dynamics and transfer learning in deep linear networks. In International Conference on Learning Representations, 2019.
  • Lee et al. (2024) Lee, J., Kang, B. G., Kim, K., and Lee, K. M. Grokfast: Accelerated grokking by amplifying slow gradients. arXiv preprint arXiv:2405.20233, 2024.
  • Levi et al. (2024) Levi, N. I., Beck, A., and Bar-Sinai, Y. Grokking in linear estimators – a solvable model that groks without understanding. In The Twelfth International Conference on Learning Representations, 2024.
  • Li et al. (2021) Li, Z., Luo, Y., and Lyu, K. Towards resolving the implicit bias of gradient descent for matrix factorization: Greedy low-rank learning. In International Conference on Learning Representations, 2021.
  • Lippl & Lindsey (2024) Lippl, S. and Lindsey, J. Inductive biases of multi-task learning and finetuning: multiple regimes of feature reuse. In The Thirty-eighth Annual Conference on Neural Information Processing Systems, 2024.
  • Lippl et al. (2024) Lippl, S., Kay, K., Jensen, G., Ferrera, V. P., and Abbott, L. A mathematical theory of relational generalization in transitive inference. Proceedings of the National Academy of Sciences, 121(28):e2314511121, 2024.
  • Liu et al. (2022a) Liu, Z., Kitouni, O., Nolte, N. S., Michaud, E., Tegmark, M., and Williams, M. Towards understanding grokking: An effective theory of representation learning. Advances in Neural Information Processing Systems, 35:34651–34663, 2022a.
  • Liu et al. (2022b) Liu, Z., Michaud, E. J., and Tegmark, M. Omnigrok: Grokking beyond algorithmic data. In The Eleventh International Conference on Learning Representations, 2022b.
  • Luo et al. (2021) Luo, T., Xu, Z.-Q. J., Ma, Z., and Zhang, Y. Phase diagram for two-layer relu neural networks at infinite-width limit. Journal of Machine Learning Research, 22(71):1–47, 2021.
  • Lyu & Zhu (2023) Lyu, B. and Zhu, Z. Implicit bias of (stochastic) gradient descent for rank-1 linear neural network. In Thirty-seventh Conference on Neural Information Processing Systems, 2023.
  • Lyu et al. (2024) Lyu, K., Jin, J., Li, Z., Du, S. S., Lee, J. D., and Hu, W. Dichotomy of early and late phase implicit biases can provably induce grokking. In The Twelfth International Conference on Learning Representations, 2024.
  • Maloney et al. (2022) Maloney, A., Roberts, D. A., and Sully, J. A solvable model of neural scaling laws. arXiv preprint:2210.16859, 2022.
  • Marcotte et al. (2024) Marcotte, S., Gribonval, R., and Peyré, G. Abide by the law and follow the flow: Conservation laws for gradient flows. Advances in neural information processing systems, 36, 2024.
  • Michaud et al. (2023) Michaud, E., Liu, Z., Girit, U., and Tegmark, M. The quantization model of neural scaling. Advances in Neural Information Processing Systems, 36, 2023.
  • Mixon et al. (2020) Mixon, D. G., Parshall, H., and Pi, J. Neural collapse with unconstrained features. arXiv preprint arXiv:2011.11619, 2020.
  • Mohamadi et al. (2024) Mohamadi, M. A., Li, Z., Wu, L., and Sutherland, D. J. Why do you grok? a theoretical analysis on grokking modular addition. In Forty-first International Conference on Machine Learning, 2024.
  • Nam et al. (2024) Nam, Y., Fonseca, N., Lee, S. H., Mingard, C., and Louis, A. A. An exactly solvable model for emergence and scaling laws in the multitask sparse parity problem. In The Thirty-eighth Annual Conference on Neural Information Processing Systems, 2024.
  • Nanda et al. (2023) Nanda, N., Chan, L., Lieberum, T., Smith, J., and Steinhardt, J. Progress measures for grokking via mechanistic interpretability. In The Eleventh International Conference on Learning Representations, 2023.
  • Nelli et al. (2023) Nelli, S., Braun, L., Dumbalska, T., Saxe, A., and Summerfield, C. Neural knowledge assembly in humans and neural networks. Neuron, 111(9):1504–1516, 2023.
  • Okawa et al. (2024) Okawa, M., Lubana, E. S., Dick, R., and Tanaka, H. Compositional abilities emerge multiplicatively: Exploring diffusion models on a synthetic task. Advances in Neural Information Processing Systems, 36, 2024.
  • Papyan et al. (2020) Papyan, V., Han, X., and Donoho, D. L. Prevalence of neural collapse during the terminal phase of deep learning training. Proceedings of the National Academy of Sciences, 117(40):24652–24663, 2020.
  • Pesme & Flammarion (2023) Pesme, S. and Flammarion, N. Saddle-to-saddle dynamics in diagonal linear networks. In Thirty-seventh Conference on Neural Information Processing Systems, 2023.
  • Pinson et al. (2023) Pinson, H., Lenaerts, J., and Ginis, V. Linear cnns discover the statistical structure of the dataset using only the most dominant frequencies. In International Conference on Machine Learning, pp. 27876–27906. PMLR, 2023.
  • Power et al. (2022) Power, A., Burda, Y., Edwards, H., Babuschkin, I., and Misra, V. Grokking: Generalization beyond overfitting on small algorithmic datasets. arXiv:2201.02177, 2022.
  • Richards et al. (2019) Richards, B. A., Lillicrap, T. P., Beaudoin, P., Bengio, Y., Bogacz, R., Christensen, A., Clopath, C., Costa, R. P., de Berker, A., Ganguli, S., et al. A deep learning framework for neuroscience. Nature neuroscience, 22(11):1761–1770, 2019.
  • Rosenfeld et al. (2020) Rosenfeld, J. S., Rosenfeld, A., Belinkov, Y., and Shavit, N. A constructive prediction of the generalization error across scales. In International Conference on Learning Representations, 2020.
  • Rubin et al. (2024) Rubin, N., Seroussi, I., and Ringel, Z. Grokking as a first order phase transition in two layer networks. In The Twelfth International Conference on Learning Representations, 2024.
  • Saxe et al. (2022) Saxe, A., Sodhani, S., and Lewallen, S. J. The neural race reduction: Dynamics of abstraction in gated networks. In International Conference on Machine Learning, pp. 19287–19309. PMLR, 2022.
  • Saxe et al. (2014) Saxe, A. M., McClelland, J. L., and Ganguli, S. Exact solutions to the nonlinear dynamics of learning in deep linear neural networks. Proceedings of the International Conference on Learning Representations, 2014.
  • Saxe et al. (2019) Saxe, A. M., McClelland, J. L., and Ganguli, S. A mathematical theory of semantic development in deep neural networks. Proceedings of the National Academy of Sciences, 116(23):11537–11546, 2019.
  • Schaeffer et al. (2023) Schaeffer, R., Miranda, B., and Koyejo, S. Are emergent abilities of large language models a mirage? Advances in Neural Information Processing Systems, 36, 2023.
  • Simon et al. (2023) Simon, J. B., Knutins, M., Ziyin, L., Geisz, D., Fetterman, A. J., and Albrecht, J. On the stepwise nature of self-supervised learning. In International Conference on Machine Learning, pp. 31852–31876. PMLR, 2023.
  • Spigler et al. (2020) Spigler, S., Geiger, M., and Wyart, M. Asymptotic learning curves of kernel methods: empirical data versus teacher–student paradigm. Journal of Statistical Mechanics: Theory and Experiment, 2020(12):124001, 2020.
  • Srivastava et al. (2023) Srivastava, A., Rastogi, A., Rao, A., Shoeb, A. A. M., Abid, A., Fisch, A., Brown, A. R., Santoro, A., Gupta, A., Garriga-Alonso, A., Kluska, A., Lewkowycz, A., Agarwal, A., Power, A., Ray, A., Warstadt, A., Kocurek, A. W., Safaya, A., Tazarv, A., Xiang, A., Parrish, A., Nie, A., Hussain, A., Askell, A., Dsouza, A., Slone, A., Rahane, A., Iyer, A. S., Andreassen, A. J., Madotto, A., Santilli, A., Stuhlmüller, A., Dai, A. M., La, A., Lampinen, A. K., Zou, A., Jiang, A., Chen, A., Vuong, A., Gupta, A., Gottardi, A., Norelli, A., Venkatesh, A., Gholamidavoodi, A., Tabassum, A., Menezes, A., Kirubarajan, A., Mullokandov, A., Sabharwal, A., Herrick, A., Efrat, A., Erdem, A., Karakaş, A., Roberts, B. R., Loe, B. S., Zoph, B., Bojanowski, B., Özyurt, B., Hedayatnia, B., Neyshabur, B., Inden, B., Stein, B., Ekmekci, B., Lin, B. Y., Howald, B., Orinion, B., Diao, C., Dour, C., Stinson, C., Argueta, C., Ferri, C., Singh, C., Rathkopf, C., Meng, C., Baral, C., Wu, C., Callison-Burch, C., Waites, C., Voigt, C., Manning, C. D., Potts, C., Ramirez, C., Rivera, C. E., Siro, C., Raffel, C., Ashcraft, C., Garbacea, C., Sileo, D., Garrette, D., Hendrycks, D., Kilman, D., Roth, D., Freeman, C. D., Khashabi, D., Levy, D., González, D. M., Perszyk, D., Hernandez, D., Chen, D., Ippolito, D., Gilboa, D., Dohan, D., Drakard, D., Jurgens, D., Datta, D., Ganguli, D., Emelin, D., Kleyko, D., Yuret, D., Chen, D., Tam, D., Hupkes, D., Misra, D., Buzan, D., Mollo, D. C., Yang, D., Lee, D.-H., Schrader, D., Shutova, E., Cubuk, E. D., Segal, E., Hagerman, E., Barnes, E., Donoway, E., Pavlick, E., Rodolà, E., Lam, E., Chu, E., Tang, E., Erdem, E., Chang, E., Chi, E. A., Dyer, E., Jerzak, E., Kim, E., Manyasi, E. E., Zheltonozhskii, E., Xia, F., Siar, F., Martínez-Plumed, F., Happé, F., Chollet, F., Rong, F., Mishra, G., Winata, G. I., de Melo, G., Kruszewski, G., Parascandolo, G., Mariani, G., Wang, G. X., Jaimovitch-Lopez, G., Betz, G., Gur-Ari, G., Galijasevic, H., Kim, H., Rashkin, H., Hajishirzi, H., Mehta, H., Bogar, H., Shevlin, H. F. A., Schuetze, H., Yakura, H., Zhang, H., Wong, H. M., Ng, I., Noble, I., Jumelet, J., Geissinger, J., Kernion, J., Hilton, J., Lee, J., Fisac, J. F., Simon, J. B., Koppel, J., Zheng, J., Zou, J., Kocon, J., Thompson, J., Wingfield, J., Kaplan, J., Radom, J., Sohl-Dickstein, J., Phang, J., Wei, J., Yosinski, J., Novikova, J., Bosscher, J., Marsh, J., Kim, J., Taal, J., Engel, J., Alabi, J., Xu, J., Song, J., Tang, J., Waweru, J., Burden, J., Miller, J., Balis, J. U., Batchelder, J., Berant, J., Frohberg, J., Rozen, J., Hernandez-Orallo, J., Boudeman, J., Guerr, J., Jones, J., Tenenbaum, J. B., Rule, J. S., Chua, J., Kanclerz, K., Livescu, K., Krauth, K., Gopalakrishnan, K., Ignatyeva, K., Markert, K., Dhole, K., Gimpel, K., Omondi, K., Mathewson, K. W., Chiafullo, K., Shkaruta, K., Shridhar, K., McDonell, K., Richardson, K., Reynolds, L., Gao, L., Zhang, L., Dugan, L., Qin, L., Contreras-Ochando, L., Morency, L.-P., Moschella, L., Lam, L., Noble, L., Schmidt, L., He, L., Oliveros-Colón, L., Metz, L., Senel, L. K., Bosma, M., Sap, M., Hoeve, M. T., Farooqi, M., Faruqui, M., Mazeika, M., Baturan, M., Marelli, M., Maru, M., Ramirez-Quintana, M. J., Tolkiehn, M., Giulianelli, M., Lewis, M., Potthast, M., Leavitt, M. L., Hagen, M., Schubert, M., Baitemirova, M. O., Arnaud, M., McElrath, M., Yee, M. A., Cohen, M., Gu, M., Ivanitskiy, M., Starritt, M., Strube, M., Swedrowski, M., Bevilacqua, M., Yasunaga, M., Kale, M., Cain, M., Xu, M., Suzgun, M., Walker, M., Tiwari, M., Bansal, M., Aminnaseri, M., Geva, M., Gheini, M., T, M. V., Peng, N., Chi, N. A., Lee, N., Krakover, N. G.-A., Cameron, N., Roberts, N., Doiron, N., Martinez, N., Nangia, N., Deckers, N., Muennighoff, N., Keskar, N. S., Iyer, N. S., Constant, N., Fiedel, N., Wen, N., Zhang, O., Agha, O., Elbaghdadi, O., Levy, O., Evans, O., Casares, P. A. M., Doshi, P., Fung, P., Liang, P. P., Vicol, P., Alipoormolabashi, P., Liao, P., Liang, P., Chang, P. W., Eckersley, P., Htut, P. M., Hwang, P., Miłkowski, P., Patil, P., Pezeshkpour, P., Oli, P., Mei, Q., Lyu, Q., Chen, Q., Banjade, R., Rudolph, R. E., Gabriel, R., Habacker, R., Risco, R., Millière, R., Garg, R., Barnes, R., Saurous, R. A., Arakawa, R., Raymaekers, R., Frank, R., Sikand, R., Novak, R., Sitelew, R., Bras, R. L., Liu, R., Jacobs, R., Zhang, R., Salakhutdinov, R., Chi, R. A., Lee, S. R., Stovall, R., Teehan, R., Yang, R., Singh, S., Mohammad, S. M., Anand, S., Dillavou, S., Shleifer, S., Wiseman, S., Gruetter, S., Bowman, S. R., Schoenholz, S. S., Han, S., Kwatra, S., Rous, S. A., Ghazarian, S., Ghosh, S., Casey, S., Bischoff, S., Gehrmann, S., Schuster, S., Sadeghi, S., Hamdan, S., Zhou, S., Srivastava, S., Shi, S., Singh, S., Asaadi, S., Gu, S. S., Pachchigar, S., Toshniwal, S., Upadhyay, S., Debnath, S. S., Shakeri, S., Thormeyer, S., Melzi, S., Reddy, S., Makini, S. P., Lee, S.-H., Torene, S., Hatwar, S., Dehaene, S., Divic, S., Ermon, S., Biderman, S., Lin, S., Prasad, S., Piantadosi, S., Shieber, S., Misherghi, S., Kiritchenko, S., Mishra, S., Linzen, T., Schuster, T., Li, T., Yu, T., Ali, T., Hashimoto, T., Wu, T.-L., Desbordes, T., Rothschild, T., Phan, T., Wang, T., Nkinyili, T., Schick, T., Kornev, T., Tunduny, T., Gerstenberg, T., Chang, T., Neeraj, T., Khot, T., Shultz, T., Shaham, U., Misra, V., Demberg, V., Nyamai, V., Raunak, V., Ramasesh, V. V., vinay uday prabhu, Padmakumar, V., Srikumar, V., Fedus, W., Saunders, W., Zhang, W., Vossen, W., Ren, X., Tong, X., Zhao, X., Wu, X., Shen, X., Yaghoobzadeh, Y., Lakretz, Y., Song, Y., Bahri, Y., Choi, Y., Yang, Y., Hao, S., Chen, Y., Belinkov, Y., Hou, Y., Hou, Y., Bai, Y., Seid, Z., Zhao, Z., Wang, Z., Wang, Z. J., Wang, Z., and Wu, Z. Beyond the imitation game: Quantifying and extrapolating the capabilities of language models. Transactions on Machine Learning Research, 2023. ISSN 2835-8856. Featured Certification.
  • Súkeník et al. (2023) Súkeník, P., Mondelli, M., and Lampert, C. H. Deep neural collapse is provably optimal for the deep unconstrained features model. In Thirty-seventh Conference on Neural Information Processing Systems, 2023.
  • Sulejmanpasic & Ünsal (2018) Sulejmanpasic, T. and Ünsal, M. Aspects of perturbation theory in quantum mechanics: The benderwu mathematica ® package. Computer Physics Communications, 228:273–289, 2018. ISSN 0010-4655. doi: https://doi.org/10.1016/j.cpc.2017.11.018.
  • Tarmoun et al. (2021) Tarmoun, S., Franca, G., Haeffele, B. D., and Vidal, R. Understanding the dynamics of gradient flow in overparameterized linear models. In International Conference on Machine Learning, pp. 10153–10161. PMLR, 2021.
  • Thilak et al. (2022) Thilak, V., Littwin, E., Zhai, S., Saremi, O., Paiss, R., and Susskind, J. M. The slingshot mechanism: An empirical study of adaptive optimizers and the\\backslashemph {\{Grokking Phenomenon}\}. In Has it Trained Yet? NeurIPS 2022 Workshop, 2022.
  • Tu et al. (2024) Tu, Z., Aranguri, S., and Jacot, A. Mixed dynamics in linear networks: Unifying the lazy and active regimes. In The Thirty-eighth Annual Conference on Neural Information Processing Systems, 2024.
  • Varre et al. (2024) Varre, A. V., Vladarean, M.-L., Pillaud-Vivien, L., and Flammarion, N. On the spectral bias of two-layer linear networks. Advances in Neural Information Processing Systems, 36, 2024.
  • Wang et al. (2024) Wang, B., Yue, X., Su, Y., and Sun, H. Grokking of implicit reasoning in transformers: A mechanistic journey to the edge of generalization. In The Thirty-eighth Annual Conference on Neural Information Processing Systems, 2024.
  • Wang & Jacot (2024) Wang, Z. and Jacot, A. Implicit bias of SGD in $l_2$-regularized linear DNNs: One-way jumps from high to low rank. In The Twelfth International Conference on Learning Representations, 2024.
  • Wei et al. (2022) Wei, J., Tay, Y., Bommasani, R., Raffel, C., Zoph, B., Borgeaud, S., Yogatama, D., Bosma, M., Zhou, D., Metzler, D., Chi, E. H., Hashimoto, T., Vinyals, O., Liang, P., Dean, J., and Fedus, W. Emergent abilities of large language models. Transactions on Machine Learning Research, 2022. ISSN 2835-8856. Survey Certification.
  • Woodworth et al. (2020) Woodworth, B., Gunasekar, S., Lee, J. D., Moroshko, E., Savarese, P., Golan, I., Soudry, D., and Srebro, N. Kernel and rich regimes in overparametrized models. In Conference on Learning Theory, pp. 3635–3673. PMLR, 2020.
  • Xu & Ziyin (2024) Xu, Y. and Ziyin, L. When does feature learning happen? perspective from an analytically solvable model. arXiv preprint arXiv:2401.07085, 2024.
  • Yu et al. (2024) Yu, D., Kaur, S., Gupta, A., Brown-Cohen, J., Goyal, A., and Arora, S. SKILL-MIX: a flexible and expandable family of evaluations for AI models. In The Twelfth International Conference on Learning Representations, 2024.
  • Zhai et al. (2022) Zhai, X., Kolesnikov, A., Houlsby, N., and Beyer, L. Scaling vision transformers. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 12104–12113, 2022.
  • Zhang et al. (2024a) Zhang, Y., Latham, P. E., and Saxe, A. M. Understanding unimodal bias in multimodal deep linear networks. In Forty-first International Conference on Machine Learning, 2024a.
  • Zhang et al. (2024b) Zhang, Y., Saxe, A., and Latham, P. E. When are bias-free relu networks like linear networks? arXiv preprint arXiv:2406.12615, 2024b.
  • Zheng et al. (2024) Zheng, X., Daruwalla, K., Benjamin, A. S., and Klindt, D. Delays in generalization match delayed changes in representational geometry. In UniReps: 2nd Edition of the Workshop on Unifying Representations in Neural Models, 2024.
  • Zhong et al. (2024) Zhong, Z., Liu, Z., Tegmark, M., and Andreas, J. The clock and the pizza: Two stories in mechanistic explanation of neural networks. Advances in Neural Information Processing Systems, 36, 2024.
  • Zhu et al. (2024) Zhu, X., Fu, Y., Zhou, B., and Lin, Z. Critical data size of language models from a grokking perspective. arXiv preprint arXiv:2401.10463, 2024.
  • Zhu et al. (2021) Zhu, Z., Ding, T., Zhou, J., Li, X., You, C., Sulam, J., and Qu, Q. A geometric analysis of neural collapse with unconstrained features. Advances in Neural Information Processing Systems, 34:29820–29834, 2021.

Appendix A Glossary

Name Symbol /Abbr. Definition Cross-ref
Amplifying dynamics The rich-get-richer dynamics of layerwise linear models stemming from the dynamical feedback principle. Section 4
Dimension of input features dd
Dimension of hidden layer pp
Dimension of output cc
Dynamical feedback principle The principle that magnitude of one layer governs the evolution of the other layers. Section 3
Emergence A phenomenon where DNN suddenly gains performance on a subtask or skill. Appendix D
Gradient flow GF A continuous variant of gradient descent algorithm
Greedy dynamics The dynamics of low-rank bias. Section 5
Grokking A delayed generalization. Appendix G
Input features xx x∈ℝdx\in\mathbb{R}^{d}. We notate the element as xix_{i} and the input feature space with 𝒳\mathcal{X}. Section 2
Layerwise linear models Two layer models in which the output is multilinear with respect to each layer of parameters. Appendix B
Lazy regime Regime where DNN’s evolution follows a linear dynamics Section 6
Linear dynamics The dynamics of linear model Equation 7
Linear model One layer model in which the output is linear with respect to parameters. Appendix B
Low-rank bias An inductive bias of linear neural networks toward low-rank representation. Section 5
Mode A distinct degree of freedom the dynamical system decoupled into. Appendix B
Multilayer perceptron MLP Also known as fully connected network (FCN)
Neural collapse NC The collapse of training set’s last layer features vectors into a low-rank structure. Appendix E
Normalization constant Z The constant that rescales the output of the model. Equation 15
Neural tangent kernel NTK kernel with the gradient operator as the feature map.
Parameters (diagonal linear neural network) a,ba,b a,b∈ℝda,b\in\mathbb{R}^{d} ai,bia_{i},b_{i} are used to indicate the ithi^{\mathrm{th}} entry. In Section 7, the notation a,b∈ℝpa,b\in\mathbb{R}^{p} was duplicately used for the parameters of linear neural networks for demonstrative purposes. Equation 3
Parameters (linear neural network) W1,W2W_{1},W_{2} W1∈ℝd×pW_{1}\in\mathbb{R}^{d\times p}, W2∈ℝp×cW_{2}\in\mathbb{R}^{p\times c}. Wi​j(1),Wi​j(2)W^{(1)}_{ij},W^{(2)}_{ij} are used to indicate the element of matrix. Equation 4
Rich regime Regime where DNN’s evolution follows a non-linear dynamics Section 6
Sigmoidal growth The evolution amplifying dynamics when a,b≪Sa,b\ll S. Equation 9
Skill gk​(x)g_{k}(x) A subtask of the problem. Section 4
Stage-like training The dynamics when modes are learned in sequences without overlap in their saturation. Figure 3(b)
Target (scale) SiS_{i} or SS The multiplicative constant to the feature in the target function. Equation 1
Weight-to-target ratio Σ0/S\Sigma_{0}/S The ratio between the normalized (by ZZ) norm of initial weights and the target scale SS. Section 7

Appendix B Definitions

In this section, we provide more detailed definitions of the following terms: linear models, layerwise linear models, modes, features, function space. We additionally explain Figure 7. We assume scalar output (c=1c=1) and focus on models with f:𝒳→ℝf:\mathcal{X}\rightarrow\mathbb{R} where 𝒳\mathcal{X} is the input feature space.

B.1 Linear models

Linear models are models in which the output is completely linear in parameters. The definition allows non-linear relationship between the input features and the output. The general form of a linear model is

f⁡(x)=∑i=1dϕi​(x)​θi,f(x)=\sum_{i=1}^{d}\phi_{i}(x)\theta_{i}, (18)

where ϕi:𝒳→ℝ\phi_{i}:\mathcal{X}\rightarrow\mathbb{R} is a feature map that can be a non-linear function.

B.2 Layerwise linear models

Layerwise linear models are 2-layer models in which the output is multilinear with respect to each layer of parameters. The definition also allows non-linear relationship between the input features and the output. The general form of a layerwise linear model is

f⁡(x)=∑(i,j)∈𝒱∑j=1pϕi​(x)​ai​j​bj,f(x)=\sum_{(i,j)\in\mathcal{V}}\sum_{j=1}^{p}\phi_{i}(x)a_{ij}b_{j}, (19)

where ϕ:𝒳→ℝ\phi:\mathcal{X}\rightarrow\mathbb{R} is a map from the input data space 𝒳\mathcal{X} to the reals, and 𝒱\mathcal{V} is an architecture dependent set of connections between ϕi​(x)\phi_{i}(x) and hidden neurons. Note that the presence of ϕ\phi in place of xix_{i} does not change the dynamics, as long as random variable ϕi​(x)\phi_{i}(x) satisfy the assumptions in the main text, such as 𝐄⁡[ϕi​(x)​ϕj​(x)]=0\mathbf{E}[\phi_{i}(x)\phi_{j}(x)]=0 for i≠ji\neq j.

Figure 9: Figure 7 in the main text.

B.3 Modes

For a given dynamics, we define modes as distinct degrees of freedom into which the dynamical system decouples.

B.4 Features

We return to the special case of ϕi​(x)=xi\phi_{i}(x)=x_{i} to maintain greater consistency with the main text. For the last layer feature vectors used in Section 5, see Appendix E instead.

We define the kthk^{\mathrm{th}} feature as the post-activation of the kthk^{\mathrm{th}} neuron of the last layer multiplied by the respective last layer parameter. For a linear model, the kthk^{\mathrm{th}} feature is

hk:=xk​θk,k∈{1,2,⋯,d}.h_{k}:=x_{k}\theta_{k},\quad\quad k\in\{1,2,\cdots,d\}. (20)

For a linear neural network, the kthk^{\mathrm{th}} feature is

hk:=∑i=1dxi​Wi​k(1)​bk,k∈{1,2,⋯,p}.h_{k}:=\sum_{i=1}^{d}x_{i}W^{(1)}_{ik}b_{k},\quad\quad k\in\{1,2,\cdots,p\}. (21)

Note that by the definition, the sum of all features equals the output function:

f=∑khk.f=\sum_{k}h_{k}. (22)

B.5 Function space and the explanation of Figure. 7

We define the function space as the vector space spanned by x1,⋯,xdx_{1},\cdots,x_{d}: that is, we only consider linear functionals in variables x1,⋯,xdx_{1},\cdots,x_{d} among all functionals on 𝒳\mathcal{X}. Because xx is a dd dimensional random variable with full ranked covariance matrix, x1,⋯,xdx_{1},\cdots,x_{d} are linearly independent and thus form the basis of function space.

Given our orthogonality condition of features (𝐄⁡[xi​xj]=0\mathbf{E}[x_{i}x_{j}]=0 for i≠ji\neq j), we can use the input feature as the (unnormalized) basis, and express the target function f∗​(x)=∑idxi​Sif^{*}(x)=\sum_{i}^{d}x_{i}S_{i} as a vector in this function space with coordinate [S1,S2,⋯,Sd][S_{1},S_{2},\cdots,S_{d}]. Likewise, the features can be expressed as a vector in the function space, allowing visualization.

In Figure 9(a), we have two axis because d=2d=2 ([x1,x2][x_{1},x_{2}]), and two features because p=2p=2 (Equation 21). The blue feature is aligned (𝐄⁡[hT​f∗]>0\mathbf{E}[h^{T}f^{*}]>0) and the red feature is anti-aligned (𝐄⁡[hT​f∗]<0\mathbf{E}[h^{T}f^{*}]<0) to the target, analogous to the aligned and anti-aligned features in the d=1d=1 setup of the main text (Equation 15). The sum of features equals the current output function (Equation 22) or the black dashed line. The training ends when the output function equals the target function (black dot).

In Figure 9(c), we observe p≫1p\gg 1 features (colored arrows) sum to a smaller output function (dashed black line). A collection of infinitesimal changes in these features can sum up to an 𝒪⁡(1)\mathcal{O}(1) change in expressing the target function.

Appendix C Derivation for completeness

This section includes simple derivations for completeness. For the original derivations in a more general setup, we refer to the references mentioned in the main text.

C.1 Dynamics of linear model

The gradient flow equation is

d​θid​t=−∂ℒ∂θi,\displaystyle\frac{d\theta_{i}}{dt}=-\frac{\partial\mathcal{L}}{\partial\theta_{i}}, (23)

where ℒ\mathcal{L} is the MSE loss (Equation 2). Then

d​θid​t\displaystyle\frac{d\theta_{i}}{dt} =−𝐄⁡[∂∂θi​12​(f⁡(x)−f∗​(x))2]\displaystyle=-\mathbf{E}\left[\frac{\partial}{\partial\theta_{i}}\frac{1}{2}(f(x)-f^{*}(x))^{2}\right] (24)
=−𝐄⁡[xi​(∑j=1p(θj−Sj)​xj)]\displaystyle=-\mathbf{E}\left[x_{i}\left(\sum_{j=1}^{p}(\theta_{j}-S_{j})x_{j}\right)\right] (25)
=−𝐄⁡[xi2]​(θi−Si).\displaystyle=-\mathbf{E}\left[x_{i}^{2}\right](\theta_{i}-S_{i}). (26)

In the second line, we used the definition of the linear model (Equation 5) and the target function (Equation 1). In the last line, we used our assumptions that the input features are orthogonal (𝐄⁡[xi​xj]=0\mathbf{E}[x_{i}x_{j}]=0 if i≠ji\neq j) and that we have an infinite training set (the expectation is over the true distribution).

Solving Equation 26, we obtain

log⁡(Si−θi​(t))−log⁡(Si−θ⁡(0))=−𝐄⁡[xi2]​t.\displaystyle\log(S_{i}-\theta_{i}(t))-\log(S_{i}-\theta(0))=-\mathbf{E}\left[x_{i}^{2}\right]t. (27)

Using the zero initialization condition of θ⁡(0)=0\theta(0)=0, we obtain Equation 10:

θi/Si=1−e−𝐄⁡[xi2]​t.\theta_{i}/S_{i}=1-e^{-\mathbf{E}[x_{i}^{2}]t}. (28)

C.2 Dynamics of diagonal linear neural network

Starting with the gradient flow equation in diagonal linear neural networks,

d​aid​t=−∂ℒ∂ai,d​bid​t=−∂ℒ∂bi.\displaystyle\frac{da_{i}}{dt}=-\frac{\partial\mathcal{L}}{\partial a_{i}},\quad\frac{db_{i}}{dt}=-\frac{\partial\mathcal{L}}{\partial b_{i}}. (29)

Analogous to Equation 26, we can use the orthogonality condition (𝐄⁡[xi​xj]=0\mathbf{E}[x_{i}x_{j}]=0 if i≠ji\neq j) to get

d​aid​t\displaystyle\frac{da_{i}}{dt} =−𝐄⁡[∂∂ai​12​(f⁡(x)−f∗​(x))2]\displaystyle=-\mathbf{E}\left[\frac{\partial}{\partial a_{i}}\frac{1}{2}(f(x)-f^{*}(x))^{2}\right] (30)
=−𝐄⁡[bi​xi​(∑j=1p(aj​bj−Sj)​xj)]\displaystyle=-\mathbf{E}\left[b_{i}x_{i}\left(\sum_{j=1}^{p}(a_{j}b_{j}-S_{j})x_{j}\right)\right] (31)
=−bi​𝐄​[xi2]​(ai​bi−Si).\displaystyle=-b_{i}\mathbf{E}\left[x_{i}^{2}\right](a_{i}b_{i}-S_{i}). (32)

We can analogously obtain d​bid​t\frac{db_{i}}{dt}, and the evolution of ai​bia_{i}b_{i} is

d⁡(ai​bi)d​t\displaystyle\frac{d(a_{i}b_{i})}{dt} =d​aid​t​bi+ai​d​bid​t\displaystyle=\frac{da_{i}}{dt}b_{i}+a_{i}\frac{db_{i}}{dt} (33)
=−𝐄⁡[xi2]​(bi2+ai2)​(ai​bi−S)\displaystyle=-\mathbf{E}\left[x_{i}^{2}\right](b_{i}^{2}+a_{i}^{2})(a_{i}b_{i}-S) (34)
=−2​𝐄​[xi2]​ai​bi​(ai​bi−S),\displaystyle=-2\mathbf{E}\left[x_{i}^{2}\right]a_{i}b_{i}(a_{i}b_{i}-S), (35)

where we used Equation 32 (and its equivalent for bib_{i}) in the second line and the condition ai=bia_{i}=b_{i} in the last line. Assuming ai​(0)​bi​(0)<Sa_{i}(0)b_{i}(0)<S, we can solve the differential equation to obtain

ai​(t)​bi​(t)=Si1+(Siai​(0)​bi​(0)−1)​e−2​Si​𝐄​[xi2]​t.\displaystyle a_{i}(t)b_{i}(t)=\frac{S_{i}}{1+\left(\frac{S_{i}}{a_{i}(0)b_{i}(0)}-1\right)e^{-2S_{i}\mathbf{E}[x_{i}^{2}]t}}. (36)

For a general derivation when ai≠bia_{i}\neq b_{i}, see Appendix A of Saxe et al. (2014).

C.3 Derivation of the magnitude difference conservation in linear neural network

For the sake of readability, we restate the dimensions of inputs, weights, and outputs (labels) for linear neural networks:

x∈ℝd×1,y∈ℝc×1,W1∈ℝd×p,W2∈ℝp×c.x\in\mathbb{R}^{d\times 1},\quad y\in\mathbb{R}^{c\times 1},\quad W_{1}\in\mathbb{R}^{d\times p},\quad W_{2}\in\mathbb{R}^{p\times c}. (37)

For a linear neural network, the gradient flow equation is

d​W1d​t=−∂ℒ∂W1,d​W2d​t=−∂ℒ∂W2.\displaystyle\frac{dW_{1}}{dt}=-\frac{\partial\mathcal{L}}{\partial W_{1}},\quad\frac{dW_{2}}{dt}=-\frac{\partial\mathcal{L}}{\partial W_{2}}. (38)

The loss in the summand notation is

ℒ=12​𝐄​[∑k(∑i,jxi​wi​j(1)​wj​k(2)−yk)​(∑i′,j′xi′​wi′​j′(1)​wj′​k(2)−yk)],\mathcal{L}=\frac{1}{2}\mathbf{E}\left[\sum_{k}\left(\sum_{i,j}x_{i}w^{(1)}_{ij}w^{(2)}_{jk}-y_{k}\right)\left(\sum_{i^{\prime},j^{\prime}}x_{i^{\prime}}w^{(1)}_{i^{\prime}j^{\prime}}w^{(2)}_{j^{\prime}k}-y_{k}\right)\right], (39)

where wi​j(1)w^{(1)}_{ij} and wj​k(2)w^{(2)}_{jk} are elements of matrix W1W_{1} and W2W_{2}, respectively. The derivative for the first matrix W1W_{1} is

∂ℒ∂wi​j(1)=𝐄⁡[∑k(xi​wj​k(2))​(∑i′,j′xi′​wi′​j′(1)​wj′​k(2)−yk)]\displaystyle\frac{\partial\mathcal{L}}{\partial w^{(1)}_{ij}}=\mathbf{E}\left[\sum_{k}\left(x_{i}w^{(2)}_{jk}\right)\left(\sum_{i^{\prime},j^{\prime}}x_{i^{\prime}}w^{(1)}_{i^{\prime}j^{\prime}}w^{(2)}_{j^{\prime}k}-y_{k}\right)\right] (40)
=𝐄⁡[xi​(∑i′,j′,kxi′​wi′​j′(1)​wj′​k(2)​wj​k(2)−yk​wj​k(2))]\displaystyle=\mathbf{E}\left[x_{i}\left(\sum_{i^{\prime},j^{\prime},k}x_{i^{\prime}}w^{(1)}_{i^{\prime}j^{\prime}}w^{(2)}_{j^{\prime}k}w^{(2)}_{jk}-y_{k}w^{(2)}_{jk}\right)\right] (41)

and this can be expressed in the matrix form as

∂ℒ∂W1=𝐄⁡[x⁡(xT​W1​W2−yT)​W2T].\frac{\partial\mathcal{L}}{\partial W_{1}}=\mathbf{E}\left[x(x^{T}W_{1}W_{2}-y^{T})W_{2}^{T}\right]. (42)

Likewise for W2W_{2},

∂ℒ∂wj​k(2)=𝐄⁡[(∑ixi​wi​j(1))​(∑i′,j′xi′​wi′​j′(1)​wj′​k(2)−yk)],\frac{\partial\mathcal{L}}{\partial w^{(2)}_{jk}}=\mathbf{E}\left[\left(\sum_{i}x_{i}w^{(1)}_{ij}\right)\left(\sum_{i^{\prime},j^{\prime}}x_{i^{\prime}}w^{(1)}_{i^{\prime}j^{\prime}}w^{(2)}_{j^{\prime}k}-y_{k}\right)\right], (43)

which in the matrix form is

∂ℒ∂W2=𝐄⁡[W1T​x​(xT​W1​W2−yT)].\frac{\partial\mathcal{L}}{\partial W_{2}}=\mathbf{E}\left[W_{1}^{T}x(x^{T}W_{1}W_{2}-y^{T})\right]. (44)

Using Equations 38, 42 and 44, we obtain

W1T​d​W1d​t=d​W2d​t​W2T⇒dd​t​(W1T​W1−W2​W2T)=0.W_{1}^{T}\frac{dW_{1}}{dt}=\frac{dW_{2}}{dt}W_{2}^{T}\quad\Rightarrow\quad\frac{d}{dt}(W_{1}^{T}W_{1}-W_{2}W_{2}^{T})=0. (45)

C.4 Derivation of Equation (12)

Here, we show that a special initialization of W1W_{1} and W2W_{2} leads to Equation 12 and argue that a sufficiently small initialization makes the assumption plausible. For a more rigorous arguments, see (Saxe et al., 2014; Mixon et al., 2020; Ji & Telgarsky, 2019; Arora et al., 2019a; Lampinen & Ganguli, 2019; Gidel et al., 2019; Tarmoun et al., 2021; Braun et al., 2022; Dominé et al., 2025), especially more recent works for formal handling of initialization.

Let the singular value decomposition of the correlation matrix be

UT​P​V=𝐄⁡[x​yT].U^{T}PV=\mathbf{E}\left[xy^{T}\right]. (46)

We assume whitened input 𝐄⁡[x​xT]=I\mathbf{E}[xx^{T}]=I, W1​(0)=UT​A​RW_{1}(0)=U^{T}AR, and W2​(0)=RT​A​VW_{2}(0)=R^{T}AV. The diagonal matrix AA is of rank cc and comprises sufficiently small singular values, while R∈ℝc×cR\in\mathbb{R}^{c\times c} is an orthogonal matrix. These assumptions on W1W_{1} and W2W_{2} immediately shows that layers are balanced:

W1T​W1−W2​W2T=0.W_{1}^{T}W_{1}-W_{2}W_{2}^{T}=0. (47)

Denote

W~1=U​W1​RT,W~2=R​W2​VT.\displaystyle\widetilde{W}_{1}=UW_{1}R^{T},\quad\widetilde{W}_{2}=RW_{2}V^{T}. (48)

Then from the gradient dynamics

d​W1d​t=−𝐄⁡[x​xT]​W1​W2​W2T+𝐄⁡[x​yT]​W2T=−W1​W2​W2T+UT​P​V​W2T,\displaystyle\frac{dW_{1}}{dt}=-\mathbf{E}[xx^{T}]W_{1}W_{2}W_{2}^{T}+\mathbf{E}[xy^{T}]W_{2}^{T}=-W_{1}W_{2}W_{2}^{T}+U^{T}PVW_{2}^{T}, (49)

we have

d​W~1d​t=d⁡(U​W1​RT)d​t\displaystyle\frac{d\widetilde{W}_{1}}{dt}=\frac{d(UW_{1}R^{T})}{dt} =−(U​W1​RT)​(R​W2​VT)​(V​W2T​RT)+(U​UT)​P​(V​W2T​RT)\displaystyle=-(UW_{1}R^{T})(RW_{2}V^{T})(VW_{2}^{T}R^{T})+(UU^{T})P(VW_{2}^{T}R^{T}) (50)
=−W~1​W~2​W~2T+P​W~2T.\displaystyle=-\widetilde{W}_{1}\widetilde{W}_{2}\widetilde{W}_{2}^{T}+P\widetilde{W}_{2}^{T}. (51)

Similarly, for W2~\widetilde{W_{2}},

d​W~2d​t=−W~1T​W~1​W~2+W~1T​P.\displaystyle\frac{d\widetilde{W}_{2}}{dt}=-\widetilde{W}_{1}^{T}\widetilde{W}_{1}\widetilde{W}_{2}+\widetilde{W}_{1}^{T}P. (52)

As both W~1\widetilde{W}_{1} and W~2\widetilde{W}_{2} starts with diagonal matrix W~1​(0)=W~2​(0)=A\widetilde{W}_{1}(0)=\widetilde{W}_{2}(0)=A, and all matrices in Equation 51 and Equation 52 are diagonal, W~1\widetilde{W}_{1} and W2~\widetilde{W_{2}} are always diagonal. Also from

W~1T​W~1−W2~​W~2T=R⁡(W1T​W1−W2​W2T)​RT=0,\widetilde{W}_{1}^{T}\widetilde{W}_{1}-\widetilde{W_{2}}\widetilde{W}_{2}^{T}=R(W_{1}^{T}W_{1}-W_{2}W_{2}^{T})R^{T}=0, (53)

we have W~1​(t)=W~2​(t)\widetilde{W}_{1}(t)=\widetilde{W}_{2}(t) for any tt. Denote by αi\alpha_{i} the ithi^{\mathrm{th}} diagonal entry of W~1\widetilde{W}_{1}. We have either from Equation 51 or Equation 52,

d​αid​t=−αi3+ρi​αi,\frac{d\alpha_{i}}{dt}=-\alpha_{i}^{3}+\rho_{i}\alpha_{i}, (54)

where ρi\rho_{i} is the ithi^{\mathrm{th}} diagonal entry of PP or the ithi^{\mathrm{th}} singular value of the correlation matrix. Solving this equation gives

d​αi2d​t\displaystyle\frac{d\alpha_{i}^{2}}{dt} =−2αi2(αi2−ρi)⇒αi2​(t)ρi=11+(ρiαi2​(0)−1)​e−2​ρi​t,\displaystyle=-2\alpha_{i}^{2}(\alpha_{i}^{2}-\rho_{i})\quad\Rightarrow\quad\frac{\alpha_{i}^{2}(t)}{\rho_{i}}=\frac{1}{1+\left(\frac{\rho_{i}}{\alpha_{i}^{2}(0)}-1\right)e^{-2\rho_{i}t}}, (55)

and the dynamics of W1​W2W_{1}W_{2} is given as

W1​W2=UT​A​(t)2​V,A​(t)2=(α1​(t)2α2​(t)2⋱).\displaystyle W_{1}W_{2}=U^{T}A(t)^{2}V,\quad A(t)^{2}=\begin{pmatrix}\alpha_{1}(t)^{2}&&&\\ &\alpha_{2}(t)^{2}&\\ &&\ddots\end{pmatrix}. (56)

Discussion on the assumption

The assumption specifies a particular form for the matrix, but with sufficiently small initialization, all matrices approximately meet the conditions.

Appendix D Emergence and scaling laws

In this section, we review the emergence and (neural) scaling laws in the literature and discuss in detail how sigmoidal dynamics explain emergence, particularly in relation to data and parameters.

D.1 Scaling law

Neural scaling laws refer to the empirical observation that the performance of DNNs follows a power-law relationship with the number of parameters or the amount of data (Hestness et al., 2017; Kaplan et al., 2020). This phenomenon has been observed across various architectures and datasets (Rosenfeld et al., 2020; Henighan et al., 2020; Gordon et al., 2021; Zhai et al., 2022; Hoffmann et al., 2022; Cabannes et al., 2024; Bachmann et al., 2024).

To explain the data scaling law, Hutter (2021) developed a discrete feature model where the frequency of features follows a power-law, leading to a power-law relationship between performance and the number of datapoints. Similar assumptions have been used in recent works, often using linear models such as kernels, that a power-law in input distribution can explain scaling laws (Spigler et al., 2020; Bordelon et al., 2020; Cui et al., 2021; Bahri et al., 2021; Maloney et al., 2022; Bordelon et al., 2024).

D.2 Emergence

In machine learning, emergence refers to a sudden improvement in DNN’s performance when a key factor (such as the size of the training set or the number of parameters) increases (Ganguli et al., 2022; Srivastava et al., 2023; Wei et al., 2022). Such observations are often made in large language models (Brown et al., 2020), where LLMs demonstrate certain abilities, such as logical reasoning, once the model size exceeds a specific threshold. For example, Wei et al. (2022) quoted “An ability is emergent if it is not present in smaller models but is present in larger models.”

Although a concrete definition of emergence in machine learning remains elusive (Anwar et al., 2024) and has been criticized for its sensitivity to measurement (Schaeffer et al., 2023), many theoretical studies have explored its causes. Emergence has been deemed challenging to explain through “mathematical analysis of gradient-based training” (Arora & Goyal, 2023) and is often viewed as a collection of basic skills that interact to suddenly produce a complex ability (Arora & Goyal, 2023; Chen et al., 2023; Yu et al., 2024; Okawa et al., 2024).

D.3 Scaling laws from emergence

Similar to the approach of Hutter (2021), Michaud et al. (2023) proposed a quanta model and the multitask sparse parity dataset to link emergence (a sudden gain in ability) to the scaling laws. The quanta model posits that a skill is either learned or not, depending on the available resources (time, data, and parameters). The multitask sparse parity problem consists of skills whose frequencies follow a power law. By leveraging the power-law distribution of the skill frequencies, they demonstrated that the sum of quantized learning, in the large limit, leads to scaling laws observed in a 2-layer MLP trained on the multitask sparse parity problem.

D.4 Emergence from dynamics

As discussed in Section 4, authors of Nam et al. (2024) proposed that emergence arises from dynamics. They used a layerwise linear model with prebuilt skill functions (Equation 11). The learning of a skill corresponds to the learning of a mode, and the sigmoidal dynamics naturally explain the time emergence (Figure 4(a)). However, the connections to data and parameter emergence (Figure 4(b,c)) were less explained in the main text.

The arguments for data and parameter emergence in Nam et al. (2024) are two-folds: (1) Justifying the multilinear model as a valid approximation of practical DNNs and (2) solving the multilinear model’s dynamics for data and parameter emergence.

Justification of the multilinear model and prebuilt features.

Multilinear models (Equation 3) are aware of different skills due to the prebuilt skill functions while DNNs do not inherently separate skills. Authors of Nam et al.(2024) justify the behavior through the layerwise dynamics (dynamical feedback in our paper): the layerwise structure and the power-law in skill frequency lead to stage-like feature learning where skills emerge in distinct phases and the dynamics of learning the skills remain effectively decoupled. Figure 4(a) shows an example in which neural networks learn different features in a stages.

Intuitively, we can imagine the stage-like feature learning as DNNs prioritizing more frequent skills under resource constraints. In parameter emergence, limited neurons are allocated to express frequent skills only — as frequent skills are learned faster — creating a sharp performance gap between more and less frequent skills. Data emergence is less direct, but more samples from the skill speed up learning of the skill. Dynamic feedback amplifies this gap, enabling DNNs to distinguish more frequent skills, while less frequent skills remain entangled with each other, resulting in significantly lower skill performance.

Data and parameter emergence in a multilinear model

In the setup of Nam et al,(2024), Equation 3 has only the first pp most frequent (with the largest 𝐄⁡[gi​(x)2]\mathbf{E}[g_{i}(x)^{2}]) skill functions out of p∗p^{*} to fully express the target, and the skill functions are mutually exclusive:

f⁡(x,a,b)=∑i=1pai​bi​gi​(x),gi​(x)​gj​(x)=0​if​i≠j.f(x;a,b)=\sum_{i=1}^{p}a_{i}b_{i}g_{i}(x),\quad\quad g_{i}(x)g_{j}(x)=0~~\mathrm{if}~~i\neq j. (57)

The two conditions state that a model will learn the kthk^{\mathrm{th}} skill if and only if a datapoint from the kthk^{\mathrm{th}} skill exists in the training set — Corollary 1 of Nam et al.(2024) — and the skill function exists in the model (p≥kp\geq k) — Corollary 2 of Nam et al.(2024) — creating emergent (abrupt) property of the model on data and parameters.

For data Emergence, Corollary 1 of Nam et al.(2024) states that a multilinear model is a one-shot learner, meaning a single observation of the kt​hk^{th} skill, for infinite training time and infinite parameters, leads to a training of the skill. Thus, we have (with p,t→∞p,t\rightarrow\infty):

ak(∞)bk(∞)={dk>0:Sdk=0:ℛk​(0)a_{k}(\infty)b_{k}(\infty)=\left\{\begin{matrix}d_{k}>0:&S\\ d_{k}=0:&\mathcal{R}_{k}(0)\end{matrix}\right. (58)

Given a finite training set, the expected probability of observing the kt​hk^{th} skill depends on the training set size. Because of the power-law in skill frequency, this value shows a relatively abrupt change of training set size in log-scale, and thus data emergence. In Nam et al.(2024), the authors extended this model to a DkD_{k} shot learner instead of a one-shot learner and used the model to fit Figure 4(b).

For parameter Emergence, Corollary 2 of Nam et al.(2024) states that because the skill functions are mutually exclusive, the model will learn the kt​hk^{th} skill - for an infinite training set and time - whenever the kt​hk^{th} skill function gkg_{k} exists in the model. Formally (with n,t→∞n,t\rightarrow\infty),

ak(∞)bk(∞)={k≤p:Sk>p:ℛk​(0)a_{k}(\infty)b_{k}(\infty)=\left\{\begin{matrix}k\leq p:&S\\ k>p:&\mathcal{R}_{k}(0)\end{matrix}\right. (59)

where pp is the width of the multilinear model. The parameter emergence is trivial as the model will suddenly learn a skill once corresponding skill function is added. In Nam et al.(2024), the authors extended this model such that NkN_{k} hidden neurons instead of one to fit Figure 4(c).

One intuitive connection back to stage-like training of MLP is that all neurons, by time-emergence, will be used to fit the most frequent skill first; thus exhausting the limited hidden neurons to express more frequent skills only. This will create an inductive bias toward more frequent skill and justify why a larger width leads to an abrupt learning of a less frequent skill. See Nam et al. (2024) for a further discussion.

Appendix E Neural collapse

In this section, we restate the four NC conditions given in Papyan et al. (2020), and discuss their significance.

E.1 Setup

We decompose a neural network, a map from input feature space 𝒳\mathcal{X} to output ℝc\mathbb{R}^{c}, into two components: 1) a map from the input features to the last layer features Φ:𝒳→ℝp\Phi:\mathcal{X}\rightarrow\mathbb{R}^{p} and 2) the last layer (a map from ℝP\mathbb{R}^{P} to ℝc\mathbb{R}^{c}). Then, we can express the neural network as

fk​(x)=∑i=1pΦi​(x)​Wi​k+bk,f_{k}(x)=\sum_{i=1}^{p}\Phi_{i}(x)W_{ik}+b_{k}, (60)

where WW and b∈ℝpb\in\mathbb{R}^{p} are the weight and bias terms of the last layer. We use size nn training set that is partitioned into cc sets [A1,A2,⋯,Ac][A_{1},A_{2},\cdots,A_{c}] of the same size (balanced classification), where each AkA_{k} consists of all training datapoints with true label kk. The kthk^{\mathrm{th}} class mean vector is

μk:=cn​∑x∈AkΦ⁡(x),\mu_{k}:=\frac{c}{n}\sum_{x\in A_{k}}\Phi(x), (61)

where nn is the number of training set. The global mean vector is

μg:=1c​∑k=1cμk.\mu_{g}:=\frac{1}{c}\sum_{k=1}^{c}\mu_{k}. (62)

The feature within-class covariance ΣW∈ℝp×p\Sigma_{W}\in\mathbb{R}^{p\times p} is

ΣW:=1n​∑k=1c∑x∈Ak(Φ⁡(x)−μk)​(Φ⁡(x)−μk)T,\Sigma_{W}:=\frac{1}{n}\sum_{k=1}^{c}\sum_{x\in A_{k}}(\Phi(x)-\mu_{k})(\Phi(x)-\mu_{k})^{T}, (63)

which shows the deviation of last layer feature vectors away from the corresponding class mean vectors.

E.2 NC conditions

The four NC conditions are the following:

  1. 1.

    Within-class variance tends to 0

    ΣW→0.\Sigma_{W}\rightarrow 0. (64)
  2. 2.

    Convergence to simplex ETF

    (μj−μg)T​(μk−μg)‖(μj−μg)‖2​‖(μk−μg)‖2→c​δj​k−1c−1.\frac{(\mu_{j}-\mu_{g})^{T}(\mu_{k}-\mu_{g})}{\|(\mu_{j}-\mu_{g})\|_{2}\|(\mu_{k}-\mu_{g})\|_{2}}\rightarrow\frac{c\delta_{jk}-1}{c-1}. (65)
  3. 3.

    Convergence to self duality

    wk‖wk‖2−μk−μg‖(μk−μg)‖2→0.\frac{w_{k}}{\|w_{k}\|_{2}}-\frac{\mu_{k}-\mu_{g}}{\|(\mu_{k}-\mu_{g})\|_{2}}\rightarrow 0. (66)
  4. 4.

    Simplification to nearest class center

    arg⁡maxk⁡(∑i=1pΦi​(x)​Wi​k+bk)→arg⁡mink​‖Φ⁡(x)−μk‖2.\arg\max_{k}\left(\sum_{i=1}^{p}\Phi_{i}(x)W_{ik}+b_{k}\right)\rightarrow\arg\min_{k}\|\Phi(x)-\mu_{k}\|_{2}. (67)

Condition 1 states that all feature vectors collapse around their class mean vector. Condition 2 states that the class mean vectors form a simplex ETF structure (Figure 5). Condition 3 states that the last layer found the minimum-norm solution for the last layer feature vectors satisfying conditions 1 and 2. The last condition states that the model assesses classification based on the distance between the last layer feature vectors and the class mean vectors.

Appendix F Imbalanced layer initialization and data-adaptiveness

We extend the discussion on the topic developed in Section 6. Note that we summarize here information mainly taken from Domine et al. (2025) and Kunin et al. (2024).

F.1 The balanced condition

Let us formally reintroduce Equation 14:

Definition 1 (Definition of λ\lambda-balanced Property ((Saxe et al., 2014; Marcotte et al., 2024))).

The weights W1W_{1} and W2W_{2} are said to be λ\lambda-balanced if and only if there exists a Balanced Coefficient λ∈ℝ\lambda\in\mathbb{R} such that:

W2T​W2−W1​W1T=λ​I.W_{2}^{T}W_{2}-W_{1}W_{1}^{T}=\lambda I.

When λ=0\lambda=0, this property is referred to as Zero-Balanced, and it satisfies the condition:

W2T​W2−W1​W1T=0,W_{2}^{T}W_{2}-W_{1}W_{1}^{T}=0,

This condition is of interest because it remains conserved for any initial value λ\lambda, as detailed in (Marcotte et al., 2024; Dominé et al., 2025). It becomes particularly relevant in the continual learning, reversal learning, and transfer learning settings.

This quantity can be interpreted as the relative scale across layers. A straightforward intuition for the relative scale, as compared to the absolute scale (the norm W2​W1W_{2}W_{1} when target scale is fixed to 1), can be gained by considering the scalar case where the input, output and hidden dimension are equal to 1. In this simple scenario, it is easy to ensure that w12=w22w_{1}^{2}=w_{2}^{2} satisfies λ=0\lambda=0 while allowing for different absolute scales. For example, w1=w2=0.001w_{1}=w_{2}=0.001 or w1=w2=5w_{1}=w_{2}=5. In such cases, the absolute scale is clearly decoupled from the relative scale. However, in more complex settings, the interaction between relative and absolute scales becomes non-trivial. As we will discussed below, their role in shaping and amplifying dynamics is intricate and highly dependent on the underlying network architecture.

Intuition

Even with non-linearity, one layer’s weight controls the other’s rate of change (Section 3). This principle enables targeted training of a layer, allowing tuning between lazy and rich (and thus grokking) dynamics. This intuition can be formalized as

Theorem 2.

Under the assumptions of whitened inputs (1), λ\lambda-balanced weights (2), and no bottleneck and with a task-aligned initialization, as defined in (Saxe et al., 2014), the network function is given by the expression W2​W1​(t)=U~​P​(t)​V~TW_{2}W_{1}(t)=\tilde{U}P(t)\tilde{V}^{T} where P⁡(t)∈ℝc×cP(t)\in\mathbb{R}^{c\times c} is a diagonal matrix of singular values with elements ρα​(t)\rho_{\alpha}(t) that evolve according to the equation,

ρα​(t)=ρα​(0)+γα​(t,λ)​(ρ~α−ρα​(0)),\rho_{\alpha}(t)=\rho_{\alpha}(0)+\gamma_{\alpha}(t;\lambda)\left(\tilde{\rho}_{\alpha}-\rho_{\alpha}(0)\right), (68)

where ρ~α\tilde{\rho}_{\alpha} is the α\alpha singular value of the correlation matrix and γα​(t,λ)\gamma_{\alpha}(t;\lambda) is a λ\lambda-dependent monotonic transition function for each singular value that increases from γα​(0,λ)=0\gamma_{\alpha}(0;\lambda)=0 to limt→∞γα​(t,λ)=1\lim_{t\to\infty}\gamma_{\alpha}(t;\lambda)=1 defined explicitly in Appendix of (Dominé et al., 2025). We find that under different limits of λ\lambda, the transition function converges pointwise to the sigmoidal (λ→0\lambda\to 0) and exponential (λ→±∞\lambda\to\pm\infty) transition functions,

limλ→0γα​(t,λ)=e2​s~α​tτ−1e2​s~α​tτ−1+s~αsα​(0),limλ→±∞γα​(t,λ)=1−e−|λ|​tτ.\lim_{\lambda\to 0}\gamma_{\alpha}(t;\lambda)=\frac{e^{2\tilde{s}_{\alpha}\frac{t}{\tau}}-1}{e^{2\tilde{s}_{\alpha}\frac{t}{\tau}}-1+\frac{\tilde{s}_{\alpha}}{s_{\alpha}(0)}},\qquad\lim_{\lambda\to\pm\infty}\gamma_{\alpha}(t;\lambda)=1-e^{-|\lambda|\frac{t}{\tau}}. (69)

The proof for Theorem 2 can be found in (Dominé et al., 2025). As λ\lambda increases, the dynamics of the network resembles those of a linear model, transitioning into the lazy regime. On the other end, as lambda goes to zero the networks learns the most salient features first, which can be beneficial for generalization (Lampinen & Ganguli, 2019).

F.2 Controlling the dynamics with layer imbalance

We conducted an experiment to explore the relationship between relative weight scale, absolute weight scale, and the network’s learning regime in a general setting as shown in Figure 6. The absolute scale of the weights in Figure 6(a) is defined as the norm of W2​W1W_{2}W_{1}. Random initial weights with specified relative and absolute scales were generated, and the network was trained on a random input-output task. During training, we calculated the logarithmic kernel distance of the NTK from initialization and the logarithmic loss. The kernel distance is calculated as: S⁡(t)=1−⟨K0,Kt⟩‖K0‖F​‖Kt‖F.S(t)=1-\frac{\langle K_{0},K_{t}\rangle}{\|K_{0}\|_{F}\|K_{t}\|_{F}}. as defined in Fort et al. (2020). These values were visualized as heat maps for λ∈[−9,9]\lambda\in[-9,9] and relative scales in (0,20](0,20]. The regression task parameters were set with (σ=3)(\sigma=\sqrt{3}). The task has batch size N=10N=10. The network has with a learning rate of η=0.01\eta=0.01. The lambda-balanced network are initialized with 𝐄⁡[x​yT]=I\mathbf{E}[xy^{T}]=I of a random regression task. Figure 6(a) shows that a square (d=cd=c) linear neural network satisfying Equation 14 only show amplifying dynamics when the weights are balanced with small |λ||\lambda|. Larger imbalances lead to linear dynamics in the training of a single layer. However, as the relationship becomes more complex.(Dominé et al., 2025) demonstrates that both relative and absolute scales significantly impact the learning regime of the network across different architectural types.

Note that here, we examine how much the NTK has shifted by the end of training, without focusing on the dynamics of the NTK throughout the training process. As discribed above, lazy training is associated with exponential dynamics, while rich training is linked to sigmoidal dynamics. As highlighted in Braun et al. (2022), the dynamical transition in the structure of internal representations can be decoupled. This result demonstrates that rich, task-specific representations can emerge at any scale when λ=0\lambda=0, with the dynamics transitioning from sigmoidal to exponential as the scale increases.

F.3 Controlling grokking with layer imbalance

As discussed above, larger weight imbalance (in any direction) leads the transition from the rich to the lazy regime in square linear neural networks (Figure 6). For neural networks with non-linear activations, the non-linear activations break the symmetry between layers, potentially initiating feature learning for λ→∞\lambda\rightarrow\infty (Kunin et al., 2024). Here, we explore how the architecture can break the symmetry and lead to grokking — a transition from the lazy to rich regime — in linear neural networks, followed by its application to networks with non-linear activations.

Grokking in linear neural networks

We introduce two networks: funnel networks that narrow from input to output, and anti-funnel networks that expand from input to output. In Figure 10, we observe that funnel networks enters the lazy regime as λ→−∞\lambda\to-\infty (downstream initialization), while anti-funnel networks do so as λ→∞\lambda\to\infty (upstream initialization), which are consistent with Figure 6. However, the networks in opposite limits (λ→∞\lambda\rightarrow\infty for Figure 10(a) and λ→−∞\lambda\rightarrow-\infty for Figure 10(b)) show significant change in the NTK after training (rich regime). The networks were initially at the lazy regime, but showed a transition to a delayed rich regime (grokking).

Intuitively, the gradient from lighter layer negligibly changes the heavier layer (lazy), but the wider input (output) of funnel (anti-funnel) networks allows the lighter layer to aggregate sufficient gradients on the heavier layer, driving a meaningful change into a rich regime.

Refer to caption
(a) Layer Imbalance in Funnel Network
Refer to caption
(b) Layer Imbalance in Anti-Funnel Network
Figure 10: The impact of the architecture. Linear neural networks that satisfy Equation 14 are trained on randomized regression. Figures show the changes in NTK as a function of weight-to-target ratio and layer imbalances for (a): funnel networks and (b): in anti-funnel networks.

Grokking in non-linear neural networks

The study of linear networks does not always directly translate into similar phenomenology in non-linear networks, but these networks successfully highlight the relevant parameters that control different learning regimes: the relative scale. Notably, networks initialized with upstream scaling can exhibit a delayed entry into the rich learning phase. For example, Kunin et al. (2024) demonstrated that decreasing the variance of token embeddings in a single-layer transformer (accounting for less than 6% of all parameters) significantly reduces the time required to achieve grokking. The method can be viewed as targeted training for the earliest layer that undergoes the most non-linear activations.

F.4 Additional experimental details for Figure. 6

Code

The codes used to plot Figure 6 are based on the original codes of Domine et al. (2025) with only minor changes. They are available at https://github.com/yoonsoonam119/linear_first.

Figure. 6(b)

The setup is identical to that of Figure 6(a) except a few changes. We used the linear neural network with d=20,p=20,c=2d=20,p=20,c=2. We randomly initialized W2,W1W_{2},W_{1} (which do not satisfying the balanced condition) using symmetrized initialization (Chizat et al., 2019) to set the initial function equal to the zero function. The layer imbalance was implemented using the standard deviations σ1,σ2\sigma_{1},\sigma_{2} used to initialize the weights. To change the weight-to-target ratio, we used target downscaling in the range [0.1,50][0.1,50].

Appendix G Grokking

In this section, we present a brief history and related works on grokking.

Power et al. (2022) first identified grokking, a phenomenon characterized by delayed generalization in algorithmic tasks. Extending beyond algorithmic datasets, Liu et al. (2022b) showed that grokking can also occur in general machine learning tasks, including image classification, sentiment analysis, and molecular property prediction. Humayun et al. (2024) further demonstrated that grokking is a more widespread phenomenon by showing its presence in adversarial robustness for image classification tasks. Wang et al. (2024) discovered that transformers can grok in implicit reasoning tasks, while Zhu et al. (2024) studied the impact of dataset size on grokking in text classification tasks.

G.1 Approaches to understand grokking

Liu et al. (2022b) claimed that large weight initialization induces grokking. Thilak et al. (2022) proposed the slingshot mechanism to explain grokking, attributing it to anomalies in the adaptive optimization process, particularly in the absence of weight decay. Zheng et al. (2024) argued that sudden generalization is closely related to changes in representational geometry. Levi et al. (2024) addressed grokking in the lazy regime with Gaussian inputs by analyzing gradient-flow training dynamics. Based on this analysis, they demonstrate that grokking time (gap between overfitting ang generalization) depends on weight initialization, input and output dimensions, training sample size, and regularization. However, due to strong assumptions, their analysis is limited to the lazy regime, resulting in an insufficient explanation of other aspects of grokking such as the lazy-to-rich transition.

Several approaches have been proposed to interpret grokking in the modular arithmetic task, where grokking was originally reported. Nanda et al. (2023) and Zhong et al. (2024) used mechanical interpretability to examine case studies of grokking in modular addition. Gromov (2023) provided a solution for grokking in a two-layer MLP on modular addition. He et al. (2024) analyzed grokking in linear modular functions. Mohamadi et al. (2024) demonstrated that a two-layer network can generalize with fewer training data on the modular addition task. Rubin et al.(2024) showed that grokking is a first-order phase transition in both teacher-student setup and modular arithmetic problem.

G.2 Acceleration of grokking

Several methods have been proposed to accelerate grokking and escape the lazy regime. Liu et al. (2022a) argued that grokking can be mitigated through appropriate hyperparameter tuning, such as adjusting the learning rate or weight decay. Gromov (2023) also suggested that regularization techniques, including weight decay and the momentum of the optimizer, can reduce the training time required for grokking.

Kumar et al. (2024) asserted that grokking occurs when the network is initialized in the lazy regime, particularly when it has large width, large initialization, small label scaling, or large output scaling. Lee et al. (2024) proposed amplifying the gradients of low-frequency components to accelerate the speed of generalization. Furuta et al. (2024) suggested pre-training networks on similar tasks that share transferable features, which can then be applied to downstream target tasks to speed up grokking.

G.3 Empirical confirmation on MLP

Code

To confirm that our analysis of the scalar input neural network extends to neural networks, we trained depth 4, width 512 MLPs with tanh activation on 1000 datapoints of flattened (vectorized) MNIST dataset. We used MSE loss with the class label as one-hot vector multiplied by the target scale. By default, the weights of the layers were multiplied by factor of 5 compared to LeCun initialization. For training, Adam with learning ratio of 10−310^{-3} and weight decay of 10−410^{-4} was used. Batch size was 128 and the model was trained for 2000 epochs. For input downscaling, the MNIST data vectors were multiplied by the input scaling factor. The output scale was multiplied to the output of the function (MLP). We summarize the different configurations used in Figure 8:

Name Sub figure Weight init ratio Target scale Input scale Output scale
Default (a) 5 3 1 1
Weight downscaling (b) 1 3 1 1
Target upscaling (c) 5 30 1 1
Input downscaling (d) 5 3 0.01 1
Output downscaling (e) 5 3 1 0.1

Appendix H Explicit solution for the 2-layer linear neural network with scalar input and scalar output

We provide a general solution for the 22-layer layerwise model described in Equation 15. To repeat the setting, our model and target functions are single variable functions

f⁡(x)=xZ​(∑i=1pai​bi),f∗​(x)=x​S,f(x)=\frac{x}{Z}\left(\sum_{i=1}^{p}a_{i}b_{i}\right),\quad f^{*}(x)=xS, (70)

where we can set our loss function as

ℒ=12​(1Z​∑i=1pai​bi−S)2.\mathcal{L}=\frac{1}{2}\left(\frac{1}{Z}\sum_{i=1}^{p}a_{i}b_{i}-S\right)^{2}. (71)
Theorem 3.

The solution for the gradient descent dynamics for the loss function (Equation 71) is given as

ai​(t)\displaystyle a_{i}(t) =ai​(0)+bi​(0)2γ(t)1/2+ai​(0)−bi​(0)2γ(t)−1/2,\displaystyle=\frac{a_{i}(0)+b_{i}(0)}{2}\gamma(t)^{1/2}+\frac{a_{i}(0)-b_{i}(0)}{2}\gamma(t)^{-1/2}, (72)
bi​(t)\displaystyle b_{i}(t) =ai​(0)+bi​(0)2γ(t)1/2−ai​(0)−bi​(0)2γ(t)−1/2,\displaystyle=\frac{a_{i}(0)+b_{i}(0)}{2}\gamma(t)^{1/2}-\frac{a_{i}(0)-b_{i}(0)}{2}\gamma(t)^{-1/2}, (73)

where

γ⁡(t)=Σ0−𝒮0+S+Σ02−𝒮02+S2+(−Σ0+𝒮0−S+Σ02−𝒮02+S2)​exp⁡(−4​Σ02−𝒮02+S2Z​t)Σ0+𝒮0−S+Σ02−𝒮02+S2+(−Σ0−𝒮0+S+Σ02−𝒮02+S2)​exp⁡(−4​Σ02−𝒮02+S2Z​t)\gamma(t)=\frac{\Sigma_{0}-\mathcal{S}_{0}+S+\sqrt{\Sigma_{0}^{2}-\mathcal{S}_{0}^{2}+S^{2}}+\left(-\Sigma_{0}+\mathcal{S}_{0}-S+\sqrt{\Sigma_{0}^{2}-\mathcal{S}_{0}^{2}+S^{2}}\right)\exp\left(-\frac{4\sqrt{\Sigma_{0}^{2}-\mathcal{S}_{0}^{2}+S^{2}}}{Z}t\right)}{\Sigma_{0}+\mathcal{S}_{0}-S+\sqrt{\Sigma_{0}^{2}-\mathcal{S}_{0}^{2}+S^{2}}+\left(-\Sigma_{0}-\mathcal{S}_{0}+S+\sqrt{\Sigma_{0}^{2}-\mathcal{S}_{0}^{2}+S^{2}}\right)\exp\left(-\frac{4\sqrt{\Sigma_{0}^{2}-\mathcal{S}_{0}^{2}+S^{2}}}{Z}t\right)} (74)

and

𝒮0=1Z​∑j=1paj​(0)​bj​(0),Σ0=1Z​∑j=1paj​(0)2+bj​(0)22.\mathcal{S}_{0}=\frac{1}{Z}\sum_{j=1}^{p}a_{j}(0)b_{j}(0),\quad\Sigma_{0}=\frac{1}{Z}\sum_{j=1}^{p}\frac{a_{j}(0)^{2}+b_{j}(0)^{2}}{2}. (75)

In particular, we have

γ+:=limt→∞γ⁡(t)=γ⁡(∞)=S+Σ02−𝒮02+S2Σ0+𝒮0.\gamma_{+}:=\lim_{t\rightarrow\infty}\gamma(t)=\gamma(\infty)=\frac{S+\sqrt{\Sigma_{0}^{2}-\mathcal{S}_{0}^{2}+S^{2}}}{\Sigma_{0}+\mathcal{S}_{0}}. (76)

The function γ\gamma is always monotone from γ⁡(0)=1\gamma(0)=1 to γ⁡(∞)\gamma(\infty): if S>𝒮0S>\mathcal{S}_{0} then γ\gamma is increasing, and if S<𝒮0S<\mathcal{S}_{0} then γ\gamma is decreasing.

Proof.

Since our gradient descent dynamics is given as

d​aid​t=−∂ℒ∂ai=−bi​(Z−2​∑j=1maj​bj−Z−1​S),d​bid​t=−∂ℒ∂bi=−ai​(Z−2​∑j=1maj​bj−Z−1​S),\displaystyle\frac{da_{i}}{dt}=-\frac{\partial\mathcal{L}}{\partial a_{i}}=-b_{i}\left(Z^{-2}\sum_{j=1}^{m}a_{j}b_{j}-Z^{-1}S\right),\quad\frac{db_{i}}{dt}=-\frac{\partial\mathcal{L}}{\partial b_{i}}=-a_{i}\left(Z^{-2}\sum_{j=1}^{m}a_{j}b_{j}-Z^{-1}S\right), (77)

one can observe

dd​t​(ai+bi)=−(ai+bi)​(Z−2​∑j=1paj​bj−Z−1​S),dd​t​(ai−bi)=(ai−bi)​(Z−2​∑j=1paj​bj−Z−1​S).\displaystyle\frac{d}{dt}(a_{i}+b_{i})=-(a_{i}+b_{i})\left(Z^{-2}\sum_{j=1}^{p}a_{j}b_{j}-Z^{-1}S\right),\quad\frac{d}{dt}(a_{i}-b_{i})=(a_{i}-b_{i})\left(Z^{-2}\sum_{j=1}^{p}a_{j}b_{j}-Z^{-1}S\right). (78)

So if we define γ\gamma as

γ(t)=exp(−2∫s=0t(Z−2∑j=1paj(s)bj(s)−Z−1S)ds),\gamma(t)=\exp\left(-2\int_{s=0}^{t}\left(Z^{-2}\sum_{j=1}^{p}a_{j}(s)b_{j}(s)-Z^{-1}S\right)ds\right), (79)

then we have

dd​t​(γ)=−2​γ​(Z−2​∑j=1paj​bj−Z−1​S).\frac{d}{dt}\left(\gamma\right)=-2\gamma\left(Z^{-2}\sum_{j=1}^{p}a_{j}b_{j}-Z^{-1}S\right). (80)

Hence

dd​t(γ−1/2(ai+bi))\displaystyle\frac{d}{dt}\left(\gamma^{-1/2}(a_{i}+b_{i})\right) =γ−1/2(Z−2∑j=1pajbj−Z−1S)(ai+bi)−γ1/2(Z−2∑j=1pajbj−Z−1S)(ai+bi)=0,\displaystyle=\gamma^{-1/2}\left(Z^{-2}\sum_{j=1}^{p}a_{j}b_{j}-Z^{-1}S\right)(a_{i}+b_{i})-\gamma^{1/2}\left(Z^{-2}\sum_{j=1}^{p}a_{j}b_{j}-Z^{-1}S\right)(a_{i}+b_{i})=0, (81)
dd​t​(γ1/2​(ai−bi))\displaystyle\frac{d}{dt}\left(\gamma^{1/2}(a_{i}-b_{i})\right) =−γ1/2​(Z−2​∑j=1paj​bj−Z−1​S)​(ai−bi)+γ1/2​(Z−2​∑j=1paj​bj−Z−1​S)​(ai−bi)=0.\displaystyle=-\gamma^{1/2}\left(Z^{-2}\sum_{j=1}^{p}a_{j}b_{j}-Z^{-1}S\right)(a_{i}-b_{i})+\gamma^{1/2}\left(Z^{-2}\sum_{j=1}^{p}a_{j}b_{j}-Z^{-1}S\right)(a_{i}-b_{i})=0. (82)

From those and γ⁡(0)=0\gamma(0)=0 we have

ai(t)+bi(t)=(γ(t))1/2(ai(0)+bi(0)),ai(t)−bi(t)=(γ(t))−1/2(ai(0)−bi(0)),a_{i}(t)+b_{i}(t)=(\gamma(t))^{1/2}(a_{i}(0)+b_{i}(0)),\quad a_{i}(t)-b_{i}(t)=(\gamma(t))^{-1/2}(a_{i}(0)-b_{i}(0)), (83)

which leads to Equation 72 and Equation 73. We next work on dynamics of γ\gamma. We start from

1γd​γd​t=dd​t(logγ)=−2Z−2∑j=1majbj+2Z−1S.\frac{1}{\gamma}\frac{d\gamma}{dt}=\frac{d}{dt}(\log\gamma)=-2Z^{-2}\sum_{j=1}^{m}a_{j}b_{j}+2Z^{-1}S. (84)

We can express

Z−2​∑j=1paj​bj\displaystyle Z^{-2}\sum_{j=1}^{p}a_{j}b_{j} =Z−2​∑j=1p((aj+bj)24−(aj−bj)24)\displaystyle=Z^{-2}\sum_{j=1}^{p}\left(\frac{(a_{j}+b_{j})^{2}}{4}-\frac{(a_{j}-b_{j})^{2}}{4}\right) (85)
=Z−2​∑j=1p(aj​(0)+bj​(0))24​γ−Z−2​∑j=1p(aj​(0)+bj​(0))24​γ−1\displaystyle=Z^{-2}\sum_{j=1}^{p}\frac{(a_{j}(0)+b_{j}(0))^{2}}{4}\gamma-Z^{-2}\sum_{j=1}^{p}\frac{(a_{j}(0)+b_{j}(0))^{2}}{4}\gamma^{-1} (86)
=Z−2​∑j=1paj​(0)​bj​(0)​γ+γ−12+Z−2​∑j=1paj​(0)2+bj​(0)22​γ−γ−12.\displaystyle=Z^{-2}\sum_{j=1}^{p}a_{j}(0)b_{j}(0)\frac{\gamma+\gamma^{-1}}{2}+Z^{-2}\sum_{j=1}^{p}\frac{a_{j}(0)^{2}+b_{j}(0)^{2}}{2}\frac{\gamma-\gamma^{-1}}{2}. (87)

So if we denote

𝒮0=1Z​∑j=1paj​(0)​bj​(0),Σ0=1Z​∑j=1paj​(0)2+bj​(0)22,\mathcal{S}_{0}=\frac{1}{Z}\sum_{j=1}^{p}a_{j}(0)b_{j}(0),\quad\Sigma_{0}=\frac{1}{Z}\sum_{j=1}^{p}\frac{a_{j}(0)^{2}+b_{j}(0)^{2}}{2}, (88)

then our dynamics for γ\gamma becomes

d​γd​t=−2​Z−1​γ​(𝒮0​γ−γ−12+Σ0​γ+γ−12−S)=−2​Z−1​((Σ0+𝒮0)​γ2−2​S​γ−(Σ0−𝒮0)).\frac{d\gamma}{dt}=-2Z^{-1}\gamma\left(\mathcal{S}_{0}\frac{\gamma-\gamma^{-1}}{2}+\Sigma_{0}\frac{\gamma+\gamma^{-1}}{2}-S\right)=-2Z^{-1}\left((\Sigma_{0}+\mathcal{S}_{0})\gamma^{2}-2S\gamma-(\Sigma_{0}-\mathcal{S}_{0})\right). (89)

One can observe

Σ0=1Z​∑j=1paj​(0)2+bj​(0)22≥1Z​∑j=1p|aj​(0)​bj​(0)|≥|𝒮0|,\Sigma_{0}=\frac{1}{Z}\sum_{j=1}^{p}\frac{a_{j}(0)^{2}+b_{j}(0)^{2}}{2}\geq\frac{1}{Z}\sum_{j=1}^{p}|a_{j}(0)b_{j}(0)|\geq|\mathcal{S}_{0}|, (90)

so we can always factor the quadratic in γ\gamma as

(Σ0+𝒮0)​γ2−2​S​γ−(Σ0−𝒮0)=(Σ0+𝒮0)​(γ−γ−)​(γ−γ+)(\Sigma_{0}+\mathcal{S}_{0})\gamma^{2}-2S\gamma-(\Sigma_{0}-\mathcal{S}_{0})=(\Sigma_{0}+\mathcal{S}_{0})(\gamma-\gamma_{-})(\gamma-\gamma_{+}) (91)

where

(γ−,γ+)=(S−Σ02−𝒮02+S2Σ0+𝒮0,S+Σ02−𝒮02+S2Σ0+𝒮0)⇒γ−<0<γ+.(\gamma_{-},\gamma_{+})=\left(\frac{S-\sqrt{\Sigma_{0}^{2}-\mathcal{S}_{0}^{2}+S^{2}}}{\Sigma_{0}+\mathcal{S}_{0}},\frac{S+\sqrt{\Sigma_{0}^{2}-\mathcal{S}_{0}^{2}+S^{2}}}{\Sigma_{0}+\mathcal{S}_{0}}\right)\quad\Rightarrow\quad\gamma_{-}<0<\gamma_{+}. (92)

We continue using partial fraction decomposition as

1(γ−γ−)​(γ−γ+)​d​γd​t=1γ+−γ−​(1γ−γ+−1γ−γ−)​d​γd​t=−2​Z−1​(Σ0+𝒮0)\frac{1}{(\gamma-\gamma_{-})(\gamma-\gamma_{+})}\frac{d\gamma}{dt}=\frac{1}{\gamma_{+}-\gamma_{-}}\left(\frac{1}{\gamma-\gamma_{+}}-\frac{1}{\gamma-\gamma_{-}}\right)\frac{d\gamma}{dt}=-2Z^{-1}(\Sigma_{0}+\mathcal{S}_{0}) (93)

and

dd​t​log⁡|γ−γ+γ−γ−|=−2​Z−1​(Σ0+𝒮0)​(γ+−γ−)=−4​Z−1​Σ02−𝒮02+S2.\frac{d}{dt}\log\left|\frac{\gamma-\gamma_{+}}{\gamma-\gamma_{-}}\right|=-2Z^{-1}(\Sigma_{0}+\mathcal{S}_{0})(\gamma_{+}-\gamma_{-})=-4Z^{-1}\sqrt{\Sigma_{0}^{2}-\mathcal{S}_{0}^{2}+S^{2}}. (94)

Both γ−γ+\gamma-\gamma_{+} and γ−γ−\gamma-\gamma_{-} do not change signs, so the following holds regardless of the sign of γ−γ+\gamma-\gamma_{+}:

γ−γ+γ−γ−=γ⁡(0)−γ+γ⁡(0)−γ−​exp⁡(−4​Σ02−𝒮02+S2Z​t).\frac{\gamma-\gamma_{+}}{\gamma-\gamma_{-}}=\frac{\gamma(0)-\gamma_{+}}{\gamma(0)-\gamma_{-}}\exp\left(-\frac{4\sqrt{\Sigma_{0}^{2}-\mathcal{S}_{0}^{2}+S^{2}}}{Z}t\right). (95)

As γ⁡(0)=1\gamma(0)=1, this is solved as

γ⁡(t)=Σ0−𝒮0+S+Σ02−𝒮02+S2+(−Σ0+𝒮0−S+Σ02−𝒮02+S2)​exp⁡(−4​Σ02−𝒮02+S2Z​t)Σ0+𝒮0−S+Σ02−𝒮02+S2+(−Σ0−𝒮0+S+Σ02−𝒮02+S2)​exp⁡(−4​Σ02−𝒮02+S2Z​t).\gamma(t)=\frac{\Sigma_{0}-\mathcal{S}_{0}+S+\sqrt{\Sigma_{0}^{2}-\mathcal{S}_{0}^{2}+S^{2}}+\left(-\Sigma_{0}+\mathcal{S}_{0}-S+\sqrt{\Sigma_{0}^{2}-\mathcal{S}_{0}^{2}+S^{2}}\right)\exp\left(-\frac{4\sqrt{\Sigma_{0}^{2}-\mathcal{S}_{0}^{2}+S^{2}}}{Z}t\right)}{\Sigma_{0}+\mathcal{S}_{0}-S+\sqrt{\Sigma_{0}^{2}-\mathcal{S}_{0}^{2}+S^{2}}+\left(-\Sigma_{0}-\mathcal{S}_{0}+S+\sqrt{\Sigma_{0}^{2}-\mathcal{S}_{0}^{2}+S^{2}}\right)\exp\left(-\frac{4\sqrt{\Sigma_{0}^{2}-\mathcal{S}_{0}^{2}+S^{2}}}{Z}t\right)}. (96)

The limit of t→∞t\rightarrow\infty in Equation 95 gives

γ⁡(t)→t→∞γ+=S+Σ02−𝒮02+S2Σ0+𝒮0.\gamma(t)\xrightarrow{t\rightarrow\infty}\gamma_{+}=\frac{S+\sqrt{\Sigma_{0}^{2}-\mathcal{S}_{0}^{2}+S^{2}}}{\Sigma_{0}+\mathcal{S}_{0}}. (97)

From Equation 95, we can also see γ∈(γ−,γ+)\gamma\in(\gamma_{-},\gamma_{+}), and γ\gamma increases if and only if 1−γ+<01-\gamma_{+}<0. It is straightforward to check that if S>𝒮0S>\mathcal{S}_{0} (or S<𝒮0S<\mathcal{S}_{0}) then γ+>1\gamma_{+}>1 (and γ+<1\gamma_{+}<1 respectively). ∎

Remark 4.

If S>𝒮0S>\mathcal{S}_{0}, then the graph of γ⁡(t)\gamma(t) becomes part of some sigmoid function whose image is (γ−,γ+)(\gamma_{-},\gamma_{+}) and center is at height γ−+γ+2=SΔ0+Σ0\frac{\gamma_{-}+\gamma_{+}}{2}=\frac{S}{\Delta_{0}+\Sigma_{0}}. As the graph of γ\gamma starts from height 1=γ⁡(0)1=\gamma(0), one can show that γ⁡(t)\gamma(t) is concave for all t≥0t\geq 0 if and only if S<Δ0+Σ0S<\Delta_{0}+\Sigma_{0}, and otherwise it contains an inflection point. If S<𝒮0S<\mathcal{S}_{0}, the graph takes a shape of (dilation and translation of) (1−e−t)−1(1-e^{-t})^{-1}, so after the point γ⁡(0)=1\gamma(0)=1 it is convex and monotone decreasing.

Remark 5.

Since ai​(0)2+bi​(0)2≥2​ai​(0)​bi​(0)a_{i}(0)^{2}+b_{i}(0)^{2}\geq 2a_{i}(0)b_{i}(0), we have Σ0≥0\Sigma_{0}\geq 0 and Σ0≥𝒮0\Sigma_{0}\geq\mathcal{S}_{0}. Therefore,

γ+=γ⁡(∞)\displaystyle\gamma_{+}=\gamma(\infty) =𝒮+Σ02−𝒮02+S2Σ0+𝒮0≥2​𝒮2​Σ0=𝒮Σ0=(Σ0𝒮)−1,\displaystyle=\frac{\mathcal{S}+\sqrt{\Sigma_{0}^{2}-\mathcal{S}_{0}^{2}+S^{2}}}{\Sigma_{0}+\mathcal{S}_{0}}\geq\frac{2\mathcal{S}}{2\Sigma_{0}}=\frac{\mathcal{S}}{\Sigma_{0}}=\left(\frac{\Sigma_{0}}{\mathcal{S}}\right)^{-1},

Hence, if Σ0/𝒮\Sigma_{0}/\mathcal{S} is small, we have large γ+\gamma_{+} (rich regime).

Appendix I Research directions

We share additional research directions for layerwise linear models.

I.1 Connection between generalization and greedy dynamics

Greedy dynamics or the rich regime often correlate with generalization (Lampinen & Ganguli, 2019; Xu & Ziyin, 2024). Generalizing models in vision tasks exhibit NC (Papyan et al., 2020). Models that grok achieves a generalizing solution when they are in the rich regime (Kumar et al., 2024).

However, greedy dynamics alone cannot fully predict generalization. ResNet18 can show NC on CIFAR10 dataset with partially and fully randomized labels (Zhu et al., 2021). Transition into a rich regime in grokking may degrade the performance (Lyu et al., 2024). The imperfect correlation between greedy dynamics and generalization highlights the need for a deeper understanding of what these dynamics optimize.

I.2 Encouraging greedy dynamics

One of the goals of understanding grokking is to uncover techniques for transitioning models into generalizing ones. In this paper and previous studies, we have gained insight into the rich regime and ways to enhance it. In fact, extreme rich regimes have shown improved performance on certain tasks (Atanasov et al., 2025). Can this knowledge be extended to promote rich regimes in various scenarios, such as during training?