A Spectral Condition for Feature Learning

Greg Yang, James B. Simon, Jeremy BernsteinarXiv 2023 · DOI

Introduction

As neural networks scale to billions of parameters, ensuring they continue to learn meaningful features—rather than falling into "lazy training" regimes—is a critical challenge. This paper introduces a geometrically intuitive framework for network scaling based on elementary linear algebra. By focusing on the spectral norm of weight matrices, the authors provide a unified derivation of the state-of-the-art "maximal update parametrization" ($μ$P).

The Challenge: Scaling Without Laziness

Scaling a network's width often leads to the Neural Tangent Kernel (NTK) regime, where hidden layers remain nearly static. While mathematically tractable, this "lazy training" prevents the model from adapting its internal representations to the data, ultimately hurting performance. The current best solution is $μ$P, which allows hyperparameter transfer from small to large models. However, $μ$P's original derivation relies on "tensor programs," a complex mathematical framework. This work replaces that complexity with a single Spectral Scaling Condition.

The Spectral Scaling Condition

The authors propose that feature learning is maintained if the spectral norm (the largest singular value) of weight matrices ($W$) and their updates ($Δ W$) scales according to the ratio of layer widths: $$\|W\|_* = \Theta\left(\sqrt{\frac{n_{out}}{n_{in}}}\right)$$ This condition ensures that hidden activations and their updates stay at a consistent size relative to the layer width, regardless of how wide the network becomes.

Empirical Foundations: Rank and Alignment

The validity of the spectral norm as a scaling metric rests on two key empirical observations. First, weight updates ($Δ W$) are highly structured; even with large batches, the update matrix has a very low "stable rank" compared to its dimensions. Second, gradient descent naturally induces alignment between hidden features and weight updates.

Weight updates exhibit low stable rank and high alignment with hidden features.

Because updates are "pointy" (low rank) and well-aligned with the data, the spectral norm—which measures the maximum gain of a matrix—becomes the "true" measure of a layer's impact on its input.

A Unified Recipe for Scaling

Unlike previous methods that treated input, hidden, and output layers as special cases with different rules, the spectral condition provides a single, unified rule applicable to every layer in the network. This perspective allows for a "Spectral Parametrization" recipe to set initialization standard deviations and learning rates based solely on layer widths.

Summary of scaling properties for different matrix shapes.

Conclusion

The authors prove that this simple spectral condition is mathematically equivalent to $μ$P. Empirically, they demonstrate that under this scaling, the relative change in features remains constant as width increases, whereas it vanishes in standard Neural Tangent Parametrization. This work provides practitioners with a clear, linear-algebraic foundation for scaling the next generation of massive neural models.

Summary updated

BibTeX
@misc{yang2023spectral,
  author = {Greg Yang and James B. Simon and Jeremy Bernstein},
  title = {{A Spectral Condition for Feature Learning}},
  year = {2023},
  eprint = {2310.17813},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2310.17813},
}
Figure