[Paper Review] Introducing an Explicit Symplectic Integration Scheme for Riemannian Manifold Hamiltonian Monte Carlo
This paper introduces an explicit symplectic integrator for Riemannian manifold Hamiltonian Monte Carlo (RMHMC), reducing the need for iterative fixed-point solves during leapfrog steps. By minimizing higher-order derivative computations, the method achieves nearly double the speed of implicit RMHMC with comparable sampling accuracy and lower wall-clock time, validated on Bayesian logistic regression and hierarchical models using the open-source hamiltorch package.
We introduce a recent symplectic integration scheme derived for solving physically motivated systems with non-separable Hamiltonians. We show its relevance to Riemannian manifold Hamiltonian Monte Carlo (RMHMC) and provide an alternative to the currently used generalised leapfrog symplectic integrator, which relies on solving multiple fixed point iterations to convergence. Via this approach, we are able to reduce the number of higher-order derivative calculations per leapfrog step. We explore the implications of this integrator and demonstrate its efficacy in reducing the computational burden of RMHMC. Our code is provided in a new open-source Python package, hamiltorch.
Motivation & Objective
- To address the high computational cost of RMHMC, which stems from solving fixed-point iterations for non-separable Hamiltonians.
- To reduce the number of higher-order derivative calculations per leapfrog step in RMHMC.
- To develop a more efficient, explicit symplectic integrator that avoids iterative solvers used in existing implicit schemes.
- To improve the scalability and practicality of RMHMC for complex models like Bayesian neural networks.
- To provide a user-friendly, GPU-accelerated implementation via the hamiltorch Python package for broader adoption.
Proposed method
- Proposes an explicit symplectic integration scheme tailored for non-separable Hamiltonians in RMHMC.
- Replaces the implicit generalized leapfrog integrator that requires multiple fixed-point iterations with a direct, explicit update rule.
- Leverages automatic differentiation via PyTorch to compute required Riemannian geometric quantities (metric, Christoffel symbols) efficiently.
- Designs the integrator to preserve symplectic structure while minimizing computational overhead from higher-order derivatives.
- Implements the method in the hamiltorch package, enabling GPU-based sampling with minimal code changes.
- Supports seamless switching between HMC, RMHMC, and explicit RMHMC via a unified API.
Experimental results
Research questions
- RQ1Can an explicit symplectic integrator reduce the computational burden of RMHMC without sacrificing sampling accuracy?
- RQ2How does the performance of explicit RMHMC compare to implicit RMHMC in terms of wall-clock time and convergence?
- RQ3To what extent does the new integrator reduce the number of higher-order derivative evaluations per leapfrog step?
- RQ4Can explicit RMHMC achieve comparable posterior approximation quality to implicit RMHMC on challenging posterior geometries like funnel distributions?
- RQ5How does the new method scale in practice for real-world models such as Bayesian logistic regression and hierarchical models?
Key findings
- Explicit RMHMC achieves a wall-clock speedup of nearly 2× compared to implicit RMHMC, reducing time to convergence by approximately two-thirds.
- Despite the speedup, explicit RMHMC maintains comparable sampling performance, with a KL divergence of 0.142 to the true posterior, similar to implicit RMHMC’s 0.130.
- The effective sample size is higher for both RMHMC variants than for HMC or NUTS, as indicated by faster-decaying autocorrelation and quicker plateauing of DKL(p(v)∥q(v)) over time.
- The method reduces the number of higher-order derivative calculations per leapfrog step by avoiding iterative fixed-point solves, directly lowering computational cost.
- On a Bayesian neural network with 431,080 parameters, hamiltorch enables 116.33 samples per second on GPU, compared to 13.92 on CPU, demonstrating strong hardware acceleration.
- The estimated marginal distributions from explicit RMHMC show lower bias and better agreement with the true posterior, especially in high-curvature regions like the funnel’s narrow neck.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.