Manuscript Offprint
arXiv:2609.03193Generative Nested Sampling of Atomistic Thermodynamic Landscapes
Alessandro Coretti*†
Faculty of Physics,
University of Vienna,
1090 Vienna, Austria
Nico Unglert*‡
Institute of Materials Chemistry,
TU Wien,
1060 Vienna, Austria
Sebastian Falkner
Institute of Physics,
University of Augsburg,
86159 Augsburg, Germany
Georg K. H. Madsen
Institute of Materials Chemistry,
TU Wien,
1060 Vienna, Austria
Christoph Dellago
Faculty of Physics,
University of Vienna,
1090 Vienna, Austria
Abstract
Nested sampling (NS) resolves the thermodynamics of an atomistic system from a single simulation, but its practical reach is limited by the Markov-chain updates needed to decorrelate walkers within each likelihood-constrained ensemble. Flow-based NS has removed this bottleneck for gravitational-wave (GW) inference, yet its transfer to atomistic systems is not merely a change of application. Comparing a GW150914-like binary-black-hole likelihood with an eight-particle two-dimensional Lennard-Jones (LJ) system of comparable dimensionality, we show that the two landscapes differ fundamentally: atomistic multimodality is discrete and combinatorial, generated by particle permutations separated by hard collision walls, and its coordinate coupling is dense and collective, whereas the GW posterior exhibits smooth degeneracies and localized parameter coupling. Guided by this diagnosis, we introduce NS-Flows: a single conditional normalizing flow, conditioned on the NS energy bound and trained on a sliding window of recent live sets, that replaces MCMC by direct parallel draws corrected by importance-weighted rejection resampling. Live sets supply data self-consistently, allowing flow training without structured priors or a pre-existing dataset. For LJ disks in PBC, the algorithm reduces energy evaluations by over two orders of magnitude and wall-clock time by roughly one third, an advantage that becomes increasingly favorable as the cost of the potential grows. The flow's generation efficiency further acts as a physical diagnostic: it varies non-monotonically along the annealing trajectory, is lowest in the dense disordered regime, and is quantitatively captured by the constrained ensemble's internal mode complexity together with target drift across the training window, identifying liquid-like ensembles, rather than prior-target separation, as the hard case for current flow architectures.
1 Introduction
The prediction of thermodynamic phase diagrams remains one of the central challenges in computational materials science. Although atomistic simulation techniques such as molecular dynamics and Monte Carlo have become highly sophisticated, their exploration of configuration space is fun-
*These authors contributed equally to this work.
†alessandro.coretti@univie.ac.at
Preprint.
damentally based on local updates, making the sampling of systems with large free-energy barriers and long-lived metastable states prohibitively slow. Enhanced-sampling techniques can accelerate exploration in specific settings, but they typically rely on carefully designed collective variables or bias potentials whose construction is highly system dependent.
Nested Sampling (NS) provides a fundamentally different approach to thermodynamic sampling. Originally developed for Bayesian evidence estimation [1], it was later adapted to statistical mechanics [2], with the potential energy taking the role of the likelihood as the scalar quantity used to define successive nested constraints. In this formulation, it transforms the partition function into a one-dimensional integral over nested regions of configuration space with progressively decreasing energy bounds. A single NS simulation therefore provides direct access to the partition function, free energies and thermodynamic observables over a broad temperature range, making the method particularly attractive for automated phase-diagram prediction.
In practice, however, the efficiency of NS is limited by the need to repeatedly generate independent samples from likelihood-constrained ensembles. Existing implementations for atomistic systems rely almost exclusively on Markov-chain Monte Carlo methods (MCMC), with decorrelation times that grow rapidly for the rugged, high-dimensional energy landscapes characteristic of atomistic systems [3–8]. Even with recent developments such as Superposition-Enhanced Nested Sampling [9] and Replica-Exchange Nested Sampling [10], MCMC-based constrained sampling remains the dominant computational bottleneck.
Recent progress in generative machine learning offers an attractive alternative for generating the constrained samples required by NS. Williams et al. [11] first combined normalizing flows (NFs) with NS in the context of gravitational-wave (GW) inference, demonstrating that learned proposals can substantially reduce the number of likelihood evaluations required for convergence. This pioneering work has since inspired a growing body of research extending and refining the interplay between nested sampling and generative models, with applications ranging from astrophysics to high-energy particle physics [12–16]. In general, NFs learn invertible transformations between a simple latent distribution and a complex target distribution while retaining exact likelihood evaluation through the change-of-variables formula [17, 18]. Their ability to generate independent samples together with exact density evaluation has led to numerous successful applications in statistical mechanics, including equilibrium sampling, free-energy estimation and rare-event simulations [19–25]. In most such applications, however, the flow is required to learn only a comparatively modest deformation of a well-chosen reference distribution, e.g. a harmonic reference for a crystalline solid, or a simple thermodynamic path along which the target evolves smoothly. The GW case shares this favorable structure: a single, sharply peaked mode with smooth degeneracy ridges and coupling concentrated in a few physically identifiable coordinate blocks.
Extending learned NFs to generate independent samples from likelihood-constrained ensembles in atomistic NS is, however, not merely a change of application domain. Even for systems with short-ranged interactions, the energy constraint can induce strong collective correlations among particle coordinates. Atomistic systems further obey characteristic symmetries, including permutations of identical particles, rotations and translations together with the point group of the simulation cell, which flow architectures must respect, motivating a growing body of equivariant NF designs [19, 20, 26]. Learning such targets poses a qualitatively different challenge for NF-based methods than the applications in which they have so far succeeded.
In this work, we show quantitatively that the atomistic landscape is combinatorially multimodal in a way the GW posterior is not, and no comparably simple reference distribution is available to absorb this structure. We then develop a conditional NF framework for NS of atomistic systems that addresses this challenge directly. Rather than learning each constrained distribution independently or relying on a fixed reference close to the target, we represent the entire sequence of likelihood-constrained ensembles by a single flow conditioned on the NS energy bound, thereby representing the full sequence of constrained ensembles. The method preserves the statistical rigor of NS while replacing expensive MCMC exploration by direct generative proposals combined with exact rejection correction. We further show how the generation efficiency of the trained NF varies non-monotonically with the NS energy bound, and introduce a diagnostic that is computable directly from the geometry of the live-point ensemble. This diagnostic identifies combinatorial multimodality, rather than geometric distance from a reference distribution, as the principal factor governing this difficulty. We present the probabilistic formulation and algorithmic implementation of the method, and demonstrate both its performance and the diagnostic for a two-dimensional Lennard-Jones (LJ) system.
To make the distinction concrete and quantitative, we probe two benchmark posteriors of comparable dimensionality. The first is an atomistic eight-particle two-dimensional LJ system with periodic boundary conditions, , where, in reduced units, and the density places the system in the high-density region of the phase diagram [27]. The pair interaction is described by the standard Lennard–Jones potential,
where is the distance between particles i and j. To enforce the minimum-image convention under periodic boundary conditions, the interaction is cut and shifted at a reduced cutoff radius . In addition, the strongly repulsive short-range part of the interaction is linearized below to avoid numerical instabilities arising from nearly overlapping configurations during generation. Long-range corrections to the potential energy are included consistently throughout the simulation.
The second benchmark models a GW150914-like binary-black-hole merger [28] with parameters . Its likelihood measures the agreement between simulated detector data and the gravitational waveform predicted for a given set of source parameters, assuming stationary Gaussian detector noise (see Appendix A).
The two posterior landscapes are thus defined by (or proportional to) negative log-likelihoods of different physical origin but similar dimensionality: the potential energy for the LJ system and the noise-weighted waveform mismatch for the GW model. Figure 1 contrasts the two posteriors on equal footing: the two left-hand columns probe the global landscape along interpretable directions, while the two right-hand columns characterize the local geometry around the dominant mode.
We first consider a single representative coordinate. Along the mass-ratio direction at the injected chirp mass, the negative GW log-likelihood is a single smooth basin (Fig. 1a). An atomistic counterpart is e.g. the energy along a single particle-swap interpolation between a configuration and its label-swapped copy. Here, is a local minimum configuration and is the permutation operator swapping particle i and j to yield the symmetry equivalent configuration . This choice of coordinate already reveals the strong multimodality of this simple atomistic system (Fig. 1e): two equivalent minima at t = 0 and t = 1 separated by a steep divergent collision barrier near . For the unmodified Lennard–Jones potential, the energy would diverge at the coincidence point ; in our simulations, this divergence is regularized by the linearization of the short-range interaction introduced above. Discrete multimodality appears in the atomistic system at the level of a single coordinate, where the GW likelihood is still effectively unimodal.
Extending each cut to a second coordinate sharpens the contrast. The GW chirp-mass–mass-ratio plane reveals the canonical “banana” shape (Fig. 1b): a single, smooth, connected ridge of near-maximal likelihood, reflecting a continuous degeneracy. The atomistic two-swap grid (Fig. 1f) instead shows four permutation-equivalent minima at the corners, mutually walled off by collision barriers and thus forming a discrete, combinatorial multimodality. The same dimensional extension exposes qualitatively different structure in the two systems.
The local geometry (see also Appendix B) at the mode tells the same story. The Hessian of U at the LJ inherent structure and the Fisher information matrix [29] evaluated at the GW injection encode the local curvature and coordinate coupling. Displayed as normalized coupling magnitude

