Manuscript Offprint
arXiv:2611.02955Generative diffusion in long-range correlated landscapes: Speciation cascade and the foam structure of the score
Abstract
While state of the art for image and video generation, the fundamental reasons for the effectiveness of generative diffusion remain unclear. In particular, the observed advantage of following an entire reverse process with respect to single-shot or autoregressive methods, and for what type of data it may hold, is not well understood. In this work, we aim to better understand the role of the reverse process by considering a complex yet analytically tractable data model, the Gibbs measure of a high-dimensional Gaussian random potential with long-range correlations. Focusing on the exact score, we show that the “speciation” threshold, in which a trajectory commits to one class of the data, becomes a speciation window, in which the reverse process progressively resolves the Parisi tree of pure states of the full replica-symmetry breaking measure, committing to ever finer branches down to a single pure state. Importantly, these commitments take place at noise levels where the noisy sample distinguishes the pure states only through an energy of order one, beyond the reach of standard replica saddle points. Constructing a Larkin argument suited to such energy gaps, we describe the score as a foam, with slab-like cells separated by shock-like boundaries. In the variance-exploding process we consider, this window is followed by a shrinkage of the samples towards the data support, and finally by reconstruction within the selected pure state. The denoising error of the exact score follows these stages, dropping during the speciation window with a profile set by the Parisi function alone, and then within the selected state. We believe that the generative foam we describe, and in particular the boundaries between cells, could play an important role in determining where the errors of trained diffusion models redistribute the mass of the generated samples when the data are long-range correlated.
Contents
| 1 Introduction | 2 |
|---|---|
| Our results in a nutshell: a multiscale speciation cascade | 4 |
| 2 Setting | 5 |
| 2.1 Generative diffusion | 5 |
| 2.1.1 Two measures | 6 |
| 2.1.2 A sharp limit: score shocks | 7 |
| 2.2 The data: a long-range random potential and its Parisi tree | 7 |
| 2.3 Pure state decomposition of the noised measure | 9 |
3 The onset of speciation 9 3.1 The speciation time ..... 9 3.2 A spectral criterion ..... 10 3.3 Data covariance of the fRSB measure ..... 10
4 Speciation cascade and generative foam 12 4.1 The Larkin balance ..... 12 4.2 The speciation window: Descending the Parisi tree ..... 15 4.3 Geometry of the foam and shape of the cells ..... 16 4.4 Shocks and cusps in the score correlator ..... 18
5 The denoising error across scales 19 5.1 Speciation regime: the foam seen by the denoiser ..... 19 5.2 Within the selected state: a replica-symmetric posterior ..... 21
6 Beyond the exact score: imperfect reverse dynamics 22
7 Discussion 24
A Replica theory of the data distribution 31
B Spectral estimate of the speciation scale 33
C Low-lying gaps and a real-space GREM 34
D Zero temperature curvature of the foam 37
E State attribution in the speciation regime 38
F Replica computations at fixed 40
G The source of the perturbed reverse dynamics 45
Understanding the role of data structure in generation is certainly a key open problem. In fact, one possible reason why diffusion models (DM) outperform earlier one-shot generative models, such as normalising flows [12], is that the time-dependent DM generation, in many practical applications, proceeds effectively scale by scale [13, 14]. This makes them particularly well suited to multi-scale data such as natural images, videos and audio. Data are also hierarchically organised into abstract features and sub-features, which appears key to beating the curse of dimensionality [15, 16], and how this hierarchy emerges during generation is an active research topic [17–20]. In these works, however, the hierarchy is a latent tree generating the elements of a single sample. Diffusion naturally raises the question of the spatial structure between samples, i.e. how they are organised relative to one another in data space, and how this organisation is recovered along the reverse trajectory [21]. This question then takes on a distinctly geometrical flavour, since structure in the data must show up as structure of a scalar landscape in the very space where sampling takes place, which is the core object of our paper.
As diffusion consists of progressively adding noise in “time” (written in the variance-exploding process we consider below), this spatial recovery becomes a temporal one. In the simplest tractable model of structured data, a mixture of two Gaussians, Biroli, Bonnaire, De Bortoli, and Mézard [6] (BBBM) notably identified successive regimes of the reverse process. By reading the two modes as data categories, they defined and located a speciation time at which a trajectory commits to one class. This criterion was since generalised by Achilli et al. [7] to arbitrary classes through Bayes classification, the speciation time being set by a free-entropy difference between classes, with successive speciation times when several classes are present. In a complementary, non-asymptotic approach, Li and Chen [22] characterised critical windows of the reverse process, i.e. narrow time intervals during which a given feature of the output is decided, and interpreted diffusion as a hierarchical sampler that commits to features at a discrete sequence of times. In these models, however, structure is minimal to enable analytical descriptions, with a few classes or a finite hierarchy of mixtures specified by hand, so that speciation reduces to a finite sequence of commitments.
Real data are instead correlated at all scales, likely organising into clusters within clusters. What becomes of speciation when it is no longer a few precise commitments but an entire cascade, and on which timescales the full hierarchy is recovered, remains open. To address these questions, we focus on high-dimensional probability distributions borrowed from disordered systems theory, and which do show such full hierarchy. We study -dimensional data drawn from a Gibbs measure , where is a Gaussian random potential of the Mézard–Parisi type [23–25], with large. More precisely, we consider the long-range correlated case , for which the Gibbs measure displays, at strong enough disorder, full replica-symmetry breaking (fRSB), i.e. an ultrametric tree of pure states embedded in space [26]. Such a setting is “rough but not featureless”: rich enough to organise into a hierarchy of clusters, yet simple enough for closed-form results [23, 24, 27, 28]. In this work, we focus on the exact score, in the vein of [6]; finite training sets on the same data landscape will be the object of a forthcoming work. Note that we are also not concerned here with the algorithmic implementation of such a denoiser, which is expected to be hard, at least in some regimes [29–33].
The Mézard–Parisi model lets us import decades of knowledge on disordered systems into the analysis of generative diffusion. As we shall see, however, the scales relevant to generation lie beyond the reach of the standard approach of a replica theory leading to an extensive saddle point. Indeed, in dimensions, the multi-modal structure emerges at diffusion times where the signal-to-noise ratio is only of order per coordinate. As in the two-Gaussian analysis of BBBM, the sampling trajectory then commits to a branch of the hierarchy through the projection of the noisy point onto the few directions that separate competing modes, an quantity, while the remaining directions only carry noise. The extensive saddle point, dominated by these directions, is blind to it. Note that this is not specific to our data model: whenever is dominated by a few macroscopically distinct states, the choice among them is made at these same times, where the noisy point exerts a total field of order one on the data. This is the diffusion counterpart of the vanishing symmetry-breaking field that selects a phase in the thermodynamic limit, and the limits of large and long diffusion times do not commute.
In order to describe the generative process, we therefore combine different techniques, all of which build on our knowledge of the Parisi tree of pure states and the statistics of their weights. We start by computing the covariance matrix of the data, allowing us to identify the scaling of the average onset of speciation following the spectral criterion introduced by BBBM (Sec. 3). Placing ourselves at this relevant timescale, we propose an adapted Larkin balance argument [34, 35], which recovers the speciation scaling and opens the description of a generative cascade that

