invDFT: A CPU-GPU massively parallel tool to find exact exchange-correlation potentials from groundstate densities
Vishal Subramanian, Bikash Kanungo, Vikram Gavini
TL;DR
invDFT tackles the inverse DFT problem of retrieving the exact exchange-correlation potential from a target density by casting it as a PDE-constrained optimization and solving it on a systematically convergent finite-element basis with asymptotic corrections. The framework combines advanced solvers (Chebyshev filtering for KS eigensolves and MINRES for adjoints) with HIP/CUDA-accelerated HPC strategies to achieve robust accuracy and scalable performance on CPU-GPU architectures. It validates the approach against LDA densities and produces exact XC potentials for benchmark systems spanning weak to strong correlation, demonstrating Koopmans-consistent eigenvalues and smooth potentials free from basis artifacts. The work delivers a practical, open-source tool that can inform XC functional development and enable high-quality XC potentials for machine learning and theory refinement, with future plans to extend to spin-unrestricted and periodic systems.
Abstract
Density functional theory (DFT) remains the most widely used electronic structure method. Although exact in principle, in practice, it relies on approximations to the exchange-correlation (XC) functional, which is known to be a unique functional of the electron density. Despite 50 years of active research, existing XC approximations remain far from general purpose chemical accuracy of various thermochemical and materials properties. In that light, the inverse DFT problem, of finding the exact XC potential corresponding to an accurate groundstate density, offers an insightful tool to understand the nature of the XC functional as well as aid in the development of more accurate functionals. However, solving the inverse DFT problem is fraught with several numerical challenges, such as non-uniqueness or spurious oscillations in the solution and non-convergence. We present invDFT as an open-source framework to address the outstanding challenges in inverse DFT and computed XC potentials solely from a target density. We do so by use of a systematically convergent finite-element basis and asymptotic corrections to the target density. We also employ several numerical and high-performance computing (HPC) advances that affords both efficiency and parallel scalability, on CPU-GPU hybrid architectures. We demonstrate the accuracy and scalability of invDFT using accurate full-configuration interaction (FCI) densities as well as model densities, ranging up to 100 electrons and spanning both weakly and strongly correlated molecules.
