Manuscript Offprint

arXiv:2610.13524

Simulating Training Spikes of Deep Neural Networks by Layer-wise Random Feature Models

Ran Tian, Courtney Paquette

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Ran Tian ∗^{*} and Courtney Paquette ∗^{*}

Abstract. Intermittent “spikes” in loss, during the pre-training of Large Language Models (LLMs), remains a mysterious phenomenon both theoretically and empirically. In this paper, we show that simple quadratic models with heavy-tailed, power-law distributed inputs can replicate these spikes. We introduce a theoretical framework and simulation algorithm to model per-layer training dynamics of Deep Neural Networks (DNNs), using such quadratic models. In a case study on an Adam hyperparameter configuration (where β2\beta_{2} is set close to 1) known to induce spikes in Transformer LMs, our simulation successfully predicts bumps indicating spiky behavior from a given checkpoint. Furthermore, we derive an appropriate β2\beta_{2} schedule from observed metrics, which empirically improves performance.

Key words. Training spikes, Stochastic optimization, Random Feature models, Power law

  1. Introduction. “Training spikes”, the temporary, sharp surges in loss (Figure 1), are a phenomenon often observed during the pre-training of Large Language Models (LLMs) (Chowdhery et al., 2023; Molybog et al., 2023). Empirically, these spikes are considered pathological because the increase in loss may indicate training instability, the hyperparameters being sub-optimal, or the final model less predictive. The wild fluctuations in training metrics can trigger numerical issues as well, since large-scale Deep Neural Networks (DNNs) are usually trained with low-precision arithmetic. While their empirical occurrence is well documented, the underlying causes of these training spikes are not yet fully understood, partly because their occurrences can be affected by many factors, sometimes difficult to reliably reproduce in controlled settings (Nishida et al., 2024; Takase et al., 2025).

Stochastic optimizers, such as SGD and Adam (Kingma and Ba, 2015), inherently produce fluctuations due to the random sampling of training data. However, the “training spikes” discussed in this paper are distinct in their sensitivity to both data shuffling and model initialization. Typically, the trajectory of training loss fluctuations (the “up-and-downs” of the curve) remains consistent under an identical data shuffle (Figure 1b), irrespective of model initialization or minor architectural modifications. However, training spikes do not follow this pattern. As shown in Figure 1a, two training trajectories, which differ only by their random initialization seeds, can spike at different steps. This extra randomness complicates the study and mitigation of training spikes. For example, simply removing “data outliers” as a remedy to training spikes will only partially solve the problem, since one can often still observe random surges in the validation loss (Figure 1c). This suggests that training spikes are usually not caused by a specific occurrence of one single data point.

In § 3.4, we will detail our theoretical framework, which posits that normal fluctuations in loss are driven solely by data shuffling because high model dimensionality typically cancels out model-originated randomness. This concentration of measure property is conditional; it breaks down when the data distribution is heavy-tailed, resulting in training spikes. We

*Google Deepmind (tianran@google.com)

R. TIAN AND C. PAQUETTE

Figure

(a) Overall trajectories of the training loss.

Figure

(b) Training loss from 21k to 22k.

Figure

(c) Validation loss from 21k to 22k.

Figure 1: Training of a Transformer LM. Comparing a “Normal” training with two “Spiky” trainings. “Normal” and “Spiky1” differ in the β2\beta_{2} hyperparameter of Adam only, while “Spiky1” and “Spiky2” differ in the random-seed of model initialization only. Training spikes can occur at different steps between “Spiky1” and “Spiky2”, while “normal fluctuations” in training loss remain consistent.

demonstrate this mechanism using Power-Law Random Feature (PLRF) models – a class of simple linear-regression models with quadratic loss. Furthermore, we introduce an algorithm that uses PLRF-like dynamics to simulate the training behavior of individual layers within a DNN.

Remarkably, even simple models like PLRF can exhibit training spikes. Figure 2 compares various PLRF training trajectories – with and without spikes – across different optimizers, learning rates, and power-law exponents. Our findings highlight that the power-law exponent α\alpha, which quantifies the “heavy-tailedness” of the data distribution, is critical; a larger α\alpha is a necessary condition for these spikes to occur. To our knowledge, this is the first study to explicitly link training spikes to heavy-tailed data distributions.

Our simulation framework is largely inspired by Lee et al. (2019), utilizing a Taylor expansion of the DNN at training step t to predict dynamics up to a future step t+st + s. We advance this approach by incorporating stochastic optimization algorithms like SGD and Adam, which are more representative of real-world practices than full-batch gradient descent. This shift requires a 2nd-order Taylor expansion to account for stochastic gradient noise; Fortunately, recent work by Paquette et al. (2021, 2024) provides the theoretical tools to precisely solve training dynamics under this setting. The 2nd-order analysis is essential; as we show in Figure 3, empirical evidence suggests that training spikes of DNNs likely originate from 2nd-order gradient noise within some layers.

To summarize our contributions:

  1. We developed a framework aligning DNN layers with simple Random Feature models to enable lightweight simulations of training dynamics ( §\S 3.3). This approach facilitates the scientific study of elusive phenomena like training spikes in DNNs.

  2. While spiky behavior is often linked to the complex, non-convex nature of feature learning in DNNs (as seen in the “Edge-of-Stability” regime, Cohen et al., 2021, 2022), it is surprising that even convex PLRF models exhibit similar training spikes ( §\S 2).

  3. We conducted a case-study where the Adam hyperparameter β2\beta_{2} causes training spikes in a Transformer LM. Our simulation successfully predicts the spiky behavior for a given model checkpoint ( §\S 4). We then analyze several training metrics in details, and offer optimization recipes such as an appropriate β2\beta_{2} schedule, which can avoid spikes and empirically improve performance ( §\S C.5).

  4. Background. A Random Feature model assumes a non-trainable D×VD \times V matrix A which maps a V-dimensional random input x to D-dimensional features. Then, the features are fed to linear regression with a quadratic loss

(2.1)

ℓ[x;w]=defc2(w⊤Ax−b[x])2.\ell[\mathbf{x};\mathbf{w}]\stackrel{\mathrm{d e f}}{=}\frac{c}{2}\big(\mathbf{w}^{\top}\mathbf{A}\mathbf{x}-b[\mathbf{x}]\big)^{2}.

Here, w is the D-dimensional trainable model weights, the label b[x]b[x] a scalar function of x, and c a constant. The constant matrix A is usually set to random Gaussian if not else specified.

In addition, the Power-Law Random Feature model (Maloney et al., 2022; Bahri et al., 2024, PLRF) assumes that x=(i−αxi)1≤i≤v\mathbf{x} = (i^{-\alpha} x_i)_{1 \leq i \leq v}, where each xix_i is Gaussian i.i.d. drawn from N(0,1)\mathcal{N}(0,1), and α\alpha is the power-law exponent of input data. In this work ( §\S 3.2), we will use Ax\mathbf{A}\mathbf{x} to approximate hidden vectors in a Deep Neural Network (DNN), so D\mathbf{D} is the model dimension of the DNN, while V\mathbf{V} is a very large ( ≈∞\approx \infty) number intended for a latent space that can linearize the sub-DNN which produces the hidden vector, as inspired by Neural Tangent Kernel (Jacot et al., 2018; Bordelon et al., 2024).

When Stochastic Gradient Descent (SGD) is applied to the optimization of model (2.1), the training dynamics can be analytically solved (Paquette et al., 2021, 2024). Moreover, since the power-law data distribution in PLRF implies neural scaling laws (Maloney et al., 2022; Bahri et al., 2024), solving the dynamics allows for numerical predictions of compute-optimal scaling (Paquette et al., 2024). In this study, we further demonstrate that a large α\alpha can cause training spikes as well.

In Figure 2, we compare the training dynamics of PLRF for α∈{0.3,0.9}\alpha \in \{0.3, 0.9\}. We set D=1024\mathbf{D} = 1024, V=20000\mathbf{V} = 20000, c=1c = 1, and apply SGD and Adam across different learning-rates. The batch-size B=8\mathbf{B} = 8. When α=0.3\alpha = 0.3, as the learning-rate increases, validation loss diverges without showing any spikes. In contrast, when α=0.9\alpha = 0.9, both optimizers exhibit training spikes before divergence. This suggests two conditions for training spikes in PLRF: (1) heavy-tailed data (large α\alpha) and (2) near divergence (large learning-rate). We provide the Python code for these experiments in supplementary materials.

The spiky behavior of PLRF is surprising for two reasons. First, while SGD-based training is a random process influenced by data shuffling, Paquette et al. (2021) proves that the validation loss of Random Feature models typically converges to a smooth, deterministic curve.

R. TIAN AND C. PAQUETTE

Figure

Figure

Figure

Figure 2: The validation loss of PLRF, from training step 0 to 1k. We compare α∈{0.3,0.9}\alpha \in \{0.3, 0.9\}, for SGD and Adam, with different learning-rates. Each plot shows 3 random seeds (to distinguish initialization and data-shuffle separately), and learning-rates are chosen such that training converges, nearly diverges, or diverges, respectively. For SGD, the required learning-rates are calculated from the threshold γ\gamma given in formula (2.2). For Adam, the learning-rates are found by manual grid search.

– a phenomenon known as the “Concentration of SGD” – when D and V are sufficiently large. Random training spikes of PLRF seemingly contradict this concentration effect – As it turns out, for PLRF with α>0.5\alpha > 0.5, while the expected validation loss remains smooth, and the scaling analysis of Paquette et al. (2024); Ferbach et al. (2025) still valid, it must be noted that these results describe average-case behavior; But one can no longer prove the convergence to expectation (see § 3.4 and § A.6). In other words, at α>0.5\alpha > 0.5, training can exhibit random spikes that temporarily deviate from the expectation, even at massive scales.

Second, while similar spiky behavior has been observed in DNNs under full-batch gradient descent, it was previously considered impossible for quadratic models (Cohen et al., 2021;

Damian et al., 2023; Cohen et al., 2025). This is because full-batch gradient descent on quadratic loss has straightforward dynamics: It diverges if the learning rate exceeds 2/λmax⁡2/\lambda_{\max} (where λmax⁡\lambda_{\max} is the largest eigenvalue of the Hessian). Typically, only DNNs with 3rd-order terms exhibit spikes and the subsequent stabilization characteristic of the so-called “Edge-of-Stability” regime, when the learning rate nears this threshold.

