Papers › MCMC using Hamiltonian dynamics

MCMC using Hamiltonian dynamics

9 Jun 2012arXiv:1206.1901links table onlyarchive 2025-07-28

Radford M. Neal

The archive published only this paper's code-link row. Authors, date and abstract are from arXiv's metadata (CC0), read from the Kaggle arXiv metadata snapshot of 2026-09-12 where its title matched the archive's; the title is the archive's.

Hamiltonian dynamics can be used to produce distant proposals for the Metropolis algorithm, thereby avoiding the slow exploration of the state space that results from the diffusive behaviour of simple random-walk proposals. Though originating in physics, Hamiltonian dynamics can be applied to most problems with continuous state spaces by simply introducing fictitious "momentum" variables. A key to its usefulness is that Hamiltonian dynamics preserves volume, and its trajectories can thus be used to define complex mappings without the need to account for a hard-to-compute Jacobian factor - a property that can be exactly maintained even when the dynamics is approximated by discretizing time. In this review, I discuss theoretical and practical aspects of Hamiltonian Monte Carlo, and present some of its variations, including using windows of states for deciding on acceptance or rejection, computing trajectories using fast approximations, tempering during the course of a trajectory to handle isolated modes, and short-cut methods that prevent useless trajectories from taking much computation time.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="1206.1901")

Code

Syntology Ran 0 of 17 code samples harvested from 1 repository linked to this paper; 17 have no recorded run.

By repository: community (archive-listed): 17 samples from 1 repository, 0 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

LMikeH/ocbnn-lmikh mentioned on GitHubpytorchMIT report
chang-ml-thu/FGH-flow mentioned on GitHubtf report
ermongroup/a-nice-mc mentioned on GitHubtf report
jiamings/a-nice-mc mentioned on GitHubtf report
ricvalp/aisampler mentioned on GitHubjaxMIT report
siddancha/samplevis mentioned on GitHubtf report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

17 samples harvested; 0 ran; 0 honoured the contract we drafted; 17 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

17unverified

Licence: 0 of the 17 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from ricvalp/aisampler. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

U ricvalp/aisampler/aisampler/logistic_regression/densities.py community (archive-listed) unverified MIT (permissive) · c3e338a6c8c2e3c4 · report
create_henon_flow ricvalp/aisampler/aisampler/kernels/HenonFlow.py community (archive-listed) unverified MIT (permissive) · 69a7db05762d9394 · report
create_simple_discriminator_without_kernel ricvalp/aisampler/aisampler/discriminators/utils.py community (archive-listed) unverified MIT (permissive) · 4646bb82ede9bc1e · report
ess ricvalp/aisampler/aisampler/sampling/metrics.py community (archive-listed) unverified MIT (permissive) · 022942a1868fa9bb · report
gelman_rubin_r ricvalp/aisampler/aisampler/sampling/metrics.py community (archive-listed) unverified MIT (permissive) · e4c7f98ecfb16a0c · report
get_discriminator_function ricvalp/aisampler/aisampler/discriminators/utils.py community (archive-listed) unverified MIT (permissive) · 46871977f6995869 · report
get_params_from_checkpoint ricvalp/aisampler/aisampler/kernels/utils.py community (archive-listed) unverified MIT (permissive) · 90fddff06eaaf1ba · report
hmc_kernel ricvalp/aisampler/aisampler/sampling/hamiltonian_monte_carlo.py community (archive-listed) unverified MIT (permissive) · 7cfa38bfca9e0f43 · report
hmc_proposal ricvalp/aisampler/aisampler/sampling/hamiltonian_monte_carlo.py community (archive-listed) unverified MIT (permissive) · 9e160366deb59347 · report
lag_s_autocorrelation ricvalp/aisampler/aisampler/sampling/metrics.py community (archive-listed) unverified MIT (permissive) · f5d2f37f8001b5d1 · report
leapfrog_step ricvalp/aisampler/aisampler/sampling/hamiltonian_monte_carlo.py community (archive-listed) unverified MIT (permissive) · 85bd9d4d7c767644 · report
normal ricvalp/aisampler/aisampler/logistic_regression/densities.py community (archive-listed) unverified MIT (permissive) · 0bd227a6783875bd · report
plot_discriminator ricvalp/aisampler/aisampler/discriminators/utils.py community (archive-listed) unverified MIT (permissive) · 3d60559d8ce91f43 · report
plot_histograms2d_logistic_regression ricvalp/aisampler/aisampler/logistic_regression/utils.py community (archive-listed) unverified MIT (permissive) · 6f27316046641935 · report
plot_histograms_logistic_regression ricvalp/aisampler/aisampler/logistic_regression/utils.py community (archive-listed) unverified MIT (permissive) · 278f5bed5e830df4 · report
plot_logistic_regression_samples ricvalp/aisampler/aisampler/logistic_regression/utils.py community (archive-listed) unverified MIT (permissive) · 0bc0f66d15c19a63 · report
sigma ricvalp/aisampler/aisampler/logistic_regression/densities.py community (archive-listed) unverified MIT (permissive) · 543ac1fdfab44708 · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections