potentialpaper

Contour Monte Carlo: Sampling via Energy Level Sets

Varun Jain, Hong Ge

SPIGM @ ICML 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

Abstract. Efficient sampling from complex probability distributions is a fundamental task in statistics and machine learning. Markov chain Monte Carlo (MCMC) remains one of the most widely used tools for this. However, even state-of-the-art samplers, such as the NUTS implementations in Stan and Turing.jl, can converge slowly on ill-conditioned, heavy-tailed, or near-degenerate targets. We identify that sampling error can be decomposed into two terms: mismatch in the potential energy (PE) marginal, and average conditional mismatch across PE level sets. We propose Contour Monte Carlo (CMC), which corrects each of these in turn: first by drawing energies uiu_i from the PE marginal, and then by sampling states on the corresponding level sets. For a broad family of radial targets, including the Gaussian and Student's tt distributions, both stages admit closed-form draws, so CMC is exact and requires no Markov chain. Beyond this, for general targets, we estimate the PE marginal using umbrella sampling with MBAR, then run constrained MCMC on the sampled level sets, initialised from energy-matched umbrella samples (which tend to lie in regions of high conditional mass). These level-set chains are embarrassingly parallel, and therefore well-suited to modern accelerator hardware. Across a broad suite of benchmarks spanning synthetic targets and real-world inference problems (several of which are drawn from posteriordb), we demonstrate that CMC achieves substantially faster convergence than HMC and NUTS baselines on geometrically challenging targets.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

FromAToBDateVersionSubmitted toPDFEvidence
4 May 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)reviews ↓[1]—[1]
8 May 2026SPIGM @ ICML 2026submittedSPIGM @ ICML 2026Accepted · Poster—[1]
Their titles, abstracts and, where both have a PDF, the text.Missing a version?

NeurIPS 2026

Accept (poster) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:42 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
Meta-review

Reviewers agree that the paper is well written and provides multiple valuable contributions (KL decomposition, coarea characterization, and exact radial sampler). There's some disagreement about baselines (largely solved after the rebuttal), novelty and interpretation.

  • Baseline strength. All baselines use identity mass matrices with no adaptation. Report comparisons against NUTS with standard warmup adaptation, and against microcanonical (Langevin) Monte Carlo or its MH-adjusted variant. This should be done on at least the funnel and eight-schools targets. Why shouldn't well-tuned HMC, which mixes across energy levels on these targets, match energy-stratified initialization? See related comments from Reviewers rQSU and 1XdA.
  • Related work. How does CMC precisely relate to Liang (2007) "Continuous contour Monte Carlo," the equi-energy sampler (Kou et al. 2006), and micro-macro MCMC? State exactly what is new. See related comments from Reviewers rQSU and 1XdA.
  • What does CHMC add, and is it practical? In Table 1, CMC-HMC matches or beats CMC-CHMC on every target except SBLR. [Learned during the rebuttal: For SBLR, the entries were transposed: CMC-CHMC reaches the reference band at 10.00M, while CMC-HMC does not, as the Discussion claims.] Is CMC-HMC best understood as MBAR-weighted warm-starting for HMC? Is there any case where constrained dynamics are preferable? Is it true that RATTLE's implicit solves may be non-unique or fail depending on step size? See related comments from Reviewers rQSU and 1XdA.
  • Clarifications. On many targets the entire budget is spent in the umbrella/MBAR phase. When is estimating the PE marginal cheaper than direct sampling? Explain the losses on German credit and Finnish pines. Do you have any practical advice wrt window placement/stiffness? See related comments from Reviewers rQSU and 1XdA.
  • Other. Remove or justify the claim about deep generative models from the abstract. Justify or soften "corrects any remaining error" for a finite chain. In Section 4, one of the reported performance metrics is the median of the CDF integrated squares errors over random projections. To demonstrate the sampling accuracy, consider reporting the maximum error (1XdA).

During the rebuttal phase, the baseline concerns were addressed with additional comparisons, which led reviewer rQSU to raise their score. Reviewer 1XdA kept a borderline rejection score, due to both stages using established methods and the fact that level sets of identical potential energy don't need to align with regions of homogeneous geometry. While the second point is a limitation that deserves further investigation and should be mentioned in the Discussion section, the aforementioned valuable contributions outweigh these concerns and I favor acceptance.

Final justification

Included in the metareview above.

Area Chair XMri · Meta-reviewOpenReview ↗
Final justification
Included in the metareview above.
Read meta-review
Meta-review

Reviewers agree that the paper is well written and provides multiple valuable contributions (KL decomposition, coarea characterization, and exact radial sampler). There's some disagreement about baselines (largely solved after the rebuttal), novelty and interpretation.

  • Baseline strength. All baselines use identity mass matrices with no adaptation. Report comparisons against NUTS with standard warmup adaptation, and against microcanonical (Langevin) Monte Carlo or its MH-adjusted variant. This should be done on at least the funnel and eight-schools targets. Why shouldn't well-tuned HMC, which mixes across energy levels on these targets, match energy-stratified initialization? See related comments from Reviewers rQSU and 1XdA.
  • Related work. How does CMC precisely relate to Liang (2007) "Continuous contour Monte Carlo," the equi-energy sampler (Kou et al. 2006), and micro-macro MCMC? State exactly what is new. See related comments from Reviewers rQSU and 1XdA.
  • What does CHMC add, and is it practical? In Table 1, CMC-HMC matches or beats CMC-CHMC on every target except SBLR. [Learned during the rebuttal: For SBLR, the entries were transposed: CMC-CHMC reaches the reference band at 10.00M, while CMC-HMC does not, as the Discussion claims.] Is CMC-HMC best understood as MBAR-weighted warm-starting for HMC? Is there any case where constrained dynamics are preferable? Is it true that RATTLE's implicit solves may be non-unique or fail depending on step size? See related comments from Reviewers rQSU and 1XdA.
  • Clarifications. On many targets the entire budget is spent in the umbrella/MBAR phase. When is estimating the PE marginal cheaper than direct sampling? Explain the losses on German credit and Finnish pines. Do you have any practical advice wrt window placement/stiffness? See related comments from Reviewers rQSU and 1XdA.
  • Other. Remove or justify the claim about deep generative models from the abstract. Justify or soften "corrects any remaining error" for a finite chain. In Section 4, one of the reported performance metrics is the median of the CDF integrated squares errors over random projections. To demonstrate the sampling accuracy, consider reporting the maximum error (1XdA).

