arXiv:2610.17975physics.chem-phOct 2026

Manuscript Offprint

arXiv:2610.17975

All-electron machine-learned orbital-free density functional for periodic CHNO systems

Marc K. Ickler, Andreas Hermann, Fred A. Hamprecht

Abstract

We introduce STRUCTURES-P, a machine-learned all-electron orbital-free density functional for periodic CHNO systems. Electrostatics are evaluated analytically in an atom-centered Gaussian basis, while an equivariant network learns the kinetic and exchange-correlation energy from energies and gradients of non-ground-state densities. Minimizing the functional from a superposition of atomic densities recovers the Kohn–Sham ground state: on held-out crystals, the density error falls from 6.7% to 0.4% of the electron count and the energy error reaches 0.25 mHa per atom, half that of a same-architecture interatomic potential. A single functional can be trained for both isolated molecules and periodic systems, and the model generalizes to larger unit cells. It largely preserves relative-energy rankings and reproduces convex-hull vertices on the tested H–N composition slice. Together, these results demonstrate the viability of machine-learned all-electron orbital-free DFT for variational density optimization and energy evaluation in fixed-geometry solids.

1 Introduction

Kohn–Sham density functional theory (KS-DFT) 1^{1} is central to predicting material properties, but its reliance on orbitals makes large candidate-structure searches computationally expensive. Orbital-free DFT (OF-DFT) 2^{2} instead minimizes an explicit density functional for the total energy over the electron density itself, without introducing orbitals, yielding the ground-state density as the minimizer and the ground-state energy as the minimum. We refer to the iterative procedure for this variational minimization as density optimization. By avoiding the repeated diagonalization of the Kohn–Sham Hamiltonian, whose cost scales nominally as the cube of the system size, OF-DFT opens a route to lower-scaling electronic-structure calculations 3^{3}. Its broader application, however, remains limited by the lack of transferable approximations to the noninteracting kinetic energy, particularly for covalently bonded systems and for the non-ground-state densities encountered during variational optimization 4^{4}. Here we show that a machine-learned functional can be variationally minimized over the explicit all-electron density of three-dimensional periodic crystals. Our model, STRUCTURES-P, combines analytically evaluated periodic electrostatics with a learned kinetic plus exchange-correlation energy, and reaches sub-millihartree-per-atom energy errors on held-out CHNO crystals.

Conventional kinetic-energy density functionals build on the local Thomas–Fermi and gradient-dependent von Weizsäcker approximations 5−7^{5-7}. The nonlocal Wang–Teter and Wang–Govind–Carter functionals use the linear response of the uniform electron gas and are successful particularly for nearly-free-electron metals 8,9^{8,9}. The Huang–Carter functional extends this approach to semiconductors and covalent solids 10^{10}, while Laplacian-level semilocal functionals provide another route beyond generalized-gradient approximations 11^{11}. These functionals have enabled random structure searching for elemental metals 12^{12}. However, accuracy remains strongly dependent on material class and bonding environment, and molecular bonding remains difficult to describe even at equilibrium geometries 4,13^{4,13}. Recent inversion methods recover kinetic and Pauli potentials for prescribed periodic densities, with demonstrations in one-dimensional systems, but do not supply a transferable explicit functional 14^{14}.

Machine learning offers flexible approximations to the nonlocal density dependence of the kinetic-energy functional 15^{15}. Early work learned kinetic-energy functionals in model systems or on molecular densities 16−18^{16-18}, but also exposed a central difficulty: a small energy interpolation error does not imply a sufficiently accurate functional derivative for variational optimization. Subsequent approaches trained energies and functional derivatives jointly 19^{19}, learned separate semilocal functionals and potentials for Gaussian-represented molecular densities 20^{20}, explored direct minimization for periodic graphene 21^{21}, or imposed the variational principle as a regularizer 22^{22}. A semilocal kinetic-energy functional trained on Kohn–Sham functional derivatives also enabled self-consistent OF-DFT for atoms, diatomic molecules, and periodic solids with local pseudopotentials 23^{23}. The relevant test is thus not just how accurately a learned functional interpolates energies on reference densities, but whether it can be minimized from an initial density to recover a meaningful density and energy.

