Manuscript Offprint
arXiv:2609.39767How Does Local Landscape Geometry Evolve in Language Model Pre-Training?
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
ABSTRACT
The scale and expense of pre-training language models make efficient hyperparameter tuning essential, yet a principled guidance is still missing. In this work, we analyze language model pre-training dynamics from a local landscape geometry perspective. Our study reveals two distinct phases. In Phase I, sharpness of the local landscape is initially high, leading to instability and loss plateaus under large learning rates (LRs). The landscape shifts from sharp to flatter regions early in training. This dynamic explains the necessity of LR warmup and further suggests that larger peak LRs require proportionally longer warmup periods. In Phase II, the local landscape is governed by the gradient noise scale. Our theory identifies a depth flatness trade-off: high noise from smaller batches widens the loss basin, whereas reduced noise from larger batches deepens it. This theory motivates a dynamic batch-size (BS) scheduler that begins with a small BS and increases it late in training. Together, we provide a unified view of loss landscape evolution, which translates into actionable tuning strategies for large-scale pre-training.
1 INTRODUCTION
Training language models efficiently requires carefully tuned hyperparameters, yet a principled guidance for tuning remains unclear. While practitioners often rely on grid search, these approaches are costly and unreliable at scale. Recent research (Foret et al., 2021; Cohen et al., 2021; Gilmer et al., 2022) has highlighted that the geometry of the local loss landscape offers fundamental insights into optimization, revealing how factors such as sharpness (Keskar et al., 2017; Zhang et al., 2017; Jiang et al., 2020) shape training dynamics. Leveraging insights from the local loss landscape presents a promising path toward principled hyperparameter tuning for language model pre-training.
Several pioneering works have already attempted to study language models from the local loss landscape perspective. Zhang et al. (2024a); Wang et al. (2025) identified blockwise sharpness patterns in language models through Hessian-based analyses. Wen et al. (2024) introduced the “river-valley” landscape to explain the effectiveness of Warmup-Stable-Decay (WSD) schedules (Hu et al., 2024). Peng et al. (2024); Chen et al. (2025) further visualized the loss landscapes of finetuned language models, offering geometric insights into the safety alignment.
To this end, we pose the central questions of this paper:
-
How does the local landscape geometry evolve in language model pre-training?
-
What implications does this evolution have for principled hyperparameter tuning?
Our contributions. In this work, we present the systematic study of the evolution of local landscape geometry during language model pre-training. As illustrated in Figure 1, our analysis reveals two distinct phases, each with implications for hyperparameter tuning.
• Phase I: From Sharp to Flat Landscapes. In Phase I, we observe that the model shifts from sharper regions of the loss landscape toward flatter ones, contrary to the progressive sharpening phenomenon in prior works (Cohen et al., 2021; Song & Yun, 2023; Cohen et al., 2025). Lyapunov stability
*Equal contribution. Correspondence to Zhanpeng Zhou (zzp1012@sjtu.edu.cn).
To avoid misunderstanding, we clarify the terminology in Table 1.
Local Landscapes across Iterates (0.49M)

Local Landscapes across Iterates (7.8M)
Figure 1: The evolution of local loss landscape throughout pre-training. We train LLaMA-2 models with 170M parameters using different BSs (0.49M and 7.8M), and visualize the one-dimensional loss landscape at iterate along a random direction , i.e., plot vs. the perturbation coefficient . The landscapes are shown across different training iterations . Phase I. The landscapes gradually widen for both training runs. Phase II. Training with smaller BS produces wider landscapes than training with larger BS.
analysis in Section 4 shows that the maximum stable learning rate (LR) is inversely proportional to sharpness. Since sharpness is extremely high early in pre-training, using large peak LRs without sufficient warmup leads to instabilities, such as loss spikes and plateaus (see Figure 2).
Implications. The sharp-to-flat transition explains the necessity of LR warmup: LR should remain small until sharpness has sufficiently decayed, preventing training instabilities. This further provides a tuning recipe: within a reasonable range, larger peak LRs require proportionally longer warmup, to safely navigate the sharpest stage of training.
• Phase II: Basin Selection Governed by Noise Scale. In Phase II, the local loss landscape is largely governed by the noise scale during training, with batch size (BS) serving as its primary controller. Our analysis shows that smaller BS widens the loss basin, while larger BS deepens it. Theoretically, we analyze a continuous setup of preconditioned SGD, which uncovers a depth flatness trade-off: reduced gradient noise tends to minimize the loss, leading to deeper minima; whereas increased noise tends to regularize the sharpness of landscape, moving toward wider ones.
Implications. The trade-off, together with the ramping-time experiment in Figure 6, motivates a BS scheduling strategy: begins with a small BS and ramps it until the late phase of training. Our scheduling ensures steady loss reduction with few token consumption. Moreover, since the noise scale is proportional to in our theory, we predict that BS ramping and LR decay reduce the noise scale in similar ways and thus yield comparable performance (see Figure 8).
In summary, our work provides a two-phase picture of pre-training: an early sharp-to-flat transition that necessitates LR warmup, and a late noise-driven regime that motivates BS scheduling. This unified view advances our understanding of pre-training dynamics.
Large-scale pre-training: learning rate warmup. Learning rate warmup, first introduced in large-batch ResNet (He et al., 2016; Goyal et al., 2017) and Transformer training (Vaswani et al., 2017), is now standard in large-scale pre-training (Shoeybi et al., 2019; Zhang et al., 2022; Hu et al., 2024). Its mechanism, however, remains poorly understood. Gotmare et al. (2019) showed that warmup prevents excessively large early parameter updates; Bergsma et al. (2025) attributed the early updates to bias reduction. Kosson et al. (2024) showed in language model pre-training that warmup mitigates momentum bias correction and correlated gradients that drive unstable representation shifts. Yet no unified explanation exists. In comparison, our work views warmup from a geometric perspective, suggesting that larger peak LRs require proportionally longer warmup.
Large-scale pre-training: batch size schedules. Batch size is another critical hyperparameter in large-scale pre-training, controlling the trade-off between time efficiency and data efficiency. Prior works (McCandlish et al., 2018; Kaplan et al., 2020; Gray et al., 2023; 2024; Zhang et al., 2025) have focused on the critical batch size (CBS), the point where further increasing BS yields diminishing returns. However, CBS is usually considered as constant throughout training, and less attention has been given to BS scheduling. Early works on adaptive sampling proposed gradually increasing BS to balance efficiency and noise reduction (De et al., 2017; Lau et al., 2024b; a; 2025; Ostroukhov et al., 2024). Advanced language models (Brown et al., 2020; Touvron et al., 2023; Liu et al., 2024; Li et al., 2025) employed stage-wise BS schedules, but without systematic analysis. In contrast, our work connects BS scheduling to the evolving local loss landscape, providing a principled way for when to increase the BS.
3 PRELIMINARIES
Basic notations. We use bold lowercase letters (e.g., ) to denote vectors and bold uppercase letters (e.g., ) to denote matrices. For a matrix , let , , and denote its spectral norm, Frobenius norm and trace, respectively. The Hadamard product is denoted by .
Theoretical setup. Our theory focuses on the preconditioned stochastic gradient descent (PSGD). We consider a model with parameters and a training set of examples. Let be the fitting error evaluated at the -th example and be the empirical risk. We analyze the preconditioned SGD with a fixed positive-definite preconditioner . At iteration , the update rule gives:
where is the LR and are i.i.d. random noise vectors with
Note that is the gradient covariance at , and denotes the BS. During the late phase of training, the model remains close to some global minimum and the loss can be approximated quadratically:
Similar formulations have been widely used in dynamical stability analyses (Wu et al., 2018; Cohen et al., 2021; Zhou et al., 2025) and theoretical advances on BS scaling (McCandlish et al., 2018).
Experimental setup. Our experiments are mainly conducted on LLaMA-2 architecture (Touvron et al., 2023) models with 93M and 170M parameters. Training is performed on the FineWeb-Edu dataset (Penedo et al., 2024), with sufficient training budgets ranging from 50 to 1000 tokens-per-parameter (TPP) and a context length of 1024. We adopt AdamW (Kingma & Ba, 2014) with hyperparameters , , and weight decay 0.1, together with gradient clipping at 1.0 for stability. The evaluation is conducted on a held-out validation split of approximately 50M tokens. More experiments on larger scales, other architectures, and optimizers are deferred to Section C.
Our experiments vary the LRs and BSs. In Section 4, we primarily study the role of LR and warmup length, fixing BS at 7.8M. In Section 5, we focus on the effect of BS, with LR fixed at . To decouple BS ramping from LR decay, we adopt a warmup-stable schedule: after linear warmup to the peak value, the LR remains constant (similar to WSD (Hu et al., 2024), but without decay phase).
Most practical preconditioners are positive-definite: M = I for SGD, diagonal M for AdaGrad (Duchi et al., 2011), RMSProp (Tieleman & Hinton, 2012), Adam, etc.
At least over Chinchilla-optimal tokens (Hoffmann et al., 2022).

