Manuscript Offprint

arXiv:2610.21814

Measuring the local shape of learning-rate transfer curves

Satoki Ishikawa, Rio Yokota, Ryo Karakida

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

ABSTRACT

Understanding the learning-rate (LR) dependence of trained model performance is essential for better optimization of neural networks, but the appropriate size of the LR depends on learning dynamics, architecture, and their hidden biases, and thus our understanding of this complex dependence remains limited. The behavior of the loss curve as a function of the LR has recently been observed in extensive experiments on LR transfer across different settings, such as model sizes, and it is becoming more important to explore methodologies for quantitatively characterizing the shape of this LR curve. In this work, we provide two relational equations that give a good empirical explanation of the gradient of the LR transfer curve, i.e., the LR gradient. One is a theoretical formula that holds at the edge of stability, and the other is an approximate expression obtained by naively treating this gradient as a hyper-parameter gradient. Using these two relational equations in a complementary manner, we show a lower bound on the gradient of the curve and a zero gradient under specific conditions for normalization layers in theory. The approximate expression also applies to a wide range of experimental settings and allows us to decompose the LR gradient into layer-wise components and quantify the strong contribution of specific layers to the curve shape. Thus, this serves as a foundation for better understanding the internal mechanisms of LR dependence.

1 INTRODUCTION

The performance of deep neural networks depends not only on architectural advances and large-scale data, but also crucially on optimization and the tuning of hyperparameters (HPs) (Smith et al., 2018; Choi et al., 2019; Cohen et al., 2021). In practice, when we sweep multiple learning rates (LRs) and plot the final loss as a function of the LR, the curve typically has a U-shaped profile and its detailed shape varies considerably with model size, architecture, or other HPs (Yang et al., 2021; Everett et al., 2024; Yang and Hu, 2021; Noci et al., 2024; Shah et al., 2025). As the previous work has demonstrated, if the curve shapes remain robust across different model sizes, one can reuse an LR found on a small model for a much larger one, which reduces the computational cost of HP search and is known as LR transfer. Although such curves are essential for understanding model performance beyond the context of transfer across model sizes (Wortsman et al., 2024; Lewkowycz et al., 2020; Barrett and Dherin, 2021), we refer to them as LR transfer curves, following this literature.

While experimental studies have gradually identified key factors governing the shape of the LR transfer curve, such as parameterization, weight decay, and weight-feature alignment (Everett et al., 2024; Kosson et al., 2026; Haas et al., 2025), our theoretical understanding is still limited (Hayou, 2026; Ghosh et al., 2026). First of all, the performance of trained models depends on various factors including learning dynamics, architectural choices and implicit biases (Everett et al., 2024; Noci et al., 2024; Smith et al., 2021), and this complexity makes the tractable evaluation of the curve highly non-trivial. In particular, modern deep learning typically uses large LRs beyond the regime where the descent lemma of classical optimization holds (Barrett and Dherin, 2021; Lewkowycz et al., 2020), and Edge of Stability (EoS) phenomena widely appear (Cohen

*Email: {ishikawa, rioyokota}@rio.scrc.iir.isct.ac.jp; karakida.ryo@aist.go.jp.

et al., 2021; Arora et al., 2022; Damian et al., 2023). Such a large LR causes highly nonlinear behavior of the learning dynamics and thus that of the trained model performance.

Another reason for the difficulty of characterizing the LR transfer curve is that, because the curve is a function of the LR, which is a hyperparameter, characterizing its geometry naturally requires the hypergradient. The computation of the hypergradient has been classically explored in the context of gradient-based HP optimization (Maclaurin et al., 2015; Lorraine et al., 2020). However, the hypergradient with respect to the LR has rarely been explored, and more crucially, its naive computation in deep architectures easily leads to gradient explosion (Maclaurin et al., 2015) or short-horizon bias (Wu et al., 2018), making it difficult to accurately estimate the LR gradient.

In this work, to address the above-mentioned difficulties, we reveal hidden laws on how the local shape of the LR transfer curve is determined. More specifically, we focus on quantitatively analyzing the slope of the LR curve, that is, the first-order derivative which we refer to as the LR gradient. The detailed contributions are summarized in the following two points.

• We propose two relational expressions that quantitatively explain the LR gradient well in experiments. First, assuming that EoS holds, we theoretically derive a formula for the LR gradient (EoS-LR gradient), through a trick based on the Lagrange multiplier method in Section 3. Second, to measure the LR gradient in a broader range of settings, we also consider the original hypergradient update of the LR gradient. Assuming slow dynamics of the hypergradient, we identify a specific fixed-point expression of the LR gradient (FP-LR gradient) which works well empirically, as shown in Section 4.

• Both can explain the effect of normalization layers (Section 5.1) and provide some bounds on the LR gradient (Section 5.2), but EoS-LR can explain the experimental results in much finer detail. In particular, it enables us to characterize a flat transfer curve caused by a specific combination of weight decay and normalization (Theorem 5.2). Meanwhile, FP-LR does not require an explicit EoS constraint for each optimizer and allows decomposition into layer-wise contributions under a block-diagonal Hessian approximation (Section 5.3). These profiles identify large LR sensitivities in the final layer of ResNet and the embedding and output layers of GPT (Figure 6). In ResNet, changing the output multiplier changes accuracy and LR transfer across widths under μ\muP, whereas changing the input multiplier has little effect (Figure 7).

Thus, this work provides a first step toward understanding the universal shape of the LR curves for LR tuning and transfer.

