---
title: Scaling Laws for Adam Optimizers
url: https://www.emergentmind.com/topics/new-scaling-law-for-adam-style-optimizers
type: topic
---

# Scaling Laws for Adam Optimizers

A new scaling law for Adam-style optimizers refers to mathematical and empirical prescriptions which describe how optimizer hyperparameters and update dynamics—such as learning rate, batch size, damping constants, adaptive scaling, and architectural factors—should be adjusted as a function of model size, data size, iteration count, or architectural details to achieve optimal or robust convergence, stability, and generalization in modern deep learning. This topic has recently seen theoretical, algorithmic, and large-scale empirical advances, reflecting the centrality of Adam-type methods in the training of large neural networks.

## 1. Distinctive Mechanism of Adam-Style Scaling

Adam-style optimizers differ fundamentally from stochastic gradient descent (SGD) in their coupling of update scaling to adaptive moment estimation, most notably through per-parameter normalization by bias-corrected running averages of squared gradients ($v_t$) augmented by a stability term ($\epsilon$). Standard Adam produces updates of the form:
$$
\theta_{t+1} = \theta_t - \alpha \cdot \frac{\hat{m}_t}{\sqrt{\hat{v}_t} + \epsilon}
$$
where $\hat{m}_t$ and $\hat{v}_t$ are bias-corrected first and second moment estimates, and $\epsilon$ is a small constant mainly for numerical safety. Recent research has demonstrated that the update's behavior, including its scaling with respect to batch size, learning rate, and model dimension, is distinct from SGD due to the "sign-like" operation inherent in the update formula. For Adam-style optimizers, the update is approximately
$$
\theta_{t+1} \approx \theta_t - \epsilon \cdot \mathrm{sign}(G_\text{est})
$$
where $G_\text{est}$ is a stochastic estimate of the gradient. This produces a non-linear dependence of the optimal learning rate on the batch size, contrasting with linear or power-law scaling typical of SGD [2405.14578].

## 2. Derivation and Formulation of the New Scaling Law

Comprehensive recent theoretical work derives the optimal learning rate $\epsilon_\text{opt}$ for Adam-type optimizers as a function of batch size $B$ and gradient statistics. The analysis, using Taylor expansion of the loss and an explicit computation of the expectation and variance of $\mathrm{sign}(G_\text{est})$, yields:
$$
\epsilon_\text{opt}(B) \approx \frac{\epsilon_\text{max}}{0.5 \left( \sqrt{\mathcal{B}_\text{noise}/B} + \sqrt{B/\mathcal{B}_\text{noise}} \right)}
$$
where $\mathcal{B}_\text{noise}$ is a characteristic noise scale governed by the gradient's covariance and Hessian structure, and the peak occurs at $B = \mathcal{B}_\text{noise}$. This law predicts a "surge phenomenon": as $B$ increases, $\epsilon_\text{opt}$ initially increases roughly as $\sqrt{B}$, reaches a maximum at the noise scale, and then declines or saturates for large $B$. This non-monotonicity is absent in SGD, for which the optimal learning rate typically scales linearly or as a simple power law in $B$ [2405.14578].

### Table: Differences in Learning Rate Scaling Laws

| Optimizer      | $\epsilon_\text{opt}(B)$ scaling law               | Peak/Surge Behavior        |
|----------------|----------------------------------------------------|----------------------------|
| SGD            | $\propto B^{\alpha}$ (usually $\alpha=1$ or $0.5$) | Monotonic increase         |
| Adam-style     | $\propto \frac{1}{0.5(\sqrt{\mathcal{B}_\text{noise}/B}+\sqrt{B/\mathcal{B}_\text{noise}})}$ | Surge: rise then decline   |

This law has been experimentally validated across CNNs, ResNets, and Transformer architectures on vision and NLP benchmarks. The batch size at which the optimal learning rate peaks increases as the loss decreases during training.

## 3. Algorithmic and Architectural Factors Influencing Scaling

Recent advances reveal that scaling laws for Adam-style optimizers are sensitively dependent on hyperparameter settings, architectural details, and normalization mechanisms. For example:
- **Epsilon Placement:** Placing $\epsilon$ inside the second moment accumulator (as in EAdam) introduces effective "pre-damping" and produces an adaptively scaled stabilization term, changing the denominator from $\sqrt{G_t} + \epsilon$ to $\sqrt{G_t + \epsilon/(1-\beta_2)}$ and modifying the scaling law, especially near convergence [2011.02150].
- **Layerwise or Architecture-Aware Scaling:** Techniques such as SET-Adam and CaAdam incorporate layerwise statistics or connection counts to compress the variance of per-parameter stepsizes towards that of SGD+momentum, thereby improving generalization [2302.01029, 2410.24216].
- **Per-Layer and Scale-Invariant Updates:** Adjusting learning rates for each layer according to parameter alignment exponents or width (e.g., scaling as $O(1)$ for embeddings and $O(1/n)$ for hidden/readout layers in standard parameterizations) yields robust hyperparameter transfer across varying model sizes [2407.05872].
- **Role of Epsilon Underflow:** At very large scale, the constant $\epsilon$ can become non-negligible as gradient norms diminish, leading to numerical underflow, and prompting the introduction of the Adam-atan2 optimizer, which is scale-invariant and eliminates explicit dependence on $\epsilon$ [2407.05872].