Figure 2: Loss spikes and plateaus in Phase I. We train a series of LLaMA-2 models with 93M and 170M parameters. We adopt a warmup-stable schedule, where the warmup length is shortened to 16 iterations and the peak LR is varied, . (Left). LR schedule: vs. training iteration . (Middle, right). Training loss curves for different model sizes: vs. training iteration . The vertical dashed line marks the end of the warmup phase.
4 PHASE I: FROM SHARP TO FLAT LANDSCAPES
In this section, we provide evidence that, during Phase I, the local landscape of language models evolves from sharp regions toward flatter ones. We first observe that training with large LRs and insufficient warmup often leads to instability and early loss plateaus. Via Lyapunov stability analysis, we attribute these behaviors to the sharp-to-flat dynamics. This finding explains the necessity of LR warmup and suggests that larger peak LRs require proportionally longer warmup.
Motivating observations: instability and loss plateaus early in training. The loss curves are typically smooth initially; the model escapes from random initialization and the loss decreases rapidly. Yet, surprisingly, when the warmup length is extremely shortened, we consistently observe loss spikes and plateaus near the end of the warmup phase.
To demonstrate this, we train models of different sizes with a fixed warmup length of 16 iterations while varying the peak LR. As shown in Figure 2, a loss plateau reliably appears around the end of the warmup phase across all settings. Additionally, larger LRs produce higher spikes, which mark a characteristic feature of early training instability. Given these results, two natural questions arise:
Q1. Why does shortened warmup induce training instability?
Q2. Why do spikes and plateaus occur only at the very beginning of training?
To shed light on these questions, we analyze the dynamics of PSGD via Lyapunov stability analysis.
Lyapunov stability analysis: sharpness matters. Let , be two nearby trajectories, and define their difference as . When the noise term is set to zero, the evolution of satisfies:
The dynamics in Equation (4) describe the local sensitivity of the iteration: if matrix repeatedly expands , small perturbations grow exponentially and the iterates are linearly unstable. Intuitively, the LR interacts directly with the curvature of the landscape: if is too large relative to the sharpest direction, the update rule amplifies perturbations and leads to loss spikes. The following lemma formalizes this stability condition for preconditioned GD.
Lemma 4.1 (Stability condition for preconditioned GD). Define the preconditioned curvature matrix , and let be the eigenvalues of . The linear system in Equation (4) is asymptotically stable (i.e., ) if satisfies , .
Lemma 4.1 shows that the Lyapunov stability is governed by the largest eigenvalue of S. If the curvature along the sharpest direction is too large, only a sufficiently small LR can prevent divergence.
We next characterize the one-step loss change as approaches the stability boundary .
Lemma 4.2 (One-step loss change). Let . Suppose that along the segment , we have . Then,
Sharpness Evolution in Early Iterations