Figure 1: Schematic of hierarchical state resolution along the reverse diffusion scheme. The opaque inner sphere is the support of the data distribution , of radius , shown with its fixed partition into pure states; the translucent outer sphere marks the typical support of the smoothed distribution , i.e. the shell of radius on which it concentrates. (a) At the start of the reverse process is effectively Gaussian and the shell is homogeneous. (b) At the onset of speciation a single boundary divides it into two broad sectors, separated by a first shock. (c,d) Sectors are subdivided hierarchically until the shell carries the same cells as the data sphere, marking the end of the speciation cascade. (e) The shell then contracts onto the data sphere without further transition, keeping their global topology while modifying their local shapes, and (f) coincides with the data sphere as , recovering . Colours label states and the branches that contain them, not computed probability densities. The figure is a schematic three-dimensional cartoon of an -dimensional problem, which does not account for the very strong anisotropy of the cells in high dimension (see Sec. 4.3).
resolves the spatial structure level by level down the Parisi tree (Sec. 4). At intermediate times, this progressive refinement leads to a “foam” of cells separated by sharp walls—the shocks of an associated Burgers problem, that leads to the well known “cusp” singularity in the score correlator [28, 36, 37] (Sec. 4.4)—until the finest level is reached. We then translate this picture in terms of the Bayes-optimal denoising error, which follows the cascade down to the width of the selected state, before a planted replica computation shows that the recovery within that state at short times is a simple narrowing of the posterior with no further transition (Sec. 5). Finally, we argue that the walls of the foam are precisely where errors of an imperfect reverse dynamics feed excess probability (Sec. 6); as we will discuss in a forthcoming work, we conjecture that this abundance of well-organised shock surfaces is a mechanism that helps learned scores to generalise.
Our results in a nutshell: a multiscale speciation cascade
Our model offers a generalisation of the speciation scenario of BBBM [6] in the case of hierarchically structured data with long-range correlations. In such a case, speciation is not a single decision but a cascade of branchings down the Parisi tree of states, spread over a window of time scales all of order (or ) but separated by orders of magnitude when disorder is strong. We follow speciation through the evolution of the effective potential , which is defined as minus the logarithm of the probability distribution at time and whose derivative is minus the score function—the force which drives the generative dynamics. In the variance-explooding diffusion process reads
(1) which is the central object that we characterise geometrically in the following as a high dimensional, strongly anisotropic foam. Our results are summarised in Fig. 1, see also Fig. 2 below. As reverse diffusion operates, the foam structure of the effective potential subdivides and drives the speciation cascade from long to short diffusion time as
-
Small . The smoothed potential has a single dominant basin;
-
Speciation cascade, with and , , where is the disorder strength appropriately rescaled with (Sec. 2.2), such that the range of this regime diverges when . is a foam of slab-like cells of characteristic width . The error in reconstructing a clean sample from its noised version decreases from its pure-noise value towards the width (defined in Eq. (24)) of a pure state that is assigned to a given trajectory;
-
Selected state, but , a window of width in . The posterior distribution (or internal measure) for typical is a single pure state and the error stays close to , so that no further transition happens;
-
Within the state, . The posterior distribution can be shown to be replica symmetric and stable as it is confined within a state, approaches , and the error decreases from to .
Note that the sharpness of the foam represented in Fig. 2, defined as the ratio between the size of the cells and the thickness of the walls, is found to be given by
As a result, the cells resolved earlier in the cascade process are also the sharpest in that sense. Importantly, these walls are where excess probability is created when the reverse diffusion process is generated with errors in the learnt score (Sec. 6).
2 Setting
2.1 Generative diffusion
As mentioned in the introduction, diffusion models rely on transporting difficult to sample data points to an easy to sample measure, and to learn the reverse of that process in order to readily generate new samples. Here, we focus on a variance-exploding (VE) schedule, which allows for the simplest computations, although we expect our results to hold qualitatively in a variance-preserving (VP) setting.
The forward process is free diffusion from a data point,
i.e. , with . At the distribution level, this straightforwardly leads to a convolution between the initial distribution and a Gaussian:
which is a solution to the heat equation .
Generation runs the reverse process, which starting from for can be written as the Langevin equation
(5) with the score
Indeed, in reverse time , the density of then obeys the Fokker–Planck equation
which is solved by , since .
In the following, we will often work with the “precision” of the noise that we introduced above
so that is pure noise and recovers the data. Note that in the Ornstein–Uhlenbeck (VP) scheme of [6] (which corresponds to keeping on the sphere), , the same signal-to-noise ratio corresponds to . In the large limit, the regime of speciation identified by BBBM, , is therefore , suggesting the rescaling
a regime which will be at the heart of Secs. 3–5.
2.1.1 Two measures
In this work, the data are drawn from a Gibbs measure at unit temperature, . Formally, this is not a restriction, since any distribution can be written in this form with the potential up to a constant. In this language, we propose to distinguish two important objects. On one hand, we have the external measure describing the distribution of the noisy data
We will describe it with the fixed-y potential W, defined through
On the other hand, we define the internal measure,
This is the original measure of modified by the addition of a quadratic pinning field of precision around . To understand the generation process of typical samples, we will be particularly interested in characterising the internal measure when is a typical sample drawn from . We will denote its mean by and its covariance by . This internal measure has a straightforward interpretation in the diffusion setting, as the conditional mean is the Bayes-optimal denoiser given a sample corrupted by the Gaussian process at precision . It is directly related to the score through the exact Tweedie identity [38]
This identity will also be relevant to study the geometry of the effective potential W, through the equality on the Hessian
Here and throughout the paper, refers to the expectation over .
Through the Tweedie identity, computing the score therefore amounts to solving a denoising problem. As such, it will be natural to characterise the reverse process through the denoising error of the Bayes-optimal , that is the minimum mean-squared error (MMSE),
with over , the Gaussian white noise , and the disorder. Since is generated from , Bayes' rule implies that given , is itself a sample of . This is the Nishimori identity, which allows the ground truth to be exchanged with a replica and will be essential to compute the MMSE analytically.
2.1.2 A sharp limit: score shocks
In this work, we choose to fix the temperature of the Gibbs measure to unity for convenience. However, in order to intuitively understand the geometry of , it will be useful to think about a “hardened”, zero temperature limit of the problem. For define
At , is the smoothed potential of the diffusion. As solves the heat equation with diffusion constant , a Cole-Hopf transform leads to follow a deterministic KPZ equation (see e.g. [36]) with viscosity ,
and thus is a Burgers velocity field [39, 40] (also called the Polchinski equation in the context of the renormalisation group, see e.g. [41]). We can thus identify , extending the mapping discussed in Sarkar [42] to dimensions.
The inviscid limit leads to the Hopf–Lax solution (also called the Moreau envelope of )
that is the zero-temperature Mézard–Parisi problem [23, 37] and inviscid Burgers with random initial data [36]. It has genuine shocks where the minimiser jumps, which are rounded at finite . Note that since has the statistics of V at a stronger disorder (Sec. 2.2), this sharp limit is also the one approached at strong disorder. We shall study this shock-like picture in Secs. 4.3 and 4.4.
2.2 The data: a long-range random potential and its Parisi tree
We now detail the data model we are considering in this study. We take on the sphere (a hard-wall ball, cube or torus of side can be used interchangeably), with a centred Gaussian potential of covariance
in the inertial range , with a short-range “ultraviolet” regulariser and the long-range cutoff giving the largest correlation length, that we will choose to be equal to the size of the ball. Overlines will henceforth indicate averages over the realisation of the potential, and the temperature is set to one. The Hurst exponent
Since has covariance , a temperature would only amount to , so that the disorder strength plays the role of an inverse temperature and setting the temperature to one loses no generality.
controls the roughness: corresponds to log-correlated-like landscapes [43, 44]; approaches smooth quadratic covariance. The case in dimension N = 1 is a Brownian potential which has received a lot of attention [25, 27, 45, 46].
Configurations on the sphere are typically apart. For the large-N limit to be non-trivial, these distances must lie inside the inertial range, and the variance of the potential across them must be extensive, so that energy and entropy compete at the same order. We thus adopt the canonical large-N scaling
with and , under which the large scale square excursion of the potential is extensive in . Note that all results shall depend on and only through , once lengths are measured in units of .
In the large-N limit, can be studied by the replica method and is described by the overlaps between configurations. For geometric statements we use instead squared distances per coordinate,
together with the physical length and the width . In these variables the covariance reads , with .
Let us summarise the most salient features of the Gibbs measure , obtained with the replica method [23, 24]; we refer unfamiliar readers to Appendix A, where we rederive these results in our notation following [47]. The first important result is that the replica-symmetric solution for all is stable only for , where
Since we want a highly structured distribution, we place ourselves beyond this de Almeida-Thouless line, , where the measure undergoes full replica symmetry breaking (fRSB). We call this regime strong disorder, and will further typically assume for the asymptotic statements.
The Parisi function , i.e. the probability that two configurations drawn from have an overlap smaller than , is then continuous between the two plateau values and of the overlap,
The upper plateau sets the width of a pure state,
which shrinks as at strong disorder, while the lower plateau,
i.e. , does not depend on the disorder strength. At the two ends, takes the values and , the latter independent of . It will be convenient to label the levels of the hierarchy by the Parisi level , and to invert the relation:
Physically, decomposes into pure states , i.e. its ergodic components, with weights , centres and thermal width per coordinate. Two states drawn from are at a distance of at least with probability [48], so that the physical distance between them is distributed as
with atoms of weight at and at , the latter corresponding to two configurations in the same state. The exponent is fixed by the roughness of alone. Since and , the whole hierarchy lies inside the inertial range as , and strong disorder makes it broad, .
The states are organised in an ultrametric tree, the Parisi tree of states (Mézard-Virasoro) [26, 49] (App. A.5). Two states whose branches separate at level have overlap . At each level, the free energies of the competing sub-clusters behave as the low-lying levels of Derrida’s random energy model [50]. They are independent, with a density that grows exponentially as [26, 49, 51], so that only a few of them carry a significant weight. At the finest level, the participation ratio of the pure states is [26, 52]
Although infinitely many states contribute as , a few of them carry most of the weight, and the measure is condensed.
2.3 Pure state decomposition of the noised measure
The decomposition of into pure states carries over to . Writing , with the measure restricted to the state and , the convolution (4) gives
where is the free energy of the state pinned around . Since , the smoothed potential is exactly a soft minimum over the states,
Even though the initial measure is fragmented in pure states, by increasing the noised versions of the pure states probability distributions merge leading to a cascade of transitions and eventually to a unique pure state for —coinciding with a Gaussian when . Understanding this cascade is the aim of the next section. We will do it focusing on the potential which is equal (up to a constant) to minus the log of .
3 The onset of speciation
3.1 The speciation time
One of the key results of BBBM is the identification of the so-called speciation time . Strictly speaking, there are in fact two possible definitions of .
The first, which motivates its name, is one of attribution. Assuming a distribution is multimodal and each mode can be identified with a class, it is natural to define as the time at which a given trajectory becomes committed to one of the classes. Achilli et al. [7] makes this precise through Bayes classification of the noised configuration, locating where the free-entropy difference between two classes becomes comparable to its fluctuations.
The second is instead based on geometry. As the long-time distribution is a unimodal Gaussian, one can ask when non-trivial modes start to emerge in the potential W. This question itself has two answers: (i) the time at which the long-time basin of W loses convexity, a spinodal; and (ii) the time at which new stationary points of W first appear away from it. The two need not coincide, and in between may lie a binodal region in which the long-time basin is still convex while other basins already exist, as in a first-order transition. We come back to this distinction in Sec. 4.
3.2 A spectral criterion
In the mixture of two Gaussians of equal weights studied in BBBM, all of these coincide: the loss of convexity is a pitchfork bifurcation that creates the two new basins, and trajectories commit at the same time. The speciation time can then be located by the simplest of these criteria, the loss of convexity of the long-time basin, which takes the form of a spectral criterion.
While initially proposed in the variance-preserving context, the argument only uses loss of convexity and therefore transposes directly to our variance-exploding setting. Let be the unique minimum of at long times. By Eq. (13), , and by Eq. (14) it destabilises when
where is the largest eigenvalue of the posterior covariance . Now, assume that this occurs at small (which we can check a posteriori). It then follows that is well approximated by the data covariance of , giving the spectral criterion . Therefore the long time behaviour of the reverse process can be predicted by the bare covariance matrix of the data.
3.3 Data covariance of the fRSB measure
We now set out to explicitly compute the speciation time for our data model. We start with a pure state decomposition,
which we have itself decomposed in a intrastate and an interstate contribution. Here is the mean within a pure state, , and describes intrastate fluctuations, while represents interstate contributions.
We start by computing the interstate covariance. For any two states, the study of the microstructure of ultrametricity of Mézard and Virasoro [49], adapted to a Gaussian measure, gives
\overline{{m_{i}^{\alpha}m_{j}^{\gamma}}\mid Q_{\alpha\gamma}=q}}=\delta_{i j}q, \tag{33}with for . Therefore, when averaging over the disorder,
with the mean overlap, and the distribution of overlaps, which includes peaks of weight at and at . Rotational invariance then implies
with . Integrating by parts and using the fRSB solution of Sec. 2.2,
The above diagonal expression is only true on average, as it suppresses the random orientations of possible large eigenvectors. Let be the matrix whose columns are the vectors , let be the column vector of state weights, and set . Then , the latter being the full matrix of overlaps between state centres. Hence the nonzero spectra obey
with . This reduces the required spectral problem to the overlap matrix and the statistics of the weights.
In the simplest case of two states, has rank one and Eq. (37) gives the unique nonzero eigenvalue . In the fRSB case, the effective number of states contributing to the measure is given by the participation ratio, which as mentioned above is [Eq. (28)]. This leads us to assume that the effective rank
remains as , and carries no power-law dependence on . While the participation ratio is known to fluctuate from sample to sample, the scaling of the ratio for a typical sample is the same as the one of the disordered average (as we check below). Using Eq. (37) we thus get
where incorporates the effective rank and the sample-to-sample fluctuations of Tr G.
We finally consider the connected fluctuations inside the pure states, . For a typical state, we write the stiffness matrix. As the fRSB solution is marginally stable, we assume that this marginality appears in the physical intrastate susceptibility through a soft lower edge of the normalised stiffness spectrum,
At finite , the typical smallest stiffness is estimated by requiring an order-one number of eigenvalues below it, , which gives
with . The density of soft modes f is fixed by the width of the states, , under a one-scale assumption on the stiffness spectrum (App. B.2), so that
The same scaling bounds the weighted intrastate contribution, since . For every , this contribution is subextensive in and is therefore subdominant to the interstate eigenvalue.
Combining the two contributions, the spectral criterion (31) gives
Since , using the covariance is consistent at the level of scaling.
Let us interpret the role of the disorder strength. Here, the dependence does not come from the width of the states, whose narrowing, , only affects the subdominant intrastate term. Instead, it comes from the spread of the state centres, , which is half the mean squared distance per coordinate between the centres of two states drawn from . At strong disorder this spread decreases as , because the Gibbs weight concentrates on few, closely related states. Two samples of the data then typically belong to the same deep branch, even though the hierarchy extends up to distances . Resolving this smaller spread requires less noise, and speciation occurs at larger , i.e. later in the reverse process.
As mentioned above, however, this estimate is annealed due to the disorder-averaged covariance, through the assumption that the trace of in a typical sample scales as its average. Since the weights of the pure states fluctuate strongly from one sample to the next, the measure being condensed (Sec. 2.2), it remains to check whether Eq. (43) holds for a given sample. We address this question in the following section.
4 Speciation cascade and generative foam
Section 3 located the onset of speciation at , i.e. at , consistent with the work of BBBM and Achilli et al. [7]. The challenge with this scale in our disordered setting where the score cannot be written explicitly is that the part of the pinning that distinguishes two states and in , is of order one, whereas the free energy, and with it the replicated action, is of order . A standard replica computation, based on an extensive saddle point, cannot see the competition between states and is therefore not suitable to study this long-time regime.
Two questions remain open. The spectral estimate of Sec. 3 is annealed, and an independent, sample-wise derivation of the onset is needed. Moreover, unlike the two-component mixture [4, 6], the fRSB measure contains a hierarchy of competing pure states. It is thus interesting to follow how the reverse “cascade” process resolves it beyond the first split. Increasing , the reverse process eventually needs to resolve finer branches of the Parisi tree. At intermediate scales, it appears natural that is locally dominated by different states in different regions of -space. We call the resulting collection of basins, separated by shock-like walls, the generative foam, see Fig. 2 for a low-dimensional illustration.
In this section, we address both questions with a Larkin argument, which balances the pinning against the free-energy gaps between branches of the Parisi tree and holds sample by sample (Sec. 4.1). It gives an independent estimate of the onset, follows the resolution down the tree (Sec. 4.2), and fixes the geometry of the foam (Sec. 4.3).
4.1 The Larkin balance
The Larkin argument was first introduced to study the collective pinning of vortex lattices [34, 35]. Our problem is its analogue on a -dimensional sphere [25], as one configuration in the random potential is confined around by . Beyond the Larkin scale several metastable configurations compete, and the preferred one jumps as the centre of the well moves, producing a shock in the “zero temperature” Hopf–Lax limit [36].
The Larkin balance can therefore be applied, but its usual geometric interpretation must be adapted to the diffusion setting in large dimensions. Indeed, at the speciation scale, , a typical noised configuration has , whereas the competing states remain on the sphere . The distance is consequently dominated by the noise, such that we need to be careful in comparing the pinned free energies (29) of two competing pure states and of , with centres and and free energies and .
In the following we will make a rigid-state approximation
and likewise for , with the average within the state . This is a good approximation because the -dependent terms of the pinning field lead to non-extensive contributions of order

