Deep neural nets as Hamiltonians

Neural networks are complex functions of both their inputs and parameters. Much prior work in deep learning theory analyzes the distribution of network outputs at a fixed set of inputs (e.g., a training dataset) over random initializations of the network parameters. The purpose of this article is to consider the opposite situation: We view a randomly initialized multilayer perceptron (MLP) as a Hamiltonian over its inputs. For typical realizations of the network parameters, we study the properties of the energy landscape induced by this Hamiltonian, focusing on the structure of near-global minimum in the limit of infinite width. Specifically, we use the replica trick to perform an exact analytic calculation giving the entropy (log volume of space) at a given energy. We further derive saddle-point equations that describe the overlaps between inputs sampled independent and identically distributed from the Gibbs distribution induced by the random MLP. For linear activations we solve these saddle-point equations exactly. But we also solve them numerically for a variety of depths and activation functions, including tanh,sin,ReLU, and shaped nonlinearities. We find even at infinite width a rich range of behaviors. For some nonlinearities, such as sin, for instance, we find that the landscapes of random MLPs exhibit full replica symmetry breaking, while shallow tanh and ReLU networks or deep shaped MLPs are instead replica symmetric.

Authors

Institutions

Publication Details

Journal
Physical review. E
Published
2025-09-26
DOI
https://doi.org/10.1103/xg33-ksqn
Primary Topic
Quantum many-body systems
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Deep neural nets as Hamiltonians

Karl J. Friston
Physical review. E
Quantum many-body systems
article

Deep neural nets as Hamiltonians

Karl J. Friston
article en

Abstract

Neural networks are complex functions of both their inputs and parameters. Much prior work in deep learning theory analyzes the distribution of network outputs at a fixed set of inputs (e.g., a training dataset) over random initializations of the network parameters. The purpose of this article is to consider the opposite situation: We view a randomly initialized multilayer perceptron (MLP) as a Hamiltonian over its inputs. For typical realizations of the network parameters, we study the properties of the energy landscape induced by this Hamiltonian, focusing on the structure of near-global minimum in the limit of infinite width. Specifically, we use the replica trick to perform an exact analytic calculation giving the entropy (log volume of space) at a given energy. We further derive saddle-point equations that describe the overlaps between inputs sampled independent and identically distributed from the Gibbs distribution induced by the random MLP. For linear activations we solve these saddle-point equations exactly. But we also solve them numerically for a variety of depths and activation functions, including tanh,sin,ReLU, and shaped nonlinearities. We find even at infinite width a rich range of behaviors. For some nonlinearities, such as sin, for instance, we find that the landscapes of random MLPs exhibit full replica symmetry breaking, while shallow tanh and ReLU networks or deep shaped MLPs are instead replica symmetric.

Physical review. EVol. 113(1)
Princeton University (US), University of Maryland, College Park (US)
Openalex Percentile: Top 68%
Quantum many-body systems
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Deep neural nets as Hamiltonians — Karl J. Friston · Physical review. E (2025) | TGRS Research Map | TGRS