A Dynamical Model of Neural Scaling Laws

Blake Bordelon, Alexander Atanasov, Cengiz Pehlevan

Abstract

Recent advancements in large-scale machine learning have highlighted the predictable nature of performance improvements relative to model size, data, and compute—known as neural scaling laws. While these laws have been extensively documented empirically, a rigorous theoretical explanation has remained elusive. This paper presents a solvable mathematical framework using a Teacher-Student random feature model analyzed via Dynamical Mean Field Theory (DMFT). We derive exact scaling exponents and provide a theoretical basis for why increasing model width is fundamentally superior to ensembling smaller models.

Introduction

The empirical success of neural scaling laws, such as those identified by Kaplan et al. and the Chinchilla scaling laws (Hoffmann et al.), has transformed the strategy for training state-of-the-art AI. However, these observations lack a foundational theory to explain the observed asymmetry between training time and model size, or why larger models exhibit faster learning dynamics. We address these questions by modeling neural network training as a dynamical process governed by rank constraints and spectral properties of the data.

Theoretical Framework: DMFT and Random Features

We employ a Teacher-Student random feature model to simulate the "lazy" or "kernel" regime of neural networks. In this setup, inputs are passed through a fixed, random projection before being processed by a linear layer. To track the evolution of weights and errors throughout training, we utilize Dynamical Mean Field Theory (DMFT) from statistical physics. Unlike previous asymptotic theories, our approach treats training time ($t$), model width ($N$), and dataset size ($P$) as simultaneous variables, allowing for a holistic view of scaling dynamics.

Dynamics and the "Wider is Better" Insight

A central finding of our model is that scaling limits act as rank constraints on the learning dynamics. Early stopping restricts the model to a low-rank subspace of the data, while small model size limits the rank of the representable target function.

Crucially, we explain why larger models learn "faster." Wider models possess a lower initial bias in their dynamics; their internal transfer functions converge more efficiently than those of smaller models. This leads to the "Ensembling Paradox": while averaging multiple small models (ensembling) can reduce variance (initialization noise), it cannot address the fundamental representation bias of a small model. Increasing width reduces both bias and variance, making it the compute-optimal choice.

Test loss dynamics on CIFAR-5M across different model widths.

Compute Optimality and the Pareto Frontier

Our theory derives exact formulas for scaling exponents based on the task-power exponent ($a$) and spectral decay ($b$). We find that test loss scales as $L \approx t^{-(a-1)/b}$ for time and $L \approx N^{-(a-1)}$ for model size. Since $b > 1$ typically, the time exponent is smaller, explaining the observed empirical asymmetry.

By balancing $N$ and $t$, we can identify the "Pareto frontier"—the optimal configuration for a fixed compute budget. This theoretical frontier aligns closely with empirical results observed in ResNets and Transformers, suggesting that optimal scaling often requires increasing training steps more aggressively than parameter counts.

Test loss vs. total compute for varying model sizes on CIFAR-5M.

Empirical Validation

We validated our theoretical predictions using massive datasets, including CIFAR-5M for vision tasks and Wikitext-100M for language modeling. In both cases, the predicted power-law relationships held, and the derived exponents accurately captured the performance trajectories across multiple orders of magnitude in model size and training duration.

Conclusion and Future Work

This work provides a rigorous mathematical foundation for neural scaling laws, bridging the gap between statistical physics and deep learning practice. While our current model focuses on the linearized kernel regime, empirical evidence suggests that "feature learning" in deep networks further accelerates these scaling laws. Future research will aim to develop a mechanistic theory of kernel evolution to explain how representation learning enhances scaling efficiency beyond the limits of fixed-feature models.

Summary updated

BibTeX
@inproceedings{bordelon2024dynamical,
  author = {Blake Bordelon and Alexander Atanasov and Cengiz Pehlevan},
  title = {{A Dynamical Model of Neural Scaling Laws}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=nbOY1OmtRc},
}
Figure