During the rebuttal phase, the baseline concerns were addressed with additional comparisons, which led reviewer rQSU to raise their score. Reviewer 1XdA kept a borderline rejection score, due to both stages using established methods and the fact that level sets of identical potential energy don't need to align with regions of homogeneous geometry. While the second point is a limitation that deserves further investigation and should be mentioned in the Discussion section, the aforementioned valuable contributions outweigh these concerns and I favor acceptance.

Reviewer rQSUOpenReview ↗
Rating
4/6
Confidence
3/5
Quality
3/4
Clarity
3/4
Significance
2/4
Originality
2/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper proposes Contour Monte Carlo, a sampling framework that decomposes posterior sampling into estimating the marginal distribution of the potential energy and sampling conditionally on the corresponding potential-energy level sets. The authors motivate this through a KL decomposition separating potential-energy marginal mismatch from conditional mismatch within level sets. Based on this perspective, they propose CMC-CHMC, which estimates the potential-energy marginal using umbrella sampling and MBAR, samples energies from this estimate, initializes chains at matching umbrella-sampling states, and then runs constrained HMC on the associated level sets. A simpler CMC-HMC variant bypasses constrained HMC and runs ordinary HMC from the selected initial states. The paper also provides exact constructions for generalized radial targets and evaluates the approach on small scale benchmark posterior distributions.

Strengths and weaknesses

Strengths

  • [S1] The potential-energy decomposition is a useful and intuitive way to distinguish between failures in visiting the correct energy range and failures in mixing conditionally within energy level sets.
  • [S2] The coarea-based characterization and the exact radial-target construction are nice principled contributions.
  • [S3] The CMC-HMC variant provides a potentially useful energy-aware initialization strategy for HMC. Unlike optimization-based starts aiming just at high density regions, it aims to initialize chains at energies representative of the posterior typical set.

Weaknesses

  • [W1] The originality seems to be limited by an existing body of prior work on energy/contour sampling and the conceptual building blocks (umbrella sampling, MBAR, conditional/constrained sampling). For example how does CMC relate to papers [1] and [2]? Currently the framing risks overstating the novelty of the approach.
  • [W2] The CMC-HMC variant is essentially a sophisticated warm-starting strategy for HMC. In my understanding resampled MBAR-weighted umbrella states warmstart ordinary HMC. This may be useful, but it should be framed and evaluated as initialization rather than as a distinct sampler. Related ensemble and warm-started MCMC strategies should thus be considered and discussed. (In particular one could contrast this with classical optimization based initializations as in [3]). I also want to note that it is striking that CMC-HMC is always as good as or better than CMC-CHMC which reaffirms the above assessment.
  • [W3] While some relevant and state of the art MCMC methods are cited the work does not compare against them. Examples would be microcanonical (Langevin) Monte Carlo [4] or its MH adjusted variant [5]. And not even for the provided baselines such as NUTS the experimental setup is representative of state-of-the-art HMC/NUTS practice. All methods use identity mass matrices and no step-size adaptation , which weakens these baselines. This casts doubt on whether the (sometimes) reported gains would persist against well-tuned HMC or NUTS or more recent alternatives like MCLMC.
  • [W4] Estimating the potential-energy marginal appears expensive and the cost is not sufficiently analyzed. Is the method only attractive if the potential-energy marginal is substantially easier to estimate than the original posterior? when is this the case? The paper should more clearly characterize when this assumption is expected to hold.
  • [W5] The empirical evidence remains limited. The benchmarks are very low-dimensional, the connection to deep generative models mentioned in the abstract is absolutely unclear, and the method performs considerably worse on some targets such as German credit and Finnish pines (Table 1). Why is that? The current discussion does not sufficiently discuss these failure cases.
  • [W6] The random-projection diagnostics are useful but do not directly establish downstream Bayesian performance, such as posterior expectation accuracy, Bayesian model averaging.
  • [W7] Some algorithmic claims need more careful wording. In particular, a finite unconstrained HMC chain does not “correct” residual error; it only reduces bias to the extent that it mixes.

References

  • [1] Liang, F. (2007). Continuous contour Monte Carlo for marginal density estimation with an application to a spatial statistical model. Journal of Computational and Graphical Statistics, 16(3), 608-632.
  • [2] Vandecasteele, H., & Samaey, G. (2020). A micro-macro Markov chain Monte Carlo method for molecular dynamics using reaction coordinate proposals II: indirect reconstruction. arXiv preprint arXiv:2003.11962.
  • [3] Sommer, E., Robnik, J., Nozadze, G., Seljak, U., & Rügamer, D. (2025). Microcanonical Langevin Ensembles: Advancing the Sampling of Bayesian Neural Networks. ICLR.
  • [4] Robnik, J., De Luca, G. B., Silverstein, E., & Seljak, U. (2023). Microcanonical hamiltonian monte carlo. Journal of Machine Learning Research, 24(311), 1-34.
  • [5] Robnik, J., Cohn-Gordon, R., & Seljak, U. (2026). Metropolis adjusted microcanonical hamiltonian monte carlo. Advances in Neural Information Processing Systems, 38, 15252-15282.
Questions
  • [Q1] Regarding [W1], can the authors clarify the precise novelty of CMC relative to existing contour/energy-based sampling methods, in particular [1] and [2]? The current framing makes it difficult to distinguish the contribution from a principled recombination of known ingredients.
  • [Q2] Regarding [W2], can the authors clarify whether CMC-HMC should primarily be understood as an energy-aware initialization strategy for HMC? If so, can it be compared more directly to strong initialization strategies? Also put provocative: is there any case in which CMC-CHMC should be preferred over CMC-HMC?
  • [Q3] Regarding [W3], can the authors compare against, or justify the absence of, microcanonical Langevin Monte Carlo, or its MH-adjusted variant, and well-adapted HMC/NUTS baselines?
  • [Q4] Please also comment on [W5]
Limitations