Iteration t
Figure 3: Early pre-training shifts iterates from sharp to flat regions. We visualize the local landscape geometry evolution of training runs in Figure 2. For each model size, we select the training run with LR . (Top). Evolution of the top eigenvalues of the Hessian across iterations: vs. iteration . (Bottom). One-dimensional loss landscape along a random perturbation direction: the perturbed loss vs. perturbation coefficient , shown across early training iterations .
In particular, if , the guaranteed decrease per step .
Lemma 4.2 states that when is close to , each update yields only a marginal decrease in loss. Together with Lemma 4.1, it is clear that training near the stability boundary naturally leads to characteristic loss spikes and plateaus.
Importantly, the stability boundary is determined by the sharpness of the loss landscape. To further address Q1-2, we analyze how sharpness evolves during the early phase.
The early dynamics: from sharp to flat landscapes. We study how the local landscape geometry, particularly the sharpness, evolves for training runs in Figure 2. Specifically, we track the evolution of the top eigenvalues of the Hessian . For some early checkpoints , we also visualize the one-dimensional loss landscape along a random direction by plotting the function with . Li et al. (2018) showed that these random-direction visualizations reliably capture intrinsic properties of the loss landscape properties, such as sharpness. To ensure fair comparison across iterations, we fix the same random vector for all .
In Figure 3 (top), the largest eigenvalues of the Hessian start at high values and then decrease sharply. In Figure 3 (bottom), the loss landscape along a random direction progressively widens as training proceeds, confirming that the model shifts from sharp to flat regions.
A Tuning Recipe: Larger Peak LR, Longer Warmup. We have seen that training stability depends on sharpness: when the landscape is shar, only a sufficiently small LR can keep training stable; and pre-training initially traverses from sharp landscapes to flatter ones. Now let us return to Q1 and Q2:
A1. If the warmup phase is shortened, the LR rises too quickly while the model is still in sharp regions, leading to loss spikes and plateaus.
A2. As training progresses, the landscape becomes flatter and the same LR no longer threatens stability, which explains why instability is confined to the very beginning.
Therefore, in practice, we need a sufficiently long warmup phase to keep the LR small until sharpness has decayed, thereby preventing loss spikes and plateaus. This further suggests a practical tuning recipe: the larger the peak LR, the longer the warmup should be, ensuring iterates safely transition into flatter landscapes.
Following Cohen et al. (2021), we use the Lanczos algorithm to calculate top eigenvalues of Hessian.
In fact, at initialization, sharpness is extremely low but rises sharply after the first update. The sharpness curves reported in Figure 3 therefore start from the first iteration.
To validate this, we train models with varied peak LRs and warmup lengths (in iterations). In Figure 4, within a LR range of to , larger peak LRs require proportionally longer warmup to achieve the optimal validation loss . However, this proportionality does not hold universally. When , the optimal warmup length remains iterations, the same as for . Thus, the proportional relationship applies only within a certain range.
5 PHASE II: LOCAL LANDSCAPE GOVERNED BY NOISE SCALE
In this section, we turn to the local landscape geometry in late phase. We observe that BS plays a central role: training with a large BS tends to find a deeper basin of the landscape, whereas a small BS favors a wider basin. Theoretically, we prove that this trade-off between widen or deepen is governed by the noise scale. Building on this, we propose a BS scheduler for the data-limited regime: use small BS early and ramp the BS late, which consumes fewer tokens to achieve the same loss.
The effect of BS: local landscapes late in training. We conduct experiments to systematically investigate the role of BS in shaping the local loss landscape during the late phase of training. Specifically, we train models with different BSs for iterations. Figure 5 (top left) shows the validation loss curves for each run. Larger BS consistently leads to lower terminal loss and faster convergence in term of iterations . We then visualize the loss landscape around the final iterate . In Figure 5 (top right), it

Figure 4: Larger peak LR, longer warmup. We plot the best validation loss vs. warmup for different . Optimal is highlighted with a star.
is clear that small BS produces flatter basins, whereas large BS yields deeper ones. Furthermore, Figure 5 (bottom) compares the landscape evolution of runs with and , indicating that in the late phase, larger BS tends to deepen the basin, while smaller BS shifts toward wider basins.
Despite these results, two key questions remain:
Q3. Why is there a trade-off between widening and deepening the basin?
Q4. Which factor underlying the hyperparameter BS governs this trade-off?
To delve into Q3-4, we revisit the stochastic differential equation (SDE) in Jastrzębski et al. (2017).
Widen or deepen: noise scale governs basin selection. Following Jastrzębski et al. (2017), we take the continuous-time limit of Equation (1). Suppose that the noise covariance satisfies for some temperature . As , the scaled discrete process converges weakly to the Itô SDE:
where is standard Brownian motion and the noise scale is proportional to .
Building on Equation (5) and the local quadratic model in Equation (3), we establish the trade-off between deepening and widening the loss basin.
Theorem 5.1 (Depth-flatness trade-off). Let the empirical risk admit multiple local minima with Hessians . Under the SDE in Equation (5) with temperature , the stationary probability that training resides in basin is given by:
In terms of processed tokens, small BS training converges faster.
The assumption of noise covariance is justified in Section B.2.

Local Landscapes across Late Iterates (0.49M)
Local Landscapes across Late Iterates (7.8M)
Figure 5: Large BS deepens the basin, small BS widens the basin. We train a series of LLaMA-2 models (170M) for iterations, using BSs . (Top left). Validation loss curves for different BSs: vs. training iteration . (Top right). One-dimensional loss landscapes at the final iterates along a random perturbation direction: perturbed loss vs. perturbation coefficient , visualized across different BSs. (Bottom). One-dimensional loss landscape: the perturbed loss vs. perturbation coefficient , shown across late training iterations for and .
Theorem 5.1 states that the basin selection is controlled by the free energy function . In early training, the loss term dominates, so the model primarily seeks regions of lower loss. In later training, is comparable to the flatness penalty , and basin selection becomes increasingly sensitive to the noise scale .
Efficient pre-training: a BS scheduler in data-limited regime. Turning back to Q3 and Q4, the trade-off arises because basin selection balances loss minimization against curvature regularization (A3), with the governing factor being the noise scale (A4). Since the primary objective of pre-training is to minimize the training loss , this balance naturally favors largest BS available (small ). In practice, however, data availability is limited, and excessively large BS substantially increase data consumption . Thus, scheduling BS in pre-training is crucial, particularly in the data-limited regime.
• BS scheduler: design principle I. Inspired by our theory, loss reduction dominates early in training, during which large BS yields limited benefit. This suggests the first design principle.
Design principle I. Start the training process with a small BS before increasing it later.
Related ideas were noted by Li et al. (2025); Merrill et al. (2025), often referred to as BS warmup. However, a key difference in our design lies in when the BS should be increased. Surprisingly, we find that ramping BS later in training yields consistently greater performance.
• BS scheduler: design principle II. To study this, we train models with different BS schedulers while keeping total training iterations fixed. In Figure 6 (left), all runs begin with an initial BS of 0.49M and ramp up to either or that value at different training iterations. Remarkably, all loss curves eventually collapse onto the same trajectory, regardless of when the BS ramping occurs. Note that when measured at the same training iteration, ramping the BS earlier results in higher data consumption. This indicates that early BS ramping offers no efficiency advantage, achieving the same loss but consuming more data.
We next evaluate BS schedules under a fixed token budget. Specifically, we consider a two-stage BS-ramping scheduler characterized by ramp times and . To isolate the effect of each stage, we vary either or while keeping the other fixed. See Figure 6 (middle) for an illustration. In
Note that our analysis focuses on how reduced noise (e.g., via larger BS) helps the optimizer move into deeper minima, conceptually different from the flat-minima perspective in fully interpolating regimes.
For example, in Figure 5 (top right), when , the run consumes approximately 160B tokens.

