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ℓ in each hidden layer (ℓ = 1, . . . , L, being L the depth of the network) far exceeds the number P of training examples. 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ℓ and P are large and their ratio αℓ = P/Nℓ is finite. This advance allows us to obtain (i) a closed formula for the generalisation error associated to a regression task in a onehidden 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.

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

Ariosto S.;Ginelli F.;
2023-01-01

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ℓ in each hidden layer (ℓ = 1, . . . , L, being L the depth of the network) far exceeds the number P of training examples. 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ℓ and P are large and their ratio αℓ = P/Nℓ is finite. This advance allows us to obtain (i) a closed formula for the generalisation error associated to a regression task in a onehidden 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.
2023
2023
Computer science; Statistical physics
Pacelli, R.; Ariosto, S.; Pastore, M.; Ginelli, F.; Gherardi, M.; Rotondo, P.
File in questo prodotto:
File Dimensione Formato  
NatMachInt2023.pdf

accesso aperto

Tipologia: Documento in Pre-print
Licenza: Creative commons
Dimensione 1.64 MB
Formato Adobe PDF
1.64 MB Adobe PDF Visualizza/Apri

I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/11383/2165911
Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus 3
  • ???jsp.display-item.citation.isi??? ND
social impact