A statistical mechanics framework for Bayesian deep neural networks beyond the infinite-width limit

R. Pacelli, S. Ariosto, M. Pastore, F. Ginelli, M. Gherardi +1 more
9/11/2022
cond-mat.dis-nn
bayesian

Official code: rpacelli/FC_deep_bayesian_networks (8 stars, Python, Unlicense, last commit 2024-04-08).

Abstract

Despite the practical success of deep neural networks, a comprehensive theoretical framework that can predict practically relevant scores, such as the test accuracy, from knowledge of the training data is currently lacking. Huge simplifications arise in the infinite-width limit, where the number of units $N_\ell$ in each hidden layer ($\ell=1,\dots, L$, being $L$ the depth of the network) far exceeds the number $P$ of training examples.

Show full abstract

This idealisation, however, blatantly departs from the reality of deep learning practice. Here, we use the toolset of statistical mechanics to overcome these limitations and derive an approximate partition function for fully-connected deep neural architectures, which encodes information about the trained models. The computation holds in the ''thermodynamic limit'' where both $N_\ell$ and $P$ are large and their ratio $α_\ell = P/N_\ell$ is finite. This advance allows us to obtain (i) a closed formula for the generalisation error associated to a regression task in a one-hidden layer network with finite $α_1$; (ii) an approximate expression of the partition function for deep architectures (via an ''effective action'' that depends on a finite number of ''order parameters''); (iii) a link between deep neural networks in the proportional asymptotic limit and Student's $t$ processes.

View on arXivView PDF

Code Implementations(1)

Unlicense

Train fully connected networks of arbitrary depth in the bayesian setting. Code relevant to "A Statistical Mechanics framework for deep neural networks beyond the infinite-width limit"

80Python, ShellMay 12, 20232 years agoUnlicense

Similar Papers

Cite this paper

@article{pacelli2022statistical,
  title  = {A statistical mechanics framework for Bayesian deep neural networks beyond the infinite-width limit},
  author = {R. Pacelli and S. Ariosto and M. Pastore and F. Ginelli and M. Gherardi and P. Rotondo},
  year   = {2022},
  eprint = {2209.04882},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2209.04882}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2209.04882.svg)](https://codeofpaper.com/paper/2209.04882)

Discussion