Figure 2: Smoothing of a rough landscape with under the variance-exploding diffusion process in (a) and (b) dimensions. The smoothed potential is shown in its zero-temperature (Hopf-Lax) form, Eq. (18), for easier visualisation. In (a), markers show shocks, where the minimiser of the Hopf-Lax solution jumps between two competing basins and has a kink; dashed lines continue each branch a short distance beyond its shock. For (b), we show a hill-shaded , with the colour scale normalised in each panel (dark: low , i.e. high ). Shocks appear as creases separating the cells of a “foam”. As grows the cells merge hierarchically, from a dense foam () to a few large basins () and a single remaining shock (), until one basin fills the box (). The times are chosen separately for the two rows to show comparable stages.
one in the speciation regime. As such, they can be treated perturbatively, thus justifying the expansion above (see also [4]), while the intra-state fluctuations are, to leading order, the same for all states at a given . Starting from this expression, we can compare the two contributions. Since the two states have the same norm to leading order in , their relative free energy is
with and . All terms involving , as well as the equal radial contributions from the two states, cancel from this difference.
Let us decompose as , with , such that the latter contribution also disappears from Eq. (45). Here is the position of along the axis joining the two centres, with when and when . Equation (45) then gives the crossing condition , where is the typical free-energy difference between the deepest state within distance and its closest competitor. Since , this defines an operative Larkin scale such that
The energy balance has the familiar Larkin form, but here it arises only after projecting the noised configuration onto the direction separating two competing states.
The subtle point now is to estimate the relevant energy gap in high dimension. There, a shell at distance from a reference minimum can be divided into macroscopically distinct cells, whose mutual separations are an fraction of . This exponential multiplicity is consistent with complexity calculations for high-dimensional random landscapes [47, 53]. This count is much larger than in low dimensions but much smaller than the naive count that

Figure 3: Gap- versus depth-Larkin balance, sketched on a one-dimensional rough potential with . The dashed vertical lines delimit the window of width supporting the data (black), the grey curve being a hypothetical continuation of the disorder beyond it for a softly constrained potential. The data state (filled blue dot) and its closest competitor (open blue circle) are a distance apart and differ by . From a generic point of the landscape (open orange circle), the deepest state within reach (filled orange dot) lies lower, at a distance . The dashed parabolas illustrate the balances and (note that here their stiffnesses are not equal in this one-dimensional sketch, which is only illustrative). As the depth greatly exceeds the gap, in high dimension, the depth-Larkin length reaches beyond the data window.
ignores correlations. Treating the macro-cells as effectively independent, extreme-value statistics of Gaussian variables of variance then gives
Here, the suppression relative to the naive is the crucial correction: in many dimensions, low-lying states are exponentially numerous, and their gaps are correspondingly compressed by an extreme-value factor .
Importantly, this scaling is consistent with the replica solution. First, at large scales, i.e. for the deeper states corresponding to , we find an energy gap of order one as expected in frSB. Second, and more precisely, at temperature , the analogue of Eq. (23) reads [47]
At a given level of the Parisi hierarchy, sets the characteristic free-energy gap (Sec. 2.2),
The gap is therefore independent of the temperature, and using recovers Eq. (47). The same gap can also be reproduced without replicas, in a generalised random energy model built in real space from a dyadic decomposition of (App. C).
Note that one could also balance the confinement against the depth of the deepest state within distance , , which is enhanced by the extreme-value factor instead of compressed by it. This leads to what we call the depth-Larkin balance, , which gives
(50) i.e. . In diffusion, this scale is never realised, however. Indeed, the well is centred on a noised data point, which already sits in a low-lying state of a measure supported on the sphere, so that moving away from it gains only a gap, not a depth, as the posterior free-energy difference (62) of Sec. 5 makes explicit. At the depth balance would moreover require , beyond the size of the data sphere, see Fig. 3 for an illustration. The depth-Larkin scale is instead the relevant one when is a genuine confining potential centred on a generic point, as for a particle or a manifold pinned in a random potential in a box of linear size , where it reproduces the replica results [25, 27] and underlies the cusp analysis of Le Doussal et al. [28] (Sec. 4.4). As we show in Sec. 4.3, the distinction between the two balances is essential in determining the shape of the cells.
4.2 The speciation window: Descending the Parisi tree
Replacing the expression for the energy gap in Eq. (46), we finally obtain
i.e. . For a given , pure states at distances smaller than haven't speciated whereas the ones beyond it have, and the ones at scale are speciating.
The cascade then starts when and ends when , leading to an attribution window
so that we recover the spectral speciation result , as is independent of the disorder strength. This result also adds a time characterising the end of the cascade, , and therefore the speciation window span is given by
which becomes infinitely broad when . We also remark that the window widens dramatically as .
Beyond the first speciation, the Larkin scale provides a natural way of locating the resolution scale of the smoothed landscape within the Parisi tree. As long as lies in the continuous fRSB range, we define the corresponding Parisi level through
Substituting the Larkin scale in the expression for gives, at the level of scaling, (note that has dimension of ) or, normalising by the onset where ,
At the first speciation, and therefore . Note that is genuinely small at strong disorder, so that the cursor then spans a wide range, from for to for . As increases, decreases and moves monotonically through the continuous branch towards .
The smoothing thus progressively resolves finer levels of the Parisi tree, with providing a natural parametrisation of this hierarchical cascade. Once reaches , the scale-matching construction has exhausted the hierarchy of the equilibrium data measure. This evolution is shown in Fig. 4(a), while the quantitative evolution of and the associated are shown in Fig. 4(b,c).


Figure 4: (a) Schematic ultrametric (Parisi) tree of the pure states of , going down in the Parisi level from the first speciation at to , where the leaves are the pure states. For the smoothed landscape is a single effective cell (grey trunk). At a given , the cursor of Eq. (55) cuts the tree at the level resolved by the Larkin scale (dashed lines, with a dot on each resolved branch), and moves towards as increases. (b) Parisi cursor versus for at (). Open circles mark at the onset and filled circles , reached at , beyond which the cursor saturates (dashed). The shaded region is the single cell, . (c) The same cursor on the equilibrium Parisi function versus (inverted axis), with ticks at log-spaced moving from towards .
This cursor also has a direct interpretation. Two states drawn from lie in different cells of the foam when their distance exceeds the cell scale, , which happens with probability evaluated at that scale. Averaged over the disorder, is therefore the probability that two states drawn from the data are already distinguished by the smoothed landscape at . It grows from at the onset to at the end of the cascade.
4.3 Geometry of the foam and shape of the cells
Let us now describe more precisely the geometry of the smoothed potential in this intermediate regime. Within the rigid-state picture of Sec. 4.1, we recall that each pure state contributes to the partition function through its cell potential ,
For a given , wherever one of the cell potentials lies below all the others by more than a few units, the sum is dominated by a single term , and is simply a harmonic well of curvature centred on . We call the region of the sphere where this is the case the cell of the state . The boundary between two neighbouring cells is then a hyperplane perpendicular to , displaced from the bisector by towards the state of higher free energy, whose cell is accordingly smaller. The cells therefore tile -space as a weighted Voronoi, or more precisely a power (Laguerre) diagram of the state centres as illustrated in Figs. 1 and 2.
At a given , neighbouring states are at a distance . The wall separating them is characterised by the equality of the energy . Moving at a distance from this wall creates an imbalance of these energies of order ; this is of order one when which defines the typical thickness of the wall.
We define the sharpness of the foam's walls as the ratio between the size of the cells to the thickness of the walls :
As a result, walls between coarser branches, resolved earlier, are the sharpest. In fact characterises the least sharp walls among all previously created shocks. Indeed, as mentioned in Sec. 4.2, is genuinely small at strong disorder, so that the initial foam has . The sharpness then decreases along the cascade, down to , where the walls become as thick as the cells and the foam picture ends. By the Larkin balance (46), is also the free-energy gap at the cell scale, so that the foam is sharp precisely where the hierarchy is strongly condensed, i.e. where the gaps are large and is small. For the diffusion itself (), the walls are not genuine discontinuities of , their width being set by the noise, but they appear as such on the scale of the cells whenever .
Note that at the centre of a wall separating two states of equal weight, the curvature of W normal to the wall is reduced to
with the wall-normal unit vector. The above is an equality for rigid states, the fluctuations inside the states only lowering it further. Walls thus become concave, i.e. ridges of separating two basins, as soon as . While we focus on the walls separating two states here, the ultrametricity of the potential means that a cluster in fact splits into several equidistant sub-clusters. When of them have comparable free energies the walls between them meet on junctions where cell potentials coincide, i.e. on sets of codimension . These junctions generalise the walls to higher codimension, that we shall come back to in Sec. 6.
The free-energy balance also fixes the shape of the cells, which in high dimension need not be spheroidal. By Eq. (45), the free-energy difference between two cells is proportional to the normal distance to the wall between them, . A noised point thus lies within normal distance of a wall when the smallest free-energy difference to a competitor is below . Let be the probability density of the smallest free-energy difference between the state of the noised point and its competitors at scale . Assuming this density is finite and smooth as , the probability to lie within a small normal distance of a wall is . Since the differences are spread over a range of order , , and the density of walls per unit length along the normal, i.e. the surface-to-volume ratio of the cells weighted by the noised points, is
At the gap-Larkin scale, , one thus gets a surface to volume ratio . This result indicates that the cells are very anisotropic. Indeed, a ball of radius in dimensions has , and more generally a factor is the signature of a cell with extension similar in all directions. For instance, splitting a simplex into pyramids with apex at an interior point, one per facet, gives exactly a volume , with the area of facet and its normal distance to the apex, so that , with the area-weighted mean distance to the facets. In order to get a surface to volume ratio of order , one needs that the cells be slabs, closed by walls within reach of a noised point and open in all other directions.
The slab geometry can equivalently be seen by ranking the competitors by their free-energy difference, which grows only logarithmically with the rank for extreme-value gaps. The number of walls within normal distance then grows as , so that closing all directions (which requires at least walls) would require , i.e. beyond the data sphere.
Here, the depth balance would instead give round cells, , which is the geometry of the pinned manifolds of Ref. [28]. Recall that the gap and depth
Near the lowest one, the free energies of the competing states at scale form a Poisson process whose density grows as with the height above the lowest level. The -th smallest difference is therefore . Since a wall lies within normal distance when , the number of walls within this distance is , i.e. at the gap-Larkin scale.

