arXiv:2608.13506cond-mat.stat-mechAug 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2608.13506

Equivariant learning of a transferable three-dimensional classical density functional

Bingqing Cheng

Abstract

Liquids exhibit collective behavior that depends sensitively on thermodynamic conditions, interfaces and confinement, yet predicting each new state commonly requires a separate atomistic simulation. Classical density functional theory offers a reusable variational description, but its central excess free-energy functional is generally unknown, and learned approximations have largely remained restricted to planar or lower-dimensional settings. Here we show that this functional can be learned directly from fully three-dimensional equilibrium density fields while preserving spatial symmetry and variational consistency, without free-energy or chemical-potential labels. A single learned functional transfers across temperatures, system sizes and statistical ensembles, and recovers structure factors, the equation of state, liquid–vapor coexistence and interfacial broadening, none of which are used as training targets. Applied to complex three-dimensional geometries, it predicts the non-monotonic force associated with formation and rupture of a solvent-depleted bridge between colloids and adsorption in an interconnected gyroid pore. These results demonstrate that equilibrium density data can be converted into a transferable thermodynamic generator connecting microscopic liquid structure to response, phase behavior and collective phenomena.

I Introduction

Liquids are paradigmatic many-body systems: even when interparticle interactions are simple, collective structure and thermodynamics emerge from the correlated configurations of all particles. These correlations connect molecular organization to collective behavior across length scales and are strongly reshaped by interfaces and confinement. Atomistic simulations can resolve a chosen state with microscopic accuracy, but must be repeated across thermodynamic conditions and geometries, motivating a reusable field-level theory.

Density functional theory provides such a description by replacing the full many-particle distribution with a variational theory of a one-body density. Electronic density functional theory reformulates the quantum-mechanical ground-state problem in terms of the electron density [1, 2]; classical density functional theory (cDFT) is its statistical-mechanical analogue for the equilibrium number density ρ(r)\rho(\mathbf{r}) [3]. Once known, the intrinsic free-energy functional determines equilibrium density fields, thermodynamics and response within a common framework.

The difficulty is that this functional is not known. In electronic DFT, exchange and correlation must be approximated; in classical DFT, the ideal-gas contribution is exact, but the interaction-induced excess free-energy functional Fexc[ρ]F_{\mathrm{exc}}[\rho] remains unknown for realistic three-dimensional fluids. Fundamental measure theory provides highly accurate functionals for hard-sphere systems [4, 5], whereas attractive and long-ranged interactions are commonly treated using perturbative or mean-field approximations [6] whose accuracy is system- and state-dependent. Constructing an accurate Fexc[ρ]F_{\mathrm{exc}}[\rho] while preserving the variational structure of cDFT is therefore the central theoretical challenge.

Machine learning offers a data-driven route to approximate this missing functional using atomistic simulation data [7]. Early work fitted nonlocal free-energy corrections from equilibrium planar density profiles [8, 9]. Related approaches have constructed transferable functional approximations for molecular and ionic liquids [10, 11, 12], or learned free energies by matching pair correlations [13, 14, 15]. Neural operators instead learn forward and inverse potential–density maps without constructing an explicit thermodynamic functional [16, 17]. Notably, neural functional theory directly learns the one-body direct correlation functional c(1)(r;[ρ])=−β δFexc/δρ(r)c^{(1)}(\mathbf{r};[\rho])=-\beta\,\delta F_{\mathrm{exc}}/\delta\rho(\mathbf{r}) [18]. In its original formulation, grand-canonical Monte Carlo (GCMC) samples of a three-dimensional hard-sphere fluid were generated under randomized one-dimensional external fields Vext(z)V_{\mathrm{ext}}(z). The imposed chemical potential and external field provided reference c(1)(z)c^{(1)}(z) labels through the equilibrium Euler–Lagrange balance, and a shared neural network mapped local windows of the planar profile ρ(z)\rho(z) to c(1)(z)c^{(1)}(z). Subsequent work incorporated temperature and system size to construct thermal functionals [19], treated the pair interaction as a functional input [20], generalized the representation to binary mixtures [21], or inferred the chemical potentials as latent variables so that canonical molecular dynamics (MD) data could be used [22]. Neural cDFT has also been extended from planar fields to two-dimensional inhomogeneities using convolutional layers [23], and spherical symmetry [24].

Despite this progress, most learned classical density functionals remain restricted to planar or two-dimensional inhomogeneity, limiting their direct application to fully three-dimensional settings such as solvation, nucleation, demixing and fluids in contact with nonplanar surfaces. Moving to three dimensions also makes physical symmetry central: the scalar free energy and its functional derivatives should transform consistently under translations and the rotations and reflections of the Cartesian grid.

Here we introduce Equi-cDFT, an Energy-first, EQUIvariant framework for learning the excess free-energy functional Fexc[ρ,T]F_{\mathrm{exc}}[\rho,T] as an extensive scalar on a three-dimensional Cartesian grid. Finite-range density environments are encoded by cubic-symmetry-adapted representations, making the scalar functional invariant and its functional derivatives equivariant under rotations and reflections of the cubic lattice. To learn from canonical MD density fields without chemical-potential labels, we train through local chemical-potential balance and eliminate the unknown constant chemical potential analytically. Minimization and functional differentiation of the resulting scalar then provide equilibrium densities and direct correlation functions within one variational model.

We demonstrate the approach for the Lennard–Jones fluid truncated and shifted at 2.5σ2.5\sigma (LJTS), a prototypical continuum model in which repulsive packing and cohesive attraction generate rich phase and interfacial behavior [19]. Accurate reference equations of state and coexistence data are available for this model [25, 26], making it a controlled but stringent test of whether one learned functional can recover consistent structure and thermodynamics across diverse conditions.

We first test transfer across temperature, system size and statistical ensemble (see Methods section). We then ask whether physical information absent from training emerges from the learned functional, including the structure factor, equation of state, liquid–vapor coexistence and free interfaces. Finally, we apply the same functional, without retraining, to two fully three-dimensional problems: solvent-mediated interactions between colloids and adsorption in a periodic gyroid pore.