arXiv:2609.03193cond-mat.stat-mechSep 2026

Manuscript Offprint

arXiv:2609.03193

Generative Nested Sampling of Atomistic Thermodynamic Landscapes

Alessandro Coretti, Nico Unglert, Sebastian Falkner, Georg K. H. Madsen, Christoph Dellago

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

‡nico.unglert@tuwien.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.

References (62)