Papers
Topics
Authors
Recent
Search
2000 character limit reached

Discrete Hamiltonian-Assisted Metropolis Sampling

Updated 6 July 2026
  • Discrete HAMS is a gradient-based MCMC algorithm for discrete spaces that uses Gaussian momentum augmentation to enhance sampling efficiency.
  • It employs auxiliary-variable proposals, gradient corrections, and over-relaxation to satisfy generalized detailed balance and suppress random walk behavior.
  • Empirical results show that over-relaxed variants converge faster, reduce bias, and improve effective sample sizes compared to traditional methods.

Searching arXiv for recent and relevant papers on Discrete HAMS and closely related variants. Discrete HAMS (DHAMS) is a gradient-based Markov chain Monte Carlo method for sampling discrete distributions that extends Hamiltonian-Assisted Metropolis Sampling (HAMS) to discrete state spaces by augmenting the target with a Gaussian momentum variable and sampling a Hamiltonian as an augmented distribution. In the formulation of "Discrete Hamiltonian-Assisted Metropolis Sampling" (Zhou et al., 13 Jul 2025), the method is derived through an auxiliary-variable proposal scheme, negation and gradient correction for the momentum variable, and over-relaxation for the state variable. Two distinctive properties are achieved simultaneously: generalized detailed balance, which enables irreversible exploration of the target distribution, and a rejection-free property for a target distribution with a linear potential function (Zhou et al., 13 Jul 2025).

1. Target distribution and Hamiltonian augmentation

DHAMS is defined for a discrete state xSRdx \in S \subset \mathbb{R}^d, for example a dd-dimensional lattice S=AdS=A^d. The target mass function is written as

π(x)exp(f(x)),\pi(x)\propto \exp(f(x)),

with negative potential

U(x)=f(x),U(x)=-f(x),

so that

π(x)exp(U(x)).\pi(x)\propto \exp(-U(x)).

A dd-dimensional momentum pRdp\in\mathbb{R}^d with standard Gaussian marginal is then introduced, yielding the joint augmented density

π(x,p)exp ⁣(f(x)12p2)=exp(H(x,p)),\pi(x,p)\propto \exp\!\left(f(x)-\tfrac12\|p\|^2\right)=\exp(-H(x,p)),

with Hamiltonian

H(x,p)=U(x)+12p2.H(x,p)=U(x)+\tfrac12\|p\|^2.

This augmentation is the discrete analogue of the continuous HAMS construction, where the target density on dd0 is augmented by a momentum variable and an acceptance-rejection scheme is formulated to achieve generalized reversibility (Song et al., 2021).

The Hamiltonian augmentation is not a formal analogy only. It provides the state space on which DHAMS defines its proposal, acceptance rule, and nonreversible exploration mechanism. The role of the Gaussian momentum is explicit in the abstract of (Zhou et al., 13 Jul 2025): DHAMS not only exploits gradient information but also incorporates a Gaussian momentum variable and samples a Hamiltonian as an augmented distribution.

2. Proposal mechanism and algorithmic structure

The paper "Discrete Hamiltonian-Assisted Metropolis Sampling" (Zhou et al., 13 Jul 2025) describes the over-relaxed variant, O-DHAMS, as follows. Given dd1, an intermediate momentum is generated by auto-regression: dd2 An auxiliary variable is then defined by

dd3

Conditional on dd4, the target is approximated at dd5 by the first-order Taylor expansion

dd6

This gives the factorized proposal for dd7: dd8 which further factorizes over the dd9 coordinates and is easily sampled.

After drawing S=AdS=A^d0, the momentum is updated in two stages. First,

S=AdS=A^d1

Then a gradient-correction term, described as analogous to a single leapfrog update, is added: S=AdS=A^d2

O-DHAMS does not sample S=AdS=A^d3 independently from S=AdS=A^d4. Instead it applies a discrete over-relaxation kernel with reference S=AdS=A^d5. For each coordinate S=AdS=A^d6, let S=AdS=A^d7 be the CDF of the univariate reference S=AdS=A^d8; draw

S=AdS=A^d9

set

π(x)exp(f(x)),\pi(x)\propto \exp(f(x)),0

and then define

π(x)exp(f(x)),\pi(x)\propto \exp(f(x)),1

