Skip to main content
QUICK REVIEW

[Paper Review] Tensor Programs I: Wide Feedforward or Recurrent Neural Networks of Any Architecture are Gaussian Processes

Greg Yang|arXiv (Cornell University)|Oct 28, 2019
Gaussian Processes and Bayesian InferenceComputer Science54 references42 citations
TL;DR

This paper proves that wide feedforward and recurrent neural networks of standard architectures converge to Gaussian processes, introducing NETSOR to express computations and deriving GP kernels for various architectures.

ABSTRACT

Wide neural networks with random weights and biases are Gaussian processes, as originally observed by Neal (1995) and more recently by Lee et al. (2018) and Matthews et al. (2018) for deep fully-connected networks, as well as by Novak et al. (2019) and Garriga-Alonso et al. (2019) for deep convolutional networks. We show that this Neural Network-Gaussian Process correspondence surprisingly extends to all modern feedforward or recurrent neural networks composed of multilayer perceptron, RNNs (e.g. LSTMs, GRUs), (nD or graph) convolution, pooling, skip connection, attention, batch normalization, and/or layer normalization. More generally, we introduce a language for expressing neural network computations, and our result encompasses all such expressible neural networks. This work serves as a tutorial on the *tensor programs* technique formulated in Yang (2019) and elucidates the Gaussian Process results obtained there. We provide open-source implementations of the Gaussian Process kernels of simple RNN, GRU, transformer, and batchnorm+ReLU network at github.com/thegregyang/GP4A.

Motivation & Objective

  • Motivate and formalize the NN-GP correspondence for wide, randomly initialized networks beyond MLPs and simple CNNs.
  • Introducing NETSOR as a language to express neural network computations in a unified way.
  • Prove a general Gaussian Process convergence result for NETSOR-expressible architectures in the large-width limit.
  • Provide kernel computations and open-source implementations for several architectures (e.g., simple RNN, GRU, transformer, batchnorm networks).
  • Lay groundwork for future extensions to matrix transposes and Neural Tangent Kernel analysis.

Proposed method

  • Define Gaussian processes with variable-dimensional output to handle RNNs.
  • Develop NETSOR and NETSOR+ languages to express standard neural network computations.
  • Establish Theorem 5.4 (NETSOR Master Theorem) giving almost sure convergence to Gaussian processes under width→∞ for controlled nonlinearities.
  • Derive Corollary 5.5 to compute GP kernels from NETSOR encodings.
  • Provide kernel calculations for architectures like simple RNN, GRU, transformer, and batchnorm+ReLU, plus empirical validation.
  • Offer open-source kernel implementations corresponding to the infinite-width limits.

Experimental results

Research questions

  • RQ1Do wide neural networks of standard architectures (including RNNs, LSTMs, GRUs, CNNs, attention-based models, and batchnorm/LN variants) converge to Gaussian processes?
  • RQ2Can a single language (NETSOR) express these architectures and enable general GP convergence results?
  • RQ3How can one compute GP kernels for diverse architectures from their NETSOR encodings?
  • RQ4What is the empirical validity of infinite-width GP predictions for finite-width networks across architectures?
  • RQ5What are the theoretical and practical implications of extending GP correspondences to modern components like attention and normalization layers?

Key findings

  • Wide feedforward and recurrent networks of standard architectures converge to Gaussian processes as width → ∞ with randomized weights and biases.
  • A NETSOR framework unifies expressing neural network computations and enables GP convergence results for architectures including RNNs, GRUs, transformers, skip connections, pooling, batchnorm, and layernorm.
  • The NETSOR Master Theorem provides a way to compute limiting distributions and GP kernels via Gaussian inputs with mean μ and covariance Σ.
  • Corollaries show that the network outputs become jointly Gaussian with a kernel K determined by φ and the program’s structure.
  • Empirical demonstrations show finite-width networks (e.g., width 1000) exhibit covariance structures and joint distributions close to infinite-width GP predictions across RNN, GRU, transformer, and BN+ReLU networks.
  • Open-source implementations of the GP kernels for several architectures are provided at github.com/thegregyang/GP4A.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.