The limitations are only partially addressed. The discussion should more explicitly acknowledge the cost and feasibility of estimating the potential-energy marginal, the low dimensionality of the experiments, the mixed results on some real-data targets, and the absence of several relevant baselines.

Final justification

The rebuttal addresses my main concerns through clearer positioning, a more accurate interpretation of CMC-HMC, and comparisons against adapted NUTS and MAMS. The revision should still characterize when potential-energy marginal estimation is tractable, scope the practical role of CHMC, and complement first-hitting times (see my comment below). Overall I increase my score to indicate my support of a (weak) accept.

Formatting concerns

NA

7 comments
Authors · CommentOpenReview ↗

Response to Reviewer rQSU (1/5)

Thank you for your close reading of the paper. We appreciate your description of the potential-energy decomposition as "useful and intuitive''. The responses below address the concerns and questions you raised.

[W1] The originality seems to be limited by an existing body of prior work on energy/contour sampling and the conceptual building blocks (umbrella sampling, MBAR, conditional/constrained sampling). For example how does CMC relate to papers [1] and [2]? Currently the framing risks overstating the novelty of the approach.

We thank the reviewer for pointing out these important connections. We agree that the current presentation should more clearly distinguish between the established methodological ingredients underlying CMC and the contributions arising from combining them. We will revise the related-work discussion accordingly.

Relation to continuous Contour Monte Carlo (CCMC). Liang's CCMC considers

X∼f,Z=λ(X),X \sim f, \qquad Z = \lambda(X),

and estimates the marginal density pλ(z)p_{\lambda}(z) of a lower-dimensional transformation λ(X)\lambda(X). When λ=U\lambda = U, this estimand is precisely the potential-energy marginal ΠU\Pi_\mathcal{U}, and CCMC is therefore a direct predecessor to Stage (i) of CMC. Both approaches elevate a scalar pushforward distribution to a primary computational object.

The main difference is what happens after marginal estimation. In CCMC, estimating pλp_{\lambda} is the endpoint. In CMC, ΠU\Pi_\mathcal{U} is an intermediate object used to construct full-dimensional samples:

u∼ΠU,q∼ΠQ∣U=u.u \sim \Pi_\mathcal{U}, \qquad q \sim \Pi_{Q \mid \mathcal{U}=u}.

Therefore, CCMC stops at estimating the marginal, whereas CMC goes further by sampling on the corresponding level sets of the estimated marginal.

The estimators also differ. CCMC runs a single adaptive Markov chain under a continuously evolving working distribution, recursively updating a kernel-smoothed estimate of the marginal density during simulation. In contrast, our implementation uses a fixed collection of umbrella-biased distributions, runs separate simulations within these windows, and combines the resulting samples globally through MBAR to estimate ΠU\Pi_U.

Relation to micro--macro MCMC. This is the closest connection at the level of measure disintegration. Micro-macro MCMC introduces a reaction coordinate

ξ:Rd→Rm,\xi:\mathbb{R}^d \to \mathbb{R}^m,

its marginal distribution μ0(z)\mu_0(z), and conditional reconstruction distributions on the fibres

Σ(z)={x:ξ(x)=z}.\Sigma(z)=\{x:\xi(x)=z\}.

If one chooses ξ=U\xi=U, then

z=u,μ0(u)=ΠU(u),Σ(u)=Lu,z=u, \qquad \mu_0(u)=\Pi_U(u), \qquad \Sigma(u)=\mathcal L_u,

and the exact reconstruction distribution is ΠQ∣U=u\Pi_{Q\mid U=u}. Consequently, micro--macro MCMC with reaction coordinate UU and CMC employ essentially the same underlying factorisation of the target measure. We will state this connection explicitly.

The important distinction is not the underlying factorisation, but how it is used algorithmically. Micro-macro MCMC defines a single sequential Metropolis-Hastings transition,

xn⟶z′⟶x′⟶xn+1,x_n \longrightarrow z' \longrightarrow x' \longrightarrow x_{n+1},

where a new macrostate z′z' is proposed conditionally on the current macrostate and subjected to a macroscopic accept-reject test; if accepted, a microscopic candidate x′x' is generated by direct or indirect reconstruction and subjected to a second, microscopic accept-reject test.

CMC instead instead uses an amortised two-phase population construction.

Π^U⟶u1,…,uM⟶M separate downstream chains.\widehat{\Pi}_U \longrightarrow u_1,\ldots,u_M \longrightarrow M \text{ separate downstream chains}.

CMC first estimates the complete macro distribution ΠU\Pi_U, and then draws energies globally from this estimate. It therefore does not proceed through a sequence of local macro proposals conditioned on the current macro state. Rather, it constructs an entire population whose energy allocation is determined globally by Π^U\widehat{\Pi}_U.

The two approaches consequently obtain their computational gains in different ways. Micro–macro MCMC gains efficiency through cheap rejection at the macro level, large proposals along a prescribed slow reaction coordinate, and microscopic reconstruction only after a macro proposal has been accepted. CMC instead pays an upfront cost to learn the global energy allocation, initialises the downstream ensemble with approximately the correct energy distribution, and solves the resulting conditional sampling problems independently and in parallel.

Novelty. Accordingly, we do not claim novelty for marginal estimation, the coarea formula, MBAR, or constrained MCMC in isolation. Rather, the novelty lies in the architecture that integrates these ingredients into a new sampling procedure. (continued.)

Authors · CommentOpenReview ↗

Response to Reviewer rQSU (2/5)

The contributions specific to CMC are:

  1. An energy-specific KL decomposition separating mismatch in the potential-energy marginal from the average conditional mismatch within potential-energy level sets.
  2. The use of this decomposition as a constructive sampler-design principle, with separate mechanisms addressing the two resulting sources of error.
  3. An umbrella-MBAR mechanism in which the same weighted samples both estimate ΠU\Pi_U and provide energy-matched initial states.
  4. An amortised, population-based architecture that separates global energy allocation from parallel conditional correction.
  5. An exact one-shot realisation of this construction for the generalised-radial family.

Thus, while several individual components of CMC build on established techniques, their organisation into this energy-first, two-stage, population-based sampling workflow is the central contribution. We will revise the paper to make these relationships explicit and to avoid implying that the constituent tools are themselves new.