## 4. Theoretical and Empirical Justification

The scaling law is anchored in both theoretical analyses and large-scale empirical studies. Theoretical derivations employ:
- **Taylor expansion and Gaussian approximations** for the signed update [2405.14578].
- **SDE approximations** that rigorously relate discrete updates to continuous stochastic processes, revealing that the interval per Adam step contracts with $\eta^2$ and not $\eta$ as in SGD, implying that hyperparameters such as $(1-\beta)$, learning rate, and $\epsilon$ require coordinated rescaling as a function of batch size [2205.10287].
- **Generalization of escape times from local minima** using SDE and Lévy process analysis, which also exposes how modifications to second-moment estimation or momentum (as in AdaMomentum) affect the preference for flatter minima [2106.11514].

On the empirical side, exhaustive grid searches on thousands of large language models (including dense Transformers and Mixture-of-Experts) yield power-law fits for optimal learning rate and batch size:
$$
\eta(N, D) = 1.79\, N^{-0.713} D^{0.307},\qquad B(D) = 0.58 D^{0.571}
$$
with $N$ the number of parameters and $D$ the dataset size. The learning rate depends on both model and data scale, while optimal batch size scales sublinearly with data size. The loss landscape is found to be convex in the learning rate and batch size, producing a plateau of near-optimal settings [2503.04715].

## 5. Broader Implications, Extensions, and Deployment

The new scaling law for Adam-style optimizers has multiple implications:
- **Resource-Efficient Training:** Provides direct plug-and-play formulas for setting optimizer hyperparameters, reducing the cost of exhaustive tuning, and enabling efficient use of massive compute budgets in large-scale language model pretraining [2503.04715].
- **Adaptivity Beyond SGD:** Shows that adaptive optimizers can scale to problem settings where gradient variance is highly non-uniform (e.g., in heavy-tailed distributions such as Zipf's law for token frequencies), achieving convergence in $\mathcal{O}(d^{1/2})$ iterations compared to $\mathcal{O}(d)$ for vanilla gradient descent, where $d$ is the vocabulary size [2505.19227].
- **Meta-Optimization and Interpolated Optimizers:** Meta-adaptive frameworks (e.g., MADA) interpolate between optimizer behaviors via hyper-gradient descent, dynamically adjusting scaling exponents to the current loss landscape, yielding improved generalization and robustness over fixed prescriptions [2401.08893].
- **Distributed and Federated Learning:** Incorporating local adaptive scaling into communication- and memory-constrained environments allows accelerated convergence and improved robustness in both homogeneous and heterogeneous data partitions, as demonstrated in federated variants of Adam-style updates [2406.00846].

## 6. Practical Guidelines for Hyperparameter Tuning

The emergent scaling laws provide actionable prescriptions for practitioners:
- Adjust the learning rate such that for a given model and data scale, $\eta \propto N^{-0.713} D^{0.307}$, and batch size as $B \propto D^{0.571}$ [2503.04715].
- For varying batch sizes, apply the "square root scaling rule" to scale learning rate, momenta, and $\epsilon$:
  $$
  \eta' = \eta \sqrt{\kappa},\quad \beta_1' = 1-\kappa(1-\beta_1),\quad \beta_2' = 1-\kappa(1-\beta_2),\quad \epsilon' = \epsilon /\sqrt{\kappa}
  $$
  where $\kappa$ is the batch size multiplier [2205.10287].
- For extremely large models or layers with rapidly vanishing gradient scale, mitigate the dominance of the $\epsilon$ term via per-layer $\epsilon$-rescaling or substitution with scale-invariant mechanisms such as the atan2 operation [2407.05872].
- Exploit architecture-aware or meta-adaptive schemes for per-layer (or per-connection) scaling when feasible to better match the optimizer's dynamics to the network topology [2410.24216].

## 7. Open Issues and Directions

While the current scaling laws achieve high robustness and near-optimality in a variety of regimes, open challenges remain:
- **Dynamic Noise Scale Determination:** Accurately and efficiently estimating $\mathcal{B}_\text{noise}$ during training for truly online scaling.
- **Interplay with Advanced Normalization:** More general characterization of the effects of normalization layers—now shown to have "meta-adaptive" effects akin to double normalization in optimizers—on optimizer scaling [2411.05746].
- **Unified Theoretical Frameworks:** Further formalization and cross-validation across more model classes, including convolutional nets, recurrent architectures, and graph-based models, especially in presence of heavy-tailed data distributions [2505.19227].
- **Memory-Efficient and Minimalist Adaptive Designs:** Ongoing work (e.g., SCALE) indicates that careful localization of adaptivity and normalization can retain empirical scaling while reducing memory and computational costs—in turn influencing broader scaling laws relating optimizer state size and training efficiency [2506.16659].

In summary, the recent body of work crystallizes a new generation of scaling laws for Adam-style optimizers. These laws capture the non-monotonic behavior of the optimal learning rate in relation to batch size, prescribe robust per-layer or per-architecture adaptation strategies, and are validated empirically in LLM-scale regimes. They deliver a rigorous basis for principled hyperparameter selection and efficient optimizer deployment in large-scale, heterogeneous, and distributed deep learning systems.

Source: https://www.emergentmind.com/topics/new-scaling-law-for-adam-style-optimizers