The Power of Hellmann–Feynman Theorem: Kohn–Sham DFT Energy Derivatives with Respect to the Parameters of the Exchange-Correlation Functional at Linear Cost
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 <i>n</i>-alkanes (<i>C</i><sub><i>n</i></sub><i>H</i><sub>2<i>n</i>+2</sub>, <i>n</i> = 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 <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mi>O</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:msup><mml:mrow><mml:mi>n</mml:mi></mml:mrow><mml:mrow><mml:mn>2.0</mml:mn></mml:mrow></mml:msup><mml:mo>)</mml:mo></mml:mrow><mml:mo>-</mml:mo><mml:mi>O</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:msup><mml:mrow><mml:mi>n</mml:mi></mml:mrow><mml:mrow><mml:mn>2.5</mml:mn></mml:mrow></mml:msup><mml:mo>)</mml:mo></mml:mrow></mml:math>.
Authors
- Roland Grinis (ORCID: https://orcid.org/0000-0001-9664-4908)
- Evgeny M. Kadilenko (ORCID: https://orcid.org/0000-0002-5222-8600)
Institutions
- Siberian Branch of the Russian Academy of Sciences (RU)
- Dominion (United States) (US)
- Institute of Chemical Kinetics and Combustion (RU)
- KPMG (United Kingdom) (GB)
Publication Details
- Journal
- The Journal of Physical Chemistry A
- Published
- 2025-07-14
- DOI
- https://doi.org/10.1021/acs.jpca.5c01771
- Citations
- 1
- Primary Topic
- Advanced NMR Techniques and Applications
- Type
- article
- Field-Weighted Citation Impact
- 0.76