Figure 6: (Left) Collapse of loss curves under different BS schedules. Validation loss curves for training with different BS scheduling. In all runs, BS starts at 0.49M. For blue curves, BS is ramped up to its initial value; for red curves, BS is ramped to . The ramping times, or , are varied across different positions. (Middle, Right) Ramping BS is more efficient late in training. We evaluate a two-stage BS-ramping schedule with ramp times and . For the red curves, we fix and vary ; for the blue curves, we fix and vary . (Middle). Illustration of BS schedulers. (Right). Final validation loss vs. the relative ramping time, i.e., , , where denotes the total training tokens.

Figure 7: BS scheduling improves data efficiency. We train LLaMA-2 models with 93M and 170M parameters, using a BS schedule that starts at 0.49M and increases by 4× at each ramp. Models are trained with 1, 2, or 3 ramping steps, while models without ramping serve as the baseline. Vertical gray dashed lines indicate ramping positions. (Left, Middle). The validation curves for each run. (Right). Comparison between training with BS ramping to 7.8M and training with a fixed 7.8M BS.
Figure 6 (right), a clear trend emerges: BS ramping is most effective when applied late in training (i.e., with and large), whereas ramping too early consistently harms final performance.
Together, since BS ramping ultimately leads all runs onto the same trajectory, delaying it allows maximal progress (lower loss) along that trajectory under a data-limited budget. This behavior also aligns with our theory. In the late phase of training, the flatness penalty becomes comparable to the loss term, and BS ramping sharply reduces the noise scale, driving rapid convergence toward deeper minima. This consistency between theory and practice leads to our second principle.
Design principle II. Ramp the batch size late in training—when loss reduction becomes marginal.
To further validate our design principle, we train models using a BS schedule that starts at 0.49M and ramps by whenever loss minimization slows. In Figure 7 (left, middle), models with 1, 2 or 3 BS ramping steps achieves significant lower validation loss. While additional ramping steps provide diminishing returns, each step still offers a measurable improvement. Moreover, Figure 7 (right) highlights the data-efficiency of the BS scheduling: ramping the BS up to 7.8M achieves nearly the same final validation loss as training with a fixed 7.8M BS, but requires only about of the tokens (i.e., a speedup). These results confirm that our BS scheduling design preserves the benefits of large BS while substantially reducing data consumption.
Comparison with McCandlish et al. (2018); Merrill et al. (2025). McCandlish et al. (2018) linked BS scaling to the gradient noise and introduced the notion of CBS. Merrill et al. (2025) explored the BS scheduling (BS warmup), doubling BS once the CBS exceeds the current BS. We differs from CBS-related works: without estimating CBS on the fly, we propose to ramp the BS late in training.
BS Ramping vs. LR Decay (170M)

