Differentiable programming for Kohn-Sham DFT: energy derivatives with respect to the parameters of exchange-correlation functional at linear cost

16 February 2024, Version 3
This content is a preprint and has not undergone peer review at the time of posting.

Abstract

We applied the adjoint method to Kohn-Sham equations taking the energy derivatives with respect to the parameters of the exchange-correlation functional. The results obtained are completely consistent with the Hellmann-Feynman theorem and can serve as a starting point for the study of analytical derivatives of other quantities obtained using the Kohn-Sham method. The prototype we created on the basis of python package PySCF exhibited linear complexity performance behavior and showed a significant speedup in the calculation of the derivative compared to the automatic differentiation approach such as pytorch based DQC. In a more severe sense, the development of efficient methods for computing derivatives with respect to parameters of scientific models is important in applications to machine learning where training is done via gradient-based optimization algorithms or the model is integrated with deep learning and there is a need to speed up the calculation in the backpropagation pass.

Keywords

DFT
Differentiable Programming

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.