Derivative-free discrete gradient methods
Håkon Noren Myhr, Sølve Eidnes
TL;DR
This work tackles preserving first integrals in ODEs without derivatives by introducing a derivative-free, fourth-order discrete gradient method (DGM) built from a symmetrized Itoh–Abe DG and finite-difference approximations. By aligning order-theory with carefully constructed $S_4(x,\hat{x},h)$ and derivative-free approximations $D_2^{\tau}\overline{\nabla}_{\text{SIA}} H$ and $\nabla^2_{\tau} H$, the authors derive an implicit scheme solved via inexact Newton iterations and provide convergence bounds that balance finite-difference and machine-precision errors. They verify the theory with numerical experiments on a double pendulum, Lennard–Jones oscillator, and a topographic-Hamiltonian, showing that derivative-free variants achieve comparable accuracy to AD-based methods but can be roughly 50 times faster, highlighting the method’s practicality for expensive or inaccessible gradients. The results suggest useful applications in training Hamiltonian neural networks and in gradient-free sampling such as Conservative Hamiltonian Monte Carlo, where gradient computations can be a bottleneck.
Abstract
Discrete gradient methods are a class of numerical integrators producing solutions with exact preservation of first integrals of ordinary differential equations. In this paper, we apply order theory combined with the symmetrized Itoh--Abe discrete gradient and finite differences to construct an integral-preserving fourth-order method that is derivative-free. The numerical scheme is implicit and a convergence result for Newton's iterations is provided, taking into account how the error due to the finite difference approximations affects the convergence rate. Numerical experiments verify the order and show that the derivative-free method is significantly faster than obtaining derivatives by automatic differentiation. Finally, an experiment using topographic data as the potential function of a Hamiltonian oscillator demonstrates how this method allows the simulation of discrete-time dynamics from a Hamiltonian that is a combination of data and analytical expressions.
