Skip to main content
QUICK REVIEW

[Paper Review] Predicting the outputs of finite deep neural networks trained with noisy gradients

Naveh, Gadi, Ben-David, Oded|arXiv (Cornell University)|Apr 2, 2020
Gaussian Processes and Bayesian InferenceComputer Science22 citations
TL;DR

This paper introduces the Neural Network Stochastic Process (NNSP), a non-Gaussian process that models finite-width deep neural networks trained with noisy gradients. It shows that in the infinite width limit, the NNSP converges to the Neural Network Gaussian Process (NNGP), and derives finite-width corrections (FWCs) that accurately predict empirical DNN outputs—especially improving performance over GP baselines in both small and large training regime, with FWCs being negligible in the large-n limit due to decay scaling.

ABSTRACT

A recent line of works studied wide deep neural networks (DNNs) by approximating them as Gaussian Processes (GPs). A DNN trained with gradient flow was shown to map to a GP governed by the Neural Tangent Kernel (NTK), whereas earlier works showed that a DNN with an i.i.d. prior over its weights maps to the so-called Neural Network Gaussian Process (NNGP). Here we consider a DNN training protocol, involving noise, weight decay and finite width, whose outcome corresponds to a certain non-Gaussian stochastic process. An analytical framework is then introduced to analyze this non-Gaussian process, whose deviation from a GP is controlled by the finite width. Our contribution is three-fold: (i) In the infinite width limit, we establish a correspondence between DNNs trained with noisy gradients and the NNGP, not the NTK. (ii) We provide a general analytical form for the finite width correction (FWC) for DNNs with arbitrary activation functions and depth and use it to predict the outputs of empirical finite networks with high accuracy. Analyzing the FWC behavior as a function of $n$, the training set size, we find that it is negligible for both the very small $n$ regime, and, surprisingly, for the large $n$ regime (where the GP error scales as $O(1/n)$). (iii) We flesh out algebraically how these FWCs can improve the performance of finite convolutional neural networks (CNNs) relative to their GP counterparts on image classification tasks.

Motivation & Objective

  • To develop a theoretical framework for finite-width deep neural networks trained with stochastic gradient dynamics.
  • To address the limitations of the Neural Tangent Kernel (NTK) framework, which assumes lazy learning and deterministic training.
  • To establish a correspondence between finite DNNs and a non-Gaussian stochastic process (NNSP) that captures feature learning and weight decay effects.
  • To derive analytically tractable finite-width corrections (FWCs) that improve prediction accuracy over Gaussian Process approximations.
  • To demonstrate that FWCs capture essential inductive biases like weight sharing in CNNs, explaining their superiority over infinite-width GP models.

Proposed method

  • Introduces a Langevin-type training dynamics with injected white Gaussian noise and weight decay to model stochastic training of DNNs.
  • Derives a statistical field theory description of the DNN output distribution as a non-Gaussian stochastic process (NNSP), valid under ergodicity in output space.
  • Establishes that in the infinite width limit, the NNSP converges to the Neural Network Gaussian Process (NNGP), not the NTK, due to non-trivial weight drift from initial i.i.d. priors.
  • Uses perturbation theory to derive leading-order finite-width corrections (FWCs) that scale as 1/N, where N is the network width.
  • Derives explicit, general expressions for FWCs applicable to arbitrary activation functions and network depths, valid for both training and test data points.
  • Validates the NNSP correspondence numerically across fully connected and convolutional networks, showing FWCs improve performance on image classification tasks.

Experimental results

Research questions

  • RQ1Does a finite-width DNN trained with noisy gradients converge to a well-defined stochastic process in the infinite width limit, and if so, what is its nature?
  • RQ2Can finite-width corrections (FWCs) be analytically derived for arbitrary activation functions and network depths, and do they improve prediction accuracy over Gaussian Process approximations?
  • RQ3Why do finite CNNs outperform their infinite-width GP counterparts in image classification, and can this be explained by FWCs?
  • RQ4How does the behavior of FWCs change with training set size n, particularly in the small-n and large-n regimes?
  • RQ5Can the NNSP framework explain the absence of benefit from weight sharing in infinite-channel CNNs, and does it capture this effect via leading FWCs?

Key findings

  • In the infinite width limit, DNNs trained with noisy gradients and weight decay converge to the Neural Network Gaussian Process (NNGP), not the NTK, due to significant weight drift from initialization.
  • The leading finite-width corrections (FWCs) scale as 1/N and are derived in closed form for arbitrary activation functions and network depths.
  • The FWCs are negligible in both the small-n and large-n regimes: small in the small-n regime and decaying with n in the large-n regime, where GP error scales as O(1/n).
  • The FWCs significantly improve prediction accuracy of empirical finite-width DNNs over GP-based predictions, validating the ergodicity assumption of the NNSP framework.
  • The leading FWC captures weight sharing effects in CNNs, explaining why finite CNNs outperform infinite-width GP models, which lack such inductive bias.
  • The NNSP correspondence holds for both fully connected and convolutional networks, as validated numerically, and provides a unified framework for analyzing finite-width DNNs with stochastic training.

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.