On the infinite width limit of neural networks with a standard parameterization

Jascha Sohl-Dickstein, Roman Novak, Samuel S. Schoenholz, Jaehoon LeearXiv 2020

Abstract

There are currently two parameterizations used to derive fixed kernels corresponding to infinite width neural networks: the Neural Tangent Kernel (NTK) parameterization and the naive standard parameterization. However, the extrapolation of both of these parameterizations to infinite width is problematic. The standard parameterization leads to a divergent neural tangent kernel, while the NTK parameterization fails to capture crucial aspects of finite width networks, such as the dependence of training dynamics on relative layer widths, the relative training dynamics of weights and biases, and overall learning rate scale. Here we propose an improved extrapolation of the standard parameterization that preserves all of these properties as width is taken to infinity and yields a well-defined neural tangent kernel. We show experimentally that the resulting kernels typically achieve similar accuracy to those resulting from an NTK parameterization, but with better correspondence to the parameterization of typical finite width networks. Additionally, with careful tuning of width parameters, the improved standard parameterization kernels can outperform those stemming from an NTK parameterization. We release code implementing this improved standard parameterization as part of the Neural Tangents library.

Introduction

In deep learning theory, researchers often study "infinite-width" neural networks because they behave like simpler mathematical objects called kernels. However, the two existing ways to reach this infinite limit have significant drawbacks. The NTK Parameterization, while mathematically elegant, ignores crucial features of real networks, such as the impact of relative layer widths on training dynamics. Conversely, the Naive Standard Parameterization (e.g., He or Glorot initialization) breaks down mathematically at the infinite limit, leading to divergent kernels unless the learning rate vanishes to zero. This work introduces an improved standard parameterization that is mathematically well-behaved at infinity while preserving the practical characteristics of finite networks.

Methods: Bridging the Gap

The core innovation is the introduction of an auxiliary scaling parameter, $s$. Instead of letting the width $n^l$ go to infinity directly, it is defined as $n^l = s N^l$, where $N^l$ is a fixed "baseline" width for that layer. The affine layer equation is rewritten as:

$$z^{l+1} = \frac{1}{\sqrt{s}} W^l y^l + b^l$$

In this setup, weights ($W^l$) are initialized using the standard variance ($\sigma_w^2 / N^l$). By taking the limit $s \to \infty$, the resulting infinite-width kernels (NNGP and NTK) retain a dependence on the baseline widths $N^l$. This allows the theoretical model to "remember" the relative sizes of different layers, a property lost in standard NTK parameterization.

Key Insights and Results

The authors validated their approach using the CIFAR-10 dataset across various architectures, including fully connected (FC) networks, CNNs, and Wide Residual Networks (WRNs).

Correspondence to Finite Networks

The improved parameterization shows that training dynamics depend on the relative widths of layers. It also captures the shift where weights dominate learning as networks widen, whereas the NTK parameterization keeps the relative influence of weights and biases fixed. Empirical results show that the improved standard parameterization yields kernels that perform as well as traditional NTK kernels across a wide range of architectures.

Comparison of classification error and MSE between NTK and the improved standard parameterization across various architectures, including those with random widths.

Performance Gains through Tuning

Because the new kernels depend on the baseline widths $N^l$, researchers can tune an infinite-width network by adjusting these parameters. The authors demonstrated that with careful tuning of relative widths, the improved standard parameterization can actually outperform the standard NTK parameterization.

Performance of the improved standard parameterization as a function of relative layer width, demonstrating that it can outperform standard NTK baselines (horizontal lines).

Conclusion

This improved standard parameterization provides a robust theoretical framework that more accurately reflects the behavior of practical, finite-width neural networks. By preserving the role of relative layer widths and weight-bias dynamics, it offers a more useful tool for architecture design and theoretical analysis. The implementation is available as part of the neural-tangents library to facilitate further research into the properties of wide neural networks.

Summary updated

BibTeX
@misc{sohldickstein2020infinite,
  author = {Jascha Sohl-Dickstein and Roman Novak and Samuel S. Schoenholz and Jaehoon Lee},
  title = {{On the infinite width limit of neural networks with a standard parameterization}},
  year = {2020},
  eprint = {2001.07301},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2001.07301},
}
Figure