The Interplay of BS Ramping & LR Decay
Figure 8: (Left) BS ramping performs similarly to LR decay. Validation loss curves for training with either BS ramping or LR decay. For BS ramping, BS increases to its initial value; for LR decay, the LR drops to 1/16 of its initial value. Each method applies a single step at varying positions. (Right) Interplay between BS ramping and LR decay. We evaluate four different scheduling strategies. At the 10B tokens, (a) LR drops to 1/4 of its initial value; (b) LR drops to 1/16; (c) BS ramps to . (d) LR drops to 1/4 and BS ramps to . In all runs (both left and right), BS starts at 0.49M and LR begins at (after linear warmup).
6 MORE DISCUSSIONS: LR DECAY AND BS RAMPING
We have excluded LR decay in our experiments to isolate the effect of BS ramping. Yet, recall that the noise scale is proportional to . Our theory suggests that decaying the LR and ramping the BS both reduce the noise scale, and thus may have similar effects on basin selection.
Comparing BS ramping with LR decay. We first train models using either BS ramping or LR decay. Both methods apply a one-time step change: BS ramping multiplies the BS by 16 at , while LR decay divides the LR by 16 at . We align and so that the changes occur at the same positions. In Figure 8 (left), BS ramping and LR decay produce remarkably similar validation loss curves across all change positions, consistent with the idea that both reduce the noise scale in comparable ways.
Interacting BS ramping with LR decay. Furthermore, we study the combined effect of using both BS ramping and LR decay. Specifically, we decay the LR by and simultaneously ramp the BS by at 10B tokens. We compare this hybrid schedule with three baselines: at the same point, we (a) drops the LR by , (b) drops the LR by and (c) ramps the BS by . We denote the hybrid schedule by (d). In Figure 8 (right), three of the schedules (b c d) produce nearly identical loss curves. Crucially, these three configurations yield the same noise scale . In contrast, schedule (a) results in a noticeably different trajectory.
In summary, our results confirm our theoretical prediction: training dynamics in the late phase are governed by the noise scale . LR decay reduce the noise scale in the same manner as BS ramping, and any scheduler that preserves will exhibit nearly identical behavior.
7 CONCLUSION AND LIMITATIONS
In conclusion, we present a study of how local landscape geometry evolves during language model pre-training. Our analysis reveals two phases: an early sharp-to-flat transition and a late noise-governed regime. Phase I explains the necessity of LR warmup, suggesting that larger peak LRs require proportionally longer warmup lengths. Phase II motivates a BS scheduling that starts with small BS and increases the BS late in training. Limitations. The current theory primarily relies on strong assumptions, such as infinite-small LR in SDE. A natural future direction is to generalize the theory to more realistic settings. Additionally, the current theory cannot fully explain the collapse of loss curves under different BS schedules. Understanding the learning dynamics under different BS schedules remains an open question.
REFERENCES
Shane Bergsma, Nolan Simran Dey, Gurpreet Gosal, Gavia Gray, Daria Soboleva, and Joel Hestness. Straight to zero: Why linearly decaying the learning rate to zero works best for LLMs. In The Thirteenth International Conference on Learning Representations, 2025. 3
Tom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, Sandhini Agarwal, Ariel Herbert-Voss, Gretchen Krueger, Tom Henighan, Rewon Child, Aditya Ramesh, Daniel M. Ziegler, Jeffrey Wu, Clemens Winter, Christopher Hesse, Mark Chen, Eric Sigler, Mateusz Litwin, Scott Gray, Benjamin Chess, Jack Clark, Christopher Berner, Sam McCandlish, Alec Radford, Ilya Sutskever, and Dario Amodei. Language models are few-shot learners. Advances in neural information processing systems, 33:1877–1901, 2020. 3
Huanran Chen, Yinpeng Dong, Zeming Wei, Yao Huang, Yichi Zhang, Hang Su, and Jun Zhu. Understanding pre-training and fine-tuning from loss landscape perspectives. arXiv preprint arXiv:2505.17646, 2025. 1
Xiangning Chen, Chen Liang, Da Huang, Esteban Real, Kaiyuan Wang, Hieu Pham, Xuanyi Dong, Thang Luong, Cho-Jui Hsieh, Yifeng Lu, et al. Symbolic discovery of optimization algorithms. Advances in Neural Information Processing Systems, 36, 2024. 20
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, 2025. 1, 2
Jeremy M Cohen, Simran Kaur, Yuanzhi Li, J Zico Kolter, and Ameet Talwalkar. Gradient descent on neural networks typically occurs at the edge of stability. International Conference on Learning Representations, 2021. 1, 3, 5
Jeremy M Cohen, Behrooz Ghorbani, Shankar Krishnan, Naman Agarwal, Sourabh Medapati, Michal Badura, Daniel Suo, David Cardoze, Zachary Nado, George E Dahl, et al. Adaptive gradient methods at the edge of stability. arXiv preprint arXiv:2207.14484, 2022. 2
Soham De, Abhay Yadav, David Jacobs, and Tom Goldstein. Automated inference with adaptive batches. In Artificial Intelligence and Statistics, pp. 1504–1513. PMLR, 2017. 3
John Duchi, Elad Hazan, and Yoram Singer. Adaptive subgradient methods for online learning and stochastic optimization. Journal of Machine Learning Research, 12(61):2121–2159, 2011. 3
Pierre Foret, Ariel Kleiner, Hossein Mobahi, and Behnam Neyshabur. Sharpness-aware minimization for efficiently improving generalization. In International Conference on Learning Representations, 2021. 1
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. 1
Akhilesh Gotmare, Nitish Shirish Keskar, Caiming Xiong, and Richard Socher. A closer look at deep learning heuristics: Learning rate restarts, warmup and distillation. In International Conference on Learning Representations, 2019. 3
Priya Goyal, Piotr Dollár, Ross Girshick, Pieter Noordhuis, Lukasz Wesolowski, Aapo Kyrola, Andrew Tulloch, Yangqing Jia, and Kaiming He. Accurate, large minibatch sgd: Training imagenet in 1 hour. arXiv preprint arXiv:1706.02677, 2017. 2
Gavia Gray, Anshul Samar, and Joel Hestness. Efficient and approximate per-example gradient norms for gradient noise scale. In Workshop on Advancing Neural Network Training: Computational Efficiency, Scalability, and Resource Optimization (WANT@ NeurIPS 2023), 2023. 3
Gavia Gray, Shane Bergsma, Joel Hestness, et al. Normalization layer per-example gradients are sufficient to predict gradient noise scale in transformers. Advances in Neural Information Processing Systems, 37:93510–93539, 2024. 3
Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 770–778, 2016. 2
Jordan Hoffmann, Sebastian Borgeaud, Arthur Mensch, Elena Buchatskaya, Trevor Cai, Eliza Rutherford, Diego de Las Casas, Lisa Anne Hendricks, Johannes Welbl, Aidan Clark, et al. Training compute-optimal large language models. arXiv preprint arXiv:2203.15556, 2022. 3
Shengding Hu, Yuge Tu, Xu Han, Chaoqun He, Ganqu Cui, Xiang Long, Zhi Zheng, Yewei Fang, Yuxiang Huang, Weilin Zhao, et al. Minicpm: Unveiling the potential of small language models with scalable training strategies. arXiv preprint arXiv:2404.06395, 2024. 1, 3
Stanisław Jastrzębski, Zachary Kenton, Devansh Arpit, Nicolas Ballas, Asja Fischer, Yoshua Bengio, and Amos Storkey. Three factors influencing minima in sgd. arXiv preprint arXiv:1711.04623, 2017. 6
Stanisław Jastrzębski, Maciej Szymczak, Stanislav Fort, Devansh Arpit, Jacek Tabor, Kyunghyun Cho*, and Krzysztof Geras*. The break-even point on optimization trajectories of deep neural networks. In International Conference on Learning Representations, 2020. 2
Stanisław Jastrzębski, Zachary Kenton, Nicolas Ballas, Asja Fischer, Yoshua Bengio, and Amost Storkey. On the relation between the sharpest directions of DNN loss and the SGD step length. In International Conference on Learning Representations, 2019. 2
Yiding Jiang, Behnam Neyshabur, Hossein Mobahi, Dilip Krishnan, and Samy Bengio. Fantastic generalization measures and where to find them. In International Conference on Learning Representations, 2020. 1
Jared Kaplan, Sam McCandlish, Tom Henighan, Tom B Brown, Benjamin Chess, Rewon Child, Scott Gray, Alec Radford, Jeffrey Wu, and Dario Amodei. Scaling laws for neural language models. arXiv preprint arXiv:2001.08361, 2020. 3
Andrej Karpathy. NanoGPT. https://github.com/karpathy/nanoGPT, 2022. 20
Jordan Keller et al. Muon optimizer. https://github.com/KellerJordan/Muon?tab=readme-ov-file, 2024. 20
Nitish Shirish Keskar, Dheevatsa Mudigere, Jorge Nocedal, Mikhail Smelyanskiy, and Ping Tak Peter Tang. On large-batch training for deep learning: Generalization gap and sharp minima. In International Conference on Learning Representations, 2017. 1
Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014. 3, 20
Atli Kosson, Bettina Messmer, and Martin Jaggi. Analyzing & reducing the need for learning rate warmup in GPT training. In The Thirty-eighth Annual Conference on Neural Information Processing Systems, 2024. 3
Tim Tsz-Kit Lau, Weijian Li, Chenwei Xu, Han Liu, and Mladen Kolar. Communication-efficient adaptive batch size strategies for distributed local gradient methods. arXiv preprint arXiv:2406.13936, 2024a. 3
Tim Tsz-Kit Lau, Han Liu, and Mladen Kolar. Adadagrad: Adaptive batch size schemes for adaptive gradient methods. arXiv preprint arXiv:2402.11215, 2024b. 3
Tim Tsz-Kit Lau, Weijian Li, Chenwei Xu, Han Liu, and Mladen Kolar. Adaptive batch size schedules for distributed training of language models with data and model parallelism. In Proceedings of Conference on Parsimony and Learning, 2025. 3
Aonian Li, Bangwei Gong, Bo Yang, Boji Shan, Chang Liu, Cheng Zhu, Chunhao Zhang, Congchao Guo, Da Chen, Dong Li, et al. Minimax-01: Scaling foundation models with lightning attention. arXiv preprint arXiv:2501.08313, 2025. 3, 7
Hao Li, Zheng Xu, Gavin Taylor, Christoph Studer, and Tom Goldstein. Visualizing the loss landscape of neural nets. In S. Bengio, H. Wallach, H. Larochelle, K. Grauman, N. Cesa-Bianchi, and R. Garnett (eds.), Advances in Neural Information Processing Systems, volume 31. Curran Associates, Inc., 2018. 5
Aixin Liu, Bei Feng, Bing Xue, Bingxuan Wang, Bochao Wu, Chengda Lu, Chenggang Zhao, Chengqi Deng, Chenyu Zhang, Chong Ruan, et al. Deepseek-v3 technical report. arXiv preprint arXiv:2412.19437, 2024. 3
Sam McCandlish, Jared Kaplan, Dario Amodei, and OpenAI Dota Team. An empirical model of large-batch training. arXiv preprint arXiv:1812.06162, 2018. 3, 8
William Merrill, Shane Arora, Dirk Groeneveld, and Hannaneh Hajishirzi. Critical batch size revisited: A simple empirical approach to large-batch language model training. arXiv preprint arXiv:2505.23971, 2025. 7, 8
Petr Ostroukhov, Aigerim Zhumabayeva, Chulu Xiang, Alexander Gasnikov, Martin Takáč, and Dmitry Kamzolov. Adabatchgrad: Combining adaptive batch size and adaptive step size. arXiv preprint arXiv:2402.05264, 2024. 3
Guilherme Penedo, Hynek Kydliček, Loubna Ben allal, Anton Lozhkov, Margaret Mitchell, Colin Raffel, Leandro Von Werra, and Thomas Wolf. The fineweb datasets: Decanting the web for the finest text data at scale. In The Thirty-eight Conference on Neural Information Processing Systems Datasets and Benchmarks Track, 2024. 3, 20
ShengYun Peng, Pin-Yu Chen, Matthew Daniel Hull, and Duen Horng Chau. Navigating the safety landscape: Measuring risks in finetuning large language models. In The Thirty-eighth Annual Conference on Neural Information Processing Systems, 2024. 1
Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei, and Ilya Sutskever. Language models are unsupervised multitask learners. OpenAI blog, 1(8):9, 2019. 20
Mohammad Shoeybi, Mostofa Patwary, Raul Puri, Patrick LeGresley, Jared Casper, and Bryan Catanzaro. Megatron-lm: Training multi-billion parameter language models using model parallelism. arXiv preprint arXiv:1909.08053, 2019. 3
Minhak Song and Chulhee Yun. Trajectory alignment: understanding the edge of stability phenomenon via bifurcation theory. arXiv preprint arXiv:2307.04204, 2023. 1, 2
Jianlin Su, Murtadha Ahmed, Yu Lu, Shengfeng Pan, Wen Bo, and Yunfeng Liu. Roformer: Enhanced transformer with rotary position embedding. Neurocomputing, 568:127063, 2024. 20
Tijmen Tieleman and Geoffrey Hinton. Rmsprop: Divide the gradient by a running average of its recent magnitude. coursera: Neural networks for machine learning. COURSERA Neural Networks Mach. Learn, 17:6, 2012. 3
Hugo Touvron, Louis Martin, Kevin Stone, Peter Albert, Amjad Almahairi, Yasmine Babaei, Nikolay Bashlykov, Soumya Batra, Prajjwal Bhargava, Shruti Bhosale, et al. Llama 2: Open foundation and fine-tuned chat models. arXiv preprint arXiv:2307.09288, 2023. 3, 20
Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Advances in neural information processing systems, volume 30, 2017. 2
Jinbo Wang, Mingze Wang, Zhanpeng Zhou, Junchi Yan, Weinan E, and Lei Wu. The sharpness disparity principle in transformers for accelerating language model pre-training. In Forty-second International Conference on Machine Learning, 2025. 1
Kaiyue Wen, Zhiyuan Li, Jason Wang, David Hall, Percy Liang, and Tengyu Ma. Understanding warmup-stable-decay learning rates: A river valley loss landscape perspective. arXiv preprint arXiv:2410.05192, 2024. 1
Thomas Wolf, Lysandre Debut, Victor Sanh, Julien Chaumond, Clement Delangue, Anthony Moi, Pierric Cistac, Tim Rault, Rémi Louf, Morgan Funtowicz, Joe Davison, Sam Shleifer, Patrick von Platen, Clara Ma, Yacine Jernite, Julien Plu, Canwen Xu, Teven Le Scao, Sylvain Gugger, Mariama Drame, Quentin Lhoest, and Alexander M. Rush. Transformers: State-of-the-art natural language processing. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing: System Demonstrations, pp. 38–45, Online, October 2020. Association for Computational Linguistics. 20
Lei Wu, Chao Ma, and Weinan E. How SGD selects the global minima in over-parameterized learning: A dynamical stability perspective. Advances in Neural Information Processing Systems, 31:8279–8288, 2018. 2, 3
Lei Wu, Mingze Wang, and Weijie J Su. The alignment property of SGD noise and how it helps select flat minima: A stability analysis. In Alice H. Oh, Alekh Agarwal, Danielle Belgrave, and Kyunghyun Cho (eds.), Advances in Neural Information Processing Systems, 2022. 2
Zeke Xie, Issei Sato, and Masashi Sugiyama. A diffusion theory for deep learning dynamics: Stochastic gradient descent exponentially favors flat minima. In International Conference on Learning Representations, 2021. 2
Chiyuan Zhang, Samy Bengio, Moritz Hardt, Benjamin Recht, and Oriol Vinyals. Understanding deep learning requires rethinking generalization. In International Conference on Learning Representations, 2017. 1
Hanlin Zhang, Depen Morwani, Nikhil Vyas, Jingfeng Wu, Difan Zou, Udaya Ghai, Dean Foster, and Sham Kakade. How does critical batch size scale in pre-training? International Conference on Learning Representations, 2025. 3
Susan Zhang, Stephen Roller, Naman Goyal, Mikel Artetxe, Moya Chen, Shuohui Chen, Christopher Dewan, Mona Diab, Xian Li, Xi Victoria Lin, et al. Opt: Open pre-trained transformer language models. arXiv preprint arXiv:2205.01068, 2022. 3
Yushun Zhang, Congliang Chen, Tian Ding, Ziniu Li, Ruoyu Sun, and Zhi-Quan Luo. Why transformers need adam: A hessian perspective. In The Thirty-eighth Annual Conference on Neural Information Processing Systems, 2024a. 1
Yushun Zhang, Congliang Chen, Ziniu Li, Tian Ding, Chenwei Wu, Yinyu Ye, Zhi-Quan Luo, and Ruoyu Sun. Adam-mini: Use fewer learning rates to gain more. arXiv preprint arXiv:2406.16793, 2024b. 20
Zhanpeng Zhou, Mingze Wang, Yuchen Mao, Bingrui Li, and Junchi Yan. Sharpness-aware minimization efficiently selects flatter minima late in training. In The Thirteenth International Conference on Learning Representations, 2025. 2, 3
Zhanxing Zhu, Jingfeng Wu, Bing Yu, Lei Wu, and Jinwen Ma. The anisotropic noise in stochastic gradient descent: Its behavior of escaping from sharp minima and regularization effects. In Kamalika Chaudhuri and Ruslan Salakhutdinov (eds.), Proceedings of the 36th International Conference on Machine Learning, volume 97 of Proceedings of Machine Learning Research, pp. 7654–7663. PMLR, 09–15 Jun 2019. 2
A TERMINOLOGIES
| Terminology | General Meaning | Usage in This Paper |
| Sharpness | A measure of curvature in the loss landscape, often characterized via the Hessian. Different works may define it differently. | We define sharpness as the curvature along the sharpest direction of the loss landscape. Mathematically, it is presented as the largest eigenvalue of the Hessian or of the preconditioned curvature matrix . |
| Flat/sharp minimum | A minimum is a point where the gradient vanishes and the loss does not decrease in a small neighborhood. A sharp minimum has large curvature; a flat minimum has small curvature. | We use these terms sparingly and follow the standard definitions from the sharpness/flat-minima literature. |
| Wide/deep basin | A loss basin is a region of the landscape surrounding a minimum. A wide basin rises loss slowly in most directions, whereas a deep basin has a significantly lower minimum value compared to its surroundings. | We use these terms to establish the depth–flatness trade-off: large noise scales tend to find wide basins, while small noise scales tend to find deeper regions with lower loss. |
Table 1: Terminology and usage in this paper.
B MISSING PROOF
B.1 PHASE I: LYAPUNOV STABILITY ANALYSIS
Lemma B.1 (Stability Condition for Preconditioned GD). Define the preconditioned curvature matrix , and let be the eigenvalues of . The linear system in Equation (4) is asymptotically stable (i.e., ) if satisfies
Proof. Since , the linear system is asymptotically stable if all eigenvalues of have magnitude less than 1. Note that:
so the eigenvalues are . The stability condition for all is equivalent to:
Lemma B.2 (Exact one-step loss change). Define:
Then the true loss change can be written exactly as
where
Proof. Let and define the scalar function
Then
Compute the derivatives:
By Taylor's theorem with integral remainder:
Now evaluate at t = 0:
For the second derivative term:
since and , and thus
Substituting both terms yields the result.
Lemma B.3 (One-step Loss Change). Let . Suppose that along the segment , we have . Then,
In particular, if , each update is guaranteed to non-increasing in loss, i.e., . Instead, if , the guaranteed decrease per step .
Proof. From Lemma B.2, we have
for all , since is symmetric. Therefore,
Note that , yielding the result.
B.2 PHASE II: SDE ANALYSIS
B.2.1 DISCRETE-TIME SOLUTION
Lemma B.4 (Eigenbasis Decomposition). Let with eigendecomposition , . Define . In coordinates , the recursion gives:
The stationary covariance has diagonal elements:
Proof. First, we verify that can be eigendecomposed. Since both and are positive definite matrices, is also positive definite matrix. By the spectral theorem, admits the eigendecomposition , where is orthogonal and with .
Starting from with , we change variables to .
Defining , we get:
As matrix is diagonal, the recursion now decouples into independent scalar equations for each component :
For each component j, the stationary variance satisfies:
Solving for :
B.2.2 CONTINUOUS-TIME LIMIT
We now take the continuous-time limit ( ) to derive a simpler universal theory. The exact solution for the variance in the eigenbasis from Lemma B.4, i.e., , guides the necessary scaling for the continuous-time limit. Because converges to a finite non-zero value as , the numerator must remain finite. This suggests defining a quantity such that for each mode :
We strengthen this to :
Recalling that , this condition in the original coordinate system translates to the required scaling for the noise covariance:
Proposition B.1 (Convergence to SDE). Consider the scaled discrete process as . Suppose the noise covariance satisfies
for some temperature . Then the process converges weakly to the Itô SDE:
where is standard Brownian motion.
Proof. Consider the discrete preconditioned SGD update:
Define the scaled process . The increment satisfies:
Given the scaling condition Equation (12), the covariance is .
The generator of the discrete process for a smooth function is:
Using a Taylor expansion and taking conditional expectation:
For the second term, with :
where we used and trace cyclicity .
Therefore:
Using the scaling condition Equation (12), we have :
Thus,
As , converges to:
which is the generator of the Itô SDE:
By the weak convergence theory (e.g., via the martingale problem or generator convergence), the process converges weakly to the solution of this SDE.
Proposition B.2 (Gibbs Stationary Distribution). The SDE in Equation (13) has stationary distribution:
Proof. The generator of the SDE (5) is . The Fokker-Planck equation for the probability density is:
where is the adjoint operator. Setting for stationarity:
This implies the current has zero divergence. For a potential-driven system, we require :
Integrating: , which gives Equation (14).
Theorem B.1 (Free Energy Minimization). Let the empirical risk admit multiple local minima with Hessians . Under the SDE in Equation (13) with temperature , the stationary probability that training resides in basin is given by:
Proof. From the Gibbs distribution Equation (14), the probability mass in basin is:
where is the basin of attraction around minimum .
For the numerator, using the quadratic approximation in basin we get:
The integral is a multivariate Gaussian with covariance . Using the standard formula for Gaussian integrals:
With , we have and :
Therefore:
Similarly, the total partition function is:
Therefore:
This completes the proof of the free energy formula Equation (15).
C EXPERIMENTAL SETUPS AND MORE RESULTS
C.1 EXPERIMENTAL SETUPS
Models. We utilize two popular classes of LLM models for our pre-training experiments:
-
GPT-2. We use GPT-2 (small) model (Radford et al., 2019), implemented via the nanoGPT code base (Karpathy, 2022). Following nanoGPT, the model employs Gaussian Error Linear Unit (GELU) activations and standard Layer Normalization (LayerNorm). Detailed model configurations are provided in Table 2.
-
LLaMA. LLaMA (Touvron et al., 2023) is another popular decoder-only Transformer architecture, incorporating Rotary Positional Encoding (RoPE) (Su et al., 2024), Swish-Gated Linear Unit (SwiGLU), and Root mean square layer normalization (RMSNorm). For implementation, we utilize the LLaMA code from HuggingFace Transformers Library (Wolf et al., 2020). Additional model configurations are detailed in Table 2.
Datasets. Training is performed on the FineWeb-Edu dataset (Penedo et al., 2024). We adopt the a subset randomly sampled from the whole dataset of around 100B GPT-2 tokens. The same dataset has been widely used in literature on LLM pre-training.
Optimizers. To generalize our findings across different optimizers, we choose:
-
AdamW. AdamW (Kingma & Ba, 2014) is adopted with hyperparameters , , and weight decay 0.1.
-
Muon. Muon (Keller et al., 2024) is used with momentum of 0.95 and weight decay 0.1.
-
Adam-mini. The hyperparameter of Adam-mini (Zhang et al., 2024b) is the same as AdamW.
-
Lion. Lion (Chen et al., 2024) is used with hyperparameters , . The LR of Lion is divided by compared with the LR of AdamW in the same experiments, and the weight decay is ramped up to to keep the effective LR .
All these optimizers are used with gradient clipping at 1.0 for stability.
Table 2: Model configurations.
| Acronym | Size | n_head | depth | ||
|---|---|---|---|---|---|
| GPT-2 (small) | 124M | 768 | 3072 | 12 | 12 |
| LLaMA (93M) | 93M | 512 | 2048 | 16 | 8 |
| LLaMA (170M) | 170M | 768 | 3072 | 12 | 8 |
| LLaMA (270M) | 270M | 1024 | 4096 | 16 | 8 |
| LLaMA (530M) | 530M | 1536 | 6144 | 24 | 8 |
C.2 MORE RESULTS UNDER VARIOUS SETUPS.
In this section, we extend our findings to other architectures, optimization algorithms, and larger training scales. Due to computational constraints, we primarily focus on validating the sharp-to-flat early dynamics and the proposed BS scheduling principle across these settings. We also explore the warmup-tuning recipe on additional architectures.
Extension to GPT-2 Architectures. See Figures 9 and 10 for details.
Extension to Other Optimizers. See Figure 11 for Adam-mini, and see Figure 12 for Lion.
Extension to Larger Models. See Figure 13 for models with 270M and 530M parameters.
C.3 ABLATION STUDIES ON EARLY INSTABILITIES.
In this section, we conduct ablation studies on the root cause of instabilities, such as loss spikes and plateaus, observed in early training.

