Overcoming the barrier of orbital-free density functional theory for molecular systems using deep learning

He Zhang, Siyuan Liu, Jiacheng You, Chang Liu, Shuxin Zheng, Ziheng Lu, Tong Wang, Nanning Zheng, Bin Shao

TL;DR

This paper introduces M-OFDFT, a novel deep learning approach to orbital-free density functional theory (OFDFT) that achieves Kohn-Sham DFT (KSDFT) accuracy for molecular systems while significantly reducing computational cost. It excels at extrapolating to much larger molecules, including proteins, a critical step towards enabling large-scale quantum chemistry simulations.

What Problem Does This Paper Address?

Quantum chemistry calculations are essential for understanding molecular behavior, but traditional methods like Kohn-Sham Density Functional Theory (KSDFT) become computationally prohibitive for large systems due to their O(N³) scaling (where N is the number of electrons). Orbital-Free Density Functional Theory (OFDFT) offers a more scalable alternative (O(N²)) by directly using the electron density instead of orbitals. However, OFDFT's accuracy has been limited by the difficulty in accurately approximating the kinetic energy density functional (KEDF), especially for non-uniform electron densities found in molecules. This paper tackles the challenge of developing an OFDFT method that is both accurate and scalable for molecular systems, bridging the gap between computational cost and predictive power.

Methods

The core innovation is M-OFDFT, which uses a deep learning model to learn an accurate KEDF. Key methodological advancements include:

  • Atomic Basis Representation: Instead of grid-based methods, M-OFDFT represents electron density using expansion coefficients on an atomic basis. This drastically reduces dimensionality and makes non-local calculations computationally feasible.
  • Graphormer Architecture: A Graphormer-based neural network is employed to capture the essential non-local interactions between density features across atoms.
  • SE(3)-Invariance: Techniques like local frames and an atomic reference module are incorporated to ensure the model's predictions are invariant to molecular translations and rotations, crucial for physical accuracy.
  • Gradient Handling: Specialized "enhancement modules" (dimension-wise rescaling, natural reparameterization) are developed to manage the vast range of gradients encountered during training, a significant challenge for learning functional models.
  • Density Optimization: A robust density optimization procedure is implemented, leveraging learned KEDF and addressing initialization challenges to achieve stable convergence.

Datasets

The paper utilizes several datasets for training and evaluation:

  • MD17: Used for studying conformational space generalization in ethanol structures.
  • QM9: A benchmark dataset of equilibrium geometries for small organic molecules, used for chemical space generalization.
  • QMugs: A newly introduced dataset containing significantly larger molecules (up to 100 heavy atoms) than QM9, specifically designed to test extrapolation capabilities.
  • Chignolin: A dataset of protein structures (10 residues, 168 atoms) used to assess M-OFDFT's performance on biomolecular systems and its extrapolation capabilities from smaller peptide fragments.

Key Insights and Ideas

  • Atomic Basis is Key: Representing density as coefficients on an atomic basis is a critical enabler for efficient non-local calculations in OFDFT, overcoming the dimensionality bottleneck of grid-based methods.
  • Deep Learning for KEDF: Deep learning, particularly Graphormer, can effectively learn the complex, non-local nature of the KEDF, achieving accuracy comparable to KSDFT.
  • Extrapolation is the Game Changer: M-OFDFT's ability to extrapolate to molecules far larger than its training data is its most significant advantage, unlocking OFDFT's potential for large-scale systems like proteins. This is attributed to learning an objective function rather than an end-to-end map.
  • Handling Vast Gradients: The development of specialized enhancement modules is crucial for training deep learning models that accurately capture the steep energy landscapes of molecular systems.

Key Results

  • Accuracy: M-OFDFT achieves chemical accuracy (1 kcal/mol energy MAE) comparable to KSDFT on a wide range of molecular systems.
  • Extrapolation: M-OFDFT shows remarkable extrapolation capabilities, with per-atom energy errors remaining constant or decreasing for molecules up to 10 times larger than those in the training set. This is significantly better than NNP variants, whose errors increase with system size.
  • Speedup: M-OFDFT exhibits an empirical time complexity of O(N¹.⁴⁶), significantly lower than KSDFT's O(N².⁴⁹). This translates to substantial speedups, achieving a 27.4-fold speedup on a protein system with 738 atoms.
  • Density Reconstruction: M-OFDFT accurately reproduces the electron density, including shell structure, which is a known challenge for classical OFDFT methods.
  • Charged Systems & Unseen Environments: M-OFDFT demonstrates effectiveness in handling charged molecules and extrapolating to unseen chemical environments (e.g., triple bonds) with minimal accuracy loss.

Limitations and Future Work

  • Extrapolation Challenges: While M-OFDFT shows superior extrapolation, it remains an obstacle to universal application. Future work may involve leveraging analytical properties of KEDFs and exploring active learning strategies.
  • Computational Cost of Grid-Based Components: For certain functional variants (e.g., residual KEDF), grid-based computations for base KEDF and XC functionals can still be a bottleneck for very large systems. The TXC functional formulation addresses this by avoiding grids.
  • Generalization to Unseen Elements: While M-OFDFT can handle unseen elements by assigning them to known atom types, this may lead to generalization challenges. Future work could explore common basis sets or including more elements in training.
  • Further Exploration of Functional Variants: The paper mentions exploring other functional targets (e.g., learning the universal functional or total energy) and suggests future work in this direction.
  • Protein Simulations: While M-OFDFT shows promise for protein systems, further work on molecular dynamics simulations and quantum embedding is suggested.

Summary updated

BibTeX
@inproceedings{zhang2024overcoming,
  author = {He Zhang and Siyuan Liu and Jiacheng You and Chang Liu and Shuxin Zheng and Ziheng Lu and Tong Wang and Nanning Zheng and Bin Shao},
  title = {{Overcoming the barrier of orbital-free density functional theory for molecular systems using deep learning}},
  booktitle = {Nat. Comput. Sci},
  year = {2024},
  url = {https://openreview.net/forum?id=pNrm2zMWor},
}
Figure