HFBTHO-AD: Differentiation of a nuclear energy density functional code
Laurent Hascoët, Matt Menickelly, Sri Hari Krishna Narayanan, Jared O'Neal, Nicolas Schunck, Stefan M. Wild
TL;DR
This work demonstrates how automatic differentiation, via the Tapenade tool, can be integrated with the HFBTHO nuclear energy density functional solver to compute derivatives of outputs with respect to a subset of input parameters. By differentiating the top-level solver and differentiating through BLAS/LAPACK (with DSYEVR treated by a higher-level rule), the authors obtain a Jacobian of size $108\times12$ for $d=108$ residuals across $72$ nucleus configurations, enabling derivative-based optimization and uncertainty quantification in Skyrme-like functionals. Validation across three UNEDF0 parameter points shows strong agreement between AD and finite-difference derivatives, and a detailed performance analysis indicates that AD offers similar walltimes to FD but superior resource efficiency, albeit with higher memory demands. The results pave the way for Levenberg–Marquardt-style optimization and uncertainty quantification in nuclear EDF calibrations, with future work aimed at symmetry restoration and comparisons between Skyrme and Gogny functionals.
Abstract
The HFBTHO code implements a nuclear energy density functional solver to model the structure of atomic nuclei. HFBTHO has previously been used to calibrate energy functionals and perform sensitivity analysis by using derivative-free methods. To enable derivative-based optimization and uncertainty quantification approaches, we must compute the derivatives of HFBTHO outputs with respect to the parameters of the energy functional, which are a subset of all input parameters of the code. We use the algorithmic/automatic differentiation (AD) tool Tapenade to differentiate HFBTHO. We compare the derivatives obtained using AD against finite-difference approximation and examine the performance of the derivative computation.
