Scalable Multitemperature Free Energy Sampling of Classical Ising Spin States
Ping Tuo, Zezhu Zeng, Jiale Chen, Bingqing Cheng
TL;DR
This work introduces alchemicalFES, a discrete flow matching framework designed for sampling free energy surfaces in lattice systems with discrete spins. By formulating flow matching on the Ising simplex with a CNN-based vector-field model, the approach maps a uniform Dirichlet prior to Boltzmann-distributed spin configurations, enabling efficient, single-model generation across temperatures and lattice sizes. The authors demonstrate size-scalable, multitemperature FES generation for the 2D Ising model, leveraging classifier-free guidance to blend conditional and unconditional flows and achieve accurate FES and thermodynamic observables over a broad temperature range, including high-temperature and some low-temperature regimes. The method holds promise for low-cost, scalable free energy sampling in discrete systems and suggests extensions to more complex alchemical spaces in crystalline materials, with code openly available at the provided repository.
Abstract
Generative models have advanced significantly in sampling material systems with continuous variables, such as atomistic structures. However, their application to discrete variables, like atom types or spin states, remains underexplored. In this work, we introduce a discrete flow matching model, tailored for systems with discrete phase-space coordinates (e.g., the Ising model or a multicomponent system on a lattice). This approach enables a single model to sample free energy surfaces over a wide temperature range with minimal training overhead, and the model generation is scalable to larger lattice sizes than those in the training set. We demonstrate our approach on the 2D Ising model, showing efficient and reliable free energy sampling. These results highlight the potential of flow matching for low-cost, scalable free energy sampling in discrete systems and suggest promising extensions to alchemical degrees of freedom in crystalline materials. The codebase developed for this work is openly available at https://github.com/tuoping/alchemicalFES.