[W2] The CMC-HMC variant is essentially a sophisticated warm-starting strategy for HMC. In my understanding resampled MBAR-weighted umbrella states warmstart ordinary HMC. This may be useful, but it should be framed and evaluated as initialization rather than as a distinct sampler. Related ensemble and warm-started MCMC strategies should thus be considered and discussed. (In particular one could contrast this with classical optimization based initializations as in [3]). I also want to note that it is striking that CMC-HMC is always as good as or better than CMC-CHMC which reaffirms the above assessment.

We agree that CMC-HMC is more precisely described as an energy-calibrated warm-starting strategy for HMC derived from the broader CMC construction, rather than as a distinct sampler. We will revise the terminology and framing accordingly.

We thank the reviewer for raising the connection to optimisation-based initialisation strategies. We first distinguish such approaches from CMC-HMC. Using optimisation to obtain an initial point tends to drive the iterate towards a posterior mode. In high dimensions, however, the mode typically lies far from the posterior typical set and can therefore provide a poor starting point for MCMC, requiring substantial subsequent exploration before the chain reaches the region containing most of the posterior mass. CMC instead explicitly estimates the target potential-energy marginal and resamples an ensemble whose energies approximately follow this marginal. Thus, although both approaches provide warm starts, they aim to construct fundamentally different initial distributions

We would also like to note that our experiments already include HMC initialised with Pathfinder, denoted “PF” in the tables and figures. Pathfinder is a well-established optimisation-based initialisation method that uses quasi-Newton optimisation trajectories and local curvature information to construct approximate posterior draws. It is therefore substantially more sophisticated than simple MAP initialisation, which returns only an optimiser endpoint. For this reason, we do not separately report a simple MAP-initialised HMC baseline, which we would expect to be weaker than the Pathfinder baseline already included. We will make this relationship explicit in the revised text.

Finally, we apologise for a typographical error which assigned the CMC-HMC and CMC-CHMC entries for the correlated SBLR target to the wrong columns. The correct result is that CMC-CHMC reaches the reference band after 10.00 million target-gradient evaluations, comprising 0.21 million for PE estimation and 9.79 million after PE estimation, whereas CMC-HMC does not reach the reference band within the evaluated budget. Thus, CMC-HMC is not uniformly superior; this experiment provides precisely an example where CMC-CHMC is the successful variant (likely due to conditional mismatch, the second term in Eq. 1, dominating).

This interpretation is also already reflected in our discussion, where we identify correlated SBLR as a case where unconstrained HMC appears insufficient to recover the correct conditional structure across energy level sets, and note that characterising the regimes in which constrained dynamics are required is an important direction for future work. We will correct the table and make this point more prominent.

Authors · CommentOpenReview ↗

Response to Reviewer rQSU (3/5)

[W3] While some relevant and state of the art MCMC methods are cited the work does not compare against them. Examples would be microcanonical (Langevin) Monte Carlo [4] or its MH adjusted variant [5]. And not even for the provided baselines such as NUTS the experimental setup is representative of state-of-the-art HMC/NUTS practice. All methods use identity mass matrices and no step-size adaptation , which weakens these baselines. This casts doubt on whether the (sometimes) reported gains would persist against well-tuned HMC or NUTS or more recent alternatives like MCLMC.

We thank the reviewer for raising this point. The existing experiments were designed as a controlled comparison intended to isolate the effect of the CMC initialisation. Accordingly, the unconstrained methods use a common identity mass matrix and a common tuning protocol, so that differences are not confounded by method-specific preconditioning.

We agree, however, that this controlled setting does not represent the strongest standard deployment of HMC. To complement it, we report below results on the most difficult targets for adapted NUTS and the requested MAMS baseline. For NUTS, we adapt the step size (using a target acceptance probability of 0.99 for Neal’s funnel and 0.9 for the remaining targets) and a diagonal mass matrix over 1000 warmup iterations. For MAMS, we follow the tuning procedure in its reference implementation in BlackJAX. Warmup/tuning costs are included in the reported results.

Target dd Adapted NUTS total (warmup/sampling) MAMS total (tuning/sampling) CMC--CHMC total (PE/post-PE) CMC--HMC total (PE/post-PE)
Neal's funnel 10 --- (63.27/---) 43.15 (36.14/7.01) 15.43 (14.78/0.65) 14.99 (14.78/0.21)
Neal's funnel 100 --- (118.20/---) --- (201.90/---) 115.10 (115.10/0.00) 115.10 (115.10/0.00)
Eight schools 10 35.32 (29.49/5.83) 50.25 (46.49/3.76) 7.01 (5.88/1.13) 6.04 (5.88/0.16)
Rosenbrock 36 48.00 (35.23/12.77) 29.33 (26.02/3.31) 4.04 (1.42/2.63) 3.42 (1.42/2.00)

First hitting time, in millions of target-gradient evaluations, on the most difficult targets. Each entry is the earliest cumulative computational cost at which both the median projected KS distance and median projected CDF-ISE enter the reference band. For CMC, we report the total cost, with the PE-estimation and post-PE costs shown in parentheses. All reported computational costs include NUTS warmup, MAMS automatic tuning, and CMC potential-energy estimation. Dashes indicate that the reference band was not reached over the evaluated range.

(In the revised paper, we will additionally include the corresponding convergence plots as a function of cumulative target-gradient evaluations.)

The conclusions remain unchanged. Adapted NUTS still fails to reach the reference band on both Neal's funnel targets. MAMS succeeds in 10 dimensions, but at substantially greater cost than CMC, and fails in 100 dimensions, where the funnel pathology is amplified across many conditionally scaled coordinates. On Eight Schools and Rosenbrock, both adapted baselines converge, but remain considerably slower than CMC.

This comparison also clarifies that the original experiment in Table 1 was conservative with respect to CMC. CMC was charged for its complete PE-approximation stage, whereas the baselines were not charged for an analogous adaptation phase. In the table above, the PE-estimation cost is lower than the NUTS warmup and MAMS tuning cost on every target, often by a large margin. Thus, the PE stage is not an unusually expensive preprocessing step: it is cheaper than the standard setup required by the adapted baselines, while producing energy-stratified initial states from which CMC converges with little additional computation.