Figure 9: Extensive to GPT-2 architectures. (Left). Early sharp-to-flat dynamics. Evolution of the top eigenvalues of the Hessian across iterations: vs. iteration . (Right). BS scheduling improves data efficiency. BS scheduling improves data efficiency. We use a BS schedule that starts at 0.49M and increases by at each ramp. Models are trained with 1, 2, or 3 ramping steps, while models without ramping serve as the baseline. Vertical gray dashed lines indicate ramping positions.

Figure 10: Extensive to GPT-2 architectures. Larger Peak LR, Longer Warmup. We train a series of GPT-2 models with 100 TPP. We vary the peak LRs and warmup lengths . We plot the best validation loss vs. for different . The optimal is highlighted with a star.

Figure 11: Extensive to Adam-mini optimizer. (Left). Early sharp-to-flat dynamics. Evolution of the top eigenvalues of the Hessian across iterations: vs. iteration . (Right). BS scheduling improves data efficiency. BS scheduling improves data efficiency. We use a BS schedule that starts at 0.49M and increases by at each ramp. Models are trained with 1, 2, or 3 ramping steps, while models without ramping serve as the baseline. Vertical gray dashed lines indicate ramping positions.
Is it the unstable optimizer? To disentangle optimizer-induced instability from landscape-induced instability, we repeated the experiments using Muon, a substantially more stable optimizer than AdamW. In Figure 14, the loss spikes and plateaus consistently occurs under Muon when warmup is shortened or the peak LR is increased. This rules out the possibility that the behavior stems from AdamW's startup issues.