c) Fisher coupling at mode
d) coordinate NMI
e) one coordinate (single swap)
f) two coordinates (two swaps)
g) Hessian coupling at mode
h) coordinate NMI
Figure 1: GW binary-black-hole (top) vs. atomistic (LJ-8, bottom) posterior landscapes. Column 1: a one-coordinate cut — GW log-likelihood along mass ratio q at the injected chirp mass a), LJ energy along a single particle-swap interpolation e). Column 2: the two-coordinate extension — the GW chirp-mass / mass-ratio “banana”, a single continuous degeneracy ridge b), vs. the LJ two-swap grid with four permutation-equivalent minima walled off by collision barriers f). Column 3: normalized coupling magnitude of the Fisher / Hessian matrix at the mode — sparse, block-structured for GW c); dense, all-to-all for LJ g). Column 4: pairwise normalized mutual information of Laplace samples at the mode — concentrated in a few blocks for GW d), a diffuse low-amplitude haze for LJ h). Note the differing NMI color scales: GW couples a few coordinates strongly, LJ couples all coordinates at a similar scale. The leading diagonal is masked (white) in all four matrix panels; in the LJ panels g) and h) the on-diagonal blocks — each particle’s Cartesian pair — are additionally masked, since the intra-particle x-y coupling is trivially strong and structurally uninformative, leaving only the inter-particle coupling on display (which also sets the colour-scale normalization in g)). The quoted and concentration are computed over all coordinate pairs.
(Fig. 1c,g), the GW Fisher matrix is sparse, with coupling confined to a few named blocks, whereas the LJ Hessian is dense: every coordinate couples appreciably to every other. An independent measurement, the pairwise normalized mutual information (NMI) [30] of Laplace samples drawn at each mode (Fig. 1d,h), confirms this from the marginal side. The GW NMI is concentrated (the top 5% of coordinate pairs carry 53% of the total mutual-information mass), while the LJ NMI is a diffuse, low-amplitude haze spread over all pairs (concentration 17%). Notably the mean off-diagonal NMI is larger for GW (0.048) than for LJ-8 (0.023): the atomistic disadvantage for a coupling-layer flow of the kind described below is not that its coordinates are more strongly correlated, but that the correlation is collective and admits no sparse, axis-aligned block structure that a coordinate split could exploit.
Across all four diagnostics, the same dichotomy recurs. The GW posterior is a single concentrated mode dressed with smooth, continuous degeneracy ridges and a sparse, block-structured coupling that decades of reparameterization [11, 31] have isolated into named groups. In contrast, the atomistic posterior is a combinatorial proliferation of discrete, hard-walled permutation copies with dense, collective coordinate coupling. These landscapes differ not merely in degree along a single axis of “difficulty” but in their global organization. Indeed by the same local measures, such as anisotropy and mean coupling, the GW likelihood is the more challenging of the two. It is this difference in kind that a normalizing flow must contend with.
3 Methods
We present the two ingredients of our method in a notation chosen to make their composition transparent. Section 3.1 reframes the likelihood-constrained priors that drive nested sampling as a one-parameter family of conditional distributions indexed by the energy bound. Section 3.2 introduces a conditional normalizing flow that learns a parameterized approximation of exactly such a family. Section 3.3 combines the two ingredients by identifying the flow conditioning parameter with the energy bound, . The flow thereby becomes a direct generator for the constrained prior at each NS iteration, replacing the costly MCMC decorrelation procedure of classical NS by parallel, independent draws from a differentiable flow model.
3.1 Nested Sampling
Nested sampling is widely employed as a tool for Bayesian inference [32, 33], as it provides an approximation of the evidence, which appears in the well-known Bayes' theorem
where represents the posterior, the likelihood, the prior, and the evidence for a parameter . In the context of atomistic systems at constant volume, this framework is analogous to
where the posterior corresponds to the distribution of the canonical ensemble, normalized by the canonical partition function , and and are the number of particles, volume and temperature, respectively. The likelihood is expressed as the Boltzmann factor, which depends on the inverse temperature and the potential energy as a function of the configuration . Here, contains the complete structural information of the system, which, in the case of periodic boundary conditions, can be decomposed into the Cartesian coordinates of a repeating unit and the simulation cell. In this framework, the prior distribution, , is uniform, reflecting the principle of equal priori probability. For simplicity, we consider only the configurational part of the distribution, as it can be straightforwardly decoupled from the momentum-dependent part, as follows from classical statistical mechanics.
Algorithm 1 Nested sampling
Require: Live-set size , termination parameter
1:
2: for to do
3: draw
4: end for
5: for do
6: \quad worst-performing walker
7:
8: \quad store sample for inference
9:
10: for
11: independent draw from \quad replace via constrained prior
12: if stopping condition based on is satisfied then
13: ; break
14: end if
15: end for
16:
Algorithm 1 outlines the basic NS algorithm. An initial set of walkers is drawn from the prior , typically chosen uniform. At each iteration, the lowest-likelihood (highest-energy) walker is identified, fixing the threshold or, equivalently, the energy bound . The walker is removed and stored as , then replaced by an independent draw from the constrained prior
where is the prior mass below the bound. Viewed as a function of , Eq. (3) defines a one-parameter family of conditional distributions indexed by the energy bound—a fact we exploit in Sec. 3.3 by training a single conditional normalizing flow to model the entire family. Assuming a uniform prior and ignoring normalization,
which highlights the invariance of NS with respect to temperature.
In practice, classical NS samples the distribution of Eq. (3) by cloning a uniformly chosen remaining walker (with index ) and running MCMC trajectory of length whose Markov kernel has as its stationary distribution (line 11 in Alg. 1). The cost of running these chains long enough to obtain effectively independent samples is the dominant bottleneck of NS in atomistic settings, and motivates the flow-based replacement of Sec. 3.3.
The enclosed prior mass at each iteration can be obtained by
and is directly proportional to the enclosed configuration space volume. From , the partition function can be estimated according to Alg. 1.
3.2 Conditional Normalizing Flows
Let be a latent space whose elements follow an easy-to-sample density (e.g. standard Gaussian or uniform), and let be a data space whose elements follow a target density . Throughout the remainder of this paper, we use the term base distribution to refer to and the term target distribution to refer to . We deliberately avoid the terms prior and posterior, which are also common in the NF literature, in order to avoid confusion with the Bayesian prior and posterior introduced in the previous section. Throughout this work, the latter terminology is reserved exclusively for NS quantities. A NF is an invertible, differentiable map ,
whose Jacobian and inverse Jacobian
satisfy
so that the change-of-variables formula relates the two densities by
Note that in these expressions and are related by and .
In what follows, the flow is realized by a neural network with parameters and denoted . We write and , so that Eq. (5) becomes . Pushing through and pulling back through yields the model densities
which approximate and respectively.
We now extend this construction to a family of target distributions indexed by a condition drawn from . For each we want to sample the conditional target density . We condition the transformation directly without affecting the base distribution, so that by design, and
The change of variables in Eq. (6) then reads
An important consequence of the exact density evaluation provided by normalizing flows is that any residual bias arising from imperfect training can be corrected through reweighting: each generated sample carries an importance weight
These weights can be used to reweight observables or to resample configurations, provided there is sufficient overlap between the true target distribution and the distribution generated by the flow. A convenient quantitative measure of this overlap is the Kish (relative) effective sample size (RESS) [34], defined as
where denotes the importance weight of the -th generated sample. The RESS takes values between 0 and 1, with unity corresponding to perfectly uniform weights and therefore an exact representation of the target distribution by the flow.
To train the conditional normalizing flow, we construct loss functions from the conditional Kullback–Leibler divergence
where is the Shannon entropy of . When applied to the flow, this divergence leads to two complementary training objectives.
Forward loss – training by energy. Setting and in Eq. (11), substituting the second relation of Eq. (8), and dropping the -independent entropy yields
Minimizing requires only the ability to evaluate the target density pointwise — no target-distributed data are needed. The training loop draws and , evaluates and its Jacobian, and minimizes Eq. (12) with respect to . Since the normalization constant of is independent of the network parameters , it contributes only an additive constant to the loss and therefore does not need to be known during training.
Backward loss – training by example. Setting and in Eq. (11), substituting the first relation of Eq. (8), and again dropping the -independent entropy gives
The backward loss requires no analytic form for ; only samples are needed. The same is also true for for which an analytical expression is not required, and it is inferred from data obtained from certain values of . In the NS-Flows algorithm of Sec. 3.3, the live sets accumulated by classical NS serve precisely as such samples, so both losses become available simultaneously.
3.3 Nested Sampling with Conditional Normalizing Flows
We can now compose the two ingredients. Setting , the likelihood-constrained prior of Eq. (3) is the conditional target of Sec. 3.2: up to a normalizing constant,
The indicator function in Eq. (14) is non-differentiable, which precludes its direct use in the gradient-based loss of Eq. (12). A common approach is to replace the discontinuous energy constraint with a continuous surrogate potential that penalizes configurations with energies , thereby replacing Eq. (14) with
Different choices for the penalty function are possible depending on the specific application; common examples include linear, quadratic, or smooth logarithmic penalties that vanish (or become negligible) below the energy threshold and increase progressively once the constraint is violated. Substituting Eq. (15) into the generic loss of Eq. (12), the term reduces to up to an additive normalization constant, yielding the NS-Flows forward loss
The conditioning variable can be sampled from any distribution with support restricted to the interval , where denotes the energy bound reached at the current stage of the NS simulation. Typical choices include a uniform distribution over this interval or distributions biased toward lower energy bounds, which more closely reproduce the distribution of thresholds generated during the nested-sampling trajectory.
Specializing Eq. (13) likewise gives the backward loss
with the outer expectation realized over the collection of live sets accumulated during the nested-sampling trajectory, each associated with the energy bound at which it was generated. We adopt either a standard Gaussian on or a uniform on a finite domain ; for the uniform choice the term in Eq. (17) is constant and drops, while for the Gaussian it becomes up to a constant.
In practice, the complementary information provided by the forward and backward objectives can be combined during training. Training NS-Flows then minimizes a weighted sum for forward and backward losses
where and are hyperparameters tuned in the validation stage.
3.4 A flow-based nested sampling algorithm for atomistic systems
Following the backbone of Williams et al. [11], samples generated by the trained flow populate a pool from which NS draws replacements for its worst-performing walker, removing the MCMC bottleneck. We extend their approach by conditioning the flow on the energy bound and training it on a sliding window of the most recent live sets, so that a single network represents the family along the NS trajectory [24]. Since consecutive constrained ensembles differ only incrementally along the NS trajectory, conditioning on previous live sets allows the flow to exploit continuity in the annealing process and progressively adapt to the evolving constrained distribution. This temporal continuity also enables different flow training strategies: each retraining stage may either start from randomly initialized network parameters or continue from the parameters obtained in the previous optimization stage, effectively resulting in an online fine-tuning procedure. The former strategy may help avoid poor local minima inherited from earlier training cycles, whereas the latter exploits the strong similarity between consecutive constrained distributions to progressively refine a single model throughout the NS trajectory. An intermediate strategy is also possible, where the network is periodically reinitialized after a prescribed number of retraining stages while continuing to fine-tune the previously learned parameters in the intervening updates.
Algorithm 2 Nested Sampling with Conditional Normalizing Flows (NS-Flows).
Require: Live-set size , pool size , warm-up length , dilution length , retention horizon , termination parameter
1: for to do 2: draw 3: end for 4: run steps of Alg. 1 5: sliding window of (live set, ) snapshots 6: empty pool 7: for do 8: ; 9: 10: if then 11: append to ; truncate to the last entries 12: train on by minimizing (Eq. (18)) 13: 14: draw ; compute and weights 15: according to until Eq. (9) 16: run steps of Alg. 1 dilute synthetic samples before next retraining 17: continue 18: end if 19: 20: draw uniformly from ; 21: if then in general 22: continue 23: end if 24: ; 25: for ; 26: if stopping condition based on is satisfied then 27: ; break 28: end if 29: end for 30: return evidence estimator and weighted samples
The entire flow-based NS procedure is summarized in Alg. 2. After generation, an acceptance-rejection step uses the flow-derived weight of Eq. (9) to correct for residual mismatch between and the indicator target [11]; unlike a multinomial bootstrap, this avoids repeating configurations in the pool, which remain unique instead. Once generated, configurations can be drawn efficiently from the pool only while does not drift far below : each NS iteration tightens the bound, so efficiency degrades monotonically and triggers a retraining once exhausted. A number of MCMC steps interleaved between pool exhaustion and retraining serves to dilute synthetic samples in the live set before the next training cycle, mitigating the accumulation of distributional bias and correlations associated with repeatedly retraining generative models on self-generated samples [35].
3.5 Flow architecture and symmetries
The performance of the proposed approach depends crucially on the ability of the NF to represent the highly structured constrained distributions encountered along the NS trajectory. In atomistic systems, this capability is strongly influenced by how physical symmetries are incorporated into the architecture. We therefore employ an equivariant transformer-based flow architecture specifically designed to encode the permutation, translational, and periodic symmetries characteristic of condensed-matter systems [20, 22]. In practice, the invertible transformation defining the flow is constructed from rational quadratic spline bijectors [36], whose parameters are predicted by an equivariant transformer network [37].
Translational invariance is treated explicitly by expressing each configuration in internal coordinates. Rather than using absolute Cartesian positions, all particle coordinates are represented relative to a reference particle, chosen initially as the particle with index 0. In addition, the training dataset is continuously augmented during optimization. Whenever a configuration is loaded by the data loader, the reference particle used to define the internal coordinates is selected randomly and a random symmetry operation from the octahedral group is applied to the configuration. This augmentation procedure strongly increases the effective diversity of the training data and, in practice, largely suppresses overfitting throughout the simulation.
The choice of a square simulation cell is also motivated by this augmentation strategy. Although the minimum-energy configuration of the two-dimensional Lennard–Jones system is a hexagonal lattice, which is naturally accommodated by a rectangular simulation cell with aspect ratio , such a geometry preserves only a subset of the symmetry operations available in the square box. Consequently, the number of transformations that can be exploited for data augmentation is significantly reduced, leading in practice to less effective training. For this reason, all results presented in the main text are obtained using square simulation cells. Results for a nine-particle system in a rectangular simulation cell with aspect ratio are reported in the Supplementary Material.
3.6 Simulation and training details
We now specify the parameters of the NS and training protocol used for the LJ simulations of Sec. 4.
The NS simulation is initialized from a set of walkers uniformly distributed within the simulation box. Before activating the normalizing-flow component of the algorithm, the system is annealed for conventional NS iterations in order to remove highly unfavorable configurations containing nearly overlapping particles and generate a more suitable training set for the first flow optimization. During these standard NS stages, batches of walkers are evolved in parallel through rejection-based MCMC updates consisting of trial particle displacements per walker. To maintain a reasonable acceptance probability, the maximum displacement employed in the MCMC proposals is reduced by a factor of two whenever the acceptance ratio falls below 0.5. Unless otherwise specified, the same standard NS protocol and MCMC parameters are employed throughout all subsequent refresh stages where the algorithm temporarily switches back from flow-based generation to conventional NS (in particular, in Alg. 2 we set ).
Following the sliding-window scheme of Sec. 3.4, each live set is stored together with its associated NS energy threshold and used to train the conditional flow, with the energy bound acting as the conditioning variable. To limit memory growth and maintain relevance to the current stage of the simulation, only the three most recent live sets are retained during training, the highest-energy dataset being discarded whenever a new one is added. In the present implementation the flow is trained exclusively in the backward direction (i.e. ) through the transformation (namely and in Eq. (18)), using only configurations sampled from the constrained target distribution, so that no target-system energy evaluations enter the optimization. This choice is motivated by the observation that the forward objective derived from Eq. (14) (and analogously from its differentiable counterpart, Eq. (15)) provides only a weak learning signal about the internal organization of the constrained ensemble. While the target density specifies the constrained region, it provides comparatively little information about how probability mass should be transported from the base distribution into that region. This information is instead conveyed directly by the sampled configurations, which provide abundant examples of the target distribution through the current and previous live sets accumulated during the nested-sampling trajectory. Furthermore, avoiding repeated energy evaluations during training is particularly advantageous for atomistic systems, where energy calculations often constitute the dominant computational cost. Training is performed with the Adam optimizer together with a learning-rate scheduling strategy; the precise choice of scheduler, learning-rate protocol, and number of optimization steps constitutes an important set of hyperparameters of the method and is examined comparatively in the results (Sec. 4). Network parameters are not reinitialized after each training stage but are instead initialized from the weights obtained during the previous cycle, effectively resulting in an online fine-tuning procedure as the nested-sampling simulation progresses toward lower energies.
After each training stage, the conditioned network is used to generate a pool of configurations through the rejection-resampling procedure of Sec. 3.4. Generation begins by drawing configu-rations from an ideal-gas base distribution, corresponding to particles distributed uniformly within a simulation box of the same size as the target system. Apart from the thermodynamics constraints imposed by the number of particles and the simulation volume, this base distribution contains no information about the interactions, thermodynamic state, or structural organization of the system. These configurations are transformed by the conditioned normalizing flow, where the current training energy threshold is provided as the conditioning variable, and are subsequently subjected to the importance-weight-based rejection-resampling procedure in order to recover the desired constrained distribution and construct the pool used during the subsequent NS stage. The pool size constitutes an important hyperparameter controlling the trade-off between retraining frequency, generation efficiency, and computational cost, and its effect on the overall performance of the algorithm is examined in the results (Sec. 4). Although the target pool size is chosen a priori, the rejection-resampling procedure accepts only a fraction of the generated configurations. As a result, the total number of generated samples is not known in advance, and additional batches are produced until the prescribed pool size is reached. Since the rejection-resampling procedure employs relative importance weights normalized over finite generated batches, the effective normalization constant may differ slightly between independently generated candidate sets. Consequently, combining configurations originating from multiple independently normalized batches introduces a small finite-sample inconsistency analogous to that encountered in self-normalized importance sampling [38]. In practice, this effect is expected to become negligible for sufficiently large generated batches and sufficiently accurate flow models, where the relative-weight distribution becomes increasingly stable across successive generations.
4 Results and Discussion
We now turn to a concrete demonstration of flow-assisted nested sampling. As a testbed, we consider the two-dimensional LJ system of eight disks already introduced in Sec. 2. Although modest in size, this benchmark remains representative of the challenges posed by atomistic posterior landscapes. Recent advances based on graph neural networks [39] and equivariant architectures [40] have enabled normalizing flows to scale to substantially larger crystalline systems, whereas extending these methods to structurally heterogeneous liquid or disordered phases remains an active area of research [41–43]. At the same time, the present system is sufficiently small to permit a detailed analysis and a direct comparison with the original flow-assisted nested-sampling framework of Williams et al. [11]. Despite its modest size, it already exhibits the dense, collective coupling and combinatorial, permutation-induced multimodality that characterize realistic atomistic posterior landscapes. We study it under periodic boundary conditions at a constant reduced density , which places the system in a relatively dense fluid/solid regime characterized by strong excluded-volume effects and multiple metastable structural motifs [27].
4.1 Simulation setup
The complete simulation is performed for a total of NS iterations, following the initialization, training, and generation protocol detailed in Sec. 3.6. During this process, the system evolves from an initial reduced energy of approximately down to a final value of approximately , spanning both highly disordered and strongly ordered regions of configuration space (see Fig. 2). During the full annealing trajectory, the simulation alternates repeatedly between standard NS stages, normalizing-flow training phases, and pool-generation steps, resulting in multiple retraining cycles as the constrained distribution progressively evolves toward lower energies.
4.2 Validation against standard nested sampling
Before addressing the performance of the proposed algorithm, we first verify that replacing the MCMC proposal with the flow-based generator preserves the statistical behavior of the nested-sampling procedure. Figure 3 compares representative NS trajectories obtained using the standard rejection Monte Carlo approach and the proposed flow-based algorithm. The left panel reports the evolution of the energy threshold as a function of the NS iteration. The two trajectories are statistically indistinguishable and exhibit the same progressive compression of the accessible configuration space throughout the simulation. The right panel compares the corresponding distributions of sampled energy thresholds, showing excellent agreement over the entire range explored during