Reviewer 1XdAOpenReview ↗
Rating
3/6
Confidence
4/5
Quality
3/4
Clarity
3/4
Significance
2/4
Originality
2/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This article proposes methods for sampling from probability density functions known up to proportionality. The proposed method is a two-stage procedure: the first stage samples from the marginal distribution of the potential energy (PE), which is the negative log density; the second stage samples from the conditional distribution given the PE to construct the full state.

The article first considers generalized radial target densities and then extends the discussion to general target densities. In the first case, a direct sampling mechanism is developed, based on explicit expressions for the marginal density of the PE and the conditional density given the PE value. For general target densities, another two-stage procedure is proposed using umbrella sampling and the constrained Hamiltonian Monte Carlo (CHMC) method. The proposed methods essentially carry out versions of stratified sampling, where at least a certain proportion of samples are drawn from each of specified energy bands.

Strengths and weaknesses

Quality

The proposed methods are technically sound. The method for the radial targets is particularly effective, due to the exact sampling mechanism based on Theorems 3.4 and 3.5. These explicit mathematical results, based on the co-area formula (Theorem 3.3), enable independent and identically distributed (IID) sampling without using Markov chain Monte Carlo (MCMC).

For general targets, however, I think that the effectiveness of the two-stage approach is limited. In Stage (i), samples are not directly drawn from the PE marginal, but rather full states are drawn using some additive bias potential functions encouraging concentration in certain energy bands. These biased samples are combined using the weights determined by the Multivariate Bennett Acceptance Ratio (MBAR) estimator. I am not convinced that this approach is preferable to standard MCMC methods in general settings with respect to sampling efficiency, algorithmic simplicity, and practical implementation. There is a limited discussion on the settings where the proposed method outperforms commonly used sampling methods.

Additionally, the energy bands need to be chosen so that they have appropriate widths and pairwise overlaps, which can be tricky and problem-specific. The author(s) provide no guidance on this choice.

Stage (ii) uses CHMC to sample from the level sets of the PE. Although this step is conceptually clear, the implementation of CHMC may be difficult in many practical settings, due to the requirement to solve implicit equations in the RATTLE numerical simulator for the constrained Hamiltonian dynamics. The implicit solution may be found using numerical methods (such as Newton’s method), but sometimes the implicit solution may not be unique or non-existent depending on the numerical integration step size. In my view, this practical difficulty is one reason why CHMC or other methods that require implicit numerical integration, such as Riemannian Hamiltonian Monte Carlo, have not seen widespread adoption despite their conceptual appeal.

The author(s) also propose a variant that bypasses CHMC and directly samples from the full joint distribution using standard HMC. The reported numerical results for both methods (one using CHMC and the other not) are largely comparable and noticeably superior to standard HMC (Figures 1-4). Although I do not question the authenticity of these results, they are surprisingly favorable for the proposed methods. This is because the main challenges in sampling from funnel-shaped distributions (those considered in Section 4.2) arise due to the fact that the high-density region consists of parts of substantially different scales, requiring numerical integration step sizes to be highly adapted to the current position. If HMC chains initialized at different energy levels (as in the proposed method) can provide highly accurate samples, then I believe standard HMC without such stratification should perform comparably, because mixing across energy bands can happen fairly rapidly for these examples. In conclusion, the advantages of the proposed methods are not sufficiently demonstrated or analyzed.

Clarity

The paper is generally well-written, clearly introducing various ideas in sufficient detail. The presentations and the positioning of the main ideas and further technical details are well-balanced in the main text and the appendix.

This paper explains the accuracy of the overall sampling procedure in terms of the decomposition of the Kullback-Leibler divergence into two parts: one concerning the marginal distribution of the PE and the other concerning the conditional distribution. This explanation adds to the clarity of the theoretical justification of the proposed method, although the intuition itself is straightforward: two distributions are the same if the marginals on one variable and the conditional distributions are both the same.

All mathematical results are clearly presented, and detailed proofs are provided in the appendix.

Significance

I think the proposed method is most effective for radial targets. However, the class of generalized radial target densities that depend only on the LpL_p norm of the variable after a linear transformation is very narrow and not frequently encountered in practical applications. This class of densities can also be readily sampled from using standard MCMC methods such as HMC. It would be more compelling if the methodology developed for radial targets could be extended to a broader class of distributions.

For general target densities, the proposed method is essentially a heuristic approach that mixes existing methods to facilitate stratified sampling across energy levels. Significant innovations in the combination of these methods appear limited.

Originality

For radial targets, the sampling scheme involving Dirichlet-distributed random vectors for the conditional distribution (Theorem 3.5) relies on an analytical result based on the co-area formula. This appears to be one of the paper’s unique contributions.

For general target densities, the level of originality appears limited, as the proposed approach mainly combines existing methods and lacks in-depth discussion of practical implementation issues and rigorous mathematical justification of the proposed method’s advantages.

Questions