Figure 12: Extensive to Lion optimizer. (Left). Early sharp-to-flat dynamics. Evolution of the top eigenvalues of the Hessian across iterations: vs. iteration . (Right). BS scheduling improves data efficiency. BS scheduling improves data efficiency. We use a BS schedule that starts at 0.49M and increases by at each ramp. Models are trained with 1, 2, or 3 ramping steps, while models without ramping serve as the baseline. Vertical gray dashed lines indicate ramping positions.

Figure 13: Extensive to Larger Scale. (Left). Early sharp-to-flat dynamics. Evolution of the top eigenvalues of the Hessian across iterations: vs. iteration . (Right). BS scheduling improves data efficiency. BS scheduling improves data efficiency. We use a BS schedule that starts at 0.49M and increases by at each ramp. Models are trained with 1, 2, or 3 ramping steps, while models without ramping serve as the baseline. Vertical gray dashed lines indicate ramping positions.

Figure 14: Muon consistently shows loss spikes and plateaus early in training. We train a series of LLaMA-2 models with 170M parameters. We adopt a warmup-stable schedule, where the warmup length is shortened to 16 iterations and the peak LR is varied, . (Left). LR schedule: vs. training iteration . (Middle, Right). Training loss curves for different model sizes: vs. training iteration . The vertical dashed line marks the end of the warmup phase.
What if we use longer warmup? We vary only the warmup length while fixing the peak LR at . In Figure 15 (left), shorter warmup lengths lead to higher possibilities of loss spikes. This behavior is consistent with the sharp-to-flat dynamics. Early in training, the model resides in sharper regions of the landscape, where only sufficiently small LRs ensure stable updates. Therefore, warmup is needed to gradually increase the LR until the trajectory enters flatter regions that can tolerate larger LRs.
What if zero warmup and small BS? We also conduct experiments with no warmup and small batch size. In Figure 15 (right), the loss spikes become even more significant. This aligns with our

Figure 15: (Left.) Shorter warmup, more loss spikes. We train a series of LLaMA-2 models with 170M parameters. We adopt a warmup-stable schedule, where the warmup length varies from iterations and the peak LR is fixed . (Right). Zero warmup and small BS leads to larger loss spikes. We train a series of LLaMA-2 models with 170M parameters. We adopt a constant LR schedule, where no warmup and the peak LR is varied, . We also use the 0.49M BS.
explanation: with no warmup, the LR jumps immediately to a large value while sharpness is still extremely high, causing a spike almost at initialization. More importantly, small BS does not replace warmup, and the instability still appears because of the sharpness.