TL;DR
This paper introduces two methods, symbolic differentiation and automatic differentiation, to efficiently compute derivatives of collective variables in free energy calculations, simplifying the development of new CVs in molecular dynamics simulations.
Contribution
It presents open-source implementations of symbolic and automatic differentiation techniques for collective variables, reducing development time and complexity.
Findings
Demonstrated implementation of a local radius of curvature CV
Showed code generation and automatic differentiation streamline CV development
Provided templates for high-level CV implementation
Abstract
The proper choice of collective variables (CVs) is central to biased-sampling free energy reconstruction methods in molecular dynamics simulations. The PLUMED 2 library, for instance, provides several sophisticated CV choices, implemented in a C++ framework; however, developing new CVs is still time consuming due to the need to provide code for the analytical derivatives of all functions with respect to atomic coordinates. We present two solutions to this problem, namely (a) symbolic differentiation and code generation, and (b) automatic code differentiation, in both cases leveraging open-source libraries (SymPy and Stan Math respectively). The two approaches are demonstrated and discussed in detail implementing a realistic example CV, the local radius of curvature of a polymer. Users may use the code as a template to streamline the implementation of their own CVs using high-level…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