References (62)

  • Edge of stochastic stability: Revisiting the edge of stability for SGD. arXiv:2412.20553, 2024 (opens arXiv in a new tab)
  • Momentum further constrains sharpness at the edge of stochastic stability (opens arXiv in a new tab)
  • Understanding gradient descent on the edge of stability in deep learning
  • Implicit gradient regularization
  • Deep linear network training dynamics from random initialization: Data, width, depth, and hyperparameter transfer
  • The feature speed formula: a flexible approach to scale hyperparameters of deep neural networks
  • On Empirical Comparisons of Optimizers for Deep Learning
  • Gradient descent on neural networks typically occurs at the edge of stability
  • Adaptive gradient methods at the edge of stability (opens arXiv in a new tab)
  • Self-stabilization: The implicit bias of gradient descent at the edge of stability
  • Scaling exponents across parameterizations and optimizers
  • Forward and reverse gradient-based hyperparameter optimization
  • Understanding the mechanisms of fast hyperparameter transfer
  • On the surprising effectiveness of large learning rates under standard width scaling
  • One LR doesn’t fit all: Heavy-tail guided layerwise learning rates for LLMs
  • Deep residual learning for image recognition
  • Non-euclidean gradient descent operates at the edge of stability
  • modded-nanogpt: Speedrunning the NanoGPT baseline, 2024
  • A scalable measure of loss landscape curvature for analyzing the training dynamics of llms (opens arXiv in a new tab)
  • Weight decay may matter more than muP for learning rate transfer in practice
  • Spectral dynamics in deep networks: Feature learning, outlier escape, and learning rate transfer (opens arXiv in a new tab)
  • The large learning rate phase of deep learning: the catapult mechanism (opens arXiv in a new tab)
  • Optimizing millions of hyperparameters by implicit differentiation
  • Gradient-based hyperparameter optimization through reversible learning
  • Optimizing neural networks with Kronecker-factored approximate curvature
  • Gradient-based hyperparameter optimization over long horizons
  • Super consistency of neural network landscapes and learning rate transfer
  • Ishaan Shah, Anthony M Polloreno, Karl Stratos, Philip Monk, Adarsh Chaluvaraju, Andrew Hojel, Andrew Ma, Anil Thomas, Ashish Tanwer, Darsh J Shah, et al. Practical efficiency of muon for pretraining. arXiv:2505.02222, 2025. (opens arXiv in a new tab)
  • Don’t decay the learning rate, increase the batch size
  • On the origin of implicit regularization in stochastic gradient descent
  • Small-scale proxies for large-scale transformer training instabilities
  • Understanding short-horizon bias in stochastic meta-optimization
  • Tensor programs IV: Feature learning in infinite-width neural networks
  • Tuning large neural networks via zero-shot hyperparameter transfer
  • For readability, we use $\partial_\eta$ to denote $\partial/\partial\eta$ in the appendix
  • Substituting this relation into Eq
  • With $H_t = H(\theta_t)$, the exact sensitivity recurrence is
  • Substituting this factorization gives
  • Substituting $\bar{H}$ and assuming $\langle D_t\rangle \bar{H} + \gamma I$ is invertible, we obtain
  • This expected derivative corresponds to the $i$-th diagonal entry of $\langle D_t \rangle$
  • Omitting bias correction, AdamW uses $u_t = m_t / (\sqrt{v_t} + \epsilon_A)$ and $\theta_{t+1} = (1 - \eta \gamma) \theta_t - \eta u_t$, with coordinate-wise operations
  • Let $a_l \in \mathbb{R}^{d_{\text{in},l} \times n_l}$ and $z_l \in \mathbb{R}^{d_{\text{out},l} \times n_l}$ denote the layer inputs and pre-activation outputs, where $n_l$ is the minibatch size
  • We evaluate the inverse-matrix product using eigendecompositions of $A_l$ and $B_l$, without forming their Kronecker product
  • This observation motivates relaxing the equality constraint in Eq
  • Both models use full-batch GD on 512 examples from two classes of Fashion-MNIST, with parameters averaged over the last 512 updates
  • Naive Fixed Point
  • On Fashion-MNIST, time-averaged FP-LR agrees more closely with finite differences than the naive fixed-point estimate (Figure 17)
  • Without weight decay, layer-wise LRs generally give lower local LR sensitivity than a common LR (Figure 24)
  • Combining batch normalization with LR-independent weight decay gives a broader range of LRs with high test accuracy than using either alone (Figure 25)
  • Here, sensitivity refers to the derivative of accuracy with respect to LR; the other comparisons use loss derivatives
  • With QK normalization, the loss remains nearly constant when only the QK parameters are rescaled, but changes when all parameters are rescaled
  • Each convolution is followed by ReLU, with $2 \times 2$ max pooling after the second and third convolutions
  • We do not use data augmentation
  • We sweep 21 LRs from 0.025 to 0.8; panel (c) uses $M = 256$
  • The finite differences for $F_{naive}$ and $F_{batch}$ use step size $h = 10^{-3}$, following Appendix B.2
  • Both models use cross-entropy loss and CIFAR-10, except for the Fashion-MNIST experiment in Figure 17
  • We compare two architectural variants: cnn-avgpool-bn-elu, which includes Batch Normalization, and cnn-avgpool-elu, which does not
  • The learning rate is decayed according to a cosine annealing schedule
  • The ResNet has three residual blocks of widths $M$, $3M$, and $4M$, each containing three $3 \times 3$ convolutions, batch normalization, GELU activations, and max pooling
  • The LR increases linearly from 20% to its peak over the first 10% of training, then decreases linearly to zero
  • The reference model has 12 Transformer blocks and 8 attention heads, with model width M varied across experiments
  • The LR shown in the figures is a global multiplier of the layer-wise LRs