Figure 2: Representative configurations and corresponding structural and energetic distributions obtained at different stages of the nested-sampling trajectory for the two-dimensional Lennard–Jones system at . Each row corresponds to a different nested-sampling energy threshold , decreasing from top to bottom. The first three columns show ensembles of configurations drawn from the live set used for training, the generated pool obtained directly from the normalizing flow, and the final pool after rejection-resampling, respectively. In each panel, all configurations are superimposed after transformation to internal coordinates and alignment with respect to a common reference particle, so that the resulting image represents the positional probability density of the remaining particles relative to the reference. The fourth column reports the corresponding radial distribution functions , with the dashed horizontal line indicating the ideal-gas limit (the base distribution). The fifth column shows the corresponding energy probability distributions for the live set, generated pool, and resampled pool. In the top row, the energy distribution associated with the ideal-gas prior is also reported for comparison. For the lower-energy rows this distribution is omitted, as the corresponding energy range becomes increasingly separated from that of the constrained target ensembles and would not be visible on the scale of the figure.
the run. These results demonstrate that the proposed replacement of the MCMC proposal with a conditional normalizing flow leaves the NS dynamics unchanged while providing an alternative mechanism for generating configurations below the current energy bound.

Figure 3: Validation of the flow-assisted nested-sampling algorithm against standard nested sampling. Left: Evolution of the nested-sampling energy bound as a function of the nested-sampling iteration for a representative simulation performed using conventional rejection Monte Carlo (solid blue) and the proposed flow-assisted sampling scheme (dashed orange). The two trajectories exhibit statistically indistinguishable behavior throughout the simulation. The inset shows the same data on a logarithmic scale, highlighting the excellent agreement over the entire energy range, from the initial high-energy configurations to the lowest-energy states explored. Right: Distribution of sampled energy bounds during the nested-sampling trajectory. The overlap between the two distributions confirms that replacing the rejection Monte Carlo proposal with the conditional normalizing flow preserves the statistical properties of the nested-sampling process.
4.3 Effect of conditioning on the energy threshold
Having established that the flow-assisted algorithm faithfully reproduces the statistical behavior of standard NS, we next assess the role of conditioning on the NS energy threshold. The primary motivation for conditioning is to enable the effective reuse of configurations accumulated during previous stages of the NS trajectory. Without conditioning, two natural training strategies are possible. The first is to train an unconditioned flow using only the current live set, thereby matching the desired constrained distribution but discarding all information collected during previous retraining stages. The second is to increase the amount of training data by combining configurations from multiple live sets into a single dataset. While this provides the network with substantially more examples, the samples originate from different constrained distributions and are presented without any information identifying the energy threshold at which they were generated. Consequently, the network is required to approximate several distinct target distributions simultaneously, despite having no mechanism to distinguish between them.
Figure 4 compares these alternatives for five representative stages of a standard NS simulation. For each energy threshold, three flows are trained using the same optimization protocol: an unconditioned flow trained only on the corresponding live set (solid lines), an unconditioned flow trained on the same live set together with the two preceding ones (dashed lines), and the proposed conditional flow trained on the identical three-live-set dataset, with each configuration labeled by its corresponding energy threshold (dotted lines). The spacing between consecutive live sets matches the retraining frequency employed in the best-performing production simulation discussed below. As a result, the two preceding live sets correspond to the higher energy thresholds encountered during the immediately preceding retraining stages, making the comparison representative of the practical operating regime of the algorithm. Each model is independently trained once and used to generate ten independent pools of configurations, from which both the generation efficiency and the relative effective sample size (RESS) are estimated.
The results clearly show that conditioning systematically improves the quality of the generated samples. At high energies, where the target distributions remain relatively broad, all three approaches perform comparably within the statistical uncertainty. As the NS trajectory progresses toward lower energies, however, the conditional architecture consistently achieves the highest generation efficiency while maintaining a comparable RESS. The advantage over the unconditioned network

