Determining the chemical potential via universal density functional learning
Florian Sammüller, Matthias Schmidt
TL;DR
The paper tackles determining equilibrium chemical potentials across datasets of inhomogeneous classical fluids by learning a neural representation of the universal one-body direct correlation functional $c_1(\mathbf{r}; [\rho], T)$ while concurrently estimating system-specific chemical potentials $\mu_k$. It introduces an augmented density-functional learning framework where the loss $\mathcal{L}_{\mathrm{EL}} = \sum_k \| \ln \rho_k(\mathbf{r}) + \beta_k V_{\mathrm{ext}}^{(k)}(\mathbf{r}) - \beta_k \mu_k - c_1(\mathbf{r}; [\rho_k], T_k) \|_2^2$ drives simultaneous optimization of the neural $c_1$ and the $\mu_k$, exploiting the fact that $\beta\mu$ acts as an additive offset to $c_1$. This enables recovering unknown chemical potentials solely from canonical data $(T_k, V_{\mathrm{ext}}^{(k)}, \rho_k)$ without resorting to grand-canonical simulations, yielding neural functionals applicable to both canonical and grand-canonical contexts. Demonstrations on 1D hard rods and 3D truncated Lennard-Jones fluids show accurate recovery of $\beta\mu_k$ and faithful predictions of density profiles, including interfacial coexistence, with results comparable to training on grand-canonical data. The approach broadens the use of neural density functionals for efficient, high-throughput chemical-potential measurements and multiscale predictions in soft matter and solvation problems, using canonical simulation data to build robust density-function mappings.
Abstract
We demonstrate that the machine learning of density functionals allows one to determine simultaneously the equilibrium chemical potential across simulation datasets of inhomogeneous classical fluids. Minimization of a loss function based on an Euler-Lagrange equation yields both the universal one-body direct correlation functional, which is represented locally by a neural network, as well as the system-specific unknown chemical potential values. The method can serve as an efficient alternative to conventional computational techniques of measuring the chemical potential. It also facilitates using canonical data from Brownian dynamics, molecular dynamics, or Monte Carlo simulations as a basis for constructing neural density functionals, which are fit for accurate multiscale prediction of soft matter systems in equilibrium.
