The power of Hellmann-Feynman theorem: Kohn-Sham DFT energy derivatives with respect to the parameters of exchange-correlation functional at linear cost

Evgeny M. Kadilenko,Roland Grinis
DOI: https://doi.org/10.26434/chemrxiv-2023-jp112-v4
2024-11-07
Abstract:Efficient methods for computing derivatives with respect to the parameters of scientific models are crucial for applications in machine learning. These methods are important when training is done using gradient-based optimization algorithms or when the model is integrated with deep learning, as they help speed up calculations during the backpropagation pass. In the present work, we applied the Hellmann-Feynman theorem to calculate the derivatives of the Kohn-Sham DFT energies with respect to the parameters of the exchange-correlation functional. This approach was implemented in a prototype program on the basis of Python package PySCF. Using the LDA and GGA functionals as examples, we have shown that this approach scales approximately linear with the system size for a series of n-alkanes (CnH2n+2, n=4...64) with a double-zeta basis set. We demonstrated a significant speedup in the derivative calculations in comparison with the widely used automatic differentiation approach such as pytorch based DQC, which has a computational complexity of O(n^2.0) - O(n^2.5).
Chemistry
What problem does this paper attempt to address?