Figure 4: Comparison between unconditioned and conditioned normalizing flows trained to reproduce representative constrained ensembles along the nested-sampling trajectory. Five live sets, approximately equally spaced throughout a reference nested-sampling simulation, are considered. For each target live set, three architectures are trained using the same optimization protocol: an unconditioned flow trained only on the target live set (solid lines, circles), an unconditioned flow trained on the target live set together with the two preceding live sets corresponding to higher energy thresholds (dashed lines, triangles), and the proposed conditional flow trained on the same three live sets while conditioning each configuration on its associated energy threshold (dotted lines, squares). The spacing between consecutive live sets matches the retraining frequency employed in the best-performing production simulation discussed in Fig. 5. Results are averaged over ten independently generated pools of configurations, with error bars indicating one standard deviation. Left axis: generation efficiency, defined as the fraction of generated configurations satisfying the target energy constraint. Right axis: relative effective sample size (RESS) of the generated distribution.
trained on the same three live sets is particularly pronounced for the generation efficiency. Without access to the energy threshold associated with each training configuration, the unconditioned network effectively learns an average over the constrained distributions represented in the dataset, producing samples that are systematically too broad to satisfy the most restrictive energy bounds. The relative effective sample size exhibits considerably larger statistical fluctuations and therefore provides a less sensitive discriminator between the different architectures. Nevertheless, the conditioned model consistently maintains a RESS comparable to the unconditioned alternatives while delivering a substantially higher acceptance rate during pool generation.
4.4 Computational efficiency
Assessing the performance of generative models in molecular simulation is not straightforward [41, 44, 45]. Unlike conventional simulation methods, where the dominant computational bottleneck is usually well defined, flow-based approaches require balancing the cost of training the generative model against the quality of the generated samples. In this specific application, longer and more accurate training generally improves the approximation of the constrained target distribution and increases the acceptance of generated configurations, but at the expense of additional optimization time. Conversely, shorter training reduces the computational overhead while producing lower-quality proposals that require more rejection during pool construction.
In standard NS, the dominant computational cost arises from the repeated evaluation of the potential energy during the MCMC procedure used to generate approximately independent samples from the constrained prior. In the present implementation, each NS iteration evolves a batch of walkers in parallel through rejection-based MCMC updates, with trial particle displacements attempted for every walker. This results in approximately energy evaluations per iteration, or roughly evaluations over the full annealing trajectory of NS steps. Although the LJ system considered here is relatively inexpensive in terms of individual energy evaluations, the cumulative cost of this decorrelation procedure remains substantial, requiring approximately 12 hours of wall-clock time on the GPU architecture employed in the present work [46].
The flow-assisted approach replaces most of these energy evaluations with the cost of training a generative model. In the present implementation, where the flow is trained exclusively “by example” through the backward loss, no target-system energy evaluations are required during training, since the optimization depends only on configurations already contained in the live sets. This contrasts with forward or energy-based training schemes, where energy evaluations explicitly enter the loss function. Likewise, generating configurations from the trained flow requires no energy computations. Energy evaluations re-enter only during the rejection-resampling stage used to construct the pool, where each generated configuration is evaluated once and its energy subsequently stored together with the configuration. During the following NS iterations, these stored energies are simply compared against the current threshold , so that no additional evaluations are required when drawing configurations from the pool.
This reduction in energy evaluations is achieved at the expense of gradient-based optimization and backpropagation through a relatively large neural network. The architecture employed in the present work consists of 28 coupling blocks and approximately trainable parameters. For the LJ system, where individual energy evaluations are comparatively inexpensive, the cost of training such a model can become comparable to, or even exceed, the cost of evaluating the potential itself. Consequently, the overall efficiency depends on the balance between neural-network training and the reduction in energy evaluations. Complete details of the network architecture and training protocol are provided in the Supplementary Material.
The introduction of a trainable generative model into the NS workflow creates a considerably richer hyperparameter landscape than that of conventional NS. Besides the optimization protocol itself, parameters such as the retraining frequency, the pool size, and the amount of accumulated training data all influence the overall efficiency of the method. In practice, however, the dominant trade-off arises from the interplay between the amount of optimization performed during training and the number of configurations generated and stored in the pool. If the computational bottleneck lies in expensive energy evaluations, longer training stages can be justified to obtain more accurate generative models, reducing rejection during pool construction and allowing larger pools to sustain many NS iterations before retraining becomes necessary (see SM for details). Conversely, when gradient evaluations dominate the computational cost, shorter optimization protocols may provide a better overall compromise despite increasing the rejection rate during pool generation. Unlike conventional NS, where efficiency is controlled primarily by the degree of MCMC decorrelation, this flexibility allows the flow-assisted algorithm to be adapted to systems with different computational bottlenecks.
This trade-off is illustrated in Fig. 5, where different combinations of learning-rate schedules, optimization lengths, and pool sizes are compared through a decomposition of the computational time spent on training and pool generation throughout the nested-sampling trajectory. Two target pool sizes are considered, namely configurations (left column) and configurations (right column). For each pool size, three learning-rate schedulers are investigated: the One Cycle (1C) scheduler (top row), a hybrid scheduler combining One Cycle and Cosine Annealing (CA) (1C+CA, middle row), and a pure CA scheduler (bottom row). Within each scheduler, two optimization lengths are compared, corresponding to a longer and a shorter training protocol. For the larger pool size of configurations (left column), only 20 retraining stages are required during the entire nested-sampling trajectory, allowing the training cost to be amortized over many subsequent NS iterations. In this regime, longer training schedules reduce the rejection rate during pool generation and therefore the number of energy evaluations, but at the expense of substantially longer optimization times. This trade-off is evident in the left column of Fig. 5: moving from panel e) to panel a), the total number of energy evaluations decreases from to , while the wall-clock time increases from approximately 14 hours to more than 32 hours. For the smaller pool size of configurations (right column), retraining occurs more frequently, but each pool is considerably cheaper to generate. As a result, all three simulations outperform their large-pool counterparts in both wall-clock time and total energy evaluations. The best-performing simulation (panel f) completes the full -step annealing trajectory in less than 8 hours using only energy evaluations. This amounts to a reduction of more than two orders of magnitude in the number of energy evaluations while shortening the overall simulation time by roughly one third relative to the reference implementation of standard NS (Fig. 3). These improvements are consistent with the performance gains reported by Williams et al. [11] for gravitational-wave inference using NESSAI [47], where speedups between 1.40 and 2.32 were obtained.
These results should be interpreted with some caution. The purpose of the present study is not to provide a highly optimized benchmark of either approach, but rather to assess the potential of generative models for accelerating nested sampling of condensed matter systems. Neither the conventional NS implementation nor the flow-assisted algorithm was systematically optimized beyond the parameter ranges explored here. Nevertheless, the reduction in energy evaluations, combined with a measur-

Pool generated
Figure 5: Time decomposition associated with the generation of successive configuration pools during nested-sampling simulations accelerated by conditional normalizing flows. Each bar corresponds to a newly generated pool and is partitioned into the time spent in the different stages of the algorithm, including network training (blue bars) and pool generation together with the rejection-resampling procedure (orange bars). All simulations start from the same initial live set of walkers and perform the same total number of nested-sampling iterations. Pool size of Left column: configurations and Right column: configurations. Top row: One Cycle (1C) learning-rate scheduler (LRS) with a) 4500 optimization steps (OSs) and b) 1000 OSs. Middle row: Combined 1C and CA LRSs, where 1C + CA is applied every 5 epochs and CA only is used for the remaining epochs, with c) 3375 OSs using 1C and 1125 OSs using CA, and d) 750 OSs using 1C and 250 OSs using CA. Bottom row: CA LRS with e) 500 OSs and f) 250 OSs. Wall time and number of energy evaluations for the whole nested sampling run are reported in the box on the upper right of each panel.