Figure 5: Wall crossing and the cusp of the score correlator. A flat wall of unit normal separates the cells of two states whose centres and lie a distance apart along . On either side, the score points towards the centre of its own state, so that across the wall jumps by . A step from the noised point crosses the wall only if lies within the normal distance of it, which happens with probability . For a random direction, , which gives a crossing rate per unit length, each crossing adding to .
balances involve competitors spaced by the same , and differ only through the penalty at the Larkin scale, which is larger by a factor for the depth balance. The same ranking then gives walls within normal distance , so that the cell is closed in every direction already at , and the exponentially many walls needed for it to be closed at comparable distances in all directions are reached at . The cell is then nearly round, and a step of random direction leaves it after a chord .
A final geometric information can be obtained in the Hopf–Lax limit, where the curvatures of away from the walls follow from those of at the minimiser through an exact map that we derive and interpret in App. D.
4.4 Shocks and cusps in the score correlator
As written in Sec. 2.1, the gradient of the smoothed potential —that is the score—can be understood as the Burgers velocity field in the arbitrary generalisation. Cell (or slab) boundaries therefore have a straightforward interpretation as shocks in the Hopf–Lax limit. This mapping between the replica-symmetry breaking of Gaussian random fields and Burgers shocks is at the heart of Bouchaud et al. [36] and Balents et al. [37], where the authors consider short-range disorder, notably to understand the properties of “Burgulence” [39, 40]. It is also intimately related to Functional Renormalisation Group approaches to random manifolds [28, 54, 55]. In this context a natural object to consider is the velocity correlator, where shocks translate to a cusp non-analyticity at the Larkin scale. As noted at the start of this section, however, the pinning that distinguishes the states is of order one at , so that the two-replica computation of this object by Le Doussal, Müller, and Wiese [28] (LMW), carried out at , does not apply directly. As we shall see, the foam nonetheless predicts its form.
Our geometric argument for the cusp singularity of the score correlation is the following. Consider a straight step from a point . It crosses a wall if lies within normal distance of it, with a probability , and for a step of random direction , the projection along the wall normal is typically . These two independent conditions, proximity to a wall and alignment with its normal, give a crossing rate per unit length of the step. Each crossing changes the score by the jump . For the per-component correlator of the zero-temperature potential, whose walls are genuine discontinuities, , the foam therefore predicts a linear cusp, with a norm that scales as the score jump squared,
which holds as long as the step crosses at most one wall.
As mentioned above, in our generative diffusion context where and the original data is on a sphere, we have cells that are in fact slabs with the surface to volume ratio . At the operative Larkin gap scale, we thus have
On the other hand, if we were instead in the standard unbounded space setting of random manifolds and a generic centre, we would be in the case , such that Eq. (60) gives , with no dependence on —the factor of round cells and the scale compensating the factors and of Eq. (60). This matches exactly the scaling of the cusp in the functional renormalisation group solution of LMW in their single-shock regime, which supports the geometric picture outlined here. The exponents in and of Eq. (61) are thus identical to those of this depth-Larkin setting, the amplitude being suppressed by from and by from the slab geometry.
Turning the scaling argument presented here into a proper replica computation is not straightforward, for the reason given at the start of this subsection and encountered throughout this work. At the pinning that distinguishes the states is of order one and does not move the extensive saddle point, so that the cusp would have to be extracted from the reweighting of the tree by two planted noisy points, and , as for the posterior over states of Sec. 5. We therefore leave this computation for future work.
5 The denoising error across scales
Generative diffusion can be seen as a succession of denoising problems. It is therefore useful to reformulate the geometric picture we have uncovered in terms of the Bayes-optimal denoiser, whose error , defined in Eq. (15) above, decreases from the prior width to zero along the reverse process. Indeed, in the context of a trained model, the denoising error is essentially the loss that a deep network is trained against. We first study the behaviour of this denoising error across the speciation window described above, before finally computing it for , i.e. when one denoises within the selected state.
5.1 Speciation regime: the foam seen by the denoiser
In an inference context, the Larkin balance of Sec. 4.1 acquires a direct reinterpretation. Consider a noised point generated from or “planted in” a pure state , treated as rigid. The denoiser aims at finding the state of the signal, , and weighs each state by its posterior probability . Recalling the pure state decomposition of the measure with , the posterior free-energy difference between a competitor and the planted state, i.e. their log-odds ratio, is (App. E.1)
In this regime the step is short compared with the typical chord of a round cell, so that at most one wall is crossed. Longer steps, , cross many walls at all scales of the hierarchy, and the linear cusp gives way to the full functional solution of LMW.
where is the squared distance between their centres and . This is the Larkin balance (46) seen from the planted state, with three terms of different origins. The gap is the prior free-energy difference between the two states. The penalty is the cost of moving away from state . The tilt , of zero mean and independent of the disorder, is due to the displacement of with respect to and is small compared with the penalty for . For two branches of equal weight, , Eq. (62) reduces to the speciation criterion of Achilli et al. [7], the penalty being compared with its fluctuations.
In this reading, a wall of the foam is where the denoiser attributes equal probability to two states. Indeed, if the planted state has lower free energy, then at all times (i.e. all ). If on the contrary , so that the planted configuration is in the “minority branch” of the split, the denoiser finds the right provided that . Therefore the attribution of the right label by the denoiser follows the Larkin cascade.
Within the rigid state approximation relevant for the speciation regime, the denoising error can be split as
where corresponds to the error due to intra-state fluctuations of the draw, while
where denotes the average over the random potential, over the state drawn with its weight and over the noise , i.e. over the draw of . The second form follows from expanding the square, using for all states, and exchanging with a posterior sample i.e. enforcing the Nishimori identity of Sec. 2.1. As we increase starting from , decreases from , the interstate width of Eq. (36), to at the end of the attribution.
We can go further and describe the drop in by assuming that the splits met along the branch of the true state in the tree (Fig. 4(a)) are independent. At a level of the tree, the log-odds given by Eq. (62) shift the free-energy difference between a competing branch and the branch of the planted state by in favour of the latter, with . For , the two branches are typically very unequal, their difference being set by the gap of Eq. (49), , and the denoiser picks the wrong branch only at the rare balanced splits. Averaging over these, the probability of a wrong guess is reduced by a factor compared with a guess drawn from the prior, which decreases from to (App. E.2). A split is thus decided once . Weighting each level by the probability that a prior guess leaves the branch of the true state there, and by the cost of such a guess, gives
We plot the total error in the regime in Fig. 6. At , reduces to , and as grows the splits are decided one after the other, the coarsest first, consistent with our foam picture. The drop thus sets in when the coarsest split is decided, , i.e. at , independently of . Inside the window, only the levels with are still undecided, and they keep their prior cost, so that
As in the Larkin cascade, and enter only through . This decay reaches the width of the states, , at , the end of the speciation window, where . Beyond it the attribution appears complete, still at , which we check in Sec. 5.2.
This approximation is expected to hold when balanced splits are rare along the branch, , i.e. at strong disorder, and to become less precise towards the end of the window,

Figure 6: Per-coordinate denoising error , averaged over the disorder, over the whole reverse schedule, on the two scales of joined at the plateau (dotted across the cut); , . Left, , against : squares, Monte Carlo of the rigid-state posterior over states on a sampled Parisi tree (App. E.3); dashed, independent splits, Eq. (65). Right, : planted branch, Eq. (70).
where . A direct Monte Carlo sampling of the posterior on random trees of states with the statistics of Mézard and Virasoro [49] (App. E.3), which does not include such approximations, proves to follow Eq. (65) closely, with deviations that grow only towards the end of the window (Fig. 6), as expected.
Note that, being an averaged quantity, need not follow the typical case described in Sec. 4.1, in which the planted state lies in the dominant branch of every split and is found from the outset. It is instead dominated by the rare draws in which one of these splits is balanced, which leads it to start dropping at , independently of , whereas the typical speciation begins later at (see Fig. 6).
5.2 Within the selected state: a replica-symmetric posterior
Once the cascade has reached the finest level of the hierarchy, at , what remains at is denoising within the selected state, whose error decreases from the width of the state to 0 as . The pinning term is then extensive, and a replica computation applies. Since is generated from the data, the relevant object is the quenched, trajectory-averaged log-partition function of the internal measure from a planted configuration,
with . The noise couples the planted configuration and the replicas of the internal measure symmetrically, being itself a posteriori sample. This is the replica-level expression of the Nishimori identity, which makes the computation tractable (App. F.2). We look for a saddle point in which the replicas of keep their equilibrium fRSB structure, while those of the internal measure follow the branch of with a single mutual overlap , i.e. a replica-symmetric posterior of width . The lower plateau and the whole continuum of the Parisi solution then drop out, and the plant enters only through (App. F.3). With the within-state “stiffness”
(68) the single saddle-point equation reduces to
i.e. pinning raises the within-state stiffness by exactly . For our long-range family, with ,
which for gives . The error thus depends on only through , and crosses over from for to for . This error is shown on the right of Fig. 6, and for several values of in App. F.4.
Beyond the denoising error itself, this computation provides an important consistency check of our picture. If a single state has been selected, the overlap between two samples of the posterior at fixed takes a single value, i.e. the posterior is replica symmetric, whereas several competing states would break replica symmetry. Here, the replica-symmetric solution is stable as long as its replicon eigenvalue
is positive, where the second form uses Eq. (24). It is therefore positive for every and vanishes only at the equilibrium endpoint , where the pure state is marginal, confirming that the posterior is indeed replica symmetric at any fixed , and a single state has been selected, consistently with the speciation picture. Note that in this check, planting is essential. Taking a random independent of the disorder, one instead finds a fRSB internal measure up to a finite (App. F.1), i.e. a competition between pure states persisting far beyond the speciation regime, which would be a contradiction.
As , the planted branch tends to the width of a single pure state, not to the prior error , while its stability margin closes, . The limits and thus do not commute, the posterior recovering the whole tree only in the speciation regime that is invisible to this replica computation and required the Larkin arguments developed above.
6 Beyond the exact score: imperfect reverse dynamics
The focus of this work has been the exact score, which one could hope to learn given a perfectly adapted architecture and enough data. In practice however, for any finite number of samples, the learned score is only an approximation of it. In the context of long-range correlated data, for which we have shown that the reverse process gradually uncovers a generative foam, it appears relevant to ask how errors in the learned score interact with this spatial structure. In this section we take a first step in this direction by asking where a generic, noisy error of the score feeds probability in the exact dynamics, and leave the study of trained denoisers on structured data to a subsequent work.
Recall that in terms of the smoothed score, , the exact reverse dynamics (7) reads . To avoid precisely parametrising the learned score, we propose to assume that its error is centred, isotropic and decorrelates quickly along trajectories. On average over the errors, it then simply adds an effective white noise to the drift, i.e. an extra diffusivity ,
Assuming this noise is small, we expand to the first order with . The error part then follows