I have only a few minor questions.

  1. The proposed idea bears some resemblance to the equi-energy sampler (S. C. Kou, Qing Zhou, Wing Hung Wong. "Equi-energy sampler with applications in statistical inference and statistical mechanics." Ann. Statist. 34 (4) 1581 - 1619, August 2006. https://doi.org/10.1214/009053606000000515). A brief comparison with this method would be helpful.

  2. In Section 4, one of the reported performance metrics is the median of the CDF integrated squares errors over random projections. However, to demonstrate the sampling accuracy, the maximum error might also be relevant.

Limitations

The article acknowledges several limitations of the proposed approach, notably in the last two paragraphs of Section 5. A discussion of additional limitations related to practical implementation and potential numerical issues would strengthen the overall assessment of the proposed methodology.

Final justification

The authors have provided extensive additional results and clarifications during the rebuttal process, which I appreciate. However, I still do not think that the novelty of the proposed method is sufficiently significant to justify publication at this venue. The main idea is to first sample from the marginal distribution of the potential energy (PE) and then draw samples conditional on the PE value. Each of the two stages employs established methods without noticeable innovations or modifications specific to the proposed implementation.

In my view, the claim that this two-stage approach based on the PE marginal addresses the challenges associated with densities with complex geometries has not been sufficiently justified, either conceptually or empirically. There is some numerical evidence of improved sampling efficiency compared with HMC; however, how and why the proposed approach addresses these challenges through either stage has not been sufficiently demonstrated. It is possible that energy stratification enables customized tuning for different PE level sets and thereby facilitates sampling. However, partitioning the space based on shared geometric properties may not always coincide with partitioning based on the PE level. Thus, the settings in which the proposed method holds advantages over HMC have not been clearly explained.

I believe that a more careful analysis of the benefits of sampling conditional on the PE level would be needed to establish the extent to which the proposed contour Monte Carlo methods can provide significant gains across a reasonably broad range of practical applications.

Formatting concerns

None

12 comments
Authors · CommentOpenReview ↗

Response to Reviewer 1XdA (1/6)

Thank you for your review and for your careful engagement with the paper. We are glad that you found the paper to be "generally well-written'' and "clearly introducing various ideas in sufficient detail.'' We hope that the discussion below addresses your remaining questions and concerns.

I am not convinced that this approach is preferable to standard MCMC methods in general settings with respect to sampling efficiency, algorithmic simplicity, and practical implementation. There is a limited discussion on the settings where the proposed method outperforms commonly used sampling methods.

We believe there are two important qualifications to this characterisation.


Point 1. We do not claim that CMC is preferable to standard MCMC methods in full generality.

CMC is designed for targets with difficult geometry, which may impede convergence in two distinct ways. First, standard chains may mix slowly across potential-energy levels and therefore fail to recover the correct PE marginal - for example, in funnel-shaped targets, where they may struggle to move between the narrow neck (low potential energy) and wide mouth (high potential energy). Second, even if a chain visits the correct range of potential energies in the correct proportions, it may fail to explore the different regions of state space associated with each energy level, particularly when the corresponding level sets are complex.

A standard MCMC chain must address both problems simultaneously. A standard MCMC chain must address both problems simultaneously. CMC instead separates them into two stages, in line with the decomposition in Equation 1. In the first stage, the PE marginal is estimated and used to initialise an ensemble of chains at appropriately distributed energy levels, directly targeting the marginal mismatch. In the second stage, constrained HMC can be used to explore the conditional distribution within each level set, directly targeting the conditional mismatch. If within-level-set exploration is not itself difficult and the PE marginal is the dominant bottleneck, the energy-matched initialisations may simply be followed by ordinary HMC.

CMC is therefore most advantageous when conditioning on potential energy decomposes a difficult global sampling problem into simpler problems on individual level sets that can be solved independently and in parallel.

Point 2. While we will emphasise this point clearly in the revised version, we believe the paper already provides a discussion of the above, i.e., that CMC is preferable to standard MCMC on challenging geometries. The benchmark suite is designed to include: funnel geometries, which commonly arise in centred hierarchical models (e.g., Neal’s funnel); narrow, highly curved and anisotropic valleys (e.g., Rosenbrock); and strong posterior correlations (e.g., correlated SBLR).

Conversely, we are also explicit about the regime in which CMC is not preferable. On comparatively simple, well-conditioned targets, standard baselines already converges rapidly, leaving little benefit from paying the additional cost of estimating the PE marginal. German Credit and Finnish Pines illustrate this: even randomly initialised chains, with an identity mass matrix and a fixed step size, converges quickly on both, indicating that neither poses a serious geometric challenge for ordinary HMC. For Finnish Pines this is also supported analytically -- the posterior is smooth and globally strongly log-concave, hence has a unique mode.

Table 1 therefore illustrates both sides of the trade-off: the regime in which the upfront PE-approximation cost is justified, and the regime in which conventional MCMC is already adequate.


Authors · CommentOpenReview ↗

Response to Reviewer 1XdA (2/6)

To provide further evidence of CMC's advantage on difficult geometries, we report below additional results on the most challenging targets using adapted NUTS and tuned MAMS (Metropolis-Adjusted Microcanonical Sampler). This complements the original controlled comparison, in which we used an identity mass matrix and fixed step size during the measured sampling phase. For NUTS, we adapt the step size and a diagonal mass matrix over 10001000 warmup iterations, using a target acceptance probability of 0.990.99 for Neal's funnel and 0.90.9 for the remaining targets. For MAMS, we follow the automatic tuning procedure in its reference BlackJAX implementation. All warmup and tuning costs are included in the reported computational budgets.

Target dd Adapted NUTS total (warmup/sampling) MAMS total (tuning/sampling) CMC--CHMC total (PE/post-PE) CMC--HMC total (PE/post-PE)
Neal's funnel 10 --- (63.27/---) 43.15 (36.14/7.01) 15.43 (14.78/0.65) 14.99 (14.78/0.21)
Neal's funnel 100 --- (118.20/---) --- (201.90/---) 115.10 (115.10/0.00) 115.10 (115.10/0.00)
Eight schools 10 35.32 (29.49/5.83) 50.25 (46.49/3.76) 7.01 (5.88/1.13) 6.04 (5.88/0.16)
Rosenbrock 36 48.00 (35.23/12.77) 29.33 (26.02/3.31) 4.04 (1.42/2.63) 3.42 (1.42/2.00)

First hitting time, in millions of target-gradient evaluations, on the most difficult targets. Each entry is the earliest cumulative computational cost at which both the median projected KS distance and median projected CDF-ISE enter the reference band. For CMC, we report the total cost, with the PE-estimation and post-PE costs shown in parentheses. All reported computational costs include NUTS warmup, MAMS automatic tuning, and CMC potential-energy estimation. Dashes indicate that the reference band was not reached over the evaluated range.

(In the revised paper, we will additionally include the corresponding convergence plots as a function of cumulative target-gradient evaluations.)

The conclusions remain unchanged. Adapted NUTS still fails to reach the reference band on both Neal's funnel targets. MAMS succeeds in 1010 dimensions, but at substantially greater cost than CMC, and fails in 100100 dimensions, where the funnel pathology is amplified across many conditionally scaled coordinates. On Eight Schools and Rosenbrock, both adapted baselines converge, but remain considerably slower than CMC.

This comparison also clarifies that the original experiment in Table 1 was conservative with respect to CMC. CMC was charged for its complete PE-approximation stage, whereas the baselines were not charged for an analogous adaptation phase. In the table above, the PE-estimation cost is lower than the NUTS warmup and MAMS tuning cost on every target, often by a large margin. Thus, the PE stage is not an unusually expensive preprocessing step: it is cheaper than the standard setup required by the adapted baselines, while producing energy-stratified initial states from which CMC converges with little additional computation.

Authors · CommentOpenReview ↗

Response to Reviewer 1XdA (3/6)

Additionally, the energy bands need to be chosen so that they have appropriate widths and pairwise overlaps, which can be tricky and problem-specific. The author(s) provide no guidance on this choice.

We thank the reviewer for pointing out that the original manuscript did not provide sufficient guidance for selecting the energy windows. We will add this guidance in the revision.

The relevant PE range is necessarily target-specific, but the individual window widths and overlaps are not tuned independently.

We first estimate the PE range/interval from short pilot HMC runs using 24 chains, each with 100 adaptation iterations and 100 post-adaptation iterations. This cost is negligible relative to the full umbrella-sampling procedure. We use the resulting PE values, optionally together with the MAP energy as a lower-bound diagnostic, to define a coarse range and add a margin on either side. Conservative overestimation of the range is well tolerated by the umbrella-sampling and MBAR procedure, and is preferable to truncating relevant PE mass.

Within this interval [umin⁡,umax⁡][u_{\min},u_{\max}], we place KK equally spaced window centres,

ck=umin⁡+(k−1)Δc,Δc=umax⁡−umin⁡K−1,c_k=u_{\min}+(k-1)\Delta c,\qquad\Delta c=\frac{u_{\max}-u_{\min}}{K-1},

and use harmonic biases

bk(U)=(U−ck)22σu2.b_k(U)=\frac{(U-c_k)^2}{2\sigma_u^2}.

All windows use the same width parameter σu\sigma_u. We set this width relative to the spacing Δc\Delta c between neighbouring centres through

ρ:=σuΔc  ⟹  σu=ρΔc.\rho:=\frac{\sigma_u}{\Delta c} \implies \sigma_u = \rho \Delta c.

Thus, ρ\rho controls the overlap between adjacent windows: larger values produce greater overlap. We use ρ≈1.5\rho\approx1.5 by default. For PE marginals that are harder to estimate reliably, such as those of funnel targets, we increase ρ\rho to strengthen overlap and/or increase KK to cover the energy range more finely.

For completeness, the exact settings used in the reported experiments are given below.

Target umin⁡u_{\min} umax⁡u_{\max} KK Δc\Delta c ρ\rho σu\sigma_u
Neal's funnel (10D) -40 80 35 3.529 1.700 6.000
Neal's funnel (100D) -500 800 35 38.235 1.700 65.000
Rosenbrock 5 75 24 3.043 1.500 4.565
Eight schools (centred) -40 50 35 2.647 1.700 4.500
GP Poisson regression -1000 -940 19 3.333 1.500 5.000
Lotka--Volterra 10 40 13 2.500 1.500 3.750
AR(K) -275 -250 10 2.778 1.500 4.167
GARCH(1,1) 265 300 10 3.889 1.500 5.833
ARMA(1,1) -260 -240 10 2.222 1.500 3.333
One-compartment PK -11 10 13 1.750 1.500 2.625
SBLR (correlated) 160 190 10 3.333 1.500 5.000
German credit 20 100 19 4.444 1.500 6.667
Finnish pines -450 -360 19 5.000 1.500 7.500

Thus, although the overall energy range must reflect the target, the window widths and adjacent overlaps follow a simple and nearly uniform rule rather than requiring separate, problem-specific tuning of every window.

Reviewer QmScOpenReview ↗
Rating
5/6
Confidence
2/5
Quality
4/4
Clarity
4/4
Significance
3/4
Originality
4/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper presents Contour Monte Carlo (CMC), a Markov-Chain Monte Carlo approach for sampling from high-dimensional probability distributions in a vein similar to NUTS and HMC. The key idea is to decompose the sampling error along potential energy (PE) marginal estimates. The resulting sampler is exact for a pleasant variety of radial distributions, and nicely leverages hardware acceleration since each PE marginal can be estimated in parallel. The approach is appropriately validated on a variety of synthetic and standard benchmarks and shown to outperform HMC and NUTS on compelling examples.

Strengths and weaknesses

Strengths:

  • Motivation. The paper attacks a very important problem of sampling from high-dimensional probability distributions. This is a very old and well-studied problem and hence there are not many advances that feel fresh. The approach in this paper feels like it has the potential to be a significant improvement over existing MCMC approaches like HMC and NUTS, especially due to the parallelism benefits. Therefore, the potential impact for this paper is quite high.
  • Originality. The central idea of simultaneously estimating potential energy marginals is, to the best of my knowledge, original and convincing.
  • Writing quality. The paper is very well-written with a strong high-level narrative that explains the key ideas. Suitable intuition is given and the paper is well-organized. Related work is thoroughly compared with.
  • Technical quality. The mathematics in this paper is presented rigorously and I could not identify significant technical errors. I lack the expertise to deeply check each statement, but I was able to follow the high-level ideas and felt that I learned enough about the approach to try to implement it myself my reading the paper. Suitable examples are presented, and strong intuition is provided for when CMC works well and when it does not.
  • Experimental quality: The experiments are well-motivated and well-chosen to highlight strengths and weaknesses of the approach. Adequate comparisons are made with the state-of-the-art. A nicely chosen set of synthetic benchmarks and well-known standard benchmarks are evaluated on.

Weaknesses:

  • The paper is at times not very self-contained, especially for less-familiar readers. I was unfamiliar with umbrella sampling and did not have time to go learn about it, which made the paper much harder to understand. Some small primers on the less-well-known prerequisites would greatly improve the paper's readability and hence potential impact.
  • Currently CMC only applies to unimodal probability distributions. This is a fairly standard compromise, but it does limit the application of the technique. Due to this limitation, it is not clear to me that this approach is ready yet to displace well-established MCMC methods like NUTS and HMC. This undercuts the significance of the result somewhat, since multimodality is quite common in practice and I am not sure the extent to which it can be resolved in this approach.

Overall, I found this paper pleasant but very technically challenging to read. By my judgment, it makes a nice advance on an important and foundational problem of sampling from unimodal continuous probability distributions. The key technical idea of decomposing error into within-PE and between-PE error is to the best of my knowledge novel, and seems like a very good idea since it enables significant parallelism (though, I do wonder how much the parallelism is undercut by the need to estimate an inherently sequential between-PE error). I believe the paper has a good potential for impact. The main thing preventing me from giving this paper a higher score is (1) I had some difficulty fully understanding the main technical ideas due to the paper being somewhat non-self-contained, and (2) it is unclear to me the extent to which the method can be generalized beyond unimodal probability distributions, undercutting significance and general applicability of CMC.

Questions
  • What structural assumptions are there on the distribution other than unimodality? Are there differentiability requirements?
  • Are there any unique challenges to applying CMC to multimodal distribution? It seems like this may be particularly difficult when compared with other approaches like HMC, since each PE level may have multiple modes within it. Does parallel tempering seem like a plausible route to resolving this?
  • Apologies if I missed this, but will the tool be released as open-source software? Will it be released as part of a probabilistic programming toolchain like Stan, or does something prevent this from happening?
Limitations

Yes.

Final justification

Thank you for the encouraging response; I appreciate that you will take time to ensure that the revision is more approachable. I will maintain my score.

Formatting concerns

None.

3 comments
Authors · CommentOpenReview ↗

Response to Reviewer QmSc (1/2)

Thank you very much for your review. We appreciate your positive assessment of the presentation and experimental motivation. With respect to your questions and comments:

What structural assumptions are there on the distribution other than unimodality? Are there differentiability requirements?

We would like to note that unimodality is not a structural requirement of CMC per se. The decomposition into a potential-energy marginal and conditional distributions on energy level sets remains valid for multimodal targets. However, correct sampling then also requires mass to be allocated among the modes in the correct proportions. Because well-separated modes may occupy the same or overlapping energy levels, the potential-energy marginal alone does not determine this allocation. The present CMC framework does not explicitly address this additional problem, and so its performance may deteriorate when the relevant modes are difficult for the downstream sampler to traverse.

To express the conditional law on an energy level set through the coarea formula, we require UU to be locally Lipschitz and ∇U(q)≠0\nabla U(q)\neq 0 for almost every q∈Luq\in \mathcal L_u, for almost every relevant energy uu. Thus, singular points are allowed, provided they form a set of zero surface measure on the level set.

Additional assumptions depend on the particular CMC implementation.

  • The exact sampler in Section 3.4 requires the structural conditions stated in Theorem 3.4.
  • CMC-HMC requires differentiability of UU, since its downstream HMC transitions require gradients. This is a requirement of the chosen downstream sampler rather than of the CMC framework itself: HMC could be replaced by a gradient-free kernel, such as random-walk Metropolis, when appropriate.
  • CMC-CHMC requires slightly stronger regularity. For each sampled energy uu, the level set Lu\mathcal L_u must be a C1C^1 (continuously differentiable) surface with ∇U(q)≠0\nabla U(q)\neq 0 for every q∈Luq\in \mathcal L_u. These conditions ensure that the constrained dynamics in CHMC are well-defined.

The revision will make these assumptions clearer, especially those required by CMC-CHMC.

Are there any unique challenges to applying CMC to multimodal distribution? It seems like this may be particularly difficult when compared with other approaches like HMC, since each PE level may have multiple modes within it. Does parallel tempering seem like a plausible route to resolving this?

Multimodality is indeed a distinct challenge, but we would like to clarify that it is not specific to CMC. Standard HMC and NUTS are also local samplers and are not designed to move reliably between well-separated modes.

Multimodality is typically addressed by a separate class of methods. One example is parallel tempering, which runs replicas at a ladder of temperatures and allows states to swap between them, so that hotter replicas can cross barriers and communicate mode discoveries to the cold target chain.

A natural multimodal extension of CMC would be to augment the decomposition with a basin label BB:

Π(dq)=∑b∫ΠQ∣U=u,B=b(dq) ΠU,B(du,b).\Pi(dq)=\sum_b\int \Pi_{Q\mid \mathcal U=u,B=b}(dq)\,\Pi_{\mathcal U,B}(du,b).

Stage (i) would then estimate the joint energy-basin distribution ΠU,B\Pi_{\mathcal U,B}, draw

(ui,bi)∼Π^U,B,(u_i,b_i)\sim\widehat{\Pi}_{\mathcal U,B},

and initialise each downstream chain within the corresponding basin and energy stratum. This would preserve CMC's population architecture while making the required mode allocation explicit.

It is not part of the present algorithm: such an extension would require an additional mode-discovery phase before estimating ΠU,B\Pi_{\mathcal U,B}. Parallel tempering would be a plausible candidate for this phase.

Apologies if I missed this, but will the tool be released as open-source software? Will it be released as part of a probabilistic programming toolchain like Stan, or does something prevent this from happening?

Yes. We plan to release the implementation as open-source software and integrate it into AdvancedHMC.jl in the near future. AdvancedHMC.jl is a modular Julia package for HMC and NUTS, and forms part of the broader Turing.jl probabilistic-programming ecosystem.

Authors · CommentOpenReview ↗

Response to Reviewer QmSc (2/2)

The paper is at times not very self-contained, especially for less-familiar readers. I was unfamiliar with umbrella sampling and did not have time to go learn about it, which made the paper much harder to understand. Some small primers on the less-well-known prerequisites would greatly improve the paper’s readability and hence potential impact

We apologise that the treatment of umbrella sampling in the main text was not sufficiently accessible to readers encountering the method for the first time. Space constraints unfortunately limited the amount of background material we could include.

We would like to draw the reviewer's attention to Appendix A.7, which describes umbrella sampling, its role in our method, and how the resulting samples are combined using MBAR (which itself is explained in Appendix A.6). However, this material should not carry the full explanatory burden.

In the revised paper, we will devote some of the additional space to a concise primer on umbrella sampling and MBAR, and make their role within the CMC pipeline more explicit, so that the method can be followed more easily.


We hope that these responses resolve your concerns. If so, we would be grateful if you would consider revising your score.

Reviewer QmSc · CommentOpenReview ↗

Thank you for the encouraging response; I appreciate that you will take time to ensure that the revision is more approachable. I will maintain my score.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Missing a submission?

Loading the discussion…