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

07 November 2024, Version 4
This content is a preprint and has not undergone peer review at the time of posting.

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).

Keywords

DFT

Supplementary materials

Title
Description
Actions
Title
Supporting information
Description
This supporting information contains details related to the implicit differentiation method that was used to compare with the Hellmann-Feynman theorem and to calculate the derivative of the electron density with respect to the parameters of the exchange-correlation functional.
Actions

Supplementary weblinks

Comments

Comments are not moderated before they are posted, but they can be removed by the site moderators if they are found to be in contravention of our Commenting Policy [opens in a new tab] - please read this policy before you post. Comments should be used for scholarly discussion of the content in question. You can find more information about how to use the commenting feature here [opens in a new tab] .
This site is protected by reCAPTCHA and the Google Privacy Policy [opens in a new tab] and Terms of Service [opens in a new tab] apply.