Figure 6: Generation efficiency as a function of the generated pool index and, therefore, indirectly as a function of decreasing energy along the nested-sampling trajectory. The gray shaded regions identify the low-efficiency regime associated with the emergence of strong many-body correlations. Dashed lines represent different models fitted to the observed generation attempts (Eq. (22) below; see also Appendix C). Red line shows model based on the internal mode complexity computed for the last 3 walker sets cumulated (analogous to the training datasets). Green line shows same model extended with a simple drift correction that accounts for the inefficiency arising due to the usage of the last three cumulated walker sets. Left: , Right: .
able decrease in wall-clock time despite the overhead of training a relatively large neural network, demonstrates that a substantial fraction of the computational effort can be shifted away from expensive energy evaluations. This effort is instead invested in training a generative model, a stage that is largely independent of the underlying potential and can benefit directly from continued advances in machine-learning hardware and software. This is particularly relevant for computational materials science, where realistic interatomic potentials, machine-learning force fields, or first-principles electronic-structure methods are often orders of magnitude more expensive than the simple LJ model considered here. In such cases, the reduction in energy evaluations achieved by the flow-assisted approach is expected to translate into substantially larger practical gains than those observed in the present benchmark.
4.5 Generation efficiency across the nested-sampling trajectory
Beyond the purely computational aspects discussed above, the present simulations also reveal a number of interesting physical and statistical features associated with the evolution of the learned constrained distributions along the nested-sampling trajectory. In particular, a remarkably structured behavior emerges when monitoring the generation efficiency of the normalizing flow as a function of the pool index and, therefore, indirectly as a function of decreasing energy. Three clearly distinct regimes can be identified throughout the annealing process (see the left panel of Fig. 6).
At the beginning of the simulation, where the live set is still characterized by very high energies, the likelihood-constrained distribution remains relatively close to the base distribution, namely the ideal gas. The corresponding configurations resemble weakly correlated fluid-like states with an almost uniform spatial distribution. As a consequence, the flow can learn the transformation between base and target distribution comparatively easily, resulting in high generation efficiencies and correspondingly low rejection rates during pool construction.
As the nested-sampling evolution proceeds toward lower energies, the system enters a regime characterized by dense-fluid or liquid-like configurations. In this region (gray area in Fig. 6), the flow efficiency decreases significantly for otherwise identical training protocols. Although the target distributions remain qualitatively disordered, they now contain strong many-body correlations and geometric constraints associated with local packing effects. As a consequence, obtaining an accurate representation of the constrained ensemble becomes increasingly challenging when training from the ideal-gas base distribution. This behavior manifests itself as a marked reduction in the acceptance probability during resampling and therefore in the overall efficiency of pool generation.
Interestingly, upon further annealing, the system eventually enters a low-energy solid-like regime where the efficiency of the generative model increases again. In this phase, the target distribution becomes highly localized around a relatively small number of ordered configurations. Despite the fact that the latent prior and the target distribution are now dramatically different, the training procedure remains effective in producing accurate approximations of the constrained ensemble. In fact, the observed generation efficiencies in the solid regime can exceed those obtained at the highest energies.
A quantitative account of this behavior can be built directly from the live-point ensembles, without reference to the flow (see Appendix C for the full derivation). Each live configuration is mapped to a permutation- and translation-invariant fingerprint by collecting the sorted minimum-image pair distances,
so that variation in f across the live set at iteration k reflects genuine configurational spread rather than particle relabeling or rigid motion.
The natural first guess is that the difficulty grows with the overall geometric spread of the constrained ensemble, i.e., with the fingerprint covariance (Eq. (35) in Appendix C). This explanation fails: normalizing flows can readily accommodate global geometric transformations, such as translations and rescalings, through the learned invertible mapping [42, 48], so a purely second-moment measure of spread is essentially free for the flow and correspondingly uninformative about the generation burden (Spearman rank correlation with the measured efficiency; see Appendix C). What poses a much greater challenge for the flow is the multimodality of the target: when the configurations split into several structurally distinct families along a principal fingerprint direction , the corresponding marginal becomes flat-topped or multi-peaked (a platykurtic, negative-excess-kurtosis signature, ) rather than bell-shaped. Summing this signature over the structural directions of the ensemble defines an internal mode complexity
where are the eigenvalues of and is a threshold used to retain only the important directions in the sum. This isolates the discrete, combinatorial multi-basin structure characteristic of atomistic landscapes — precisely the structure a second-moment measure of spread cannot see — and correctly predicts the generation burden, .
A second, dynamical term accounts for the flow lagging a moving target. With a cumulation depth (here ), the flow generating at threshold is trained on the union of the last live-point datasets; even when most of that data remains feasible, the underlying distribution has moved, and the stale flow is mismatched in proportion to that motion. This is quantified by the displacement of the fingerprint mean across the training window,
which explains the residual left after removing the trend, . A complementary feasibility test, the fraction of cumulated training mass still below , bounds the static staleness contribution alone at a factor , confirming that this is genuine distributional motion and not mere threshold crossing.
Treating as the global term and as the local term, an additive-burden ansatz
fitted by least squares over the scale-stable regime, reproduces the measured generation efficiency across the entire trajectory (Fig. 6).
The nonmonotonic behavior of the generation efficiency identified in Fig. 6 is particularly noteworthy because it suggests that the intrinsic difficulty of learning molecular distributions with normalizing flows is not determined solely by the apparent geometric difference between prior and target distributions. Rather, the liquid regime itself appears to represent a particularly challenging class of distributions for current flow architectures. Similar difficulties have been reported previously in the literature on flow-based molecular sampling [23, 41, 42], where liquid-like systems are often found to be substantially harder to model than either gas-like or solid-like phases. However, the NS framework employed here provides a particularly systematic perspective on this phenomenon, since the method continuously traverses the entire phase diagram within a single simulation and therefore allows the evolution of the generative efficiency to be monitored across different thermodynamic regimes in a controlled manner.
4.6 Density dependence and the role of crystalline order
A further indication that the observed three-regime structure is closely connected to the emergence of crystalline order is provided by simulations performed at lower density, specifically at . According to the phase diagram of the two-dimensional Lennard–Jones system [27] (left panel of Fig. 7), the system enters an extended fluid–solid coexistence region before reaching the lowest accessible energies. Unlike the higher-density case, however, the low-energy landscape is not dominated by a single well-defined crystalline structure. As a consequence, even at low energies the constrained distributions remain significantly broader and more structurally heterogeneous than those observed at (right panel of Fig. 7).
Consistent with this picture, the generation efficiency at the lower density follows the same qualitative evolution observed at , albeit shifted to much later stages of the nested-sampling trajectory. As shown in the right panel of Fig. 6, the low-efficiency regime extends approximately from 27% to 84% of the simulation, compared with only 14% to 57% at the higher density. This shift directly reflects the phase behavior of the system, where crystallization is delayed by the broader coexistence region and the constrained distributions retain their highly correlated, structurally heterogeneous character over a much larger fraction of the simulation. Although the generation efficiency eventually increases as the sampled configurations become confined to low-energy basins, the recovery is noticeably weaker than at higher density, reaching a plateau well below the acceptance rate (horizontal dashed line in Fig. 6) observed at . This reduced asymptotic efficiency reflects the more complex low-energy landscape associated to , with numerous nearly degenerate minima originating not only from the symmetries of the crystal but also from the incommensurability between the simulation cell and the equilibrium lattice. As a consequence, the flow must learn a substantially broader and more intricate target distribution even in the lowest-energy region explored by nested sampling.
At present, the microscopic origin of the reduced learnability in the liquid regime has yet to be fully characterized. It is possible that the coexistence of strong local correlations with large-scale configurational disorder creates probability manifolds that are intrinsically difficult to represent through smooth invertible transformations. A deeper understanding of this phenomenon will likely require further investigation into both the geometry of molecular probability distributions and the inductive biases of current normalizing-flow architectures.
5 Conclusion
In this work, we have presented a nested-sampling algorithm for atomistic systems based on a learned generative model. In our implementation, the likelihood-constrained prior is represented throughout the nested-sampling trajectory by a single conditional normalizing flow, conditioned on the energy bound and trained on a sliding window of recent live sets. The flow replaces the slow MCMC decorrelation step of classical nested sampling with direct, parallel sampling, while the nested-sampling framework supplies the flow with training data, an importance-corrected accept/reject step, and a principled estimate of the evidence.
The reason this composition works is that nested sampling and normalizing flows are well matched for atomistic systems. First, the proposed framework produces the training data required by the generative model self-consistently via the nested-sampling simulation itself. Unlike many machine-learning approaches to atomistic sampling, which rely on pre-existing datasets or seek fully data-