The parameter π(x)exp(f(x)),\pi(x)\propto \exp(f(x)),2 tunes the degree of over-relaxation, and Vanilla DHAMS (V-DHAMS) arises by setting the over-relaxation parameter π(x)exp(f(x)),\pi(x)\propto \exp(f(x)),3 (Zhou et al., 13 Jul 2025).

3. Acceptance rule, generalized detailed balance, and rejection-free cases

DHAMS composes auto-regression, over-relaxation on π(x)exp(f(x)),\pi(x)\propto \exp(f(x)),4, momentum negation, and gradient correction into a joint proposal kernel π(x)exp(f(x)),\pi(x)\propto \exp(f(x)),5. The proposal is accepted with probability

π(x)exp(f(x)),\pi(x)\propto \exp(f(x)),6

and otherwise the chain rejects and sets

π(x)exp(f(x)),\pi(x)\propto \exp(f(x)),7

With this momentum-negation Metropolis step, the chain satisfies the generalized detailed balance relation

π(x)exp(f(x)),\pi(x)\propto \exp(f(x)),8

which implies stationarity of π(x)exp(f(x)),\pi(x)\propto \exp(f(x)),9 (Zhou et al., 13 Jul 2025).

The theoretical guarantees stated for DHAMS include ergodicity and irreversibility. Auto-regression with U(x)=f(x),U(x)=-f(x),0 ensures the U(x)=f(x),U(x)=-f(x),1-marginal remains Gaussian and the chain is aperiodic/span-connected in U(x)=f(x),U(x)=-f(x),2. Momentum negation produces non-zero net circulation in state space, accelerating exploration (Zhou et al., 13 Jul 2025). In the terminology of the paper, Discrete-HAMS leverages both momentum and over-relaxation to suppress random-walk behavior.

A notable exact case is the linear-potential regime. If

U(x)=f(x),U(x)=-f(x),3

then U(x)=f(x),U(x)=-f(x),4 is constant and the gradient correction vanishes. The paper states that one checks algebraically that the Metropolis ratio reduces to U(x)=f(x),U(x)=-f(x),5 for every proposal, so U(x)=f(x),U(x)=-f(x),6 and the chain is rejection-free (Zhou et al., 13 Jul 2025). This rejection-free result is one of the two distinctive properties emphasized in the abstract.

4. Relation to HAMS and second-order extensions

DHAMS is explicitly motivated by HAMS. In the continuous setting, HAMS uses an augmented target density similarly as in HMC, but involves a flexible proposal scheme and a carefully formulated acceptance-rejection scheme to achieve generalized reversibility (Song et al., 2021). The continuous theory also shows that, as the step size tends to U(x)=f(x),U(x)=-f(x),7, the HAMS proposal satisfies a class of stochastic differential equations including Langevin dynamics as a special case, and that various relatively recent algorithms for Langevin dynamics fall in the class of HAMS proposals up to negligible differences (Song et al., 2021). Within this lineage, DHAMS is presented as a discrete sampler which, for the first time, not only exploits gradient information but also incorporates a Gaussian momentum variable and samples a Hamiltonian as an augmented distribution (Zhou et al., 13 Jul 2025).

A second-order extension, Preconditioned Discrete-HAMS (PDHAMS), modifies the first-order Taylor approximation used by DHAMS. The PDHAMS paper states that first-order DHAMS uses only

U(x)=f(x),U(x)=-f(x),8

which treats each coordinate independently and neglects curvature interactions in U(x)=f(x),U(x)=-f(x),9. PDHAMS instead incorporates a second-order, quadratic approximation of the potential function and uses Gaussian integral trick to avoid directly sampling a pairwise Markov random field (Zhou et al., 29 Jul 2025). In this construction, the surrogate

π(x)exp(U(x)).\pi(x)\propto \exp(-U(x)).0

injects curvature information via π(x)exp(U(x)).\pi(x)\propto \exp(-U(x)).1, and both vanilla and over-relaxed PDHAMS satisfy generalized detailed balance. The paper further states a stronger exactness result than first-order DHAMS: PDHAMS is rejection-free for a target distribution with a quadratic potential function (Zhou et al., 29 Jul 2025).

This suggests a natural taxonomy within the discrete HAMS family: first-order DHAMS achieves rejection-free sampling under linear potential, whereas second-order PDHAMS achieves rejection-free sampling under quadratic potential. That implication follows directly from the exact regimes stated in (Zhou et al., 13 Jul 2025) and (Zhou et al., 29 Jul 2025).