However, this theory does not translate directly to stochastic optimization. Due to stochastic gradient noise captured by Hessian, training spikes can occur in quadratic models when the input data is heavy-tailed; 3rd-order terms are not necessary. Additionally, the learning-rate threshold γ\gamma of divergence is not 2/λmax⁡2/\lambda_{\max} for SGD; instead, when the batch-size B is small ( B≪DB \ll \sqrt{D}), γ\gamma is determined by the following equation (see Paquette et al., 2024, C.2, or § A.5 of this paper):

(2.2)

1B∑iγλi2−γλi=1,\frac{1}{\mathsf{B}}\sum_{i}\frac{\gamma\lambda_{i}}{2-\gamma\lambda_{i}}=1,

where {λi}\{\lambda_i\} is the eigenvalues of the Hessian. In particular, γ<min⁡(2B/∑iλi,2/λmax⁡)\gamma < \min(2\mathsf{B}/\sum_i\lambda_i, 2/\lambda_{\max}).

  1. Theory. Having demonstrated the rich dynamics of PLRF including training spikes, in this section we introduce a theoretical framework that aligns each DNN layer with a Random Feature model.

3.1. Layer-wise Quadratic Loss. Let W\mathcal{W} be the model parameters of a DNN. Given a loss function ℓ[r;W]\ell[\mathbf{r}; \mathcal{W}], where r\mathbf{r} is a data point, the DNN is trained by minimizing the loss over a data distribution r∼D\mathbf{r} \sim \mathcal{D}. We are interested in the dynamics of the validation loss Er∼D(ℓ[r;Wt])\mathbb{E}_{\mathbf{r} \sim \mathcal{D}}\big(\ell[\mathbf{r}; \mathcal{W}_t]\big), where Wt\mathcal{W}_t is the model checkpoint at training step tt.

Definition 3.1. Instead of directly investigating Er∼Dℓ[r;Wt]\mathbb{E}_{\mathbf{r} \sim \mathcal{D}} \ell[\mathbf{r}; \mathcal{W}_t], we take its Taylor expansion to the 2nd order at training step tt, for a fixed layer w⊂W\mathbf{w} \subset \mathcal{W}:

δt,sw=defEr∼D(∂ℓ∂w[r;Wt])(wt+s−wt)+12(wt+s−wt)⊤Er∼D(∂2ℓ∂w⊤∂w[r;Wt])(wt+s−wt).\delta_{t,s}^{w}\stackrel{\mathrm{d e f}}{=}\mathbb{E}_{\mathfrak{r}\sim\mathcal{D}}\Big(\frac{\partial\ell}{\partial\boldsymbol{w}}[\mathfrak{r};\mathcal{W}_{t}]\Big)(\boldsymbol{w}_{t+s}-\boldsymbol{w}_{t})+\frac{1}{2}(\boldsymbol{w}_{t+s}-\boldsymbol{w}_{t})^{\top}\mathbb{E}_{\mathfrak{r}\sim\mathcal{D}}\Big(\frac{\partial^{2}\ell}{\partial\boldsymbol{w}^{\top}\partial\boldsymbol{w}}[\mathfrak{r};\mathcal{W}_{t}]\Big)(\boldsymbol{w}_{t+s}-\boldsymbol{w}_{t}).

This is the approximate “amount of change” contributed by w\mathbf{w} to the validation loss, when w\mathbf{w} is trained to step t+st + s while other parameters are fixed at step tt. One subtle detail is that wt+s\mathbf{w}_{t+s} evolves by the original updates calculated from the gradients of ℓ[rt+s;Wt+s]\ell[\mathbf{r}_{t+s}; \mathcal{W}_{t+s}] (where rt+s∼D\mathbf{r}_{t+s} \sim \mathcal{D} is drawn from the training data-shuffle), without freezing any model parameters. We only freeze model parameters when calculating the evaluation metric δt,sw\delta_{t,s}^w.

The metric δt,sw\delta_{t,s}^{w} is a quadratic function of wt+sw_{t+s}, which can be written as “ L[wt+s]+ConstantL[w_{t+s}] + \text{Constant}” where

(3.1)

L[w]=def12(w−w∗)⊤Er∼D(∂2ℓ∂w⊤∂w[r;Wt])(w−w∗).L[\boldsymbol{w}]\stackrel{\mathrm{d e f}}{=}\frac{1}{2}(\boldsymbol{w}-\mathbf{w}^{*})^{\top}\mathbb{E}_{\mathfrak{r}\sim\mathcal{D}}\Big(\frac{\partial^{2}\ell}{\partial\boldsymbol{w}^{\top}\partial\boldsymbol{w}}[\mathfrak{r};\mathcal{W}_{t}]\Big)(\boldsymbol{w}-\mathbf{w}^{*}).

Here, w∗w^{*} is calculated such that the gradient of L can match that of the validation loss at wtw_{t}:

∂L∂w[wt]=Er∼D(∂ℓ∂w[r;Wt]).\frac{\partial L}{\partial\boldsymbol{w}}[\boldsymbol{w}_{t}]=\mathbb{E}_{\mathfrak{r}\sim\mathcal{D}}\Big(\frac{\partial\ell}{\partial\boldsymbol{w}}[\mathfrak{r};\mathcal{W}_{t}]\Big).

Our goal is to simulate the dynamics of L, the layer-wise quadratic loss. In this paper, we rigorously define “layers” of a DNN as below.

R. TIAN AND C. PAQUETTE

Definition 3.2. A layer is a subset W⊂WW \subset W of model parameters such that:

(1) WW acts as a matrix multiplication, i.e., it takes a vector h\mathbf{h} as input, and returns y=defWh\mathbf{y} \stackrel{\text{def}}{=} \mathbf{W}\mathbf{h} as the layer output.

(2a) The forward pass to the input h\mathbf{h} does not depend on W\mathbf{W}. In other words, h\mathbf{h} can be written as h=h[r;WF]\mathbf{h} = \mathbf{h}[\mathbf{r}; \mathcal{W}^{\mathrm{F}}] where WF∩W=∅\mathcal{W}^{\mathrm{F}} \cap \mathbf{W} = \emptyset.

(2b) The backward pass to the output gradient ∂ℓ∂y\frac{\partial \ell}{\partial \mathbf{y}} does not depend on W\mathbf{W}. In other words, ∂ℓ∂y\frac{\partial \ell}{\partial \mathbf{y}} can be written as ∂ℓ∂y=∂ℓ∂y[r;y,WB]\frac{\partial \ell}{\partial \mathbf{y}} = \frac{\partial \ell}{\partial \mathbf{y}}[\mathbf{r}; \mathbf{y}, \mathcal{W}^{\mathrm{B}}], where WB∩W=∅\mathcal{W}^{\mathrm{B}} \cap \mathbf{W} = \emptyset.

Intuitively, Definition 3.2 ensures that W\mathbf{W} acts as a “standalone linear unit” in the DNN. In practice, most DNNs can be decomposed into layers under this definition 1^{1}. Because W\mathbf{W} is generally a matrix, we flatten it to a vector w\mathbf{w} in Definition 3.1.

We can calculate the per-example gradient of W from Definition 3.2:

(3.2)

∂ℓ∂W[x;W]=h[x;WF]∂ℓ∂y[x;y,WB].\frac{\partial\ell}{\partial\boldsymbol{W}}[\mathfrak{x};\mathcal{W}]=\mathbf{h}[\mathfrak{x};\mathcal{W}^{\mathrm{F}}]\frac{\partial\ell}{\partial\boldsymbol{y}}[\mathfrak{x};\boldsymbol{y},\mathcal{W}^{\mathrm{B}}].

In the RHS above, the only component that depends on W\mathbf{W} is y\mathbf{y}. Therefore, if we focus on the evolution of Wt+s\mathbf{W}_{t+s}, everything except the linear regression yt+s\mathbf{y}_{t+s} can be treated as “data given”. This is the main idea for the next section.

3.2. Per-Layer Approximation by Random Feature Models. Let WW be a C×DC \times D matrix. The next theorem suggests that one can approximate the per-example gradients of WW, as if they come from a (generalized) Random Feature Model.

Theorem 3.3. Fix a training step tt. There exists a map (x,s)↦xs(\mathfrak{x}, s) \mapsto \mathbf{x}_s, such that for any training example x\mathfrak{x} and step s≥0s \geq 0, a V-dimensional vector xs\mathbf{x}_s satisfies the following:

(a) The D-dimensional vector ht+s=defh[x;Wt+sF]\mathbf{h}_{t+s} \stackrel{\text{def}}{=} \mathbf{h}[\mathfrak{x}; \mathcal{W}_{t+s}^{\mathrm{F}}] can be approximated by Axs\mathbf{A}\mathbf{x}_s, where A\mathbf{A} is a constant D×V\mathbf{D} \times \mathbf{V} matrix that does not depend on x\mathfrak{x} or ss.

(b) The C-dimensional vector ∇yt+s=def∂ℓ∂y⊤[x;yt+s,Wt+sB]\nabla \mathbf{y}_{t+s} \stackrel{\text{def}}{=} \frac{\partial \ell}{\partial \mathbf{y}^{\top}}[\mathfrak{x}; \mathbf{y}_{t+s}, \mathcal{W}_{t+s}^{\mathrm{B}}] (where yt+s=defWt+sht+s\mathbf{y}_{t+s} \stackrel{\text{def}}{=} \mathbf{W}_{t+s} \mathbf{h}_{t+s}), can be approximated by Gt+sxs\mathbf{G}_{t+s} \mathbf{x}_s, where Gt+s\mathbf{G}_{t+s} is an affine function of Wt+s\mathbf{W}_{t+s} and a C×V\mathbf{C} \times \mathbf{V} matrix that does not depend on x\mathfrak{x}.

At first glance, the linear approximation as required by Theorem 3.3 may seem unreasonably strong, because DNNs are highly non-linear – which is why our proof (given in § A) uses a latent space of extremely high dimensionality (V ≈ # training-examples × # model-parameters) to “linearize” the DNN, as inspired by Neural Tangent Kernel. Therefore, the vector xs\mathbf{x}_s and matrices A\mathbf{A}, Gt+s\mathbf{G}_{t+s} are infeasible to calculate in practice – However, they provide the necessary framework to apply powerful assumptions (e.g. the independence of entries of xs\mathbf{x}_s under suitable change of basis) and theoretical tools (e.g. SVD decomposition of A\mathbf{A}), enabling predictions that can be empirically verified.

Under stochastic optimization, x∼D\mathfrak{x} \sim \mathcal{D} is randomly drawn from the training data, so its corresponding representation xs\mathbf{x}_s is a random vector. Although the distribution of x\mathfrak{x} does not depend on the training step, the construction of xs\mathbf{x}_s in Theorem 3.3 does. In other words, there

1^{1}In certain model designs, “shared weights” can break the conditions. For example, some LMs reuse the input embedding layer as the output logits head, which breaks condition (2a) and (2b) because the same weights are used at different sites of the model. We will leave such cases to future work.

is generally distribution drift of xs\mathbf{x}_{s} across different s. However, in this work, we impose a strong assumption that the distribution drift is negligible when s is small. In fact, we assume that the distribution of xs\mathbf{x}_{s} is explicitly given as i.i.d. Gaussian, so that we can align with a PLRF model:

Assumption 3.4. One can replace the xs\mathbf{x}_s in Theorem 3.3 by a suitable linear transformation Tx\mathbf{T}\mathbf{x}, where T\mathbf{T} does not depend on r\mathbf{r} or ss, and the entries of x\mathbf{x} are i.i.d. Gaussian of mean 0 and variance 1.

When Assumption 3.4 is applied, we can omit the subscript of xs\mathbf{x}_s and absorb the linear transformation T\mathbf{T} into A\mathbf{A} and Gt+s\mathbf{G}_{t+s}. So ht+s≈Ax\mathbf{h}_{t+s} \approx \mathbf{A}\mathbf{x} and ∇yt+s≈Gt+sx\nabla \mathbf{y}_{t+s} \approx \mathbf{G}_{t+s}\mathbf{x}, with the entries of x\mathbf{x} being i.i.d. Gaussian of mean 0 and variance 1. This assumption enables explicit calculation of the covariance of the per-example gradient, ∇Wt+s=def∂ℓ∂W⊤[r;Wt+s]≈Gt+sxx⊤A⊤\nabla \mathbf{W}_{t+s} \stackrel{\text{def}}{=} \frac{\partial \ell}{\partial \mathbf{W}^\top}[\mathbf{r}; \mathcal{W}_{t+s}] \approx \mathbf{G}_{t+s}\mathbf{x}\mathbf{x}^\top \mathbf{A}^\top, as below.

Prediction 3.5. Using Assumption 3.4, and assume that D is sufficiently large. Let E(htht⊤)\mathbb{E}(\mathbf{h}_t\mathbf{h}_t^\top) be the correlation matrix of input hidden vectors, where E\mathbb{E} is averaging over the training data r∼D\mathbf{r} \sim \mathcal{D}. Let E(htht⊤)=UDiag(λ)U⊤\mathbb{E}(\mathbf{h}_t\mathbf{h}_t^\top) = \mathbf{U} \mathbf{D} \mathbf{i} \mathbf{a} \mathbf{g}(\boldsymbol{\lambda}) \mathbf{U}^\top be the eigen decomposition. Then,

(3.3)

E(gigj⊤)≈{λiE(∇yt+s∇yt+s⊤)ifi=j0ifi≠j\mathbb{E}(\boldsymbol{g}_{i}\boldsymbol{g}_{j}^{\top})\approx\begin{cases}\lambda_{i}\mathbb{E}(\nabla\boldsymbol{y}_{t+s}\nabla\boldsymbol{y}_{t+s}^{\top})&\quad if i=j\\\mathbf{0}&\quad if i\neq j\end{cases}

where gi\mathbf{g}_i, gj\mathbf{g}_j are the i,ji,j-th column vectors of the C×D\mathbf{C} \times \mathbf{D} matrix (∇Wt+s)U(\nabla \mathbf{W}_{t+s})\mathbf{U}. In particular, we have

(3.4)

E(∥∇Wt+s∥2)≈∑i=1DλiE(∥∇yt+s∥2)\mathbb{E}(\|\nabla\boldsymbol{W}_{t+s}\|^{2})\approx\sum_{i=1}^{\mathrm{D}}\lambda_{i}\mathbb{E}(\|\nabla\boldsymbol{y}_{t+s}\|^{2})

by taking the trace of (3.3)(3.3).

We theoretically prove Prediction 3.5 in § A.2 and empirically verify in § C.3. This is a non-trivial result relying on the high-dimensionality of D: Intuitively, it claims that for ∇Wt+s=(∇yt+s)ht+s⊤\nabla \mathbf{W}_{t+s} = (\nabla \mathbf{y}_{t+s}) \mathbf{h}_{t+s}^\top, one can calculate the expected gradient norm E(∥∇Wt+s∥2)\mathbb{E}(\|\nabla \mathbf{W}_{t+s}\|^2) as if ∥∇yt+s∥\|\nabla \mathbf{y}_{t+s}\| and ∥ht+s∥\|\mathbf{h}_{t+s}\| are independent – Of course, ∇yt+s≈Gt+sx\nabla \mathbf{y}_{t+s} \approx \mathbf{G}_{t+s} \mathbf{x} and ht+s≈Ax\mathbf{h}_{t+s} \approx \mathbf{A} \mathbf{x} are not independent because they share a common factor x\mathbf{x} – But the “dependent part” turns out to be negligible when D is large. In our case-study of a Transformer LM, we show that the empirical error of (3.4) is mostly within 5%, even though the two sides simultaneously vary multiple magnitudes across different layers and training steps.

3.3. Simulation Algorithm. From the layer-wise quadratic loss L[w]L[w] one can only obtain the average gradient (which matches the approximate average gradient of the DNN, as calculated from the layer-wise Taylor expansion to the 2nd order); But in order to simulate stochastic optimization, one has to synthesize per-example gradients, or more generally the mini-batched gradients of the DNN.

Our idea is to use Prediction 3.5, which provides the 2nd moment of per-example gradients. Roughly speaking, we can synthesize “pseudo gradients” by randomly sampling Gaussians 2^{2} to match the average and 2nd moment, at each step of the simulation.

2^{2}For Random Feature models, the distribution of the per-example gradient Gt+sxx⊤A⊤G_{t+s}x x^{\top}A^{\top} is not Gaussian

R. TIAN AND C. PAQUETTE

In Prediction 3.5, one can directly measure E(htht⊤)\mathbb{E}(\mathbf{h}_t\mathbf{h}_t^\top) from forward activations on a validation set (and Assumption 3.4 implies it does not change over time), but E(∇yt+s∇yt+s⊤)\mathbb{E}(\nabla\mathbf{y}_{t+s}\nabla\mathbf{y}_{t+s}^\top) is tricky because it depends on Wt+s\mathbf{W}_{t+s}. However, for the Random Feature model given in (2.1), where

yt+s=defwt+s⊤Axy_{t+s}\stackrel{\mathrm{d e f}}{=}w_{t+s}^{\top}\mathbf{A}\mathbf{x}

is a scalar, one has

(3.5)

E((∇yt+s)2)=E(c2(wt+s⊤Ax−b[x])2)=2cE(ℓ[x;wt+s])\mathbb{E}\big((\nabla y_{t+s})^{2}\big)=\mathbb{E}\Big(c^{2}\big(\boldsymbol{w}_{t+s}^{\top}\mathbf{A}\mathbf{x}-b[\mathbf{x}]\big)^{2}\Big)=2c\mathbb{E}\big(\ell[\mathbf{x};\boldsymbol{w}_{t+s}]\big)

which is a multiple of the validation loss, a presumed quantity that we can handle. Essentially, this simplification (3.5) leads to the Volterra equation investigated in Paquette et al. (2021) and the analytic solution of SGD training dynamics for Random Feature models. In this paper, we further apply (3.5) to DNNs, by making the following assumption:

Assumption 3.6. E(∇yt+s∇yt+s⊤)\mathbb{E}(\nabla\mathbf{y}_{t+s}\nabla\mathbf{y}_{t+s}^\top) can be roughly approximated by (E(∥∇yt+s∥2)/C)I\left(\mathbb{E}(\|\nabla\mathbf{y}_{t+s}\|^2)/\mathbb{C}\right)\mathbf{I}, where I\mathbf{I} is the identity matrix.

This final assumption hypothesizes that most eigenvalues of E(∇yt+s∇yt+s⊤)\mathbb{E}(\nabla\mathbf{y}_{t+s}\nabla\mathbf{y}_{t+s}^\top) are close to each other, so that one can approximately collapse it into a scalar operator (which equals the mean eigenvalue E(∥∇yt+s∥2)/C\mathbb{E}(\|\nabla\mathbf{y}_{t+s}\|^2)/\mathbb{C}). As a result, our simulation approximates the behavior of a D-dimensional “average slice” of the C×D\mathbb{C} \times \mathbb{D} matrix W\mathbf{W}, so that one can apply (3.5) and predict the dynamics.

The simulation pseudo-code is given in Algorithm 3.1. We choose the constant cc in the Random Feature model (2.1) such that the trace of the Hessian matches that of the DNN Hessian in the layer-wise quadratic loss (3.1). This approximation is necessary also because when the DNN is large, the full Hessian tensor of (C×D)2(\mathbf{C} \times \mathbf{D})^2 total dimensions is infeasible to calculate. Then, our algorithm tracks the D-dimensional vector z=c(w−w∗)\mathbf{z} = c(\mathbf{w} - \mathbf{w}^*), and initializes z\mathbf{z} such that the norms of the initial average gradients match in every eigenmode. Finally, we synthesize per-batch gradients instead of per-example gradients, depending on the batch-size. For this purpose, we define an equivalent batch factor B\mathfrak{B} which is empirically measured to match the initial mean squared-norm of per-batch gradients. Under certain conditions, B\mathfrak{B} coincides with the actual batch-size for Random Feature models (§ A.3), and we break down the details of B\mathfrak{B} for DNNs in § C.4. The theoretical derivation of Algorithm 3.1 is given in § A.4. When applied to PLRF models, we empirically verify that the algorithm correctly captures training dynamics, including spikes (Figure 5).

Because our simulation does not call the backward pass of a DNN at each step – it synthesizes a random gradient instead – the algorithm is extremely lightweight. The initial inputs require E(∇Wt)\mathbb{E}(\nabla\mathbf{W}_t), E(∥∇BWt∥2)\mathbb{E}(\|\nabla_{\mathbf{B}}\mathbf{W}_t\|^2), Tr⁡(E(∇2Wt))\operatorname{Tr}\left(\mathbb{E}(\nabla^2\mathbf{W}_t)\right) and (the eigen decomposition of) E(htht⊤)\mathbb{E}(\mathbf{h}_t\mathbf{h}_t^\top), which cost one pass over a validation set. See Table 1 for a summary of the compute requirements.

3.4. A Sketch of why Training Spikes Occur. In this section, we briefly explain why power-law distributed inputs can lead to training spikes. For simplicity, we analyze the

– it’s a product of two Gaussian random variables. However, since the distribution is still of the exponential family, and the simulation is a long-term accumulation of gradients across multiple steps, Gaussian sampling at each step should be a good approximation for long-term, average-case analysis.

Algorithm 3.1 Simulating the approximate behavior of the layer-wise quadratic loss LL from step tt to t+st+s, where a D-dimensional average slice w⊤\boldsymbol{w}^\top of the C×D\mathbb{C} \times \mathbb{D} matrix W\boldsymbol{W} gets trained.

Require: λ=(λi)1≤i≤D\boldsymbol{\lambda} = (\lambda_i)_{1 \leq i \leq \mathbb{D}} and U\mathbf{U}, the eigenvalues and eigenvectors of E(htht⊤)\mathbb{E}(\mathbf{h}_t \mathbf{h}_t^\top), respectively.

Require: E(∇Wt)\mathbb{E}(\nabla \boldsymbol{W}_t), the average gradient of the DNN layer, at step tt.

Require: E(∥∇BWt∥2)\mathbb{E}(\|\nabla_{\mathbb{B}} \boldsymbol{W}_t\|^2), the mean squared-norm of per-batch gradients.

Require: Tr⁡(E(∇2Wt))\operatorname{Tr}\left(\mathbb{E}(\nabla^2 \boldsymbol{W}_t)\right), the trace of the layer-wise Hessian.

Require: ϕ[∙]\phi[\bullet], an optimizer to map (synthetic) per-batch gradients to updates.

Ensure: {Lt+j}1≤j≤s\{L_{t+j}\}_{1 \leq j \leq s}, a trajectory of simulated layer-wise quadratic loss.

c←Tr⁡(E(∇2Wt))/(∑iλiC)c \leftarrow \operatorname{Tr}\left(\mathbb{E}(\nabla^2 \boldsymbol{W}_t)\right)/(\sum_i \lambda_i \mathbb{C})

▷ Approximate the constant cc in (2.1).

B←(∑iλi)2∑iλi2∥E(∇Wt)∥2E(∥∇BWt∥2)\mathfrak{B} \leftarrow \frac{(\sum_i \lambda_i)^2}{\sum_i \lambda_i^2} \frac{\|\mathbb{E}(\nabla \boldsymbol{W}_t)\|^2}{\mathbb{E}(\|\nabla_{\mathbb{B}} \boldsymbol{W}_t\|^2)}

▷ The equivalent batch factor.

z←RMS(E(∇Wt)U,axis=0)/λz \leftarrow \text{RMS}(\mathbb{E}(\nabla \boldsymbol{W}_t) \mathbf{U}, \text{axis} = 0)/\lambda

▷ Initialize c(w−w∗)c(\boldsymbol{w} - \mathbf{w}^*).

for j=0,…,sj = 0, \ldots, s do

Lt+j←c2c∑iλizi2L_{t+j} \leftarrow \frac{c}{2c} \sum_i \lambda_i z_i^2

▷ Output.

nk∼N(0,λk∣∑iλizi2/B−λkzk2)n_k \sim \mathcal{N}\left(0, \lambda_k \mid \sum_i \lambda_i z_i^2 / \mathfrak{B} - \lambda_k z_k^2\right)

▷ Sample stochastic noise of per-batch gradient.

g←λ⊙z+(nk)1≤k≤Dg \leftarrow \lambda \odot z + (n_k)_{1 \leq k \leq \mathbb{D}}

▷ Synthetic per-batch gradient.

u←U⊤ϕ[Ug]u \leftarrow \mathbf{U}^\top \phi[\mathbf{U}g]

▷ Call optimizer.

z←z−cuz \leftarrow z - c u

▷ Update.

end for

dynamics of w under SGD. (We expect optimizers with momentum and precondition, such as Adam, to follow a similar principle.) At any step t, let ηt\eta_t be the learning-rate. The update of SGD is given by

(3.6)

wt+1=wt−ηt∇wt,\boldsymbol{w}_{t+1}=\boldsymbol{w}_{t}-\eta_{t}\nabla\boldsymbol{w}_{t},

where ∇wt\nabla w_t is a per-example gradient. This is a random process depending on the data sample at each step; We apply the decomposition ∇wt=E(∇wt)+nt\nabla w_t = \mathbb{E}(\nabla w_t) + n_t, where E\mathbb{E} averages over the data distribution, and ntn_t is a random vector of mean 0\mathbf{0}, representing the stochastic noise of training samples.

Under a quadratic loss, the average gradient E(∇wt)\mathbb{E}(\nabla w_t) is in the form E(∇wt)=H(wt−w∗)\mathbb{E}(\nabla w_t) = \mathbf{H}(w_t - \mathbf{w}^*), where H\mathbf{H} is the Hessian. Thus, we can decompose (3.6) into wt=w‾t+rtw_t = \overline{w}_t + r_t, such that

(3.7)

w‾t+1−w∗=(I−ηtH)(w‾t−w∗)(3.8)\overline{w}_{t+1}-\mathbf{w}^{*}=(\mathbf{I}-\eta_{t}\mathbf{H})(\overline{w}_{t}-\mathbf{w}^{*}) \tag{3.8} andrt+1=(I−ηtH)rt−ηtnt.\mathrm{a n d}\quad\boldsymbol{r}_{t+1}=(\mathbf{I}-\eta_{t}\mathbf{H})\boldsymbol{r}_{t}-\eta_{t}\boldsymbol{n}_{t}.

So w‾t\overline{w}_{t} is the predictable full-batch gradient descent, while rtr_{t} is a random walk with mean 0, accumulating the stochastic noise ntn_{t} across steps. When the Central Limit Theorem applies, rtr_{t} should approximately follow a (anisotropic) Gaussian distribution.

Intuitively, one can imagine rtr_t as a high-dimension (isotropic) Gaussian with a given variance σ2\sigma^2; so for any random rtr_t, we know that ∥rt∥2≈Dσ2\|r_t\|^2 \approx \mathbb{D}\sigma^2 with high probability, while

R. TIAN AND C. PAQUETTE

ExperimentTrainEval δt,sw\delta_{t,s}^{w}Eval E(htht⊤)\mathbb{E}(\mathbf{h}_{t}\mathbf{h}_{t}^{\top})E(∇Wt)&E(∥∇BWt∥2)\mathbb{E}(\nabla\mathbf{W}_{t})\&\mathbb{E}(\|\nabla_{\mathbf{B}}\mathbf{W}_{t}\|^{2})Tr(E(∇2Wt))\text{Tr}\left(\mathbb{E}(\nabla^{2}\mathbf{W}_{t})\right)Simulation
Data size25.5B tokens336M tokens336M tokens336M tokens336M tokens1500 steps
Model size1.3B (24 blocks)24 ffn_0all layersall layers6 ffn_01 layer
Time40 hrs1.1 hrs8 min15 min1.7 hrs5 sec
MachineTPUv4×32TPUv4×32TPUv4×32TPUv4×32TPUv4×32CPU

Table 1: Summary of compute resources for running experiments in this paper.

rtr_t can point to any direction. The fact that ∥rt∥2≈Dσ2\| r_t \|^2 \approx \mathsf{D}\sigma^2 holds (with high probability) is an example of the more general principle called “concentration of measure”: the value of a scalar function of rtr_t “concentrates” to its expectation, because the random fluctuations of entries of rtr_t can cancel out each other, much like in the Law of Large Numbers.

The validation loss E(ℓ[x;∙])\mathbb{E}\big(\ell[\mathbf{x};\bullet]\big) is a scalar, quadratic function of wt=w‾t+rt\boldsymbol{w}_t = \overline{\boldsymbol{w}}_t + \boldsymbol{r}_t. So if this quadratic function is similar to ∥∙∥2\|\bullet\|^2, by analogy to the above, the concentration of measure principle applies and E(ℓ[x;w‾t+rt])\mathbb{E}\big(\ell[\mathbf{x};\overline{\boldsymbol{w}}_t + \boldsymbol{r}_t]\big) should (with high probability) not depend on the random direction of rt\boldsymbol{r}_t. As a result, E(ℓ[x;w‾t+rt])\mathbb{E}\big(\ell[\mathbf{x};\overline{\boldsymbol{w}}_t + \boldsymbol{r}_t]\big) converges to a deterministic trajectory at the high-dimension limit D→∞\mathsf{D} \to \infty.

However, in order for the “concentration of measure” to hold, the eigenvalues of the quadratic function E(ℓ[x;∙])\mathbb{E}\big(\ell[\mathbf{x};\bullet]\big) cannot be too heavy-tailed. If there are some very large eigenvalues that cannot be counter-weighted by all the small ones, the value of E(ℓ[x;w‾t+rt])\mathbb{E}\big(\ell[\mathbf{x};\overline{\mathbf{w}}_t+\mathbf{r}_t]\big) will suddenly surge when rtr_t randomly points toward directions of the large eigenvalues – a “spike” will occur.

We also note that, the learning-rate has to be relatively large so that rtr_{t} can accumulate to a significant amount, for the training spikes to manifest. On the other hand, rtr_{t} starts to grow larger and larger if the learning-rate is too high – which means the training diverges. The threshold γ\gamma of divergence can be accurately calculated for SGD, which is given in (2.2). One observes large training spikes when the learning-rate is slightly below γ\gamma . For general optimizers, one can use our simulation to find the threshold learning-rate, because Algorithm 3.1 faithfully models the accumulation of random gradient noise. For more technical details, please refer to Appendix A.5 and A.6.

  1. Simulation of Transformer LM Training. As a case-study, we train a vanilla Transformer decoder model of 1.3B parameters (24 Transformer blocks) on the C4 dataset, to the Chinchilla optimal number of tokens. We use the AdamW optimizer with hyperparameters inherited from previous research (Everett et al., 2024; Charles et al., 2025), which are tuned to near optimal. Then, we change β2\beta_{2} of AdamW from 0.95 to 0.999 in order to produce training spikes. We obtain three training trajectories: Normal, Spiky1 and Spiky2, as illustrated in Figure 1. More details are given in § C.1.

We take the model checkpoints at step 21k, and run simulations for all three configurations. Optimizer states are initialized from model checkpoints, but we did not apply weight-decay during the simulation. Figure 3 shows the results of 6 feed-forward layers simulated (with 2 random seeds each) from step 21k to 22.5k. We see clear bumps in the simulation for both Spiky1 and Spiky2 (e.g., block_{0,4,8} at step ~22k for Spiky1, and block_{0,12} at step ~21.5k for Spiky2), while the simulation for Normal is comparatively more smooth. It suggests that our simulation has the predictive power of telling whether a training configuration can lead to spikes, from a given model checkpoint. It is noteworthy that in the actual training trajectory (Figure 1), only Spiky2 spikes between steps 21k and 22k; And the spiky positions in our simulations differ between random seeds, demonstrating the random nature of training spikes. In § C.2, we will also show that the distribution of eigenvalues of E(htht⊤)\mathbb{E}(\mathbf{h}_t\mathbf{h}_t^\top) is significantly more heavy-tailed for spiky configurations.

On the other hand, we plot the 2nd-order term of δt,sw\delta_{t,s}^{w} (Definition 3.1), namely

12(wt+s−wt)⊤Er∼D(∂2ℓ∂w⊤∂w[r;Wt])(wt+s−wt),\frac{1}{2}(\boldsymbol{w}_{t+s}-\boldsymbol{w}_{t})^{\top}\mathbb{E}_{\mathbf{r}\sim\mathcal{D}}\Big(\frac{\partial^{2}\ell}{\partial\boldsymbol{w}^{\top}\partial\boldsymbol{w}}[\mathbf{r};\mathcal{W}_{t}]\Big)(\boldsymbol{w}_{t+s}-\boldsymbol{w}_{t}),

from step 21k to 22k, in Figure 3 with a shifted origin but the same scale, in order to compare the largeness of fluctuations. We observe jumps in the 2nd-order terms from Spiky2 synchronized with the training spike, while the largeness of the jumps matches the fluctuation of simulations in some layers (e.g. block_{4,8,12}) if not all. One big difference between our simulation and the empirical measurement of the 2nd-order terms of δt,sw\delta_{t,s}^{w}, is that the 2nd-order terms of δt,sw\delta_{t,s}^{w} exhibit “jumps” rather than “spikes” (i.e., not resuming to the previous level after initial surge), which is also different from the behavior of the total validation loss as shown in Figure 1c. This suggests that the dynamics of the Taylor expansion δt,sw\delta_{t,s}^{w} may not be fully explained by layer-wise quadratic models, as it cannot fully explain the total validation loss either. One may need to consider correlations across layers, and Taylor expansions beyond 2nd order.

In addition, we plot the 1st order term of δt,sw\delta_{t,s}^{w}, namely

Er∼D(∂ℓ∂w[r;Wt])(wt+s−wt),\mathbb{E}_{\mathbf{r}\sim\mathcal{D}}\Big(\frac{\partial\ell}{\partial\boldsymbol{w}}[\mathbf{r};\mathcal{W}_{t}]\Big)(\boldsymbol{w}_{t+s}-\boldsymbol{w}_{t}),

in Figure 4. We use the same scale of y-axis (from -4 to 1) across all layers, and we compare the three training configurations (Normal, Spiky1 and Spiky2).

We found that the behavior of the 1st-order terms cannot be directly explained by layer-wise quadratic models either: First, note that the scale of y-axis in Figure 4 is about 20×20\times the scale in Figure 3; the decrease of the 1st-order terms turns out to be much faster than one would expect from a layer-wise quadratic model – it seems that the highly non-linear nature of the DNN can somehow accelerate the feature-learning towards a loss-decreasing direction. On the other hand, the highly non-linear nature of the DNN must also produce larger noises than one would expect from a layer-wise quadratic model, because the overall validation loss of the DNN does not decrease this fast. Second, we observe that training spikes are reflected in the plots of 1st-order terms, as either “bumps” (block_12 of Spiky2), “jumps” (block_{8,16,20} of Spiky2), or “dives” (block_0 of Spiky2); but layer-wise quadratic models cannot exhibit similar behavior at this scale.

How we can explain these discrepancies, and how the correlations across layers and Taylor expansions beyond 2nd order may play a role in the mechanism, are intriguing questions for future work.

R. TIAN AND C. PAQUETTE

Figure

Figure

Figure

Figure 3: Simulation of the layer-wise quadratic approximation of validation loss at 6 layers (the feed-forward input of block_{0,4,8,12,16,20}), from training step 21k to 22.5k. We compare 3 settings of training (Normal, Spiky1 and Spiky2) as in Figure 1, and plot two simulations of different seeds, together with the actual 2nd-order term measured from corresponding training trajectories. The scale of the y-axis is kept the same for all plots, so that the fluctuations can be compared.

Figure

Figure

Figure

Figure 4: Plots of the 1st-order term of δt,sw\delta_{t,s}^{w}.

R. TIAN AND C. PAQUETTE

  1. Discussion and Related Works. Theoretical analysis of training spikes in most of previous works has focused on the concept of sharpness, defined as the largest eigenvalue λmax⁡\lambda_{\max} of the Hessian. But the truth is, none of them has been able to create toy models with loss dynamics, that can match aesthetically the phenomenon we empirically documented as “training spikes”, such as in Figure 1a. Some works show fluctuations with a log-scale in y-axis (which will amplify the largeness of the fluctuations in appearance), and try to connect them with training spikes – I’m sorry, but they are not similar.

Thus, we first want to emphasize the significance of our examples in PLRF models, solely from an aesthetics perspective: Please note the similarity of spikes between Figure 1a and Figure 2, and the fact that neither of them has log-scales in y-axis. We provide Python code of the PLRF examples in supplementary materials, which can run on Google Colab within 2 minutes. Please just try it.

In order to analyze the behavior of PLRF models under stochastic optimization, one has to investigate the gradient noise – a factor that does not exist in full-batch training and has been largely overlooked in previous theoretical study of training spikes. In practice, although recent LMs are trained with large numbers of tokens per batch, we especially investigated the equivalent batch factor in this paper and found that the gradient noise in training a Transformer LM is comparable to a Random Feature model with batch-size ≈1\approx 1 ( §\S C.4). This is because the point-wise training loss of DNNs can increase gradient noise ( §\S A.3) – an effect specific to DNNs that can cancel the large batch-size. In short, one cannot ignore gradient noise for training a Transformer LM.

As a result, the sharpness λmax⁡\lambda_{\max} is only distantly relevant to training dynamics of stochastic optimization. What really matters is the distribution of all eigenvalues {λi}\{\lambda_i\} – That said, we would like to discuss several streams of previous works next, which have contributed to our understanding of training spikes, as well as the more general topic of training process of DNNs.

Feature Learning and Sharpness. The Hessian is ever changing during the training of DNNs – a fact that cannot be captured by quadratic models like PLRF. Understanding how the Hessian evolves, which we call “feature learning”, is an important topic to understand deep learning. It is reported by Jastrzebski et al. (2019); Cohen et al. (2021, 2022) that during the training of DNNs, the sharpness λmax⁡\lambda_{\max} is increasing until it meets the threshold 2/γ2/\gamma (where γ\gamma is the learning-rate); And when γ\gamma decreases, λmax⁡\lambda_{\max} increases further. This process, called “progressive sharpening”, can be affected by several optimization hyperparameters (Gilmer et al., 2022), and it is connected to training spikes through Adam preconditioner (Bai et al., 2026), the “lower-loss-as-sharper structure” and condensation of model weights (Li et al., 2026). The phase where learning-rate is set to larger than 2/λmax⁡2/\lambda_{\max}, called “catapult” (Lewkowycz et al., 2020), is directly connected to training spikes as well (Zhu et al., 2024). When the learning-rate temporarily exceeds 2/λmax⁡2/\lambda_{\max}, Damian et al. (2023); Cohen et al. (2025) show that a 3rd-order term will automatically stabilize the sharpness and prevent it from increasing further – the so-called “Edge-of-Stability”. We believe the insights regarding 3rd-order terms can be valuable in stochastic optimization as well: As we discussed in § 4 and § ??, both the simulation and empirical measurement of layer-wise quadratic loss cannot fully explain the scale of spikes observed in the total validation loss; the random fluctuations driven by gradient noises in quadratic forms may get amplified and stabilized by higher-order terms.

Spectrum Analysis of Hessian and Model Weights. Beyond the largest eigenvalue λmax\lambda_{max}, our empirical measurement of the whole spectrum of the layer-wise Hessian (especially the trace of the Hessian) is largely inspired by Ghorbani et al. (2019). Unfortunately, the computation conducted in Ghorbani et al. (2019) becomes infeasible for the model size of recent LMs; In this work, we take a shortcut by sticking to the layer-wise Hessian instead of the Hessian of the whole model, and we make Assumption 3.6 to largely reduce the computation to Hessian trace and eigen decomposition of correlation matrices of forward activations. Nevertheless, we note that Ghorbani et al. (2019) observed heavy-tailed distribution of eigenvalues similar to what we observe in Figure 7. From another perspective, Martin and Mahoney (2021) investigated the spectrum of model weights, and recently the spectrum of gradients and moments become a topic of great interest (Fan et al., 2025; Chen et al., 2026), thanks to the popularity of Muon optimizer (Jordan et al., 2024). Our work is not directly connected to this stream because we simulate an average slice of the model weight, rather than the whole matrix. Based on the observation by Martin and Mahoney (2021) that the spectrum of model weights gets more heavy-tailed during training, we initially expected the same for Hessian; However, we found that although the Hessian trace is increasing (Figure 12 Third Row, in § C.5), the exponent α\alpha of the power-law fit is actually slightly decreasing for Normal training (Figure 8, in § C.2). Still, optimization hyperparameters such as β2\beta_{2} of Adam clearly affect the distribution of eigenvalues of Hessian; how to understand its mechanism remains a largely open problem.

Scaling Statistics of Language Universals. It is not a coincidence that the eigenvalues of correlation matrices of forward activations of an LM are power-law distributed, because natural language data generally follow power-law distributions like Zipf's Law (Zipf, 1949). In fact, if we view the input embedding layer of a Transformer LM as a linear map from one-hot vectors to token embeddings, the correlation matrix of the inputs is Diag((pi))\text{Diag}((p_i)) where pip_i is the unigram probability of the i-th token. So the distribution of the eigenvalues of Diag((pi))\text{Diag}((p_i)) is exactly Zipf's Law, and the power-law exponent is exactly α=0.5\alpha = 0.5 in terms of the definition of α\alpha in PLRF ( §\S 2). Scaling statistics of language universals have long been studied (Tanaka-Ishii, 2021), and we believe they are generally behind various neural scaling laws for training LLMs (Bahri et al., 2024).

Double Descent. The idea of distinguishing data-oriented and model-oriented randomness, as we did for training spikes, has also appeared in the explanation of Double Descent by Random Feature models (Adlam and Pennington, 2020). From a very general point of view, this is not a coincidence because Double Descent can be seen as some kind of “spikes” as well. Indeed, Nakkiran et al. (2020) has coined the term “epoch-wise double descent” and used the concept to explain temporary increase of validation loss at training time.

The β2\beta_{2} of Adam Optimizer. It has been widely known to practitioners that setting β2\beta_{2} close to 1 can cause training spikes in Transformer LMs (e.g. Liu et al., 2019). Molybog et al. (2023) and Bai et al. (2026) specifically build their theory of training spikes upon this observation. In this paper, we also propose our recipe for choosing the appropriate β2\beta_{2} schedule ( §\S C.5), and we show it improves performance in our case. The observation that an increasing schedule of β2\beta_{2} can improve performance has been reported before (e.g. Reddi et al., 2018; Shazeer and Stern, 2018; Dremov et al., 2025; Ferbach et al., 2026). In practice, however, model performance and the occurrence of training spikes are affected by a large number of other factors as well. Nevertheless, the exact mechanism of how β2\beta_{2} can affect the training dynamics

R. TIAN AND C. PAQUETTE

in such a seemingly drastic way, especially how it affects the distribution of eigenvalues of the Hessian, is a curious mystery.

Optimization and Modeling Techniques to Improve Training Stability. A huge amount of modeling and optimization techniques, such as normalization (Ioffe and Szegedy, 2015; Ba et al., 2016; Xiong et al., 2020; Dehghani et al., 2023; Wortsman et al., 2024) and clipping (Pascanu et al., 2013; Wortsman et al., 2023; Zhang et al., 2020; Marshall et al., 2024), inter alia, have been proposed to improve the training stability of DNNs. From the perspective of (avoiding) training spikes, our theory suggests essential metrics, such as the power-law exponent of the distribution of eigenvalues of the correlation matrices of forward activations, to be monitored as an indicator of healthy training. Our lightweight simulation algorithm can be applied directly to testing optimization techniques as well. That said, the empirical recipes explored in this work such as β2\beta_{2} schedule, are intended as “proof of concept” for the theory, rather than alternatives to replace previous methods.

Gradient Noise and Average-case Analysis. Even a simple model like PLRF can exhibit complicated dynamics such as training spikes. We urge the community to move from analyzing full-batch gradient descent and worst-case bounds, to the more realistic and challenging settings of stochastic optimization and average-case behavior of DNN training, with heavy-tailed input data and scaling-up of model sizes. Towards this direction, Mandt et al. (2016); Li et al. (2019) have developed stochastic differential equations to capture the training dynamics of SGD, which assume that the gradient noise is Gaussian (or more precisely, Brownian motion since the process is continuous), as similar to what we do for the simulation. What's different in this work is that the variance of gradient noise can be explicitly calculated for Random Feature models (i.e., Prediction 3.5), and we use that calculation instead of assuming the variance is a given constant (it's not constant, even for Random Feature models). On a different note, Agarwala and Pennington (2025) has coined the term "stochastic edge-of-stability", to emphasize the difference in learning-rate thresholds between full-batch gradient descent and SGD. In Qiu et al. (2025), it is shown that the gradient noise is a major factor controlled by learning-rate schedules, that can shape universally similar loss trajectories across model scales.

  1. Conclusion. We have seen PLRF models exhibiting training spikes, and presented the theory, algorithm and experiments to align PLRF models with layerwise training dynamics of DNNs. Given the apparent similarity between empirical training spikes and our simulations, we believe quadratic models at least partially reveals the essence of underlying mechanism.

AI Use Statement. We have not used generative AI tools for developing theory, formulating mathematical claims, designing experiments, or implementing methods. This is completely human work. During the writing of this paper, we have consulted AI for rephrasing some paragraphs of the draft, and summarizing some related papers; we have checked the outputs and manually rewrote the text. We take responsibility for the final content of this work, including text, claims, mathematical proofs and code.

Reproducibility Statement. Our experiments with PLRF models are easy to reproduce; we provide the Python code for training spikes and the simulation in supplementary materials. Our Transformer LM experiments are based on a decoder-only Transformer with common components. All the hyperparameters are listed in § C.1, where we also describe how they were tuned. The training dynamics we present in this paper depends on the hyperparameters, especially the learning-rate schedule and weight-decay; But the phenomena we observe should be general across different modeling choices. For mathematical details of our theory, please refer to Appendix A.

Acknowledgment. We thank Vincent Roulet for contributing to the ideas of how to calculate per-example gradient norms and Hessian trace, and providing internal reviews on drafts of this paper. We thank Asma Ghandeharioun for applying and verifying some findings of this paper to Gemma models. Asma Ghandeharioun uses generative AI tools to manage, implement and analyze her experiments, but she is not directly involved in this work. We thank Justin Gilmer for pointing us to several highly related previous works. We thank Lechao Xiao for providing the hyperparameters of Transformer LMs, including the configuration of training spikes. We thank Jeffrey Pennington for helpful discussion, and contributing to the ideas of distinguishing data-oriented and model-oriented randomness, and quantitatively measuring training spikes.

C. Paquette is a Canadian Institute for Advanced Research (CIFAR) AI chair, Quebec AI Institute (Mila) and a Sloan Research Fellow in Computer Science (2024). C. Paquette is supported by a Discovery Grant from the Natural Science and Engineering Research Council (NSERC) of Canada, NSERC CREATE grant Interdisciplinary Math and Artificial Intelligence Program (INTER-MATH-AI), Google x Mila research grant, Fonds de recherche du Quebec Nature et technologies (FRQNT) NOVA Grant (DOI: https://doi.org/10.69777/363444), and CIFAR AI Catalyst Grant. C. Paquette has 20% part-time employment at Google DeepMind.

References

Ben Adlam and Jeffrey Pennington. Understanding double descent requires a fine-grained bias-variance decomposition. In Proceedings of the 34th International Conference on Neural Information Processing Systems, NIPS '20, Red Hook, NY, USA, 2020. Curran Associates Inc. ISBN 9781713829546.

Atish Agarwala and Jeffrey Pennington. High dimensional analysis reveals conservative sharpening and a stochastic edge of stability, 2025. URL https://arxiv.org/abs/2404.19261.

Jimmy Lei Ba, Jamie Ryan Kiros, and Geoffrey E. Hinton. Layer normalization, 2016. URL https://arxiv.org/abs/1607.06450.

Yasaman Bahri, Ethan Dyer, Jared Kaplan, Jaehoon Lee, and Utkarsh Sharma. Explaining neural scaling laws. Proceedings of the National Academy of Sciences, 121(27):e2311878121, 2024. doi: 10.1073/pnas.2311878121. URL https://www.pnas.org/doi/abs/10.1073/pnas.2311878121.

Zhiwei Bai, Zhangchen Zhou, Jiajie Zhao, Xiaolong Li, Zhiyu Li, Feiyu Xiong, Hongkang Yang, Yaoyu Zhang, and Zhi-Qin John Xu. Adaptive preconditioners trigger loss spikes in adam. In Forty-third International Conference on Machine Learning, 2026. URL https://openreview.net/forum?id=STWQoscanw.

Blake Bordelon, Alexander B. Atanasov, and Cengiz Pehlevan. A dynamical model of neural scaling laws. In Ruslan Salakhutdinov, Zico Kolter, Katherine A. Heller, Adrian Weller, Nuria Oliver, Jonathan Scarlett, and Felix Berkenkamp, editors, Forty-first International Conference on Machine Learning, ICML 2024, Vienna, Austria, July 21-27, 2024, volume 235

R. TIAN AND C. PAQUETTE

of Proceedings of Machine Learning Research, pages 4345–4382. PMLR / OpenReview.net, 2024. URL https://proceedings.mlr.press/v235/bordelon24a.html.

Zachary Charles, Gabriel Teston, Lucio M. Dery, Keith Rush, Nova Fallen, Zachary Garrett, Arthur Szlam, and Arthur Douillard. Communication-efficient language model training scales reliably and robustly: Scaling laws for diloco. CoRR, abs/2503.09799, 2025. doi:10.48550/ARXIV.2503.09799. URL https://doi.org/10.48550/arXiv.2503.09799.

Lizhang Chen, Jonathan Li, and Qiang Liu. Muon optimizes under spectral norm constraints. Transactions on Machine Learning Research, 2026. ISSN 2835-8856. URL https://openreview.net/forum?id=Blz4hjxLwU.

Aakanksha Chowdhery, Sharan Narang, Jacob Devlin, Maarten Bosma, Gaurav Mishra, Adam Roberts, Paul Barham, Hyung Won Chung, Charles Sutton, Sebastian Gehrmann, Parker Schuh, Kensen Shi, Sasha Tsvyashchenko, Joshua Maynez, Abhishek Rao, Parker Barnes, Yi Tay, Noam Shazeer, Vinodkumar Prabhakaran, Emily Reif, Nan Du, Ben Hutchinson, Reiner Pope, James Bradbury, Jacob Austin, Michael Isard, Guy Gur-Ari, Pengcheng Yin, Toju Duke, Anselm Levskaya, Sanjay Ghemawat, Sunipa Dev, Henryk Michalewski, Xavier Garcia, Vedant Misra, Kevin Robinson, Liam Fedus, Denny Zhou, Daphne Ippolito, David Luan, Hyeontaek Lim, Barret Zoph, Alexander Spiridonov, Ryan Sepassi, David Dohan, Shivani Agrawal, Mark Omernick, Andrew M. Dai, Thanumalayan Sankaranarayana Pillai, Marie Pellat, Aitor Lewkowycz, Erica Moreira, Rewon Child, Oleksandr Polozov, Katherine Lee, Zongwei Zhou, Xuezhi Wang, Brennan Saeta, Mark Diaz, Orhan Firat, Michele Catasta, Jason Wei, Kathy Meier-Hellstern, Douglas Eck, Jeff Dean, Slav Petrov, and Noah Fiedel. Palm: Scaling language modeling with pathways. J. Mach. Learn. Res., 24:240:1–240:113, 2023. URL https://jmlr.org/papers/v24/22-1144.html.

Aaron Clauset, Cosma Rohilla Shalizi, and M. E. J. Newman. Power-law distributions in empirical data. SIAM Review, 51(4):661–703, 2009. doi: 10.1137/070710111. URL https://doi.org/10.1137/070710111.

Jeremy Cohen, Simran Kaur, Yuanzhi Li, J. Zico Kolter, and Ameet Talwalkar. Gradient descent on neural networks typically occurs at the edge of stability. In 9th International Conference on Learning Representations, ICLR 2021, Virtual Event, Austria, May 3-7, 2021. OpenReview.net, 2021. URL https://openreview.net/forum?id=jh-rTtvkGeM.

Jeremy Cohen, Behrooz Ghorbani, Shankar Krishnan, Naman Agarwal, Sourabh Medapati, Michal Badura, Daniel Suo, David Cardoze, Zachary Nado, George E. Dahl, and Justin Gilmer. Adaptive gradient methods at the edge of stability. CoRR, abs/2207.14484, 2022. doi: 10.48550/ARXIV.2207.14484. URL https://doi.org/10.48550/arXiv.2207.14484.

Jeremy Cohen, Alex Damian, Ameet Talwalkar, J. Zico Kolter, and Jason D. Lee. Understanding optimization in deep learning with central flows. In The Thirteenth International Conference on Learning Representations, ICLR 2025, Singapore, April 24-28, 2025. OpenReview.net, 2025. URL https://openreview.net/forum?id=sIE2rI3ZPs.

Alex Damian, Eshaan Nichani, and Jason D. Lee. Self-stabilization: The implicit bias of gradient descent at the edge of stability. In The Eleventh International Conference on Learning Representations, ICLR 2023, Kigali, Rwanda, May 1-5, 2023. OpenReview.net, 2023. URL https://openreview.net/forum?id=nhKHA59gXz.

Mostafa Dehghani, Josip Djolonga, Basil Mustafa, Piotr Padlewski, Jonathan Heek, Justin Gilmer, Andreas Peter Steiner, Mathilde Caron, Robert Geirhos, Ibrahim Alabdulmohsin,

Rodolphe Jenatton, Lucas Beyer, Michael Tschannen, Anurag Arnab, Xiao Wang, Carlos Riquelme Ruiz, Matthias Minderer, Joan Puigcerver, Utku Evci, Manoj Kumar, Sjoerd Van Steenkiste, Gamaleldin Fathy Elsayed, Aravindh Mahendran, Fisher Yu, Avital Oliver, Fantine Huot, Jasmijn Bastings, Mark Collier, Alexey A. Gritsenko, Vighnesh Birodkar, Cristina Nader Vasconcelos, Yi Tay, Thomas Mensink, Alexander Kolesnikov, Filip Pavetic, Dustin Tran, Thomas Kipf, Mario Lucic, Xiaohua Zhai, Daniel Keysers, Jeremiah J. Harmsen, and Neil Houlsby. Scaling vision transformers to 22 billion parameters. In Andreas Krause, Emma Brunskill, Kyunghyun Cho, Barbara Engelhardt, Sivan Sabato, and Jonathan Scarlett, editors, Proceedings of the 40th International Conference on Machine Learning, volume 202 of Proceedings of Machine Learning Research, pages 7480–7512. PMLR, 23–29 Jul 2023. URL https://proceedings.mlr.press/v202/dehghani23a.html.

Aleksandr Dremov, Alexander Hägele, Atli Kosson, and Martin Jaggi. Training dynamics of the cooldown stage in warmup-stable-decay learning rate scheduler. Transactions on Machine Learning Research, 2025. ISSN 2835-8856. URL https://openreview.net/forum?id=ZnSYEcZod3.

Katie E. Everett, Lechao Xiao, Mitchell Wortsman, Alexander A. Alemi, Roman Novak, Peter J. Liu, Izzeddin Gur, Jascha Sohl-Dickstein, Leslie Pack Kaelbling, Jaehoon Lee, and Jeffrey Pennington. Scaling exponents across parameterizations and optimizers. In Ruslan Salakhutdinov, Zico Kolter, Katherine A. Heller, Adrian Weller, Nuria Oliver, Jonathan Scarlett, and Felix Berkenkamp, editors, Forty-first International Conference on Machine Learning, ICML 2024, Vienna, Austria, July 21-27, 2024, volume 235 of Proceedings of Machine Learning Research, pages 12666–12700. PMLR / OpenReview.net, 2024. URL https://proceedings.mlr.press/v235/everett24a.html.

Chen Fan, Mark Schmidt, and Christos Thrampoulidis. Implicit bias of spectral descent and muon on multiclass separable data. In The Thirty-ninth Annual Conference on Neural Information Processing Systems, 2025. URL https://openreview.net/forum?id=Zn2ajV1kTQ.

Damien Ferbach, Katie Everett, Gauthier Gidel, Elliot Paquette, and Courtney Paquette. Dimension-adapted momentum outscales SGD. In The Thirty-ninth Annual Conference on Neural Information Processing Systems, 2025. URL https://openreview.net/forum?id=t4aN2G7Ucc.

Damien Ferbach, Courtney Paquette, Gauthier Gidel, Katie Everett, and Elliot Paquette. Logarithmic-time schedules for scaling language models with momentum, 2026. URL https://arxiv.org/abs/2602.05298.

Behrooz Ghorbani, Shankar Krishnan, and Ying Xiao. An investigation into neural net optimization via hessian eigenvalue density. In Kamalika Chaudhuri and Ruslan Salakhutdinov, editors, Proceedings of the 36th International Conference on Machine Learning, volume 97 of Proceedings of Machine Learning Research, pages 2232–2241. PMLR, 09–15 Jun 2019. URL https://proceedings.mlr.press/v97/ghorbani19b.html.

Justin Gilmer, Behrooz Ghorbani, Ankush Garg, Sneha Kudugunta, Behnam Neyshabur, David Cardoze, George Edward Dahl, Zachary Nado, and Orhan Firat. A loss curvature perspective on training instabilities of deep learning models. In International Conference on Learning Representations, 2022. URL https://openreview.net/forum?id=OcKMT-36vUs.

Jordan Hoffmann, Sebastian Borgeaud, Arthur Mensch, Elena Buchatskaya, Trevor Cai, Eliza Rutherford, Diego de Las Casas, Lisa Anne Hendricks, Johannes Welbl, Aidan Clark,

R. TIAN AND C. PAQUETTE

Tom Hennigan, Eric Noland, Katie Millican, George van den Driessche, Bogdan Damoc, Aurelia Guy, Simon Osindero, Karen Simonyan, Erich Elsen, Jack W. Rae, Oriol Vinyals, and Laurent Sifre. Training compute-optimal large language models, 2022. URL https://arxiv.org/abs/2203.15556.

Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In Francis Bach and David Blei, editors, Proceedings of the 32nd International Conference on Machine Learning, volume 37 of Proceedings of Machine Learning Research, pages 448–456, Lille, France, 07–09 Jul 2015. PMLR. URL https://proceedings.mlr.press/v37/ioffe15.html.

Arthur Jacot, Clément Hongler, and Franck Gabriel. Neural tangent kernel: Convergence and generalization in neural networks. In Samy Bengio, Hanna M. Wallach, Hugo Larochelle, Kristen Grauman, Nicolò Cesa-Bianchi, and Roman Garnett, editors, Advances in Neural Information Processing Systems 31: Annual Conference on Neural Information Processing Systems 2018, NeurIPS 2018, December 3-8, 2018, Montréal, Canada, pages 8580–8589, 2018. URL https://proceedings.neurips.cc/paper/2018/hash/5a4be1fa34e62bb8a6ec6b91d2462f5a-Abstract.html.

Stanislaw Jastrzebski, Zachary Kenton, Nicolas Ballas, Asja Fischer, Yoshua Bengio, and Almost Storkey. On the relation between the sharpest directions of DNN loss and the SGD step length. In International Conference on Learning Representations, 2019. URL https://openreview.net/forum?id=SkgEaj05t7.

Keller Jordan, Yuchen Jin, Vlado Boza, Jiacheng You, Franz Cesista, Laker Newhouse, and Jeremy Bernstein. Muon: An optimizer for hidden layers in neural networks, 2024. URL https://kellerjordan.github.io/posts/muon/.

Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In International Conference on Learning Representations (ICLR), 2015.

Jaehoon Lee, Lechao Xiao, Samuel S. Schoenholz, Yasaman Bahri, Roman Novak, Jascha Sohl-Dickstein, and Jeffrey Pennington. Wide neural networks of any depth evolve as linear models under gradient descent. In Hanna M. Wallach, Hugo Larochelle, Alina Beygelzimer, Florence d'Alché-Buc, Emily B. Fox, and Roman Garnett, editors, Advances in Neural Information Processing Systems 32: Annual Conference on Neural Information Processing Systems 2019, NeurIPS 2019, December 8-14, 2019, Vancouver, BC, Canada, pages 8570–8581, 2019. URL https://proceedings.neurips.cc/paper/2019/hash/0d1a9651497a38d8b1c3871c84528bd4-Abstract.html.

Aitor Lewkowycz, Yasaman Bahri, Ethan Dyer, Jascha Sohl-Dickstein, and Guy Gur-Ari. The large learning rate phase of deep learning: the catapult mechanism, 2020. URL https://arxiv.org/abs/2003.02218.

Qianxiao Li, Cheng Tai, and E. Weinan. Stochastic modified equations and dynamics of stochastic gradient algorithms i: mathematical foundations. J. Mach. Learn. Res., 20(1):1474–1520, January 2019. ISSN 1532-4435.

Xiaolong Li, Zhi-Qin John Xu, and Zhongwang Zhang. Loss spike in training neural networks. Journal of Computational Mathematics, 44(2):369–393, 2026. doi: 10.4208/jcm.2412-m2024-0083. URL https://doi.org/10.4208/jcm.2412-m2024-0083.

Yinhan Liu, Myle Ott, Naman Goyal, Jingfei Du, Mandar Joshi, Danqi Chen, Omer Levy, Mike Lewis, Luke Zettlemoyer, and Veselin Stoyanov. Roberta: A robustly optimized bert pretraining approach, 2019. URL https://arxiv.org/abs/1907.11692.

Ilya Loshchilov and Frank Hutter. Decoupled weight decay regularization. In International Conference on Learning Representations, 2019. URL https://openreview.net/forum?id=Bkg6RiCqY7.

Alexander Maloney, Daniel A. Roberts, and James Sully. A solvable model of neural scaling laws. CoRR, abs/2210.16859, 2022. doi: 10.48550/ARXIV.2210.16859. URL https://doi.org/10.48550/arXiv.2210.16859.

Stephan Mandt, Matthew Hoffman, and David Blei. A variational analysis of stochastic gradient algorithms. In Maria Florina Balcan and Kilian Q. Weinberger, editors, Proceedings of The 33rd International Conference on Machine Learning, volume 48 of Proceedings of Machine Learning Research, pages 354–363, New York, New York, USA, 20–22 Jun 2016. PMLR. URL https://proceedings.mlr.press/v48/mandt16.html.

Noah Marshall, Ke Liang Xiao, Atish Agarwala, and Elliot Paquette. To clip or not to clip: the dynamics of sgd with gradient clipping in high-dimensions, 2024. URL https://arxiv.org/abs/2406.11733.

Charles H. Martin and Michael W. Mahoney. Implicit self-regularization in deep neural networks: Evidence from random matrix theory and implications for learning. Journal of Machine Learning Research, 22(165):1–73, 2021. URL http://jmlr.org/papers/v22/20-410.html.

Igor Molybog, Peter Albert, Moya Chen, Zachary DeVito, David Esiobu, Naman Goyal, Punit Singh Koura, Sharan Narang, Andrew Poulton, Ruan Silva, Binh Tang, Diana Liskovich, Puxin Xu, Yuchen Zhang, Melanie Kambadur, Stephen Roller, and Susan Zhang. A theory on adam instability in large-scale machine learning. CoRR, abs/2304.09871, 2023. doi: 10.48550/ARXIV.2304.09871. URL https://doi.org/10.48550/arXiv.2304.09871.

Preetum Nakkiran, Gal Kaplun, Yamini Bansal, Tristan Yang, Boaz Barak, and Ilya Sutskever. Deep double descent: Where bigger models and more data hurt. In International Conference on Learning Representations, 2020. URL https://openreview.net/forum?id=B1g5sA4twr.

Kosuke Nishida, Kyosuke Nishida, and Kuniko Saito. Initialization of large language models via reparameterization to mitigate loss spikes. In Yaser Al-Onaizan, Mohit Bansal, and Yun-Nung Chen, editors, Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, pages 22699–22714, Miami, Florida, USA, November 2024. Association for Computational Linguistics. doi: 10.18653/v1/2024.emnlp-main.1264. URL https://aclanthology.org/2024.emnlp-main.1264/.

Courtney Paquette, Kiwon Lee, Fabian Pedregosa, and Elliot Paquette. SGD in the large: Average-case analysis, asymptotics, and stepsize criticality. In Mikhail Belkin and Samory Kpotufe, editors, Conference on Learning Theory, COLT 2021, 15-19 August 2021, Boulder, Colorado, USA, volume 134 of Proceedings of Machine Learning Research, pages 3548–3626. PMLR, 2021. URL http://proceedings.mlr.press/v134/paquette21a.html.

Elliot Paquette, Courtney Paquette, Lechao Xiao, and Jeffrey Pennington. 4+3 phases of compute-optimal neural scaling laws. In Amir Globersons, Lester Mackey, Danielle Belgrave, Angela Fan, Ulrich Paquet, Jakub M. Tomczak, and Cheng Zhang, editors, Advances in Neural Information Processing Systems 37: Annual Conference on Neural Information Processing Systems 2024, NeurIPS 2024, Vancouver, BC, Canada, December 10 - 15, 2024, 2024. URL http://papers.nips.cc/paper_files/paper/2024/hash/1dccfc3ee01871d05e33457c61037d59-Abstract-Conference.html.

R. TIAN AND C. PAQUETTE

Razvan Pascanu, Tomas Mikolov, and Yoshua Bengio. On the difficulty of training recurrent neural networks. In Sanjoy Dasgupta and David McAllester, editors, Proceedings of the 30th International Conference on Machine Learning, Proceedings of Machine Learning Research, pages 1310–1318, Atlanta, Georgia, USA, 17–19 Jun 2013. PMLR. URL https://proceedings.mlr.press/v28/pascanu13.html.

Shikai Qiu, Lechao Xiao, Andrew Gordon Wilson, Jeffrey Pennington, and Atish Agarwala. Scaling collapse reveals universal dynamics in compute-optimally trained neural networks. In Forty-second International Conference on Machine Learning, 2025. URL https://openreview.net/forum?id=Fvq9ogLnLN.

Sashank J. Reddi, Satyen Kale, and Sanjiv Kumar. On the convergence of adam and beyond. In International Conference on Learning Representations, 2018. URL https://openreview.net/forum?id=ryQu7f-RZ.

Noam Shazeer and Mitchell Stern. Adafactor: Adaptive learning rates with sublinear memory cost. In Jennifer Dy and Andreas Krause, editors, Proceedings of the 35th International Conference on Machine Learning, volume 80 of Proceedings of Machine Learning Research, pages 4596–4604. PMLR, 10–15 Jul 2018. URL https://proceedings.mlr.press/v80/shazeer18a.html.

Jianlin Su, Muradha H. M. Ahmed, Yu Lu, Shengfeng Pan, Wen Bo, and Yunfeng Liu. Roformer: Enhanced transformer with rotary position embedding. Neurocomputing, 568:127063, 2024. doi: 10.1016/J.NEUCOM.2023.127063. URL https://doi.org/10.1016/j.neucom.2023.127063.

Sho Takase, Shun Kiyono, Sosuke Kobayashi, and Jun Suzuki. Spike no more: Stabilizing the pre-training of large language models. In Second Conference on Language Modeling, 2025. URL https://openreview.net/forum?id=52YBEzcI0l.

Kumiko Tanaka-Ishii. Statistical Universals of Language: Mathematical Chance vs. Human Choice. Springer, Switzerland, 2021. ISBN 978-3-030-59376-6. doi: 10.1007/978-3-030-59377-3.

Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In I. Guyon, U. Von Luxburg, S. Bengio, H. Wallach, R. Fergus, S. Vishwanathan, and R. Garnett, editors, Advances in Neural Information Processing Systems, volume 30. Curran Associates, Inc., 2017. URL https://proceedings.neurips.cc/paper_files/paper/2017/file/3f5ee243547dee91fbd053c1c4a845aa-Paper.pdf.

Mitchell Wortsman, Tim Dettmers, Luke Zettlemoyer, Ari S. Morcos, Ali Farhadi, and Ludwig Schmidt. Stable and low-precision training for large-scale vision-language models. In Thirty-seventh Conference on Neural Information Processing Systems, 2023. URL https://openreview.net/forum?id=sqqASmpA2R.

Mitchell Wortsman, Peter J Liu, Lechao Xiao, Katie E Everett, Alexander A Alemi, Ben Adlam, John D Co-Reyes, Izzeddin Gur, Abhishek Kumar, Roman Novak, Jeffrey Pennington, Jascha Sohl-Dickstein, Kelvin Xu, Jaehoon Lee, Justin Gilmer, and Simon Kornblith. Small-scale proxies for large-scale transformer training instabilities. In The Twelfth International Conference on Learning Representations, 2024. URL https://openreview.net/forum?id=d8w0pmvXbZ.

Ruibin Xiong, Yunchang Yang, Di He, Kai Zheng, Shuxin Zheng, Chen Xing, Huishuai Zhang, Yanyan Lan, Liwei Wang, and Tie-Yan Liu. On layer normalization in the transformer architecture, 2020. URL https://arxiv.org/abs/2002.04745.

Jingzhao Zhang, Tianxing He, Suvrit Sra, and Ali Jadbabaie. Why gradient clipping accelerates training: A theoretical justification for adaptivity. In International Conference on Learning Representations, 2020. URL https://openreview.net/forum?id=BJgnXpVYwS.

Libin Zhu, Chaoyue Liu, Adityanarayanan Radhakrishnan, and Mikhail Belkin. Catapults in sgd: spikes in the training loss and their impact on generalization through feature learning, 2024. URL https://arxiv.org/abs/2306.04815.

George Kingsley Zipf. Human Behavior and the Principle of Least Effort: An Introduction to Human Ecology. Addison-Wesley Press, Cambridge, MA, 1949.

R. TIAN AND C. PAQUETTE

References (57)