Figure 7: Source , Eq. (74), in the two-dimensional foam of Fig. 2 (same field, unit temperature, periodic box), at three stages of speciation, with increasing from (a), when only a few cells have formed, to (c), at the end of the cascade. The walls of at each time are drawn as lines. As the cells form, is negative at their cores (blue) and positive across the walls (red).
where is the Fokker-Planck operator of the exact reverse dynamics (), , and the amplifying “stray” source term is
This source term redistributes probability without changing the total mass, (App. G.1).
Equation (74) already suggests that the geometry of the foam is important, with notably the second term, , positive where is concave, i.e. across the walls between the cells of the foam, and negative close to the peaks of the exact probability distribution , where is locally minimal. Although the score error is isotropic, the probability it feeds is therefore not uniform, but set by the geometry of the foam, as probability is removed from peaks, and added along walls.
In our setting, this dependence on the geometry can be made explicit (App. G.2). In the sharp foam limit, , the source is of order on the walls between two cells of size , and reaches a maximum value of the same order on the junctions where cells meet, i.e. on shocks of codimension . Errors of the score thus feed probability not only onto the walls, but also onto regions where many states compete, and where the exact denoiser outputs a barycentre of several of them. Figure 7 shows this source in a two-dimensional foam at three stages of speciation. As the cells form, is negative at their cores and positive across the walls that separate them, so that the geometry of the foam directly sets where errors of the score feed probability.
Note that the source in itself only sets where excess probability is fed (compared to the exact reverse scheme). Where it ends up also depends on its transport by , and thus on the case at hand. In the illustrative two-dimensional foam of Fig. 7 for instance, it mostly broadens the occupied cells and shifts weight between states during speciation, a reweighting that is frozen once the walls are sharp, rather than accumulating on the walls. The late stage of the dynamics matters as well. While the states are unresolved, , the exact drift restores each cell towards its centre at a rate , and pulls back the excess fed into it. It is likely that a trained network does not reproduce such a strongly restoring late-time drift, so that in practice the probability fed during speciation may persist much more than in these exact dynamics that are only illustrative.
This is therefore where the foam may matter for imperfect generation. On the walls and junctions, the exact denoiser outputs barycentres of the competing states, , and in the foam these involve states because the tree is condensed and few states are therefore balanced at any given noised point. The extent to which such interpolations are good samples, i.e. whether the potential at a barycentre is predicted by its neighbours as in so-called “Kriging” [56, 57], and whether the mass fed onto the walls survives the subsequent dynamics of trained models, will be the subject of a forthcoming dedicated paper.
7 Discussion
In this paper, we have studied the exact process of generative diffusion for Gaussian random fields with long-range correlations in high dimension. Such random fields lead to a hierarchical organisation of samples in space which appears to be plausibly present in real-world data such as images. What we have shown is that these correlations and hierarchy lead to a speciation cascade on the typical speciation timescale first identified in Biroli, Bonnaire, De Bortoli, and Mézard [6]. There, the smooth potential associated to generative diffusion develops as a foam, with cells associated to the pure states of the Gibbs measure separated by shock-like boundaries, the geometry of which we have described. At shorter times, the details of the potential within the pure states of the measure are finally resolved. The denoising error of the exact score follows these stages, its averaged drop during speciation being set by the Parisi function alone, while we showed that the walls of the foam are where generic errors of an imperfect score feed excess probability during the reverse process.
As highlighted by the combination of different methods that we resorted in, no single theory adequately describes the whole reverse process. At () the pinning term is extensive, and the planted replica saddle point of Sec. 5.2 controls the posterior. In the speciation regime (meaning ) it is instead of order one, an perturbation of an extensive problem that a saddle point at does not see, leading us to develop alternative scaling arguments. This difficulty can be summarised in the clear importance of the order of limits for the mean posterior overlap at finite , since
The two limits probe opposite sides of the attribution regime . Selection among states happens at ; resolution of configurations within the selected state happens at fixed .
A second subtlety that we have encountered, as in almost every problem related to disordered systems, is the difference between typical and average behaviour. Sample by sample, the geometric and informational notions of speciation coincide. Indeed, a trajectory ending in the minority branch of a split commits to it once its planted bias overcomes the free-energy difference between the branches, which is also when this branch acquires a basin of its own in . In a typical sample, is of the order of the gap, at the coarse levels, so that speciation occurs at the Larkin balance, from on. Only a fraction of the samples have a balanced split, , yet these dominate disorder averages such as the denoising error of Fig. 6, which therefore start to move at , independently of . The spectral criterion of Sec. 3, a spinodal evaluated with the disorder-averaged covariance, describes neither exactly, but nonetheless still shares the typical scaling. The two descriptions merge at the end of the cascade, , where and balanced splits are no longer rare.
Note that several features of this picture rely on the condensation of the Gibbs measure. With comparable states, a trajectory commits only once its planted bias overcomes the entropy of its competitors, which pushes speciation to , as shown explicitly for Gaussian mixtures with exponentially many centroids [58]. This would be our situation for a truncated landscape in which exponentially many states, such as the local minima of high-dimensional random landscapes [47, 53, 59], carry comparable weights instead of being Gibbs-weighted. In such a scenario, we would expect our picture to mostly hold, albeit displaced entirely at . However, for growing subexponentially with , we expect the scalings of the present paper to hold even if such low-lying states are uniformly weighted instead of being Gibbs weighted.
The long-range correlations matter as well. For a short-range potential, whose Parisi function has a single step, the tree has a single level, and the cascade collapses into a single first-order speciation, with no window. In general, the walls of the foam are the shocks of Burgers turbulence with random initial conditions [40, 60–63], a connection we have only used at the level of scaling. We expect the structure of our arguments, namely the Larkin balance between pinning and free-energy gaps and the parametrisation of the cascade by the Parisi level , to carry over to other hierarchical measures, whereas the exponents are specific to the long-range Gaussian model. Whether this is the case, in particular for non-Gaussian potentials, remains to be seen. Finally, as mentioned above, in a variance-preserving schedule the same results should hold with , albeit without the required contraction of the noise shell towards the data sphere.
Several points remain open. In particular, the rigid-state picture is not controlled near , where , meaning that the walls are as thick as the cells, and the finite- corrections to the separation of scales have not been estimated. More broadly, the Larkin balance and the foam structure (cell size, anisotropy) remain at the level of scaling arguments. A two-copy replica computation analogous to that of Le Doussal et al. [28], with two points and but at , would be necessary to characterise the geometry of the foam more precisely.
Overall, our results give a concrete sense in which following an entire reverse process matters for hierarchically structured data, as the commitments to the successive levels of the hierarchy are spread over a window of noise levels that broadens with the disorder, each being decided at its own scale. Whether the trajectories of trained models feel the walls of the foam we describe, and whether they could benefit from the spatial structure by generating interpolations between states there, will be the subject of a forthcoming work on finite data.
Acknowledgments
We want to thank Y. Fyodorov and P. Le Doussal for very insightful comments, as well as B. Achilli and E. Ventura for stimulating discussions. The work of J. G.-B. was supported by the European Union's Horizon Europe program under the Marie Skłodowska-Curie grant agreement No. 101210798. J. G.-B. also thanks École Normale Supérieure's Centre de Sciences des Données for its hospitality during the completion of this project.
Generative AI statement
We acknowledge the use of large language models, primarily Anthropic's Claude Opus 4.7–5.5, which were mainly used to write numerical code and figure scripts, to check derivations and challenge scaling arguments, and to suggest edits to the manuscript. All results were checked by the authors, who take full responsibility for the content, and who wrote the final text.
References
[1] Jascha Sohl-Dickstein, Eric Weiss, Niru Maheswaranathan, and Surya Ganguli. Deep unsupervised learning using nonequilibrium thermodynamics. In International Conference on Machine Learning, pages 2256–2265. pmlr, 2015.
[2] Jonathan Ho, Ajay Jain, and Pieter Abbeel. Denoising diffusion probabilistic models. Advances in Neural Information Processing Systems, 33:6840–6851, 2020.
[3] Yang Song, Jascha Sohl-Dickstein, Diederik P Kingma, Abhishek Kumar, Stefano Ermon, and Ben Poole. Score-based generative modeling through stochastic differential equations. In International Conference on Learning Representations, 2021.
[4] Giulio Biroli and Marc Mézard. Generative diffusion in very large dimensions. Journal of Statistical Mechanics: Theory and Experiment, 2023(9):093402, 2023.
[5] Gabriel Raya and Luca Ambrogioni. Spontaneous symmetry breaking in generative diffusion models. Advances in Neural Information Processing Systems, 36:66377–66389, 2023.
[6] Giulio Biroli, Tony Bonnaire, Valentin De Bortoli, and Marc Mézard. Dynamical regimes of diffusion models. Nature Communications, 15(1):9957, 2024.
[7] Beatrice Achilli, Marco Benedetti, Giulio Biroli, and Marc Mézard. Theory of speciation transitions in diffusion models with general class structure. Journal of Statistical Mechanics: Theory and Experiment, 2026(4):043304, 2026.
[8] Beatrice Achilli, Enrico Ventura, Gianluigi Silvestri, Bao Pham, Gabriel Raya, Dmitry Krotov, Carlo Lucibello, and Luca Ambrogioni. Losing dimensions: Geometric memorization in generative diffusion. arXiv preprint arXiv:2410.08727, 2024.
[9] Enrico Ventura, Beatrice Achilli, Gianluigi Silvestri, Carlo Lucibello, and Luca Ambrogioni. Manifolds, random matrices and spectral gaps: The geometric phases of generative diffusion. In International Conference on Learning Representations, 2025.
[10] Beatrice Achilli, Luca Ambrogioni, Carlo Lucibello, Marc Mézard, and Enrico Ventura. Memorization and generalization in generative diffusion under the manifold hypothesis. Journal of Statistical Mechanics: Theory and Experiment, 2025(7):073401, 2025.
[11] Tony Bonnaire, Raphaël Urfin, Giulio Biroli, and Marc Mézard. Why diffusion models don’t memorize: The role of implicit dynamical regularization in training. In The Thirty-ninth Annual Conference on Neural Information Processing Systems, 2025.
[12] Danilo Rezende and Shakir Mohamed. Variational inference with normalizing flows. In Proceedings of the 32nd International Conference on Machine Learning, volume 37 of Proceedings of Machine Learning Research, pages 1530–1538. PMLR, 2015.
[13] Jooyoung Choi, Jungbeom Lee, Chaehun Shin, Sungwon Kim, Hyunwoo Kim, and Sungroh Yoon. Perception prioritized training of diffusion models. In 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 11462–11471. IEEE, 2022.
[14] Florentin Guth, Simon Coste, Valentin De Bortoli, and Stephane Mallat. Wavelet score-based generative modeling. Advances in neural information processing systems, 35:478–491, 2022.
[15] Marc Mézard. Spin glass theory and its new challenge: structured disorder. Indian Journal of Physics, 98(11):3757–3768, 2024.
[16] Francesco Cagnetta, Leonardo Petrini, Umberto M Tomasini, Alessandro Favero, and Matthieu Wyart. How deep neural networks learn compositional data: The random hierarchy model. Physical Review X, 14(3):031001, 2024.
[17] Antonio Sclocchi, Alessandro Favero, and Matthieu Wyart. A phase transition in diffusion models reveals the hierarchical nature of data. Proceedings of the National Academy of Sciences, 122(1):e2408799121, 2025.
[18] Antonio Sclocchi, Alessandro Favero, Noam Itzhak Levi, and Matthieu Wyart. Probing the latent hierarchical structure of data via diffusion models. In The Thirteenth International Conference on Learning Representations, 2025.
[19] Alessandro Favero, Antonio Sclocchi, Francesco Cagnetta, Pascal Frossard, and Matthieu Wyart. How compositional generalization and creativity improve as diffusion models are trained. In International Conference on Machine Learning, pages 16286–16306. PMLR, 2025.
[20] Jérôme Garnier-Brun, Luca Biggio, Davide Beltrame, Marc Mézard, and Luca Saglietti. Biased generalization in diffusion models. In Proceedings of the 43rd International Conference on Machine Learning, volume 306 of Proceedings of Machine Learning Research, Seoul, South Korea, 2026. PMLR.
[21] Jérémie Klinger, Raphaël Urfin, Giulio Biroli, and Marylou Gabrié. Weighting schedules govern what and when score-based generative models learn from multimodal data. arXiv preprint arXiv:2609.35322, 2026.
[22] Marvin Li and Sitan Chen. Critical windows: non-asymptotic theory for feature emergence in diffusion models. arXiv preprint arXiv:2403.01633, 2024.
[23] Marc Mézard and Giorgio Parisi. Interfaces in a random medium and replica symmetry breaking. Journal of Physics A: Mathematical and General, 23(23):L1229, 1990.
[24] Marc Mézard and Giorgio Parisi. Replica field theory for random manifolds. Journal de Physique I, 1(6):809–836, 1991.
[25] Marc Mézard and Giorgio Parisi. Manifolds in random media: two extreme cases. Journal de Physique I, 2(12):2231–2242, 1992.
[26] M. Mézard, G. Parisi, N. Sourlas, G. Toulouse, and M. Virasoro. Nature of the spin-glass phase. Phys. Rev. Lett., 52:1156–1159, Mar 1984.
[27] A. Engel. Replica symmetry breaking in zero dimension. Nuclear Physics B, 410(3):617–646, 1993. ISSN 0550-3213.
[28] Pierre Le Doussal, Markus Müller, and Kay Jörg Wiese. Cusps and shocks in the renormalized potential of glassy random manifolds: How functional renormalization group and replica symmetry breaking fit together. Physical Review B, 77(6):064203, 2008.
[29] Ahmed El Alaoui, Andrea Montanari, and Mark Sellke. Sampling from mean-field Gibbs measures via diffusion processes. arXiv preprint arXiv:2310.08912, 2023.
[30] Andrea Montanari. Sampling, diffusions, and stochastic localization. arXiv preprint arXiv:2305.10690, 2023.
[31] Brice Huang, Andrea Montanari, and Huy Tuan Pham. Sampling from spherical spin glasses in total variation via algorithmic stochastic localization. arXiv preprint arXiv:2404.15651, 2024.
[32] Davide Ghio, Yatin Dandi, Florent Krzakala, and Lenka Zdeborová. Sampling with flows, diffusion, and autoregressive neural networks from a spin-glass perspective. Proceedings of the National Academy of Sciences, 121(27):e2311810121, 2024.
[33] Davide Straziota, Elizaveta Demyanenko, Carlo Baldassi, and Carlo Lucibello. Generative diffusion for perceptron problems: Statistical physics analysis and efficient algorithms. In Advances in Neural Information Processing Systems (NeurIPS), 2025.
[34] Anatoly I Larkin. Effect of inhomogeneties on the structure of the mixed state of superconductors. Soviet Journal of Experimental and Theoretical Physics, 31:784, 1970.
[35] AI Larkin and Yu N Ovchinnikov. Pinning in type II superconductors. Journal of Low Temperature Physics, 34(3):409–428, 1979.
[36] Jean-Philippe Bouchaud, Marc Mézard, and Giorgio Parisi. Scaling and intermittency in Burgers turbulence. Physical Review E, 52(4):3656, 1995.
[37] Leon Balents, Jean-Philippe Bouchaud, and Marc Mézard. The large scale energy landscape of randomly pinned objects. Journal de Physique I, 6(8):1007–1020, 1996.
[38] Pascal Vincent. A connection between score matching and denoising autoencoders. Neural Computation, 23(7):1661–1674, 2011.
[39] Uriel Frisch and Jérémie Bec. Burgulence. In New trends in turbulence; Turbulence: nouveaux aspects: 31 July–1 September 2000, pages 341–383. Springer, 2002.
[40] Jérémie Bec and Konstantin Khanin. Burgers turbulence. Physics reports, 447(1-2):1–66, 2007.
[41] Roland Bauerschmidt, Thierry Bodineau, and Benoît Dagallier. Stochastic dynamics and the Polchinski equation: an introduction. Probability Surveys, 21:200–290, 2024.
[42] Krisanu Sarkar. Score shocks: The Burgers equation structure of diffusion generative models. arXiv preprint arXiv:2604.07404, 2026.
[43] Yan V Fyodorov and Jean-Philippe Bouchaud. Freezing and extreme-value statistics in a random energy model with logarithmically correlated potential. Journal of Physics A: Mathematical and Theoretical, 41(37):372001, 2008.
[44] Yan V Fyodorov and Jean-Philippe Bouchaud. Statistical mechanics of a single particle in a multiscale random potential: Parisi landscapes in finite-dimensional Euclidean spaces. Journal of Physics A: Mathematical and Theoretical, 41(32):324009, 2008.
[45] Kurt Broderix and Reiner Kree. Thermal equilibrium with the Wiener potential: testing the replica variational approximation. EPL (Europhysics Letters), 32(4):343–348, 1995.
[46] Alain Comtet, Cécile Monthus, and Marc Yor. Exponential functionals of Brownian motion and disordered systems. Journal of applied probability, 35(2):255–271, 1998.
[47] Yan V Fyodorov and H-J Sommers. Classical particle in a box with random potential: exploiting rotational symmetry of replicated Hamiltonian. Nuclear Physics B, 764(3):128–167, 2007.
[48] Giorgio Parisi. Order parameter for spin-glasses. Physical Review Letters, 50(24):1946, 1983.
[49] Marc Mézard and Miguel Angel Virasoro. The microstructure of ultrametricity. Journal de Physique, 46(8):1293–1307, 1985.
[50] Bernard Derrida. Random-energy model: An exactly solvable model of disordered systems. Physical Review B, 24(5):2613, 1981.
[51] M Mézard, G Parisi, and MA Virasoro. Random free energies in spin glasses. Journal de Physique Lettres, 46(6):217–222, 1985.
[52] Bernard Derrida and Gérard Toulouse. Sample to sample fluctuations in the random energy model. Journal de Physique Lettres, 46(6):223–228, 1985.
[53] Alan J Bray and David S Dean. Statistics of critical points of Gaussian fields on large-dimensional spaces. Physical review letters, 98(15):150201, 2007.
[54] Daniel S Fisher. Interface fluctuations in disordered systems: 5- expansion and failure of dimensional reduction. Physical review letters, 56(18):1964, 1986.
[55] Leon Balents and Daniel S Fisher. Large-n expansion of -dimensional oriented manifolds in random media. Physical Review B, 48(9):5949, 1993.
[56] Daniel G Krige. A statistical approach to some basic mine valuation problems on the Witwatersrand. Journal of the Southern African Institute of Mining and Metallurgy, 52(6): 119–139, 1951.
[57] Georges Matheron. Principles of geosatistics. Econ. Geol., 58:1246–1266, 1963.
[58] Enrico Ventura, Beatrice Achilli, Luca Ambrogioni, and Carlo Lucibello. Emergence of distortions in high-dimensional guided diffusion models. arXiv preprint arXiv:2602.00716, 2026.
[59] Valentina Ros and Yan V Fyodorov. The high-dimensional landscape paradigm: Spinglasses, and beyond. In Spin Glass Theory and Far Beyond: Replica Symmetry Breaking After 40 Years, pages 95–114. World Scientific, 2023.
[60] Ya G Sinai. Statistics of shocks in solutions of inviscid Burgers equation. Communications in Mathematical Physics, 148(3):601–621, 1992.
[61] Shigeo Kida. Asymptotic properties of Burgers turbulence. Journal of Fluid mechanics, 93(2):337–377, 1979.
[62] L Frachebourg and Ph A Martin. Exact statistical properties of the Burgers equation. Journal of Fluid Mechanics, 417:323–349, 2000.
[63] Jean Bertoin. The inviscid Burgers equation with Brownian initial velocity. Communications in mathematical physics, 193(2):397–406, 1998.
[64] Jairo RL de Almeida and David J Thouless. Stability of the Sherrington-Kirkpatrick solution of a spin glass model. Journal of Physics A: Mathematical and General, 11(5):983–990, 1978.
[65] Bernard Derrida and E Gardner. Solution of the generalised random energy model. Journal of Physics C: Solid State Physics, 19(13):2253–2274, 1986.
[66] David Ruelle. A mathematical reformulation of Derrida's REM and GREM. Communications in Mathematical Physics, 108(2):225–239, 1987.
[67] Erwin Bolthausen and Alain-Sol Sznitman. On Ruelle's probability cascades and an abstract cavity method. Communications in Mathematical Physics, 197(2):247–276, 1998.
[68] Marc Mézard, Giorgio Parisi, and Miguel Angel Virasoro. Spin Glass Theory and Beyond, volume 9 of World Scientific Lecture Notes in Physics. World Scientific, Singapore, 1987.
[69] Dmitry Panchenko. The Sherrington-Kirkpatrick Model. Springer Monographs in Mathematics. Springer, New York, 2013.
[70] Bernard Derrida and Henrik Flyvbjerg. Statistical properties of randomly broken objects and of multivalley structures in disordered systems. Journal of Physics A: Mathematical and General, 20(15):5273–5288, 1987.
[71] Jean-Philippe Bouchaud and Marc Mézard. Universality classes for extreme-value statistics. Journal of Physics A: Mathematical and General, 30(23):7997, 1997.
[72] Uriel Frisch, Pierre-Louis Sulem, and Mark Nelkin. A simple dynamical model of intermittent fully developed turbulence. Journal of Fluid Mechanics, 87(4):719–736, 1978.
[73] Roberto Benzi, Giovanni Paladin, Giorgio Parisi, and Angelo Vulpiani. On the multifractal nature of fully developed turbulence and chaotic systems. Journal of Physics A: Mathematical and General, 17(18):3521–3531, 1984.
[74] Jim Pitman and Marc Yor. The two-parameter Poisson–Dirichlet distribution derived from a stable subordinator. The Annals of Probability, 25(2):855–900, 1997.
[75] Silvio Franz and Giorgio Parisi. Recipes for metastable states in spin glasses. Journal de Physique I, 5(11):1401–1415, 1995.
[76] Dongning Guo, Shlomo Shamai, and Sergio Verdú. Mutual information and minimum mean-square error in Gaussian channels. IEEE transactions on information theory, 51(4): 1261–1282, 2005.
[77] Miquel Payaró and Daniel P. Palomar. Hessian and concavity of mutual information, differential entropy, and entropy power in linear vector Gaussian channels. IEEE Transactions on Information Theory, 55(8):3613–3628, 2009.
A Replica theory of the data distribution
We recall here the known results for the Gibbs measure , which guide our geometric understanding of the generative diffusion. We follow the replica analysis of Mézard & Parisi [23, 24], see also [27], which was later refined by Fyodorov and Sommers [47]. We use the notations introduced in Sec. 2.2.
A.1 Replicated partition function and overlap action
Consider the Gibbs measure of the unsmoothed random potential on , with partition function
The replicated partition function can be directly averaged over the disorder due to the Gaussian nature of the randomness,
The integrand depends on the replicas only through their overlaps , with , via the rescaled correlation of Sec. 2.2, with derivatives , , , and where we have used the canonical scaling , Eq. (20).
Taking the direct route detailed in Fyodorov and Sommers [47]—that is, avoiding the historical Gaussian ansatz and instead taking advantage of the rotationally invariant nature of the integrand—the replicated partition function can be computed purely in terms of the overlap matrix . Up to factors subexponential in ,
where is the set of positive definite matrices with , and
The first term is the configurational entropy associated with realising a given overlap matrix (the volume of -tuples of vectors with Gram matrix scales as ), while the second results from the Gaussian disorder average. The large- problem is consequently reduced to a saddle point over . Varying an off-diagonal element gives
This equation is the starting point for both the replica-symmetric and Parisi solutions.
A.2 Replica-symmetric solution and AT line
For the replica-symmetric (RS) ansatz , let . In the replica limit, . Using in (80) gives
The eigenvalue controlling fluctuations that break replica symmetry is the replicon eigenvalue
The RS solution is stable when . At the de Almeida-Thouless (AT) transition [64], . Combining this condition with (81) gives , , and thus the AT line (22). For the spherical Gibbs measure is replica symmetric; for the RS solution is unstable.
A.3 Full-RSB solution
For the solution breaks replica symmetry continuously. Henceforth we place ourselves in this strong disorder regime, where the overlap matrix must be parametrised by a nondecreasing Parisi function . Let its continuous part extend from to , and define
which is constant, , for .
Evaluating the determinant term for a Parisi matrix, , and the disorder term with the rule , the action per replica is, with ,
The physical solution is the stable extremum over nondecreasing .
Stationarity with respect to , , using , gives
the Parisi-matrix form of Eq. (80) (the left-hand side is the Parisi function of ). Differentiating once in q gives , i.e. the vanishing of the replicon (82) along the whole continuous branch (marginal stability); evaluating (85) at fixes ; continuity of at fixes . These steps give
Differentiating with respect to (with ) gives the continuous Parisi function [cf. Eq. (23)]
The endpoints [cf. Eqs. (24), (25)] follow from
and
Inverting Eq. (87) with gives Eq. (26). The upper breakpoint is universal, , while the lower breakpoint is
Compactly, on the continuous branch, so that . The branch opens exactly at the AT threshold: (equivalently , ) if and only if , Eq. (22).
Rescaling maps onto and onto , , and shifts by a constant. Hence , and the Parisi function depend on only through [as in Eqs. (22), (89)–(90)], while the diffusion enters only through .
A.4 Pair-distance distribution
The variable has the following probabilistic meaning [48]: if two pure states are drawn independently from the Gibbs measure, then . With the squared distance between their centres, configurations drawn from and are at squared distance , so that . The continuous part of Eq. (26) then gives the density on , i.e. Eq. (27), and the two plateaux give its atoms.
A.5 Statistics of the pure-state weights
We collect standard facts on the weights of the pure states in the Parisi tree of states [26, 49, 51, 65] (mathematically, the Ruelle probability cascade [66–69]), used in Secs. 3.3, 4.1 and 5.
(i) Free-energy gaps. Within a given parent cluster, the free energies of its children at level , measured from the lowest one, form near the bottom a Poisson point process of intensity
Hence the gap between the two dominant siblings is exponentially distributed with mean , and the ratio of their weights is with uniform on . This is the of Eq. (49) (at ).
(ii) Leaf weights. Marginally, the weights of the terminal states are Poisson–Dirichlet [26, 51, 70], , whence
In particular , which is , i.e. the measure is condensed on a finite number of states.
(iii) Condensation at coarse levels. The weights of the coarsest clusters (level ) are , with , Eq. (90). By (i), a typical sample has a single dominant coarse branch, the second carrying a relative weight , and only a fraction of samples has a balanced coarse split. Sample-dependent quantities sensitive to the coarse levels—the sample overlap distribution at low , the interstate covariance of Sec. 3.3—are non-self-averaging, and their disorder means are dominated by these rare balanced samples. The same holds at any level with replaced by .
B Spectral estimate of the speciation scale
B.1 Typical versus annealed spectral estimate
In Sec. 3 we assumed that the top eigenvalue of a typical sample scales as its disorder average. This fails at strong disorder. The coarse clusters carry Poisson–Dirichlet weights PD() with (App. A.5), so that in a typical sample the coarse split is strongly unbalanced, the minority cluster carrying a relative weight . Only the fraction of samples with a balanced coarse split has , and becomes unstable at , independently of . These rare samples carry the mean, . Equations (39) and (43) are therefore annealed statements, which nonetheless agree in scaling with the Larkin balance describing typical samples.
B.2 Intrastate susceptibility and soft modes
We give the details behind the intrastate estimate of Sec. 3, Eqs. (40)–(42). With the soft edge (40), the first two moments of the covariance spectrum are
The first integral converges at the lower edge for , while the second diverges for . The interval therefore describes a finite thermal variance together with a divergent spin-glass susceptibility. The coefficient controls the density of soft modes and has dimension . With the cutoff (41),
It remains to determine the dependence of on the disorder strength. It follows from the intrastate width fixed by the frSB solution, Eq. (88), , so that the characteristic stiffness scale is
Assuming that the stiffness spectrum has a one-scale form, , , we are left with
where is a dimensionless coefficient describing the shape of the rescaled edge. Substitution into Eq. (41) gives , i.e. Eq. (42).
C Low-lying gaps and a real-space GREM
This appendix provides an alternative derivation of the low-lying gap scaling
that underlies the Larkin argument of Sec. 4.1 [Eq. (47)]. The replica route, , is also given in Sec. 4.1 [Eq. (49)]. Here instead we derive the gap without replicas, from a multi-scale decomposition of combined with extreme-value statistics. The decomposition defines an explicitly solvable real-space GREM, which also reproduces , and (see below).
Let be a Gaussian field in dimensions with power-law increments
i.e. , in the inertial range . We write for the largest scale. The crucial property is self-similarity: over a region of size , fluctuates by , and . Hence the natural energy unit at scale is .
Let . We ask for the typical energy gap between and , where is a secondary low-lying minimum at Euclidean distance from .
In dimensions, one can place points mutually separated by , suggesting a REM count [50] of competing minima. This is wrong: long-range correlations mean that nearby points sit in the same basin. The correct object is not the number of cells but the number of independent scales of , analogous to the law of the iterated logarithm. What enters the gap at scale is an exponential number of candidates per scale (the siblings of a common parent), not per cell.
Write V as a sum over dyadic scales:
with , and decorrelating on the length and having amplitude
The variances sum, for H > 0, to a finite total , reproducing up to boundary corrections.
The decomposition naturally defines a tree. Partition hierarchically into cells: generation- cells have linear size ; each generation- cell is parent to generation- children, and the generation-0 cells are the children of the root . This defines a -ary tree of depth , whose leaves correspond to configurations resolved at the UV cutoff. Attach to each generation- cell an independent centred Gaussian increment of variance . The value of at leaf is
with the generation- increment on 's ancestor chain. Two leaves whose last common ancestor sits in generation (with for the root) are at distance and have
reproducing the continuum structure function (98). The tree is thus a legitimate discretisation of , equivalent to Derrida–Gardner's Generalised Random Energy Model (GREM) [65] with real-space embedding—i.e. a real-space GREM in which leaves of the tree correspond to points of the physical domain. Ultrametricity is exact by construction, since leaves at tree-distance have covariance depending only on , not on their specific identities. This ultrametricity, which in the continuum field is emergent from the RSB solution, is built-in in the dyadic version.
On this tree, V is a branching random walk (BRW) with K levels and step variances . Greedy minimisation of the BRW gives
(This is exact for the GREM.) For the sum converges and only the top scales contribute, with no ; for all scales contribute equally and one recovers the log-correlated freezing result [43].
Now, consider two low-lying minima at distance . Their common coarse-scale contributions , cancel from their energy difference. The competition at scale is thus among the sub-cells of scale of a common parent cell of scale , i.e. among
(104) siblings (), whose level- values are i.i.d. Gaussians of variance . (For the parent is the whole domain; on the sphere the orthants provide a natural top-level partition into cells of size .) Standard extreme-value statistics (EVT) [71] for i.i.d. Gaussians of variance predicts that the minimum sits at , while the second minimum sits at approximately the same location with spacing
The relative gap between the top two is , small in : the two best cells are typically extremely close in energy compared to their absolute depth .
Fine-scale contributions ( ) add, to each sibling, the (independent) minimum over its own sub-tree. These shifts have fluctuations , at the same order as the gap, meaning that they don't change the scaling (nor the exponential intensity of the extreme-value process, see the freezing argument below). The result is Eq. (97), up to an prefactor. The prefactor absorbs the -dependent constants and the log-density of candidates per scale.
Applying the canonical scaling , with [Eq. (20)], the natural energy unit is
so the ground-state energy is extensive, . The extreme-value spacing becomes , i.e., the gap to a distant secondary minimum is independently of and the canonical scaling sits precisely at the “generic degeneracy” scaling. The near-degeneracy probability that the gap falls within an window correspondingly saturates, , meaning distant -degenerate secondary minima are generic rather than rare. This is the regime in which the problem is genuinely glassy and in which the replica analysis of Sec. 2.2 applies. Here, the probability is the counterpart of the top Parisi breakpoint (probability that two configurations lie in different top-level branches), see Eq. (111) below.
A single level is effectively a REM of Gaussians of variance , and thus has near its minimum a density of levels growing as with . It freezes below , where its Boltzmann weights become Poisson–Dirichlet with parameter . In the GREM the variance per unit entropy decreases with depth, so each generation freezes separately [65], generation at
with , meaning the coarsest level freezes first upon cooling. In the canonical scaling, and
independent of . In our setting, generation is frozen iff , i.e.
which reproduces the scaling of the short-distance plateau [Eq. (24)]. The top level is frozen iff , the GREM counterpart of the strong-disorder condition , otherwise no level is frozen and the measure is replica symmetric.
The Parisi weight of a frozen generation is ; at T = 1 and with ,
(110) the same scaling as Eq. (23). In the cascade, is the probability that two configurations drawn from the Gibbs measure lie in different generation- cells. Therefore, the last common ancestor has , and, exactly as in App. A.4, on . The weight of the coarsest generation,
is the counterpart of the lower breakpoint of Eq. (26), meaning that at strong disorder the measure is condensed already at the coarsest level.
We can finally make the sibling gap explicit. Within a frozen generation , the free energies of the sibling cells (each the level- increment plus the free energy of its own sub-tree), measured from the lowest, form near the bottom a Poisson process of intensity . There, the independent sub-tree shifts do not change the exponent of the intensity, because the deeper levels freeze at lower temperatures ( , so the required exponential moments are finite). This is Eq. (91) with an explicit , and the typical sibling gap is
reproducing both the EVT estimate (105) and Eq. (47).
Note that this real-space GREM captures exponents and scales but not prefactors, and it does not reproduce the atom of weight at . Below , the levels are liquid, and with a continuum of levels reaches 1 continuously instead of saturating at . Overall, this dyadic construction mirrors Sinai's multifractal decomposition of Burgers flow with self-similar initial data [60] and is similar to the -model of turbulence [72, 73].
D Zero temperature curvature of the foam
In the Hopf–Lax limit, , the Hessian of can be related directly to the Hessian of at the minimiser. Let denote the minimiser of at fixed , assumed unique; the stationarity condition reads . Differentiating implicitly with respect to ,
and using , so that , one obtains
which is nothing but the zero-temperature form of Eq. (14).
In the eigenbasis of , with eigenvalues , the curvatures of are given by the map
Minima of are thus mapped onto curvatures , so that is always softer than the bare harmonic cost, and soft directions of remain soft directions of . Conversely, becomes concave in a given direction only where the minimiser sits in a region of negative curvature of . The map diverges at , where the Hessian of at the minimiser acquires a zero mode. There, can no longer be followed smoothly as moves, and generically the minimum merges with a neighbouring saddle and disappears—i.e. undergoes a saddle-node bifurcation. The walls of are not located at these points, however. As moves, the minimiser follows the lowest of the local minima of , and a wall is crossed when another local minimum becomes lower. There jumps from one minimum to the other while both still exist, so that , the lowest value, stays continuous while its gradient jumps. The divergence of the map instead signals the disappearance of a local minimum by a saddle-node bifurcation, which only occurs once this minimum has ceased to be the lowest one, i.e. beyond the wall, on a metastable branch. The two coincide only where a wall is born, at a point where the lowest minimum itself flattens and splits into two. This is the zero-temperature counterpart of the distinction between spinodal and binodal made in Sec. 3.
At , this picture must be slightly amended. Within a pure state, treated as Gaussian, the Hessian of is to be replaced by the stiffness of the state introduced in Sec. 3. As it is positive definite, the curvatures are positive and the map does not diverge. The many shocks generated by the roughness of below the width of the states lie inside them, and are washed out by the thermal fluctuations. At , the walls therefore arise only from the competition between pure states, which is precisely what the smoothed minimum (56) describes.
E State attribution in the speciation regime
E.1 Rigid-state posterior
Drawing amounts to choosing a pure state with probability and sampling within it. As in Sec. 5.1, we treat the states as rigid, neglecting the intra-state fluctuations , which are sub-dominant with respect to the inter-state ones (Sec. 3.3) and are only resolved at (Sec. 5.2). For a noised point planted in , with , the posterior weight of a state is
with Gaussian fields , . The first equality is exact on the sphere, where . The second replaces each state by its centre and uses , the terms being the same for all states. The posterior thus depends on only through . Taking the ratio of the weights of a competitor and of the planted state , with ,
With , the second term is the penalty , while is Gaussian with zero mean and variance , i.e. with . This gives the log-odds ratio (62) of the main text.
E.2 Denoising along independent splits
We detail here the independent-split approximation leading to Eq. (65). Consider a single split between the branch of the planted state and a branch whose centres have overlap with it, with the two states at squared distance . By Eq. (62), the observation shifts the free-energy difference between the two branches by in favour of the branch which contains the planted state. Given a split with free-energy difference , the probability of a wrong guess is the prior weight of the branch of the planted state times the posterior weight that the other branch keeps after the noisy observation. Placing ourselves among the balanced splits, is spread uniformly, and integrating this product over gives . Writing and averaging over the noise, the probability of a wrong guess at the level is thus reduced by a factor
(118) compared with a guess drawn from the prior, for which . It decreases from to at large .
It remains to count the splits along the branch of the planted state. By definition of the Parisi function, a guess drawn from the prior has an overlap smaller than with the true state with probability , so it leaves the branch of the true state at the level with probability , with the distribution of overlaps of Sec. 3.3, including its peak of weight at . Such a guess costs in the second form of Eq. (64), , and treating each level as an independent split gives Eq. (65).
E.3 Monte Carlo sampling of the posterior over states
The Monte Carlo points of Fig. 6 evaluate the centre error (64) for rigid states, without the independent-split approximation leading to Eq. (65). Indeed, the posterior (116) only involves the weights of the states and their mutual overlaps, so that never enters. Here, a sample therefore consists of a tree of states with its weights, a planted state drawn with its weight, and one realisation of the noisy Gaussian fields . We describe these steps in turn, and then the truncation that makes the tree finite.
(i) Discretised tree. As in a -step replica-symmetry-breaking solution, the continuous Parisi function is replaced by a staircase with levels, for , with , , and , so that the atoms at and at are kept. The are the values of at points log-spaced in from to , and the overlaps , , sit at the geometric midpoints in . is chosen such that changes little from one level to the next, for Fig. 6. The tree then has levels below its root, and two states whose branches separate at depth have overlap .
(ii) Weights. In the picture of Sec. 2.2, the children of a node at depth are sub-clusters whose free energies are distributed like the lowest levels of a random energy model, with a density growing as , the weight of each child being its Boltzmann weight normalised within its parent. Rather than drawing these free energies, we generate the weights of the children one after the other, by breaking off random fractions of the mass of the parent. The first child receives a fraction of this mass, the second a fraction of what remains, and so on, with independent and . This stick-breaking construction reproduces exactly the law of the weights of the Parisi tree [67, 74], the children appearing in size-biased order, i.e. each new child is drawn among the remaining ones with a probability proportional to its weight. For , is close to one, so that a single child carries almost all the mass of its parent, which is the condensation discussed in the main text. The leaves at depth are the pure states, and their masses are the weights . (Note that this is different from the real-space GREM construction described above that goes all the way down to the UV cutoff.)
(iii) Planted state. The planted state must be drawn with probability . Equivalently, one can descend the tree from its root, choosing at each node the next branch with a probability proportional to its weight. This is exactly how the first child of the stick-breaking is chosen, so that the planted state is the leaf reached by always following the first child, its competitors at each level being the other children of the nodes along this path. Building the tree around the planted path allows us to keep this path exactly, however small its weight, while truncating its light competitors.
(iv) Fields and posterior. Each edge from depth to depth carries an independent Gaussian increment of variance , and is the sum of the increments along the path of , so that . The missing part is common to all states and cancels in . The posterior then follows from Eq. (116), i.e. from the log-weights , and one draw of the fields serves for all values of . The estimator has mean by the second form of Eq. (64), and is averaged over trees and field draws.
(v) Truncation. Each node has infinitely many children, almost all of them extremely light, so the tree must be truncated. Along a branch that leaves the planted path at depth , children lighter than a fraction of the mass of the planted path at depth are merged, together with the mass not yet broken off, into a single lump per parent, which keeps its exact total weight and its exact overlap with the planted state. The competitors of the planted state at the finest level, which carry the error at large , are kept down to a much smaller fraction of the mass of their parent. A lump attached to a node at depth carries the field of that node, while the increments below it are unresolved. They are replaced by the factor that they contribute on average. The truncation error should vanish as . Monte Carlo points are shown where the result no longer changes when is lowered by a factor 10, down to , while we fix .
F Replica computations at fixed
This appendix gives the replica computations behind Sec. 5.2 for the internal measure at fixed , after . We first treat the naive case, in which is independent of the disorder, and then the planted case, where is a noisy version of an equilibrium configuration and the unknown is the posterior width , i.e. the per-coordinate MMSE.
F.1 Naive independent pinning
A natural first attempt is to consider for a fixed independently of the disorder, and to compute with replicas as for the equilibrium problem. Since the data lie on the sphere , the internal measure is , corresponding to the original problem in an external field directed along , of strength , with . By isotropy, the result depends only on , and averaging over the direction of turns the field into a channel term acting on the inner replicas only,
For the replica-symmetric ansatz , , the saddle-point equation becomes
The field term being linear in , the replicon is unchanged, , and the RS solution loses stability when
i.e. at [Eq. (24)]. Eliminating between Eqs. (120) and (121) gives the AT field
The internal measure is replica symmetric for and fRSB for ( at , where ).
Along a typical noisy trajectory, we have which by concentration sits on the sphere , hence


