Abstract
Orbital-free density functional theory (OFDFT) is a quantum chemistry formulation that has a lower cost scaling than the prevailing Kohn-Sham DFT, which is increasingly desired for contemporary molecular research. However, its accuracy is limited by the kinetic energy density functional, which is notoriously hard to approximate for non-periodic molecular systems. Here we propose M-OFDFT, an OFDFT approach capable of solving molecular systems using a deep learning functional model. We build the essential non-locality into the model, which is made affordable by the concise density representation as expansion coefficients under an atomic basis. With techniques to address unconventional learning challenges therein, M-OFDFT achieves a comparable accuracy with Kohn-Sham DFT on a wide range of molecules untouched by OFDFT before. More attractively, M-OFDFT extrapolates well to molecules much larger than those seen in training, which unleashes the appealing scaling of OFDFT for studying large molecules including proteins, representing an advancement of the accuracy-efficiency trade-off frontier in quantum chemistry.
Introduction
Density Functional Theory (DFT) serves as the primary computational tool in quantum chemistry for predicting molecular and material properties. The standard formulation, Kohn-Sham DFT (KSDFT), achieves high accuracy but suffers from a computational cost that scales as $O(N^3)$, limiting its application to smaller systems. Orbital-Free DFT (OFDFT) offers a more efficient alternative with $O(N^2)$ scaling by working directly with electron density rather than individual orbitals.
The primary obstacle for OFDFT has been the Kinetic Energy Density Functional (KEDF). While effective for simple metals, traditional KEDF approximations fail for the highly non-uniform electron densities found in molecules. M-OFDFT addresses this by utilizing a deep learning model to learn the elusive KEDF, bridging the accuracy gap while preserving computational efficiency.
Methods
M-OFDFT introduces several architectural innovations to model the KEDF effectively:
- Concise Density Representation: Instead of using a dense 3D grid, electron density is represented as expansion coefficients under an atomic basis. This significantly reduces input dimensionality.
- Non-local Graphormer Architecture: A Graphormer (Transformer variant) captures the essential non-locality of kinetic energy. The attention mechanism allows the model to account for long-range density interactions across the molecule.
- Physics-Informed Constraints: The model employs local frames to ensure geometric invariance, meaning energy predictions remain consistent regardless of molecular rotation.
- Gradient-Based Training: The model is trained on the entire energy landscape using gradient labels. This ensures that density optimization follows a physically stable path toward the ground state.
Results
M-OFDFT demonstrates a significant leap in both accuracy and efficiency compared to classical orbital-free methods. It achieves "chemical accuracy" (error < 1 kcal/mol) on benchmarks like ethanol and the QM9 dataset, making it hundreds of times more accurate than previous OFDFT approaches.
Key performance highlights include:
- Shell Structure Recovery: Unlike classical OFDFT, M-OFDFT successfully recovers the distinct electronic "shells" around nuclei, matching KSDFT results.
- Computational Scaling: The method exhibits an empirical time complexity of $O(N^{1.46})$, compared to $O(N^{2.49})$ for standard KSDFT implementations.
- Large-Scale Application: On a protein system (Protein B) with 738 atoms, M-OFDFT achieved a 27.4-fold speedup over KSDFT.
- Extrapolation: The model maintains accuracy even when applied to molecules much larger than those in the training set, indicating it has learned fundamental physical rules rather than simple structural patterns.
Discussion and Conclusion
M-OFDFT represents a significant advancement in the accuracy-efficiency trade-off of quantum chemistry. By successfully applying deep learning to the KEDF problem, it enables the study of large biological assemblies that were previously computationally prohibitive.
Future work will focus on expanding the model's scope to include charged ions, open-shell magnetic systems, and a broader range of elements beyond the initial H, C, N, O, and F. Additionally, the authors envision M-OFDFT being integrated into long-term molecular dynamics simulations and quantum embedding schemes to further push the boundaries of molecular simulation.
Summary updated