Sun and Chen demonstrated self-consistent density optimization with a learned nonlocal kinetic-energy functional for Li, Mg, Al and their alloys using local pseudopotentials 24^{24}. A separately trained multichannel extension was evaluated on silicon and III–V semiconductors 25^{25}. Other periodic studies evaluated learned kinetic energies on Kohn–Sham reference densities or as non-self-consistent corrections 26−28^{26-28}; an ML-guided analytical functional also demonstrated self-consistent density optimization for Al and Si 29^{29}.

Periodic OF-DFT implementations generally employ local pseudopotentials, which replace the nuclear potential and core electrons with a smoother effective interaction. Modern transferable pseudopotentials are usually nonlocal operators 30,31^{30,31}; their energies depend on the one-particle density matrix rather than the density alone. Local pseudopotentials can be accurate in their target environments but are harder to make broadly transferable 32−35^{32-35}. Density-based reconstructions of the density matrix permit nonlocal pseudopotentials at the cost of an additional approximation to the electron-ion energy 36,37^{36,37}. The choice of pseudopotential also changes the short-wavelength kinetic-energy response, coupling errors in the pseudopotential and the kinetic-energy functional 38^{38}. An all-electron formulation avoids pseudopotentials but must resolve the rapidly varying core density and evaluate periodic electrostatics. Periodic all-electron OF-DFT has been implemented using projector augmented waves 39^{39}, while adaptive finite-element methods have demonstrated direct treatment of singular nuclear potentials in atomic calculations 40^{40}. All-electron Gaussian implementations with analytical functionals exist for finite systems 41−43^{41-43}, including recent work recovering near-exact nuclear cusps 44^{44}.

Machine learning has also been used to bypass the energy functional and predict densities directly. ELECTRAFI constructs periodic charge densities from local anisotropic Gaussians 45^{45}; DeePAW predicts crystal charge densities and formation energies directly 46^{46}. Surrogate functionals occupy a middle ground: they are trained using only ground-state data, and their objective is to recover the ground-state density 47^{47} and energy 48^{48} through a prescribed optimization procedure, without requiring the functional to reproduce physical energies away from the ground state.

The present work builds directly on all-electron learned functionals for molecules. KineticNet introduced nonlocal equivariant learning and training densities generated under perturbed external potentials 49^{49}. M-OFDFT combined an atom-centered Gaussian density representation with a nonlocal learned functional and demonstrated accuracy and size extrapolation for molecules 50^{50}. STRUCTURES25 used Tensor Frames for rotationally equivariant message passing 51^{51} and perturbed-potential training data to achieve stable variational density optimization on QM9 and QMugs 52^{52}.

Taken together, prior work has established self-consistent learned OF-DFT for periodic pseudopotential systems and variational all-electron learned functionals for finite molecules. Generalizing the latter to three-dimensional periodic crystals, with minimization over the explicit all-electron density, has not yet been achieved.

STRUCTURES-P is a machine-learned OF-DFT framework based on a Gaussian density representation shared between isolated and periodic systems; here we develop its all-electron periodic formulation for CHNO crystals. The Hartree, electron-nuclear, and nucleus-nucleus contributions are evaluated analytically under periodic boundary conditions, while an equivariant graph neural network represents the non-interacting kinetic plus exchange-correlation energy. The functional is trained on non-ground-state energies and density-coefficient gradients and minimized at fixed electron number (Fig. 1). Evaluated against all-electron PySCF references for held-out crystals, the functional generalizes to larger unit cells and can be jointly trained on isolated molecules and periodic crystals. Relative-enthalpy rankings and an H–N convex-hull comparison test its use for fixed-geometry candidate evaluation. To our knowledge, these results provide the first demonstration of learned OF-DFT enabling variational optimization of the explicit all-electron density under three-dimensional periodic boundary conditions.