English

Bayesian Inference with Deep Weakly Nonlinear Networks

Machine Learning 2024-05-28 v1 Artificial Intelligence Machine Learning Probability Data Analysis, Statistics and Probability

Abstract

We show at a physics level of rigor that Bayesian inference with a fully connected neural network and a shaped nonlinearity of the form ϕ(t)=t+ψt3/L\phi(t) = t + \psi t^3/L is (perturbatively) solvable in the regime where the number of training datapoints PP , the input dimension N0N_0, the network layer widths NN, and the network depth LL are simultaneously large. Our results hold with weak assumptions on the data; the main constraint is that P<N0P < N_0. We provide techniques to compute the model evidence and posterior to arbitrary order in 1/N1/N and at arbitrary temperature. We report the following results from the first-order computation: 1. When the width NN is much larger than the depth LL and training set size PP, neural network Bayesian inference coincides with Bayesian inference using a kernel. The value of ψ\psi determines the curvature of a sphere, hyperbola, or plane into which the training data is implicitly embedded under the feature map. 2. When LP/NLP/N is a small constant, neural network Bayesian inference departs from the kernel regime. At zero temperature, neural network Bayesian inference is equivalent to Bayesian inference using a data-dependent kernel, and LP/NLP/N serves as an effective depth that controls the extent of feature learning. 3. In the restricted case of deep linear networks (ψ=0\psi=0) and noisy data, we show a simple data model for which evidence and generalization error are optimal at zero temperature. As LP/NLP/N increases, both evidence and generalization further improve, demonstrating the benefit of depth in benign overfitting.

Keywords

Cite

@article{arxiv.2405.16630,
  title  = {Bayesian Inference with Deep Weakly Nonlinear Networks},
  author = {Boris Hanin and Alexander Zlokapa},
  journal= {arXiv preprint arXiv:2405.16630},
  year   = {2024}
}
R2 v1 2026-06-28T16:40:57.015Z