I. Frozen in the Forge
A blacksmith shaping a steel blade has mastered the art of disorder. The smith has to control how the metal cools as carefully as how it is hammered. After heating the metal, they plunge it into water or oil, cooling it fast enough to change its internal structure. With the right steel and heat treatment, the blade emerges more resilient. Two pieces with the same chemical composition can consequently have vastly different properties, due to the difference in the timescales they were cooled under. The history of a smith's forge survives in the arrangement of the atoms of their work.
The element the smith must control is carbon. Its atoms fit into gaps between the iron atoms. Slow cooling gives them time to redistribute, while a rapid can trap them in a different arrangement. That changes how easily the steel deforms, letting the smith shape its properties through the timing of the cooling.1, 2
Physics borrows the words and from these heat treatments. Annealing gives atoms time and thermal mobility to rearrange toward a more stable structure. Quenching makes further rearrangements too slow to matter during an observation. On the timescales we care about, some variables become effectively frozen, while others can still change. A variable is quenched when it stays fixed while we study the others.3
Consider copper with a small amount of manganese mixed into it. Each manganese atom acts like a tiny magnet. Its describes that magnet's strength and direction, which we can picture as an arrow. After the alloy cools, the atoms can stay in place while these arrows keep changing direction. The positions are quenched, while the magnetic directions can fluctuate.4, 10
Where the atoms end up determines how their magnets interact. Some pairs prefer to point in the same direction, others in opposite directions. When these preferences can't all be satisfied together, the system is . We can see it with just three arrows, each allowed to point up or down.5
We now have two kinds of randomness to keep track of. Within one sample, spins fluctuate while the atomic positions stay fixed. Across samples, the positions differ too. Studying quenched disorder means working out what happens within each fixed sample before averaging over possible samples.3
A neural network gives us the same choice. A dataset can define a fixed learning problem while we compare possible choices of weights. For a particular network, we can hold the weights fixed and study its responses to different inputs. What we call disorder depends on which variables define the instance and which we allow to vary. will give us a way to calculate properties averaged over those frozen instances.6, 7
II. Seeing Double
To turn frozen disorder into a calculation, consider
Here,
Each frozen sample has its own partition function and its own ,
In
Averaging
Our example also makes the large-system limit transparent. Since
In more complicated systems, averaging the logarithm becomes difficult. The approaches it through powers of the partition function,
The index
An overlap of
For interacting systems, the large-
For neural networks, the first step is choosing what a replica contains. With a fixed dataset, replicas can be different parameter configurations. With fixed weights, they can be different inputs. That choice determines the partition function, the disorder average, and what an overlap can tell us about the network.
III. Lessons in the Grain
A training dataset is a particular realization of a much larger collection of possible observations. We could have collected different examples, measured different noise, or sampled different labels. Once we begin learning, though, we usually hold that realization fixed. The dataset becomes the environment in which the network's parameters are allowed to vary.
Write our dataset as
gives us a precise statistical over networks. Starting from a
The dataset is now the quenched disorder, and the parameters are the fluctuating variables. Each dataset defines its own and partition function. To study a distribution of learning problems, we first solve the inference problem for each fixed dataset, then average quantities such as
A replica is an independent parameter sample from this posterior. Two replicas share every training example and label, but they can explain those observations using different weights. These are samples from a specified probability distribution over networks. Whether a training algorithm actually samples that distribution is a separate question about its dynamics.
The replicated partition function has the same structure we encountered for spins,
Their relationship also has a direct interpretation in learning. If two posterior samples make different predictions on a new input
We can work through the entire calculation for a single linear neuron,
The posterior mean is a predictor. The tells us what remains uncertain about its weights. Along an of
To connect that uncertainty to new predictions, suppose training and test inputs are drawn independently from
The relevant lets the number of examples and the input dimension grow together,
The partition function connects this calculation to . Integrating over the weights produces a contribution,
Adding layers makes the weight ensemble more complicated even when every remains linear. A represents a linear function of its input, but its output depends on products of weight matrices. Independent Gaussian priors on those matrices consequently induce a different distribution over predictors from a Gaussian prior on one effective weight vector.
Li and Sompolinsky study this ensemble by integrating out the learned weights layer by layer. Each integration changes the governing the remaining problem, with the change determined by . Their controlled limit sends the hidden width
We can see a prior's preference directly in a small nonlinear example. Put the inputs on a circle,
Giving the hidden neurons Gaussian biases makes those even modes available. We reduce the hidden weight variance at the same time, keeping the variance of the signal entering each tanh fixed. Across eight paired feature draws, the root mean squared prediction error falls from
Quenched disorder alone doesn't require replica symmetry breaking. Our single-neuron posterior is Gaussian, and its uncertainty can be described without a hierarchy of distinct equilibrium states. For a more complicated learning ensemble, the question is whether independently sampled solutions organize into groups whose overlaps require additional structure. Multiple minima in a parameterization don't settle that question, especially when different weights can represent the same function.
A concrete example comes from the , where one studies weights of fixed norm satisfying random constraints
Throughout these examples, the dataset defines the instance and the weights explore its possible explanations. Next we can reverse that choice, freezing one particular network and letting its inputs vary.
IV. Walking on Frozen Ground
We have been asking which networks could explain a fixed set of observations. Now choose one network and keep it. Its weights no longer fluctuate. They define a landscape over the inputs, and our configurations are points in that landscape. Two replicas are two inputs presented to the same network.
Let the scalar output of this network be
This construction gives a statistical meaning to searching the input space. An optimizer follows one trajectory toward an extreme response. The asks how much input probability lies at different outputs and how inputs producing those outputs relate to one another. A very low output might occur in an exceptionally small region, while slightly less extreme outputs might be available throughout a much larger region. Temperature controls this competition between output value and probability mass.
The partition function packages that information. Writing
A linear neuron already shows how the two kinds of randomness separate. Take
We can quantify their similarity with the input overlap,
Winer and Hanin apply this perspective to deep random networks with Gaussian reference inputs. They let the input dimension and hidden widths grow proportionally at fixed depth. Their final coefficients have variance one, giving ordinary outputs of order
A nonlinear network can organize its favored inputs much less simply than the shifted Gaussian cloud. Imagine drawing two inputs independently from the same low-temperature ensemble. They might belong to the same group of similar configurations, to different groups, or to groups nested inside larger groups. An overlap distribution records how often these different similarities occur.
In a replica-symmetric description, one off-diagonal overlap describes typical pairs. Replica symmetry breaking allows a richer organization. One step introduces groups with distinct within-group and between-group overlaps. Full RSB allows a hierarchy with a continuous range of overlap levels. The replicas remain independent conditional on the network; the structure concerns where that common probability distribution places its mass.
The paper's numerical solutions of the replica equations find full RSB for sinusoidal activations in the regimes examined, while shallow and tanh examples are replica symmetric. The linear case is analytically solvable. These results concern particular architectures, normalizations, and regimes, rather than a classification of all networks using those activations.7 They show why choosing an activation can change the geometry of important inputs even when the weights are drawn by an otherwise similar procedure.
We can make that change visible by solving a finite hierarchy of replica equations ourselves. Take one hidden sine layer, with the same variance-one readout convention, and grow width and input dimension together at
On this temperature grid, the branches separate between
This is the insight supplied by frozen weights. The network becomes an environment, and we study the geometry of the inputs that it favors. Generalization in weight space and rare responses in input space can use closely related mathematics while answering different questions.
V. A Different Cast
There is another way to repeat the experiment. Keep a few inputs on the table, draw fresh weights, and observe a new network's responses to exactly those inputs. The architecture stays the same, but each initialization produces another function. We are now studying the joint distribution of those functions' values at our chosen probes.
For a single hidden layer, write
With finite second moments, the gives
To watch that limit take shape, fix inputs on the unit circle and draw 2,000 independent one-hidden-layer ReLU networks. Choose
The narrow network's lines along the axes have a simple origin: a ReLU neuron can be silent at one probe while responding at the other. Adding independent neurons smooths out that structure. Covariance alone would miss the change, because it already equals
In deep networks, the corresponding kernels propagate through the layers. A layer takes a jointly Gaussian pair of preactivations, applies the activation to each, and uses their expected product to determine the next layer's covariance. The kernel recursion in the appendix spells out the normalization and Gaussian integral. Zavatone-Veth develops this picture, while Lee and collaborators and Matthews and collaborators establish the deep-network Gaussian-process correspondence under their respective assumptions.17, 18, 19
This gives architecture an interpretable statistical effect. Even when the weights have mean zero, the kernel need not treat all pairs of inputs equally. Inputs that the random features tend to represent similarly remain correlated across the ensemble. The activation and its repeated composition through depth determine which distinctions the prior preserves. We can inspect that before fitting any labels.
Conditioning the resulting Gaussian process on a fixed regression dataset connects us back to Bayesian learning. With Gaussian observation noise, the posterior mean and covariance follow from Gaussian conditioning using the kernel on training and test inputs. This is the function-space counterpart of the weight-space Gaussian calculation for the linear neuron. Lee and collaborators use the correspondence to perform Bayesian prediction for infinitely wide deep networks.18
The order of limits matters here. In the familiar fixed-probe construction, depth and the number of probes stay finite while hidden widths grow; we can hold input dimension fixed as well. The kernel describes a fixed-size joint output distribution. In the proportional learning limit of section III, the number of observations grows with the network dimensions. The number of constraints is then itself macroscopic. A result derived with finitely many constraints cannot simply be carried into that regime.14, 17
There is a related distinction for input landscapes. Convergence at any specified finite set of probes does not, by itself, control an integral over a growing-dimensional input space with exponential weighting. Such an integral can emphasize inputs that were extremely unlikely under the original distribution. Establishing its limit requires control of that selection and of the tails, along with the 's normalization.
We should also keep the word quenched attached to a defined ensemble. The Gaussian-process construction averages over weights at fixed inputs. It does not by itself introduce a free energy, an equilibrium distribution over inputs, or a question about replica symmetry breaking. Those appear when we specify the additional probability measure and observable. The three perspectives are connected by their choices of conditioning, rather than by three interchangeable uses of the same average.
Random initialization consequently tells us how networks vary across possible preparations. To understand the responses of one particular preparation, we have to keep its actual weights in the calculation.
VI. The Average Within
Suppose someone hands us a network, including every weight, and asks for its average response to Gaussian inputs. We know the function and the input distribution. The remaining problem is an integral,
Averaging over initializations can hide this problem. For a centered, independent final readout, the expectation of
A one-hidden-layer ReLU network makes the distinction exact. Absorb any readout normalization into
Replicas give us a way to retain the missing information. Draw two independent inputs, use the same network for both, and average their product,
ARC's recent work studies this fixed-network estimation problem for wide random multilayer perceptrons. Its algorithms take the supplied weights and propagate approximate statistics of the input distribution through the layers. The approximation tracks : the mean, covariance, and higher-order quantities that describe departures from Gaussian behavior. The theory gives settings where these estimates outperform at a specified , with that error subsequently averaged over random weight realizations.20
The reason higher-order statistics matter is visible even in a scalar activation. A Gaussian input is determined by its mean and variance, but passing it through a nonlinear function usually produces a non-Gaussian output. Later layers can depend on features of that distribution that its first two moments do not capture. An approximation that propagates only means and covariances can consequently miss a contribution to the final expectation. Tracking additional cumulants retains more of that information.
In the paper, the proved bounds assume fixed depth, polynomial activations, and specified accuracy regimes as width grows. The experiments also examine ReLU networks. The authors' factorized algorithms exploit the structure of the cumulant calculations to reduce cost, and the numerical comparisons measure accuracy against computational effort.20 The appendix records the theorem's scaling conditions so that the intuitive comparison does not acquire a broader guarantee than the result provides.
This is a practical reason to keep track of quenched structure. The weights contain instance-specific information that can help calculate an average over inputs. Replacing the network by its average over initializations removes the very coefficients the estimator can use. Ordinary expectations commute when integrable, while the conditional expectation retains a dependence on
The two-replica identity above is an elementary moment identity; ARC's estimation algorithms use cumulant propagation. We can connect their question to the replica language without making the replica trick, or RSB, a required ingredient of every calculation involving a frozen network.
VII. What the Fire Leaves Behind
Across these examples, the architecture alone never specified the statistical system. We also had to choose what was held fixed, what could vary, and which probability measure described that variation. A dataset, an initialized network, and a set of probe inputs each define a different experiment.
| Held fixed | Allowed to vary | What we learn | Typical large-system limit |
|---|---|---|---|
| Training dataset | Posterior parameters | Which explanations remain plausible, and how uncertain their predictions are | Samples and dimension grow at fixed |
| Network weights | Inputs under a reference or tilted measure | Average responses, rare outputs, and the geometry of favored inputs | Input dimension and layer widths grow proportionally at fixed depth in the landscape theory |
| Probe inputs | Random initializations | Joint output statistics and the prior over functions | Widths grow at fixed depth and a fixed finite set of probes |
Their large-system limits preserve different balances. In regression,
Replica symmetry breaking is a further question about the organization of the chosen measure. A quenched instance can have a simple Gaussian ensemble, a single concentrating overlap, or a hierarchy of equilibrium configurations. A nonzero overlap, a complicated network, or an average over random variables is insufficient to choose among those possibilities. The calculation has to establish the relevant structure in the regime being studied.
This also tells us what the analogy with the forge contributes. A smith's preparation leaves a persistent arrangement of material, and that arrangement shapes what the blade can subsequently do. In our learning problem, a fixed dataset shapes the explanations available to a network. In our input problem, fixed weights shape its possible responses. Changing which variables we freeze changes the possibilities we are asking about.
Disorder becomes useful when we give it that precise role. The microscopic details can be random, while their consequences admit a predictable theory. We can calculate how much remains uncertain, how unusual responses are organized, and when knowing the particular realization helps us do better than averaging it away.
Appendix. Beneath the Surface
The calculations below supply the algebra behind the examples. Each uses the measure and normalization stated in the main text.
A. Completing the Bayesian square
For the linear model, the negative log posterior, up to terms independent of
Including the normalized prior, the Gaussian integral gives
For an independent test input with covariance
B. A linear landscape, including a divergent annealed average
Let
For independent replicas write
Now choose the quenched coefficients independently as
A real neighborhood of
C. From random features to a deep kernel
For the single-layer model, define the random vector
For a deep network, use preactivations
For Gaussian regression noise of variance
D. The mean of one network, and the scope of ARC's bounds
For fixed
For centered independent readout coefficients with variance
More generally, conditional independence of
ARC's main theorems fix depth and polynomial activation functions, use independent Gaussian weights with variance
E. What an overlap ansatz adds
For Gaussian disorder shared by replicas, averaging exponentials creates terms containing their mutual overlaps. In the independent-field example of section II,
For input replicas with
A one-step ansatz introduces an overlap within replica blocks and a different overlap between blocks. Full RSB replaces a finite hierarchy by an , often denoted
The continuation toward zero replicas remains an additional mathematical step. An ansatz for integer matrices and a formal continuation do not establish an interchange of limits. Appendix B gives a case where the quenched quantity exists but the positive integer moments needed for a direct replica computation do not.
F. How the computed figures were made
Architectural bias. The two conditions use the same standard Gaussian hidden draws and twelve observations in six antipodal pairs. Data seed 20261121 fixes their angles and independent observation noise with standard deviation
The top panel measures the prior's expected squared Fourier amplitudes on a 512-point uniform grid, combining sine and cosine contributions at each positive frequency. With
The Gaussian-process limit. Eight separated, non-antipodal circle probes are fixed before drawing any outputs. For the ReLU model in section V, their analytic covariance is
The replica branches. Here the network and measure are
The plotted sweep uses
- In hardening carbon steel, the hot crystalline phase is . A rapid quench can produce , trapping excess carbon as the iron lattice changes shape. This strains the lattice and hinders motion, contributing to hardness. The blade remains solid throughout. Quenching can lower toughness, so steel is often afterwards to improve that tradeoff.1, 2
- The separation depends on temperature and observation time. At low temperatures, spins themselves can relax extremely slowly, so an equilibrium calculation also requires that they have time to explore the states being averaged over.8
- For a positive, finite
, a sufficient condition for the displayed identity is that for some . Computing moments at positive integers and continuing the resulting expression toward zero requires additional justification, especially when exchanging this limit with . Rigorous proofs establish replica predictions in particular models, including the Parisi free-energy formula for the Sherrington–Kirkpatrick spin glass.11, 12 - With the Gaussian likelihood used here, the conditional evidence is
. The likelihood's normalization cancels from the posterior over weights, but matters when comparing evidence across noise levels. - When the parameters generating the data are drawn from the same prior used for inference, with the same likelihood, those generating parameters and independent posterior replicas are exchangeable conditional on the observations. This gives the , which constrain their overlap statistics. Whether RSB occurs still requires analysis of the particular model and regime.16
- The integral defining
must be finite. A Gaussian reference measure does not guarantee this for every Hamiltonian: in one dimension gives a divergent for every . Keeping explicit also preserves its normalization: the dimensionless potential for standard Gaussian inputs is .
References
- H. K. D. H. Bhadeshia, Ferrous Alloys, Course MP10, Lecture 6, University of Cambridge, pp. 1–3.
- H. K. D. H. Bhadeshia, Tempered Martensite, University of Cambridge.
- Marc Mézard and Andrea Montanari, Information, Physics, and Computation, author-hosted draft, November 2007, section 5.4, pp. 102–103.
- Th. M. Nieuwenhuizen and C. N. A. van Duin, Theory of site-disordered magnets, 1998.
- Sam Edwards, Retrospective on “Theory of spin glasses”, This Week's Citation Classic, September 16, 1985.
- Jacob A. Zavatone-Veth, Lecture notes on the replica method for Wishart matrix eigenvalues, updated November 27, 2025.
- Mike Winer and Boris Hanin, Deep Neural Nets as Hamiltonians, 2025.
- Chandan Dasgupta, Introduction to the Theory of Spin Glasses, School on Glass Formers and Glasses, JNCASR, January 2010.
- K. Binder and A. P. Young, Spin glasses: Experimental facts, theoretical concepts, and open questions, Reviews of Modern Physics 58, 801, 1986.
- Samuel J. Ling, Jeff Sanny, and William Moebs, Magnetism in Matter, University Physics, Volume 2, section 12.7, OpenStax.
- Jacob A. Zavatone-Veth, What is the simplest model problem for the replica trick in random matrix theory?, November 10, 2024.
- Michel Talagrand, The Parisi formula, Annals of Mathematics 163, 221–263, 2006.
- Jacob A. Zavatone-Veth, Lecture notes on the inductive biases of high-dimensional ridge regression, October 6, 2024.
- Qianyi Li and Haim Sompolinsky, Statistical Mechanics of Deep Linear Neural Networks: The Back-Propagating Kernel Renormalization, Physical Review X 11, 031059, 2021.
- Silvio Franz and Giorgio Parisi, The simplest model of jamming, arXiv:1501.03397, 2015.
- Lenka Zdeborová and Florent Krzakala, Statistical physics of inference: Thresholds and algorithms, Advances in Physics 65, 453–552, 2016, revised 2018.
- Jacob A. Zavatone-Veth, A brief introduction to the neural network Gaussian process from the perspective of mean field theory, June 29, 2023.
- Jaehoon Lee, Yasaman Bahri, Roman Novak, Samuel S. Schoenholz, Jeffrey Pennington, and Jascha Sohl-Dickstein, Deep Neural Networks as Gaussian Processes, ICLR 2018.
- Alexander G. de G. Matthews, Mark Rowland, Jiri Hron, Richard E. Turner, and Zoubin Ghahramani, Gaussian Process Behaviour in Wide Deep Neural Networks, 2018.
- Wilson Wu, Victor Lecomte, Michael Winer, George Robinson, Jacob Hilton, and Paul Christiano, Estimating the expected output of wide random MLPs more efficiently than sampling, arXiv:2605.05179v3, revised November 2, 2026.