A generalized discontinuous Hamilton Monte Carlo for transdimensional sampling
Lei Li, Xiangxian Luo, Yinchen Luo
TL;DR
This work extends discontinuous Hamiltonian Monte Carlo (DHMC) to trans-dimensional sampling, addressing distributions with variable dimension such as the grand canonical ensemble. By embedding the dimension index into a continuous variable and introducing a measure-transform-based expansion for added coordinates along with an energy-correction term, the authors preserve detailed balance and enable efficient sampling across dimensions; the method naturally interprets the dimension-change cost as a free-energy contribution. The framework includes a discretized, RJMCMC-compatible implementation and proves detailed balance for the ideal algorithm, with practical discretization realized via operator splitting and random-time evolution. When combined with the Random Batch Method, the approach achieves scalable $O(N)$ per-iteration cost for interacting particle systems, demonstrated through 1D free-gas, cosine-potential, and Lennard-Jones examples, with reduced autocorrelation relative to Metropolis-Hastings. Overall, the generalized DHMC provides a principled, efficient tool for simulating trans-dimensional targets like the grand canonical ensemble in both non-interacting and interacting regimes, with broad applicability to Bayesian model selection and particle systems.
Abstract
In this paper, we propose a discontinuous Hamilton Monte Carlo (DHMC) to sample from dimensional varying distributions, and particularly the grand canonical ensemble. The DHMC was proposed in [Biometrika, 107(2)] for discontinuous potential where the variable has a fixed dimension. When the dimension changes, there is no clear explanation of the volume-preserving property, and the conservation of energy is also not necessary. We use a random sampling for the extra dimensions, which corresponds to a measure transform. We show that when the energy is corrected suitably for the trans-dimensional Hamiltonian dynamics, the detailed balance condition is then satisfied. For the grand canonical ensemble, such a procedure can be explained very naturally to be the extra free energy change brought by the newly added particles, which justifies the rationality of our approach. To sample the grand canonical ensemble for interacting particle systems, the DHMC is then combined with the random batch method to yield an efficient sampling method. In experiments, we show that the proposed DHMC combined with the random batch method generates samples with much less correlation when compared with the traditional Metropolis-Hastings method.