5. Empirical behavior and comparative performance

The empirical evaluation reported for DHAMS covers both ordinal and binary distributions. For a discrete Gaussian with ordinal state and π(x)exp(U(x)).\pi(x)\propto \exp(-U(x)).2, O-DHAMS and V-DHAMS achieve faster TV-convergence on 2D/4D marginals, smaller bias/variance in moment estimates, and ESS improvements of π(x)exp(U(x)).\pi(x)\propto \exp(-U(x)).3–π(x)exp(U(x)).\pi(x)\propto \exp(-U(x)).4 over NCG/AVG (Zhou et al., 13 Jul 2025). For a quadratic mixture described as multi-modal, the reported ranking is

π(x)exp(U(x)).\pi(x)\propto \exp(-U(x)).5

in both TV and ESS metrics. For Bayesian sparse regression with binary mask and π(x)exp(U(x)).\pi(x)\propto \exp(-U(x)).6, Discrete-HAMS samplers mix more rapidly between competing models, with higher flip rates and lower ACF, and yield tighter posterior-inclusion-probability estimates (Zhou et al., 13 Jul 2025).

The PDHAMS study places first-order DHAMS in a broader comparison against second-order methods. It reports three benchmarks—an 8-dimensional discrete Gaussian, a 10-dimensional nine-component quadratic mixture, and a π(x)exp(U(x)).\pi(x)\propto \exp(-U(x)).7, π(x)exp(U(x)).\pi(x)\propto \exp(-U(x)).8 clock-Potts model—against NCG, AVG, DHAMS, and PAVG (Zhou et al., 29 Jul 2025). The qualitative ranking given there is that TV-distance to true marginals shrinks fastest for O-PDHAMS, then V-PDHAMS, then PAVG, then DHAMS variants, then NCG/AVG, then naïve Metropolis; ESS values are highest for O-PDHAMS, then V-PDHAMS, then PAVG; and trace plots and autocorrelation-function plots confirm dramatically reduced lag-1 and longer-lag correlations under PDHAMS (Zhou et al., 29 Jul 2025).

Taken together, these experiments place DHAMS as a strong first-order nonreversible discrete sampler and position over-relaxation as a practically important component. The ranking O-DHAMS π(x)exp(U(x)).\pi(x)\propto \exp(-U(x)).9 V-DHAMS in the reported first-order experiments indicates that the over-relaxed kernel is not merely a formal variant but a consequential design choice (Zhou et al., 13 Jul 2025).

6. Nomenclature, neighboring literatures, and common ambiguities

The acronym "DHAMS" is not unique across mathematical and computational literatures. In discrete variational analysis, "Continuous versus discrete structures II -- Discrete Hamiltonian systems and Helmholtz conditions" defines discrete Hamiltonian systems in the framework of discrete embeddings, with dd0–dd1 equations

dd2

and develops discrete Helmholtz conditions for deciding when a first-order difference system is Hamiltonian (Cresson et al., 2015). In integrable systems, "Discrete Hamiltonians of discrete Painlevé equations" expresses discrete Painlevé equations as discrete Hamiltonian systems, where the discrete Hamiltonian systems mean the canonical transformations defined by generating functions, and the discrete Hamiltonians are written in the logarithm and dilogarithm functions (Mase et al., 2020). These usages concern discrete Hamiltonian structure, not Hamiltonian-assisted Metropolis sampling.

A separate nearby acronym is "DHAMs" for discrete hard attention mechanisms. In "QAHAN: A Quantum Annealing Hard Attention Network," hard attention is formulated as a QUBO and mapped to an Ising Hamiltonian for quantum annealing, with applications to MNIST and CIFAR-10 (Zhao, 2024). Despite the shared use of discrete state variables, Hamiltonians, and augmented optimization or sampling procedures, that line of work is about attention selection rather than MCMC.

This suggests that the topic "Discrete HAMS (DHAMS)" is most precisely identified by its full expansion, Discrete Hamiltonian-Assisted Metropolis Sampling. In current usage represented by (Zhou et al., 13 Jul 2025) and (Zhou et al., 29 Jul 2025), it denotes a family of gradient-based MCMC algorithms for discrete distributions that combine auxiliary-variable proposals, momentum updates, gradient corrections, and momentum-negation Metropolis steps under generalized detailed balance.

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Discrete HAMS (DHAMS).