A Solvable Model of Neural Scaling Laws

Alexander Maloney, Daniel A. Roberts, James SullyarXiv 2022 · DOI

Abstract

Neural scaling laws describe the predictable power-law decay of test loss as model parameters and dataset size increase. While empirically well-established, a theoretical foundation for these laws has been elusive. This paper introduces a solvable statistical model using Random Matrix Theory to derive these scaling behaviors from first principles. By modeling data with a power-law spectral structure, the authors demonstrate that scaling laws emerge as a direct consequence of the interaction between data statistics and neural network capacity.

Introduction

In the era of Large Language Models (LLMs), the relationship between scale and performance is remarkably predictable. As parameters ($N$) and training data ($T$) increase, test loss drops following a power law. While these "Neural Scaling Laws" have served as a roadmap for AI development, they remained largely empirical—a "macro" observation lacking a "micro" theory.

In "A Solvable Model of Neural Scaling Laws," Alexander Maloney, Daniel A. Roberts, and James Sully provide the missing link. By applying tools from theoretical physics, specifically Random Matrix Theory (RMT), they construct a mathematical framework that reproduces these scaling behaviors, revealing that the "magic" of LLMs is a direct consequence of the statistical structure of the data they consume.

Theoretical Framework

Modern machine learning theory typically focuses on two extremes: the underparameterized regime (large data, small models) or the overparameterized regime (fixed data, infinite models). However, modern LLMs operate in a "jointly large" regime where both parameters and data are scaled simultaneously.

To bridge this gap, the authors utilize a combination of RMT and diagrammatic techniques (Feynman diagrams) to solve a joint generative data model and a random feature model.

  1. The Generative Data Model: Data is assumed to originate from a latent space of dimension $M$, where the covariance matrix follows a power-law spectrum: $\lambda_i \sim i^{-(1+\alpha)}$.
  2. The Random Feature Model: This latent data is mapped into a feature space of dimension $N$, representing model capacity.
  3. The Planar Limit: The authors solve the model in the "dual limit" where $N$ and $T$ both go to infinity while their ratio remains fixed, allowing for analytical derivation of the expected test loss.

Key Insights: PIPO and Spectral Extension

The core of the paper is the PIPO (Power-law In, Power-law Out) principle. If input data possesses a power-law spectral structure, the model’s test loss will inherit that power law. This suggests that scaling laws are not solely a property of architectures like the Transformer, but rather an emergent property of the interaction between the architecture and the data.

Furthermore, the authors highlight the role of Spectral Extension. While linear models are limited by input dimensions, non-linear feature maps (like ReLU) "stretch" the data's power law. This allows the model to continue learning useful features even after exhausting the raw input dimensions, explaining why scaling continues to yield gains in deep networks.

Results and the Scaling Formula

The authors analytically derive a simplified version of empirical scaling laws: $$\mathcal{L}(N, T) \approx L_0 \left( \frac{1}{N} + \frac{1}{T} \right)^\alpha$$ where $\alpha$ is determined by the spectral decay of the dataset. This formula captures the trade-off between model size and data size.

Test loss scaling and plateaus as a function of dataset size $T$ and model size $N$.

As shown in the figure above, the test loss follows a power law $\sim T^{-\alpha_T}$ until it hits a plateau determined by the model capacity $N$. This visualization confirms that scaling laws hold only as long as $N, T \ll M$ (the total latent space size). If $T$ exceeds the capacity provided by $N$, the performance gains stall. This aligns with "Chinchilla" scaling findings, suggesting that the most efficient way to scale is to keep parameters and data points roughly proportional ($N \propto T$).

Discussion and Limitations

While the model provides a rigorous foundation for scaling laws, it has limitations. It utilizes a Random Feature approach where the first layer is fixed, which does not fully capture representation learning—the process where a model actively adapts its features to the task. Additionally, the model assumes random eigenvectors, whereas real-world tasks often have specific, non-random important directions.

Future work may involve extending this framework to quadratic models to incorporate true representation learning, further refining our theoretical understanding of how AI scales.

Summary updated

BibTeX
@misc{maloney2022solvable,
  author = {Alexander Maloney and Daniel A. Roberts and James Sully},
  title = {{A Solvable Model of Neural Scaling Laws}},
  year = {2022},
  eprint = {2210.16859},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2210.16859},
}
Figure