Figure 7: Left: Phase diagram of the two-dimensional Lennard–Jones system, adapted from Ref. [27]. The two black arrows indicate the trajectories followed by the nested-sampling simulations across the phase diagram. Right: Final configurations obtained after nested-sampling steps for a system at constant density structure obtained after . The configurations are not aligned to a reference, and degeneracies associated with octahedral symmetry operations are therefore still present within the ensemble.
free training strategies to avoid the circularity of learning from the very configurations one wishes to generate [22, 23, 39], the present algorithm naturally resolves this issue. The live sets generated during the nested-sampling evolution provide a continuous stream of representative constrained configurations, which are immediately recycled to train the conditional normalizing flow. In this way, the algorithm simultaneously learns and samples, progressively adapting the generative model as it traverses the thermodynamic landscape from high- to low-energy states. This on-the-fly training strategy is especially effective because of the particular distributions generated by nested sampling. The constrained prior samples configurations throughout the entire region below the current energy threshold, ensuring that low-energy configurations remain well represented in the training data rather than being suppressed by their small configurational volume, as occurs in Boltzmann sampling at finite temperature. Consequently, the flow is naturally trained on precisely those rare configurations that become increasingly important as the simulation progresses toward the low-energy regime.
Second, since nested sampling anneals through a controlled sequence of flat, constrained targets rather than relying on a structured prior and a fixed temperature, the learning burden placed on the flow remains bounded and recoverable throughout the simulation. This contrasts with fixed-prior Boltzmann generator, for which the learning problem typically becomes substantially more difficult as the system passes through the liquid regime. It is this gradual evolution of the target distribution, rather than flow expressivity alone, that enables a single network to traverse the entire phase diagram in a single run. The broader idea of progressively transforming a difficult learning problem into a sequence of nearby target distributions has recently emerged as an effective strategy in generative modeling, with applications ranging from annealed normalizing flows and variational inference to temperature-conditioned generative models [49–53].
The ability to traverse the entire phase diagram comes at a favorable computational cost. The flow-assisted scheme reproduces the full annealing trajectory at a small fraction of the energy evaluations demanded by a conventional nested sampling simulation, at comparable or shorter wall-clock time. What we demonstrate is therefore a redistribution of computational effort rather than an outright saving: the flow exchanges the many energy evaluations of Markov Chain decorrelation for the cost of training a generative model — a cost largely independent of the underlying potential. We characterized this exchange across training schedules and pool sizes: energy evaluations fall by more than two orders of magnitude, while the wall-clock time is governed by how much training is given to the flow. When energy evaluations are cheap, the exchange is close to break-even; its advantage grows with the cost of evaluating the potential, so that the approach is most attractive precisely for the costly, high-fidelity models [54] that are increasingly used in modern materials simulation.
The same runs also turn the flow's efficiency into a physical diagnostic. The difficulty of the constrained ensembles varies non-monotonically with energy. It is greatest in the dense, disordered regime and decreases again when the system begins to order. This behavior reflects not the geometric gap between prior and target, but the extent to which the target fragments into distinct configurations. Dense, disordered phases thus stand out as the hard case for current flow models.
Our work therefore suggests a clear path toward global sampling of realistic atomistic systems. The property that makes nested sampling attractive is that its per-iteration cost remains bounded and does not deteriorate with system size. The framework demonstrated here is therefore well suited to scale to larger systems; what remains is to pair it with a flow that scales equally well. Here, the physics is favorable: correlations in liquids are typically short-ranged, so the collective fluctuations that challenge global flow models are largely local. This makes them well suited to architectures built to exploit locality [39], such as local-attention or message-passing equivariant models, and semi-local couplings that respect the correlation length rather than coupling all coordinates at once. Although the present work has focused on normalizing flows, the framework itself is not intrinsically tied to this particular class of generative models. Because nested sampling generates its own training data throughout the annealing trajectory, it naturally provides the supervision required by alternative approaches such as diffusion models or flow matching. Normalizing flows nevertheless retain a distinctive advantage in the present setting through their tractable likelihood, which enables the exact importance reweighting and accept/reject correction employed here; generative models without exact density evaluation generally forfeit this capability, or require additional approximation strategies [55]. More broadly, combining the prior-free annealing of nested sampling with such locality-aware generative models could provide a practical route to global, flow-based sampling of many-component materials — and with it, to bringing the full thermodynamics of realistic systems within reach of a single simulation.
Acknowledgments
The authors are deeply grateful to Livia B.-Pártay for initiating the discussion that ultimately led to this work. This research was funded in part by the Austrian Science Fund (FWF) through 10.55776/F8100 and 10.55776/COE5. For open access purposes, the authors have applied a CC BY public copyright license to any author accepted manuscript version arising from this submission.
Author contributions
AC, SF and NU conceived the initial idea for the project. AC led the software development and carried out the numerical experiments presented in Sec. 4. NU and SF contributed to the implementation and the refinement of the numerical experiments. NU also conducted the numerical experiments presented in Sec. 2. NU and AC prepared the initial version of the manuscript. GKHM and CD supervised the project, secured funding, and contributed to the preparation of the manuscript. All authors reviewed and approved the final manuscript.
Supplementary Material
The Supplementary Material, containing additional figures, numerical results, and a detailed description of the network architecture, training protocols, and hyperparameters, will be made publicly available in a subsequent revision of this preprint.
Code availability
The implementation of the proposed flow-assisted nested sampling algorithm, together with the scripts used to reproduce the numerical experiments presented in this work, will be made publicly available in a subsequent revision of this preprint.
Data availability
The datasets used to produce the figures and numerical results reported in this work will be made publicly available through a public data repository in a subsequent revision of this preprint.
A The gravitational-wave benchmark: injection and likelihood
We obtain the GW posterior in the standard Bayesian parameter-estimation framework [31, 56]. Given the data d and a waveform model, the posterior density over the source parameters follows from Bayes' theorem,
with the likelihood of the data given the parameters, the prior, and Z the evidence [56]. We evaluate this likelihood object with the bilby library [57, 58].
The posterior is not built from real detector data but from a simulated injection, the standard controlled-test setup in gravitational-wave parameter estimation [31]: a signal with known parameters is added to detector noise. Because the true source parameters are then known exactly, serves as the reference point at which we evaluate the local diagnostics of App. B. A binary-black-hole waveform is generated with the precessing IMRPhenomPv2 approximant (reference frequency 50 Hz, minimum frequency Hz; segments of duration s sampled at Hz) for a GW150914-like source (component masses , ); the full injected parameter vector is listed in Table 1. The waveform is generated in the frequency domain, with the Fourier frequency and denoting the Fourier transform. It is projected onto detector of the three-detector network (LIGO Hanford H1, LIGO Livingston L1, Virgo V1) through that instrument's antenna-pattern functions [31],
and a noise realization is added, giving the frequency-domain strain
The noise in each detector is modeled as stationary, zero-mean, Gaussian, and uncorrelated between detectors, and is fully characterized by its one-sided power spectral density (PSD) [31], which we set to the design sensitivity of each instrument. Under this noise model the likelihood of the data given parameters is the Whittle likelihood [31, 56]
(26)
summed over the detectors I, with the noise-weighted inner product
integrated from Hz up to the Nyquist frequency Hz. Expanding the Gaussian residual on the first line gives the second: the matched-filter term and half the optimal signal-to-noise , the only -dependent pieces, separated from the -independent noise inner product and the log-normalization . In practice we evaluate the log-likelihood ratio relative to the signal-absent (noise) hypothesis ,
which is exactly the -dependent first bracket of Eq. (26): forming the ratio cancels both and , leaving the shape of the landscape unchanged [56]. This matched-filter form is
Eq. (B7) of Ref. [56]. It is this (bilby's ratio) that we take as throughout.
The optimal network signal-to-noise ratio (SNR) of a signal is , and the matched-filter SNR is [56]. The GW150914-like injection is a loud signal, and the “high-SNR (linear-signal) limit” invoked in App. B — in which the Fisher matrix approximates the Hessian of — refers to this regime. The quantity is the GW “energy” of the landscape and the direct analogue of the LJ potential ; its minimum sits at (or, given the noise realization, very close to) the injection truth . We sample the 15 parameters of Table 1, each rescaled to the unit interval through its prior cumulative distribution function (the probability-integral transform). In these unit-cube coordinates the prior of Eq. (23) is uniform, so the posterior is proportional to the likelihood and coincides, up to an additive constant, with the negative log-posterior. The priors are bilby's default precessing binary-black-hole set (BBPriorDict) [57]: uniform in the component masses (sampled in chirp mass and mass ratio ), uniform in comoving source-frame volume in luminosity distance (UniformSourceFrame), isotropic in sky position and in the spin orientations, and uniform in the dimensionless spin magnitudes; the coalescence time is given a narrow uniform prior about the injected value.
| Symbol | bilby name | Injected value | Description |
|---|---|---|---|
| chirp_mass | 28.10 | chirp mass | |
| mass_ratio | 0.806 | mass ratio | |
| a_1 | 0.4 | dimensionless spin magnitude, primary | |
| a_2 | 0.3 | dimensionless spin magnitude, secondary | |
| tilt_1 | 0.5 | spin tilt angle, primary | |
| tilt_2 | 1.0 | spin tilt angle, secondary | |
| phi_12 | 1.7 | azimuthal angle between the two spin vectors | |
| phi_jl | 0.3 | azimuthal angle between total and orbital angular momentum | |
| luminosity_distance | 2000 | luminosity distance | |
| dec | -1.2108 | declination | |
| ra | 1.375 | right ascension | |
| theta_jn | 0.4 | inclination (total angular momentum vs. line of sight) | |
| psi | 2.659 | polarisation angle | |
| phase | 1.3 | coalescence phase | |
| geocent_time | 1126259642.413 | geocentric coalescence time |
Table 1: The 15 sampled parameters of the GW150914-like binary-black-hole problem (standard bilby/nessai setup), with the symbols used in Fig. 1 and the injected true values . Angles are in radians, in , in Mpc, and in seconds (GPS); and follow from the injected component masses , . The added Gaussian noise uses seed 170817.
B Local-geometry and coupling diagnostics
The diagnostics in the right-hand columns of Fig. 1 characterize the curvature and coordinate coupling at the dominant mode. We collect their definitions here.
At an inherent structure (a local minimum of the potential), the Hessian is the matrix of second derivatives of the potential energy,
(29) evaluated here by automatic differentiation ( for LJ-8). The two translational zero modes are projected out before any eigen-analysis. is the local precision (inverse-covariance) of the Boltzmann distribution in the harmonic approximation, .
For the stationary-Gaussian-noise likelihood of App. A, the Fisher information matrix [29] is the noise-weighted overlap of the waveform derivatives,
with the per-detector inner product of Eq. (27). At the injection truth and in the high-SNR (linear-signal) limit, coincides with the Hessian of the negative log-likelihood,
which is how we evaluate it (centered finite differences of the bilby log-likelihood on the unit-cube-rescaled parameters). It is the GW analogue of the LJ Hessian: the local precision at the mode.
To probe coordinate coupling beyond the matrix structure of Eqs. (29)–(30) we draw Laplace samples at the mode — for LJ and for GW, with the pseudoinverse on the nonzero-mode subspace — and compute the pairwise normalized mutual information, normalized by the smaller of the two marginal entropies [30],
The mutual information is the Kullback–Leibler divergence between the joint distribution of the coordinate pair and the product of its marginals, equivalently a difference of Shannon entropies,
where and are the empirical marginal and joint frequencies of a plug-in histogram estimator ( bins per axis; the joint histogram), with the convention . Entropies are in nats; is clipped at 0 to remove the finite-sample negative bias. NMI = 0 iff the coordinates are independent and 1 for an exact functional dependence, giving a scale-free measure of shared information that complements the (Gaussian, second-order) coupling in and .
C The internal mode complexity
This appendix gives the full derivation behind the internal mode complexity [Eq. (20)] introduced in Sec. 4, and behind the failure of the simpler second-moment measure used to motivate it.
Recall the fingerprint of Eq. (19), collecting the sorted minimum-image pair distances of all particles; for , . The sort removes the particle-label permutation symmetry, the minimum-image convention removes the continuous box translation, and reflections of the cell leave the multiset of distances unchanged. The fingerprint therefore collapses each symmetry orbit to a single point, so that variation in across the live set reflects genuine configurational spread rather than relabeling or rigid motion.
At NS iteration we snapshot the live points , compute their fingerprints , and form the empirical fingerprint covariance
with the live-set mean and the orthogonal matrix whose columns are the eigenvectors of the covariance matrix , ordered according to the eigenvalues .

c)
Figure 8: The three concepts of this section on toy distributions. a) A Gaussian cloud (green circles, easy) and a bimodal cloud (red crosses, hard), built with the identical covariance, therefore share the identical : their covariance ellipse (black) coincides and is all that can see, yet the Gaussian is affine-trivial for a flow while the bimodal cloud forces it to split its base into two modes. b) Negentropy J measures the distance from Gaussian (the non-affine work) for six unit-variance densities; J = 0 only for the Gaussian. c) The same six densities placed in (kurtosis, negentropy) space: high J splits by the sign of – multimodality is platykurtic ( , hard) while a single sharp/quantized peak is leptokurtic ( , easy) – so the internal complexity keeps the red region and discards the gray. A doubly-peaked sharp density (cyan, ) stays platykurtic, confirming that sharpness within a multimodal structure does not flip the sign – only a single sharp peak does.
A first, second-moment diagnostic of this ensemble is the eigenvalue participation ratio of the fingerprint covariance
the effective number of fingerprint directions of comparable variance (here and below we drop the iteration superscript on ).
The key observation is that is a function of the covariance alone, i.e. of second moments. Even the simplest flow, whose first layer is affine, , represents an arbitrary Gaussian exactly: if the constrained target were Gaussian the flow could achieve and a generation efficiency , with being the fraction of flow proposals accepted at iteration k, regardless of . This is the Gaussianization view of flows: the residual work after the affine/whitening step is precisely the non-Gaussianity of the target [48, 59]. Hence the entire second-moment structure, and with it , is free for the flow. The rational-quadratic spline couplings we actually use [36] contain this affine map as a special case, so the whitening argument is only a lower bound on their capacity and is free in the same way. measures precisely the part of the geometry that does not contribute to the burden — two clouds with the same covariance but different modality share the same (Fig. 8a).
Ref. [48] defines the irreducible burden as the residual after the best affine map, i.e. the non-Gaussianity of the target. Whiten the cloud onto its principal modes, (unit variance). The non-affine cost along mode is the negentropy
where is the differential entropy. Note that is a scalar functional of the mode's marginal law — a single number per mode quantifying its total departure from Gaussianity, not a function of the coordinate (the subscript indexes the mode). It equals exactly — the density-ratio variance the flow must generate along that mode, the per-mode version of the burden (with the constrained target and the flow's base density), and the standard non-Gaussianity contrast of independent component analysis and projection pursuit [60, 61]. Using the classical cumulant (moment) approximation of negentropy [62] – a scalar built from the (scalar) third and fourth moments of z,
In Fig. 8b the curves are the densities ; the negentropy of each — Eq. (37), the integrated gap to the Gaussian — is the vertical axis of panel Fig. 8c. It vanishes only for the Gaussian and grows with any departure from it.
Throughout, denotes the Spearman rank correlation between a candidate predictor and the per-iteration generation burden — the number of flow proposals needed to fill the pool — evaluated over all NS iterations. By this measure the total negentropy fails as a predictor (): it is dominated by the leptokurtic () contribution of the deep, collapsed basin, where the sorted pair distances lock onto discrete lattice values and produce sharply peaked, but easy, marginals. The generation-relevant structure is the opposite tail: multimodality, i.e. several distinct basins occupied along a principal direction, which makes a marginal platykurtic (; Fig. 8c) – the same negative-excess-kurtosis signature exploited by the bimodality coefficient [63]. The negative part of the excess kurtosis quantifies this multimodality; summing it over the significant modes (threshold excludes degenerate ones) recovers the internal mode complexity of Eq. (20). The decisive point behind its success is that the two halves of the excess kurtosis carry opposite-signed predictive signal: the sharp-peak (leptokurtic) complement runs the other way, , because it grows in the deep, easy basins where the burden is low. Their mixture, the full negentropy , therefore inherits the wrong sign () and fails — not because the multimodal signal is absent but because the leptokurtic part, larger in magnitude, dominates it. That the two signs predict in opposite directions, rather than merely with different strength, is what confirms the split is physical and not a fit artifact.
This split is ultimately a property of the spline flow, not of affine Gaussianization alone. The monotone spline couplings reshape unimodal non-Gaussianity — skew, peakedness, the sharp leptokurtic basins — by a gentle, well-conditioned deformation that merely concentrates mass, which is why the full non-Gaussianity , the residual for a purely affine flow, overcounts the burden. A platykurtic marginal demands the opposite operation: generating it from the flow's unimodal base means splitting mass into separated basins through near-singular, precisely placed maps that coupling flows represent poorly — the more so for the combinatorial, coupled multi-basin structure of atomistic targets. The sign of the excess kurtosis thus tracks a genuine easy/hard divide of the spline itself — concentrate versus split — so the operative residual for our flow is the multimodality , not ; for a purely affine flow, by contrast, the sharp leptokurtic basins would be costly too.
References
[1] John Skilling. "Nested Sampling". In: AIP Conf. Proc. 735.1 (Nov. 2004), pp. 395–405. ISSN: 0094-243X. DOI: 10.1063/1.1835238. URL: https://aip.scitation.org/doi/abs/10.1063/1.1835238 (visited on 02/11/2022).
[2] Lívia B. Pártay, Albert P. Bartók, and Gábor Csányi. "Efficient Sampling of Atomic Configurational Spaces". en. In: The Journal of Physical Chemistry B 114.32 (Aug. 2010), pp. 10502–10512. ISSN: 1520-6106, 1520-5207. DOI: 10.1021/jp1012973. URL: https://pubs.acs.org/doi/10.1021/jp1012973 (visited on 02/15/2023).
[3] Robert J. N. Baldock, Noam Bernstein, K. Michael Salerno, Lívia B. Pártay, and Gábor Csányi. "Constant-pressure nested sampling with atomistic dynamics". In: Phys. Rev. E 96.4 (Oct. 2017), p. 043311. DOI: 10.1103/PhysRevE.96.043311. URL: https://link.aps.org/doi/10.1103/PhysRevE.96.043311 (visited on 05/16/2022).
[4] Lívia B. Pártay, Albert P. Bartók, and Gábor Csányi. "Nested sampling for materials: The case of hard spheres". In: Phys. Rev. E 89.2 (Feb. 2014), p. 022302. DOI: 10.1103/PhysRevE.89.022302. URL: https://link.aps.org/doi/10.1103/PhysRevE.89.022302 (visited on 04/11/2022).
[5] Jordan Dorrell and Livia B. Pártay. "Thermodynamics and the potential energy landscape: case study of small water clusters". In: Phys. Chem. Chem. Phys. 21.14 (Apr. 2019), pp. 7305–7312. ISSN: 1463-9084. DOI: 10.1039/C9CP00474B. URL: https://pubs.rsc.org/en/content/articlelanding/2019/cp/c9cp00474b (visited on 05/18/2022).
[6] George A. Marchant, Miguel A. Caro, Bora Karasulu, and Livia B. Pártay. "Exploring the configuration space of elemental carbon with empirical and machine learned interatomic potentials". In: npj Comput. Mater. 9.1 (July 2023), pp. 1–12. ISSN: 2057-3960. DOI: 10.1038/s41524-023-01081-w. URL: https://www.nature.com/articles/s41524-023-01081-w (visited on 10/17/2023).
[7] Nico Unglert, Jesús Carrete, Livia B. Pártay, and Georg K. H. Madsen. "Neural-network force field backed nested sampling: {Study} of the silicon phase diagram". In: Phys. Rev. Mater. 7.12 (Dec. 2023), p. 123804. DOI: 10.1103/PhysRevMaterials.7.123804. URL: https://link.aps.org/doi/10.1103/PhysRevMaterials.7.123804 (visited on 01/12/2024).
[8] Nico Unglert, Michael Ketter, and Georg K. H. Madsen. "Active learning potentials for first-principles phase diagrams using replica-exchange nested sampling". In: npj Comput. Mater. 12.1 (Feb. 2026), p. 107. ISSN: 2057-3960. DOI: 10.1038/s41524-026-01989-z. URL: https://www.nature.com/articles/s41524-026-01989-z (visited on 03/15/2026).
[9] Stefano Martiniani, Jacob D. Stevenson, David J. Wales, and Daan Frenkel. "Superposition Enhanced Nested Sampling". In: Phys. Rev. X 4.3 (Aug. 2014), p. 031034. DOI: 10.1103/PhysRevX.4.031034. URL: https://link.aps.org/doi/10.1103/PhysRevX.4.031034 (visited on 02/06/2022).
[10] N. Unglert, L. B. Pártay, and G. K. H. Madsen. "Replica Exchange Nested Sampling". In: J. Chem. Theory Comput. 21.15 (Aug. 2025), pp. 7304–7319. ISSN: 1549-9618. DOI: 10.1021/acs.jctc.5c00588. URL: https://doi.org/10.1021/acs.jctc.5c00588 (visited on 09/09/2025).
[11] Michael J. Williams, John Veitch, and Chris Messenger. "Nested sampling with normalizing flows for gravitational-wave inference". en. In: Physical Review D 103.10 (May 2021), p. 103006. ISSN: 2470-0010, 2470-0029. DOI: 10.1103/PhysRevD.103.103006. URL: https://link.aps.org/doi/10.1103/PhysRevD.103.103006 (visited on 02/15/2023).
[12] Michael J Williams, John Veitch, and Chris Messenger. "Importance nested sampling with normalising flows". en. In: Machine Learning: Science and Technology 4.3 (Sept. 2023), p. 035011. ISSN: 2632-2153. DOI: 10.1088/2632-2153/acd5aa. URL: https://iopscience.iop.org/article/10.1088/2632-2153/acd5aa (visited on 09/03/2025).
[13] Pablo Lemos, Nikolay Malkin, Will Handley, Yoshua Bengio, Yashar Hezaveh, and Laurence Perreault-Levasseur. Improving Gradient-guided Nested Sampling for Posterior Inference. en. arXiv:2312.03911 [cs]. Dec. 2023. DOI: 10.48550/arXiv.2312.03911. URL: http://arxiv.org/abs/2312.03911 (visited on 10/21/2025).
[14] Metha Prathaban, Harry Bevins, and Will Handley. "Accelerated nested sampling with posterior repartitioning and -flows for gravitational waves". en. In: Monthly Notices of the Royal Astronomical Society 541.1 (June 2025), pp. 200–213. ISSN: 0035-8711, 1365-2966. DOI: 10.1093/mnras/staf962. URL: https://academic.oup.com/mnras/article/541/1/200/8163830 (visited on 08/28/2026).
[15] Rajneil Baruah, Subhadeep Mondal, Sunando Kumar Patra, and Satyajit Roy. "Normalizing flow-assisted nested sampling on Type-II Seesaw model". en. In: The European Physical Journal C 85.7 (July 2025), p. 816. ISSN: 1434-6052. DOI: 10.1140/epjc/s10052-025-14502-5. URL: https://link.springer.com/10.1140/epjc/s10052-025-14502-5 (visited on 08/28/2026).
[16] Eleonora Villa, Golam Mohiuddin Shaifullah, Andrea Possenti, and Carmelita Carbone. "Improving Bayesian inference in PTA data analysis: Importance nested sampling with Normalizing Flows". en. In: Astronomy and Computing 55 (Apr. 2026), p. 101061. ISSN: 22131337. DOI: 10.1016/j.ascom.2026.101061. URL: https://linkinghub.elsevier.com/retrieve/pii/S221313372600003X (visited on 08/28/2026).
[17] Danilo Jimenez Rezende and Shakir Mohamed. Variational Inference with Normalizing Flows. arXiv:1505.05770 [stat]. June 2016. DOI: 10.48550/arXiv.1505.05770. URL: http://arxiv.org/abs/1505.05770 (visited on 09/30/2025).
[18] George Papamakarios, Eric Nalisnick, Danilo Jimenez Rezende, Shakir Mohamed, and Balaji Lakshminarayanan. "Normalizing Flows for Probabilistic Modeling and Inference". In: J. Mach. Learn. Res. 22.57 (2021), pp. 1–64. ISSN: 1533-7928. URL: http://jmlr.org/papers/v22/19-1028.html (visited on 10/13/2025).
[19] Frank Noé, Simon Olsson, Jonas Köhler, and Hao Wu. "Boltzmann generators: Sampling equilibrium states of many-body systems with deep learning". en. In: Science 365.6457 (Sept. 2019), eaaw1147. ISSN: 0036-8075, 1095-9203. DOI: 10.1126/science.aaw1147. URL: https://www.sciencemag.org/lookup/doi/10.1126/science.aaw1147 (visited on 07/30/2020).
[20] Peter Wirsnberger, Andrew J. Ballard, George Papamakarios, Stuart Abercrombie, Sébastien Racanière, Alexander Pritzel, Danilo Jimenez Rezende, and Charles Blundell. "Targeted free energy estimation via learned mappings". en. In: The Journal of Chemical Physics 153.14 (Oct. 2020). Number: 14 arXiv: 2002.04913, p. 144112. ISSN: 0021-9606, 1089-7690. DOI: 10.1063/5.0018903. URL: http://arxiv.org/abs/2002.04913 (visited on 10/22/2021).
[21] Marylou Gabrié, Grant M. Rotskoff, and Eric Vanden-Eijnden. "Adaptive Monte Carlo augmented with normalizing flows". en. In: arXiv:2105.12603 [cond-mat, physics:physics] (May 2021). arXiv: 2105.12603. URL: http://arxiv.org/abs/2105.12603 (visited on 09/09/2021).
[22] Peter Wirsnberger, George Papamakarios, Borja Ibarz, Sébastien Racanière, Andrew J Ballard, Alexander Pritzel, and Charles Blundell. "Normalizing flows for atomic solids". In: Mach. Learn.: Sci. Technol. 3.2 (June 2022), p. 025009. ISSN: 2632-2153. DOI: 10.1088/2632-2153/ac6b16. URL: https://iopscience.iop.org/article/10.1088/2632-2153/ac6b16 (visited on 02/17/2023).
[23] Maximilian Schebek, Michele Invernizzi, Frank Noé, and Jutta Rogal. "Efficient mapping of phase diagrams with conditional Boltzmann Generators", en. In: Machine Learning: Science and Technology 5.4 (Dec. 2024), p. 045045. ISSN: 2632-2153. DOI: 10.1088/2632-2153/ad849d. URL: https://iopscience.iop.org/article/10.1088/2632-2153/ad849d (visited on 08/21/2025).
[24] Sebastian Falkner, Alessandro Coretti, Salvatore Romano, Phillip L Geissler, and Christoph Dellago. "Conditioning Boltzmann generators for rare event sampling". en. In: Mach. Learn. (2023).
[25] Solomon Asghar, Qing-Xiang Pei, Giorgio Volpe, and Ran Ni. "Efficient rare event sampling with unsupervised normalizing flows". en. In: Nature Machine Intelligence 6.11 (Nov. 2024), pp. 1370–1381. ISSN: 2522-5839. DOI: 10.1038/s42256-024-00918-3. URL: https://www.nature.com/articles/s42256-024-00918-3 (visited on 06/30/2026).
[26] Jonas Kohler, Leon Klein, and Frank Noe. "Equivariant Flows: Exact Likelihood Generative Learning for Symmetric Densities". en. In: (2020).
[27] Yan-Wei Li. "Phase behavior of Lennard-Jones particles in two dimensions". en. In: PHYSICAL REVIEW E (2020).
[28] B. P. Abbott et al. "Observation of Gravitational Waves from a Binary Black Hole Merger". In: Phys. Rev. Lett. 116 (6 Feb. 2016), p. 061102. DOI: 10.1103/PhysRevLett.116.061102. URL: https://link.aps.org/doi/10.1103/PhysRevLett.116.061102.
[29] Michele Vallisneri. "Use and abuse of the Fisher information matrix in the assessment of gravitational-wave parameter-estimation prospects". In: Physical Review D 77.4 (2008), p. 042001. DOI: 10.1103/PhysRevD.77.042001. URL: https://link.aps.org/doi/10.1103/PhysRevD.77.042001.
[30] Nguyen Xuan Vinh, Julien Epps, and James Bailey. "Information Theoretic Measures for Clusterings Comparison: Variants, Properties, Normalization and Correction for Chance". In: Journal of Machine Learning Research 11.95 (2010), pp. 2837–2854. ISSN: 1533-7928. URL: http://jmlr.org/papers/v11/vinh10a.html (visited on 07/22/2026).
[31] J. Veitch et al. "Parameter estimation for compact binaries with ground-based gravitational-wave observations using the LALInference software library". In: Physical Review D 91.4 (Feb. 2015), p. 042003. DOI: 10.1103/PhysRevD.91.042003. URL: https://link.aps.org/doi/10.1103/PhysRevD.91.042003 (visited on 05/26/2026).
[32] John Skilling. "Nested sampling for general Bayesian computation". In: Bayesian Anal. 1.4 (Dec. 2006), pp. 833–859. ISSN: 1936-0975, 1931-6690. DOI: 10.1214/06-BA127. URL: https://projecteuclid.org/journals/bayesian-analysis/volume-1/issue-4/Nested-sampling-for-general-Bayesian-computation/10.1214/06-BA127.full (visited on 02/07/2022).
[33] Greg Ashton et al. "Nested sampling for physical scientists". en. In: Nature Reviews Methods Primers 2.1 (May 2022), p. 39. ISSN: 2662-8449. DOI: 10.1038/s43586-022-00121-x. URL: https://www.nature.com/articles/s43586-022-00121-x (visited on 02/10/2026).
[34] Leslie Kish. Survey Sampling. Nashville, TN: John Wiley & Sons, Jan. 1966.
[35] Ilia Shumailov, Zakhar Shumaylov, Yiren Zhao, Nicolas Papernot, Ross Anderson, and Yarin Gal. "AI models collapse when trained on recursively generated data". en. In: Nature 631.8022 (July 2024), pp. 755–759. ISSN: 0028-0836, 1476-4687. DOI: 10.1038/s41586-024-07566-y. URL: https://www.nature.com/articles/s41586-024-07566-y (visited on 06/30/2026).
[36] Conor Durkan, Artur Bekasov, Iain Murray, and George Papamakarios. Neural Spline Flows. en. arXiv:1906.04032 [stat]. Dec. 2019. DOI: 10.48550/arXiv.1906.04032. URL: http://arxiv.org/abs/1906.04032 (visited on 08/17/2025).
[37] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Lukasz Kaiser, and Illia Polosukhin. "Attention is All you Need". en. In: (2017), p. 11.
[38] Nicolas Chopin and Omiros Papaspiliopoulos. An Introduction to Sequential Monte Carlo. Springer Series in Statistics. Cham: Springer, 2020. ISBN: 978-3-030-47845-2. DOI: 10.1007/978-3-030-47845-2. URL: https://doi.org/10.1007/978-3-030-47845-2.
[39] Maximilian Schebek, Frank Noé, and Jutta Rogal. "Scalable Boltzmann generators for equilibrium sampling of large-scale materials". en. In: Nature Communications 17.1 (June 2026), p. 5010. ISSN: 2041-1723. DOI: 10.1038/s41467-026-73900-9. URL: https://www.nature.com/articles/s41467-026-73900-9 (visited on 06/09/2026).
[40] Laurence I Midgley, Vincent Stimper, Gregor N C Simm, Bernhard Scholkopf, and Jose Miguel Hernandez-Lobato. "FLOW ANNEALED IMPORTANCE SAMPLING BOOTSTRAP". en. In: (2023).
[41] Gerhard Jung, Giulio Biroli, and Ludovic Berthier. "Normalizing flows as an enhanced sampling method for atomistic supercooled liquids". en. In: Mach. Learn. (2024).
[42] Alessandro Coretti, Sebastian Falkner, Phillip L. Geissler, and Christoph Dellago. "Learning mappings between equilibrium states of liquid systems using normalizing flows". In: The Journal of Chemical Physics 162.18 (May 2025), p. 184102. ISSN: 0021-9606. DOI: 10.1063/5.0253034. URL: https://doi.org/10.1063/5.0253034 (visited on 06/07/2025).
[43] Luigi De Santis, John Russo, and Andrea Ninarello. "Sampling the liquid–gas critical point with Boltzmann generators". en. In: The Journal of Chemical Physics 164.9 (Mar. 2026), p. 094108. ISSN: 0021-9606, 1089-7690. DOI: 10.1063/5.0314239. URL: https://pubs.aip.org/jcp/article/164/9/094108/3381947/Sampling-the-liquid-gas-critical-point-with (visited on 03/04/2026).
[44] Alessandro Coretti, Sebastian Falkner, Jan Weinreich, Christoph Dellago, and O. Anatole von Lilienfeld. "Boltzmann Generators and the New Frontier of Computational Sampling in Many-Body Systems". In: KIM Review 2 (2024). DOI: 10.25950/bfa99422. URL: https://doi.org/10.25950/bfa99422.
[45] Richard John, Lukas Herron, and Pratyush Tiwary. "A comparison of probabilistic generative frameworks for molecular simulations". en. In: The Journal of Chemical Physics 162.11 (Mar. 2025), p. 114121. ISSN: 0021-9606, 1089-7690. DOI: 10.1063/5.0249683. URL: https://pubs.aip.org/jcp/article/162/11/114121/3340279/A-comparison-of-probabilistic-generative (visited on 07/01/2026).
[46] Matteo Turisini, Mirko Cestari, and Giorgio Amati. "LEONARDO: A Pan-European Pre-Exascale Supercomputer for HPC and AI applications". en. In: Journal of large-scale research facilities JLSRF 9.1 (Jan. 2024). ISSN: 2364-091X. DOI: 10.17815/jlsrf-8-186. URL: https://jlsrf.org/index.php/lsf/article/view/186 (visited on 10/27/2025).
[47] Michael J. Williams. nessai: Nested Sampling with Artificial Intelligence. Version latest. Feb. 2021. DOI: 10.5281/zenodo.4550693. URL: https://doi.org/10.5281/zenodo.4550693.
[48] Chenlin Meng, Yang Song, Jiaming Song, and Stefano Ermon. "Gaussianization Flows". en. In: Proceedings of the Twenty Third International Conference on Artificial Intelligence and Statistics. PMLR, June 2020, pp. 4336–4345. URL: https://proceedings.mlr.press/v108/meng20b.html (visited on 06/03/2026).
[49] Luigi Fogliani, Bruno Loureiro, and Marylou Gabrié. Annealing in variational inference mitigates mode collapse: A theoretical study on Gaussian mixtures. en. arXiv:2602.12923 [stat.ML]. Feb. 2026. DOI: 10.48550/arXiv.2602.12923. URL: http://arxiv.org/abs/2602.12923 (visited on 08/28/2026).
[50] Dongze Wu and Yao Xie. Annealing Flow Generative Models Towards Sampling High-Dimensional and Multi-Modal Distributions. en. arXiv:2409.20547 [stat.ML]. May 2025. DOI: 10.48550/arXiv.2409.20547. URL: http://arxiv.org/abs/2409.20547 (visited on 08/28/2026).
[51] Yihang Wang, Chris Chi, and Aaron R Dinner. “Mitigating mode collapse in normalizing flows by annealing with an adaptive schedule: Application to parameter estimation”. en. In: (May 2025).
[52] Selma Moqvist, Weilong Chen, Mathias Schreiner, Feliks Nüske, and Simon Olsson. “Thermodynamic Interpolation: A Generative Approach to Molecular Thermodynamics and Kinetics”. en. In: Journal of Chemical Theory and Computation 21.5 (Mar. 2025), pp. 2535–2545. ISSN: 1549-9618, 1549-9626. DOI: 10.1021/acs.jctc.4c01557. URL: https://pubs.acs.org/doi/10.1021/acs.jctc.4c01557 (visited on 08/28/2026).
[53] Juehang Qin, Shixiao Liang, and Christopher Tunnell. FlowVAT: Normalizing Flow Variational Inference with Affine-Invariant Tempering. en. arXiv:2505.10466 [stat]. May 2025. DOI: 10.48550/arXiv.2505.10466. URL: http://arxiv.org/abs/2505.10466 (visited on 08/16/2025).
[54] Ilyes Batatia, David P. Kovacs, Gregor Simm, Christoph Ortner, and Gabor Csanyi. “MACE: Higher Order Equivariant Message Passing Neural Networks for Fast and Accurate Force Fields”. en. In: Advances in Neural Information Processing Systems 35 (Dec. 2022), pp. 11423–11436. URL: https://proceedings.neurips.cc/paper_files/paper/2022/hash/4a36c3c51af11ed9f34615b81edb5bbc-Abstract-Conference.html (visited on 10/01/2025).
[55] Yan Wang, Ling Guo, Hao Wu, and Tao Zhou. “Energy-based diffusion generator for efficient sampling of Boltzmann distributions”. In: Neural Networks 194 (2026), p. 108126. ISSN: 0893-6080. DOI: https://doi.org/10.1016/j.neunet.2025.108126. URL: https://www.sciencedirect.com/science/article/pii/S0893608025010068.
[56] Eric Thrane and Colm Talbot. “An introduction to Bayesian inference in gravitational-wave astronomy: Parameter estimation, model selection, and hierarchical models”. In: Publications of the Astronomical Society of Australia 36 (Jan. 2019), e010. ISSN: 1323-3580, 1448-6083. DOI: 10.1017/pasa.2019.2. URL: https://www.cambridge.org/core/journals/publications-of-the-astronomical-society-of-australia/article/an-introduction-to-bayesian-inference-in-gravitationalwave-astronomy-parameter-estimation-model-selection-and-hierarchical-models/D459F61D8C37F0BEF86D60F42A418304 (visited on 05/27/2026).
[57] Gregory Ashton et al. “Bilby: A User-friendly Bayesian Inference Library for Gravitational-wave Astronomy”. en. In: The Astrophysical Journal Supplement Series 241.2 (Apr. 2019), p. 27. ISSN: 0067-0049. DOI: 10.3847/1538-4365/ab06fc. URL: https://doi.org/10.3847/1538-4365/ab06fc (visited on 05/27/2026).
[58] Colm Talbot et al. bilby-dev/bilby: v.2.7.1. Nov. 2025. DOI: 10.5281/zenodo.17533961. URL: https://doi.org/10.5281/zenodo.17533961.
[59] Scott Chen and Ramesh Gopinath. “Gaussianization”. In: Advances in Neural Information Processing Systems. Ed. by T. Leen, T. Dietterich, and V. Tresp. Vol. 13. MIT Press, 2000. URL: https://proceedings.neurips.cc/paper_files/paper/2000/file/3c947bc2f7ff007b86a9428b74654de5-Paper.pdf.
[60] Pierre Comon. “Independent component analysis, A new concept?” In: Signal Processing. Higher Order Statistics 36.3 (1994), pp. 287–314. ISSN: 0165-1684. DOI: 10.1016/0165-1684(94)90029-9. URL: https://www.sciencedirect.com/science/article/pii/0165168494900299 (visited on 06/03/2026).
[61] Aapo Hyvärinen. “New Approximations of Differential Entropy for Independent Component Analysis and Projection Pursuit”. In: ().
[62] M. C. Jones and Robin Sibson. “What is Projection Pursuit?” In: Journal of the Royal Statistical Society. Series A (General) 150.1 (1987), pp. 1–37. ISSN: 0035-9238. DOI: 10.2307/2981662. URL: https://www.jstor.org/stable/2981662 (visited on 06/03/2026).
[63] Roland Pfister, Katharina A. Schwarz, Markus Janczyk, Rick Dale, and Jon Freeman. "Good things peak in pairs: a note on the bimodality coefficient". In: Frontiers in Psychology 4 (2013). ISSN: 1664-1078. DOI: 10.3389/fpsyg.2013.00700. URL: https://www.frontiersin.org/journals/psychology/articles/10.3389/fpsyg.2013.00700/full (visited on 06/03/2026).