[Paper Review] Deep Learning Hamiltonian Monte Carlo
This paper proposes Deep Learning Hamiltonian Monte Carlo (DLHMC), a generalized HMC algorithm that replaces traditional leapfrog steps with a stack of learnable neural network layers to improve sampling efficiency in lattice gauge theories. The method significantly reduces integrated autocorrelation time for topological charge by enabling efficient tunneling between topological sectors, outperforming standard HMC by up to 100× in computational cost at β=7.
We generalize the Hamiltonian Monte Carlo algorithm with a stack of neural network layers and evaluate its ability to sample from different topologies in a two dimensional lattice gauge theory. We demonstrate that our model is able to successfully mix between modes of different topologies, significantly reducing the computational cost required to generated independent gauge field configurations. Our implementation is available at https://github.com/saforem2/l2hmc-qcd .
Motivation & Objective
- To address the exponential slowdown in lattice gauge theory simulations near the continuum limit, particularly due to slow mixing between topological sectors.
- To improve sampling efficiency in Markov Chain Monte Carlo (MCMC) simulations of lattice gauge theories by learning adaptive proposal distributions.
- To develop a differentiable, self-trained MCMC sampler that generalizes traditional HMC using deep neural networks.
- To evaluate the method's performance on a 2D U(1) lattice gauge theory with periodic boundary conditions and varying coupling constants.
- To understand the physical mechanism enabling improved topological tunneling through the learned dynamics of the neural network layers.
Proposed method
- DLHMC replaces consecutive leapfrog steps in HMC with a stack of distinct neural network layers, each parameterized by unique weights and acting on augmented state variables (x, v, d).
- Each neural network layer performs a modified leapfrog update using learnable scaling and shift functions on momentum and position, with inputs derived from the current state and gradients of the action.
- The network architecture uses masked inputs to decouple position and momentum updates, with separate networks for forward and backward directions.
- The model is trained using a custom loss function that encourages topological tunneling, specifically promoting transitions between different topological charge sectors.
- The final proposal is made exact via Metropolis-Hastings acceptance, ensuring detailed balance and correct target distribution sampling.
- Training is performed using Horovod and TensorFlow on a GPU-accelerated supercomputer, with hyperparameters tuned for 16×16 lattices and β ∈ [2,7].
Experimental results
Research questions
- RQ1Can a deep neural network architecture effectively replace traditional leapfrog steps in HMC to improve sampling efficiency in lattice gauge theories?
- RQ2Does the learned sampler exhibit enhanced mixing between topological sectors compared to standard HMC?
- RQ3How does the internal dynamics of the neural network facilitate tunneling across energy barriers between topological sectors?
- RQ4Can a model trained at one coupling constant β be effectively transferred to a different β with minimal retraining?
- RQ5What physical quantities (e.g., plaquette, energy, topological charge) evolve in a way that enables improved exploration of phase space?
Key findings
- DLHMC reduces the integrated autocorrelation time of the topological charge by up to 100× compared to standard HMC at β=7, indicating a dramatic improvement in sampling efficiency.
- The model trained at smaller β values (e.g., β=2) required only minimal retraining to perform well at larger β (e.g., β=7), demonstrating strong generalization across coupling constants.
- During inference, the neural network artificially increases the system's energy density in the first half of the trajectory before returning it to the original value, a self-learned mechanism that aids in overcoming topological barriers.
- The continuous topological charge shows mixing behavior at the midpoint of the network layers, indicating that the system traverses the barrier during the transformation.
- The average plaquette value shifts during the trajectory, reflecting a controlled deviation from the physical path that enables exploration of classically forbidden regions.
- HMC simulations remain trapped in a single topological sector for extended periods, while the trained DLHMC sampler rapidly transitions between sectors, as confirmed by visual inspection of topological charge evolution.
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.