Figure 8: Independent (non-planted) pinning: replica-symmetry breaking of the internal measure for independent of the disorder, at and . Left: phase diagram in the plane of disorder strength and pinning field ; the internal measure is RS above the AT line of Eq. (122) and fRSB below it. Right: the same transition along a typical diffusion trajectory, with , in the plane of diffusion time and ; the region [Eq. (124)] would be fRSB. Only the strong-disorder regime is shown. This is not the conditioning ensemble relevant for diffusion: for a planted , the internal measure is RS for every fixed (App. F.4).
Substituting it into the AT criterion, , gives
i.e. and the phase diagram of Fig. 8. At strong disorder , which is the disorder dependence of the end of the cascade, , but at instead of . Clearly this contradicts the main result of our paper which is that speciation occurs entirely on the scale.
F.2 The planted object and its action
In order to obtain a result consistent with the Larkin picture, we must instead consider the strong correlation between the noisy observation and the disorder in the regime.
We set out to compute , Eq. (67), with . Constants and have been dropped ( ), so that defines the same internal measure as Eq. (12). In this planted computation, two replica tricks are needed, first to compute the normalisation , and then to do the quenched average for the inner free energy. Both are taken on
which satisfies , so that
Writing the powers as products of integrals introduces two sets of replicas: the plant set , replicas of the equilibrium measure, and the inner set
replicas of the internal measure. Explicitly,
We start by integrating over z,
Since is a constant, the channel couples the planted replica and the inner replicas symmetrically, meaning that is a posterior sample, exchangeable with . This is the replica-level expression of the Nishimori identity, and is what makes the computation tractable.
After the Gaussian disorder average over all replicas (as for the equilibrium problem, App. A), with
where is the overlap matrix between all the configurations, both from the planted and the inner set, , and is the set of positive-definite matrices with diagonal . The indices therefore run over all replicas. In the following, indices will be reserved for inner replicas, and for the plant ones other than . The first two terms are the equilibrium action for replicas, while the channel adds a term linear in on the exchangeable replicas .
Finding ourselves with these two sets of replicas, we decompose the overlaps with the following mixed replica-symmetry ansatz:
-
The plant block ( ): this block inherits all of the properties of the equilibrium measure described in Sec. 2.2. As such, in the strong disorder regime it is natural to expect full replica-symmetry breaking, with diagonal overlaps and a continuous function on as we take .
-
The inner block ( ): following speciation, we expect it to be replica symmetric, with for , with (we will equivalently write ).
-
The cross block: within the posterior RS ansatz, the Nishimori identity gives , equal to the overlap of two distinct inner replicas. We further assume that the inner replicas follow the branch containing , inheriting its overlaps with the other plant replicas: for and . These cross overlaps are bounded by .
Ordering the replicas as with first, and writing for the column ,
with an matrix of all ones. At leading order in , the plant block is evaluated on its equilibrium saddle. Within this ansatz, the only remaining unknown is thus , which we determine by stationarity of the action.
F.3 Evaluation of the action
We evaluate the action (129) on the mixed ansatz (130). Given , its cross block is also what ultrametricity of the triplet forces, and the shift of the plant block away from its equilibrium saddle contributes only at , by stationarity.
Determinant term. By the Schur complement,
with . Since ,
The vector is the 0-th column of with its diagonal entry replaced by , i.e. . Hence , and thus
where is the diagonal element of the inverse equilibrium Parisi matrix in the replica limit.
Diagonal element of the inverse Parisi matrix. To evaluate , recall from App. A the function [Eq. (83)], constant for , and the equilibrium saddle relations for , and [Eqs. (86)–(89)]. In this frSB setting it is a standard result that
By Jacobi's formula, a uniform shift of the diagonal at fixed off-diagonal entries gives . Since enters (134) only through and , with ,
On the equilibrium solution, on the continuum (with ) and, by continuity of , , so that the contributions cancel:
finally leading to
The lower plateau and the entire continuum drop out, and the plant block enters the inner-block equations only through . In terms of the stiffness of Sec. 5.2, . Combining with Eqs. (132)–(133), the determinant term contributes , the -independent cancelling in Eq. (126).
Disorder and channel terms. We split the disorder sum as . The first is -independent, so it again drops from . The last is by replica symmetry. In the cross sum, each inner replica contributes from and from the other plant replicas, using the standard rule . Altogether,
Here includes the plateaus of the Parisi function, for and for , Eq. (26) giving it in between. The channel term involves the replicas , all at mutual overlap :
Resulting planted free entropy. Collecting the coefficients, the planted log-partition function per site, , is the extremum over of
with an equilibrium constant. The structure is effectively that of a Franz-Parisi-type potential [75] for the overlap with the reference configuration.
F.4 Saddle point and stability
In the planted free entropy (140), the lower plateau and the whole continuum of the Parisi solution have dropped out, and the plant enters only through the width of its state. Its extremum over the single remaining direction is conveniently written in terms of the within-state “stiffness”
for which . Stationarity thus gives the self-consistent equation (69), , i.e. pinning raises the within-state stiffness by exactly . For our long-range family, , and using Eq. (24) to substitute , the saddle-point equation takes the form (70) in terms of the normalised width . For its right-hand side reduces to , which gives the closed form
In general, the solution saturates at as , as expected by construction of the ansatz, while as the term dominates the right-hand side for every , so that .
By the Nishimori identity, is the MMSE of the denoiser, shown in Fig. 9 for several values of . For comparison, the dotted lines show a Gaussian state of the same width, for which the disorder term is absent, , so that Eq. (69) gives , the MMSE of a Gaussian prior of variance . Both start at and decay as , the true error lying below the Gaussian one at every and converging to it at large .
It remains to check that the replica-symmetric inner block is stable, i.e. that the posterior at fixed is indeed dominated by a single state for every . Here, the relevant fluctuations are those that break the symmetry between the inner replicas while leaving the rest of the ansatz untouched, namely symmetric perturbations of the inner block with and , the replicon fluctuations. Their vanishing row sums remove the rank-one coupling to the plant block, so that acts on them simply as , while the channel term, being linear in , does not contribute at second order. Expanding the determinant and disorder terms of Eq. (129) then gives , with the replicon eigenvalue
i.e. minus the slope of the within-state stiffness. Using Eq. (24) to write , its long-range form is Eq. (71). It is positive for every , and vanishes only at the equilibrium endpoint , where the pure state is marginal. The saddle point indeed remains in this interval. Writing , Eq. (69) reads , with , and on , so that there is a unique solution on this branch for every fixed , and it is stable. A root with , where , would instead be unstable and would violate the assumption of the ansatz. The scalar curvature is consistent with this, , the free entropy being maximised over the order parameter on the Nishimori line. Unlike the independently pinned problem of App. F.1, the planted saddle therefore has no AT instability at any finite , perfectly consistent with our global picture.

