Feature Learning in Infinite-Width Neural Networks

Greg Yang, J. Edward HuarXiv 2020

Abstract

As its width tends to infinity, a deep neural network's behavior under gradient descent can become simplified and predictable (e.g. given by the Neural Tangent Kernel (NTK)), if it is parametrized appropriately. However, we show that the standard and NTK parametrizations of a neural network do not admit infinite-width limits that can learn features, which is crucial for pretraining and transfer learning such as with BERT. We propose simple modifications to the standard parametrization to allow for feature learning in the limit. Using the Tensor Programs technique, we derive explicit formulas for such limits. On Word2Vec and few-shot learning on Omniglot via MAML, two canonical tasks that rely crucially on feature learning, we compute these limits exactly. We find that they outperform both NTK baselines and finite-width networks, with the latter approaching the infinite-width feature learning performance as width increases. More generally, we classify a natural space of neural network parametrizations that generalizes standard, NTK, and Mean Field parametrizations. We show 1) any parametrization in this space either admits feature learning or has an infinite-width training dynamics given by kernel gradient descent, but not both; 2) any such infinite-width limit can be computed using the Tensor Programs technique.

Introduction: The Problem with Lazy Training

In recent years, the "infinite-width limit" has become a primary lens for understanding deep learning. The most famous version is the Neural Tangent Kernel (NTK), which suggests that as networks get wider, they behave like linear models with a fixed kernel. However, there is a catch: in the NTK limit, the network's internal representations (features) don't actually change during training—a phenomenon often called "lazy training." This is a massive problem for theory because the real-world success of models like BERT or ResNet relies entirely on feature learning—the ability of a model to extract meaningful patterns from data during pre-training. This paper introduces a mathematical limit that actually captures this feature-learning behavior.

Methodology: abc-Parametrization and $\mu$P

The authors introduce a generalized framework called abc-Parametrization, which defines how weight scaling ($n^{-a}$), initialization variance ($n^{-2b}$), and learning rates ($\eta n^{-c}$) change as the width ($n$) grows. Using this framework, they derive the Maximal Update Parametrization ($\mu$P). Unlike standard scaling, $\mu$P allows every layer to be updated as much as possible without the network becoming unstable. To prove these limits exist and behave as expected, they use the Tensor Programs technique, a rigorous mathematical recipe that allows researchers to compute the exact distribution of every neuron in a network at any point during training, even as width goes to infinity.

Key Results: The Dynamical Dichotomy

The paper proves a Dynamical Dichotomy: any stable infinite-width limit either allows features to evolve (Feature Learning Limit) or is described by kernel gradient descent (Kernel Limit). You cannot have both.

Word analogy accuracy for different widths compared to the NTK/GP baseline. While NTK fails to learn, feature-learning limits improve as width increases.

In Word2Vec experiments, the $\mu$P limit achieved 43.31% accuracy on word analogies, while the NTK and Gaussian Process (GP) baselines achieved 0% (effectively random). Because NTK features don't move from their initialization, the model can never learn semantic relationships, such as the connection between "city" and "state."

PCA visualizations of embeddings. In the $\mu$P regime (Width $\infty$), categories like "city" and "state" naturally cluster, whereas they remain disorganized in the NTK regime.

Visual evidence from PCA plots confirms this: in the $\mu$P regime, semantic categories naturally cluster as width increases. In the NTK regime, they remain a disorganized cloud. Furthermore, on Omniglot (1-shot, 5-way), the $\mu$P limit reached 66.42% accuracy, significantly outperforming the NTK baseline of 47.82%.

Conclusion

This work demonstrates that $\mu$P is a much more accurate model of how real neural networks work than NTK. As finite-width networks get wider, their performance converges toward the $\mu$P infinite-width limit. While calculating these limits for deep, nonlinear networks is computationally intensive, this framework provides a path toward a more complete theoretical understanding of feature learning in large-scale models.

Summary updated

BibTeX
@misc{yang2020feature,
  author = {Greg Yang and J. Edward Hu},
  title = {{Feature Learning in Infinite-Width Neural Networks}},
  year = {2020},
  eprint = {2011.14522},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2011.14522},
}
Figure