TL;DR
This paper reveals that the exponent ($\alpha$) in neural scaling laws, which dictates how quickly test loss decreases with model size, is not a fixed property of the data and architecture alone, but is significantly influenced by the choice of optimizer. Using a simplified random-feature model, the researchers demonstrate that advanced optimizers can lead to steeper scaling laws, meaning faster learning and more efficient use of compute, especially for datasets with certain spectral properties.
What Problem Does This Paper Address?
Neural scaling laws, often expressed as $L(N) \propto N^{-\alpha}$, are crucial for predicting how much performance improvement we can expect from scaling up neural network models. The exponent $\alpha$ is typically treated as a constant, determined by the dataset and model architecture. This assumption is used to forecast future model capabilities and allocate computational resources. However, recent work has shown that certain advanced optimizers (like Shampoo or Muon) can offer compute speedups over standard optimizers like AdamW. This raises a critical question: do these optimizers merely improve the constant factor in the scaling law (i.e., offer a speedup), or do they fundamentally change the exponent $\alpha$ itself? If they change $\alpha$, does this advantage persist as models get larger, or does it diminish? This paper aims to systematically investigate how optimizer choice impacts the scaling exponent $\alpha$.
Methods
The authors employ the random-feature regression framework, a well-established theoretical tool for studying neural scaling laws in a simplified setting. This framework allows for the isolation of factors like data spectrum, optimizer, and model capacity without the complexities of feature learning. They measure the scaling exponent $\alpha$ across five different optimizer variants (including Gradient Descent (GD), AdamW proxy, Shampoo/K-FAC proxy, and Muon proxy) and six different data spectral conditions (characterized by a spectral exponent $s$).
The core idea is that different optimizers can be viewed as applying different preconditioners to the gradient. These preconditioners effectively re-weight the learning rates for different "modes" of the data. The paper proposes a spectral heuristic: preconditioned optimizers equalize per-mode learning rates, leading to better utilization of "underserved" low-variance modes and thus a steeper scaling exponent. They also analyze the fit quality of their power-law models using R² values and conduct robustness checks by varying input dimension and teacher exponent.
Datasets
The paper does not use real-world datasets for training LLMs. Instead, it generates synthetic data within the random-feature regression framework. The data's spectral properties are controlled by a spectral exponent $s$, which ranges from 0.25 to 2.0. This allows for systematic study of how different data distributions affect the optimizer's impact on scaling.
Key Insights and Ideas
- Optimizer choice matters for scaling exponents: The most significant finding is that the scaling exponent $\alpha$ is not fixed but depends on the optimizer.
- Preconditioners boost scaling: Advanced optimizers that act as preconditioners (like Full NG and Matrix-Sign) consistently yield steeper scaling laws (higher $\alpha$) compared to standard Gradient Descent.
- Spectral dependence is key: The advantage of preconditioned optimizers is strongly dependent on the data's spectral decay rate ($s$). The steeper the spectrum (larger $s$), the larger the increase in $\alpha$.
- Natural language data benefits: For $s \approx 1.0$, characteristic of natural language data, the full natural gradient achieves a significantly higher $\alpha$ than gradient descent, implying a compounding advantage with model size.
- Mechanistic explanation: The paper proposes that preconditioned optimizers equalize per-mode learning rates, rescuing "underserved" low-variance modes and improving overall scaling.
Key Results
- At $s=1.0$ (natural language characteristic), the scaling exponent $\alpha$ for Full NG and Matrix-Sign optimizers is around 0.31, compared to approximately 0.12 for Gradient Descent. This represents a 2.6x larger fitted exponent.
- The $\alpha$-shift (difference between preconditioned and GD $\alpha$) grows monotonically with the spectral exponent $s$, reaching a peak around $s=1.5$ and remaining large at $s=2.0$.
- For flat spectra ($s \approx 0.25$), the $\alpha$-shift is small, indicating that optimizer choice matters less in such regimes.
- The fit quality (R²) for power-law scaling is excellent (>0.98) for preconditioned optimizers across all spectral conditions, while GD and Diagonal show poorer fits at larger $s$ due to bending curves.
Limitations and Future Work
- Random-feature model limitations: The model omits feature learning, depth, attention, and tokenization, which are crucial in real LLMs. Feature learning could either amplify or dampen the observed $\alpha$-shift.
- Scale-dependent decay: Recent studies suggest that the advantage of advanced optimizers might attenuate at very large scales (e.g., 1.2B parameters). The current framework does not fully explain this decay, which might be due to feature learning or finite-N effects.
- Future work: The authors propose a direct test by training GPT-2 scale transformers with AdamW and Muon on standard and spectrum-flattened data to validate their predictions. They also suggest extending the framework to two-layer models and exploring connections to Edge-of-Stability dynamics. A key theoretical challenge is to derive a closed-form expression for $\alpha(s, b, P)$ and to incorporate feature learning into the model.
Summary updated