Figure 9: Posterior width, or equivalently denoising MMSE on the planted replica-symmetric branch, Eq. (69), for at . At small it saturates at the thermal width of the selected pure state, and at large , . Dotted, Gaussian state of the same width, . Inset: , equal to on the planted branch, versus . The planted branch leaves as , inherited from the marginality of the pure states (App. F.5), whereas the Gaussian state leaves it linearly.
F.5 Small- behaviour
The behaviour of the planted branch at small is also consistent with the speciation picture of Sec. 5.1. As the planted branch tends to the width of a single pure state, while its stability margin closes, . This marginality is to be expected, since the selection of a single state, strict at any fixed , must give way to the competition between pure states of the regime . Here it takes the form of a departure from . Expanding the saddle-point equation (70) around , , we indeed have
The 1/2 exponent is due to the marginality of the pure states. It is thus a signature of the continuous replica-symmetry breaking brought by long-range correlations, entering only the prefactor. For short-range correlations, whose measure breaks replica symmetry in one step and whose states are not marginal, the onset would instead be linear, as for the Gaussian state (inset of Fig. 9). This inheritance from marginality can also be seen through the so-called I-MMSE relations [76]. Their second-order form [77] gives for any prior, while differentiating Eq. (69) with gives . Hence , and the diverging slope of the error as inherits the diverging spin-glass susceptibility of the soft modes of the pure state (Sec. 3.3).
G The source of the perturbed reverse dynamics
In this appendix, we provide further details supporting Sec. 6.
G.1 Exact representations and transport of
(a) Posterior form. From the Tweedie and Hessian identities (13), (14), and , so that, using ,
The second form also follows directly from . It holds for any .
(b) Conservation and fluctuations. . Equivalently, by the Nishimori identity, , i.e.
Since , the unconditional standard deviation of is , much larger than the mixture excess (e.g. for a wall at , with in ). Walls and junctions are therefore visible in only after conditioning on position as we do below. The quantity that detects them unconditionally is , i.e. , not directly.
(c) Transport. With (the KPZ equation (17) at , forward time ) one has , and differentiating ,
is thus a passive scalar, advected by the Burgers velocity and diffused, with no source term.
G.2 Walls and junctions
To evaluate the source on the “skeleton” of the foam, we consider a point where cells meet, i.e. a wall between two cells ( ) or a junction of several. The centres of the competing states span an affine subspace of dimension , and the remaining directions are orthogonal to all of them. In these transverse directions the posterior does not distinguish the competing states, is essentially the noise, , and the extensive terms of Eq. (145) cancel on average, as they do for as a whole since . In the spanned directions, sits where the competing states have equal posterior weights, so that is their barycentre, while reduces to the inter-state covariance of the competing centres, with eigenvalues . The component of in this span vanishes only if the states also have equal prior weights, being otherwise displaced from the barycentre by their free-energy differences. Averaging over the transverse noise,
where are the curvatures of along the span, Eq. (14). On the skeleton, is thus minus the total curvature of across the junction, plus a non-negative term that vanishes for equal prior weights. It is positive whenever the total curvature of along the span is negative. Concretely,
-
Wall . For prior free energies differing by , the wall is displaced from the bisector by , so that at . At the Larkin scale , so that both terms are of the same order.
-
Ultrametric (simplex) junction. States branching at the same level of the ultrametric tree are mutually equidistant. K of them at squared distance thus sit at the vertices of a regular simplex ( ), which spans a ( )-dimensional affine subspace, and the junction where their cells meet has codimension K - 1 in y-space. For equal weights,
(149) with the projector on their span. Up to the intra-state part, the curvature of is then in the in-simplex directions and in the transverse ones, so that for the junction is a maximum of in directions. The source reads
and is positive only for . As grows, more directions become concave, but each of them less so, since the directions share the fixed spread of the centres, Eq. (151). The source is therefore largest for , where it reaches . At the cell scale, , this is , with a source of the same order as on a wall, , as stated in Sec. 6. The codimension of a junction thus controls the number of unstable directions of , but not the sign of .
- General bound. For any posterior over states,
half the squared diameter of the posterior support. By ultrametricity, this diameter does not grow with the number of competing states. A junction mixing several levels of the tree is a simplex of simplices, whose source is dominated by its coarsest active level. For states at a common scale , the excess is thus bounded, , whatever the number of competing states and the codimension of the junction. In a sharp foam, junctions are therefore fed at most about twice as strongly as walls, and far more strongly than the cores of the cells. Being of order rather than extensive in , this excess is visible in only once the radial fluctuations are averaged out at fixed position, as pointed out in App. G.1.