- Rating
- 5
- Clarity
- 3
- Confidence
- 3
- Originality
- 3
- Quality
- 3
- Significance
- 3
Read review
Summary
This work proposes treating the stopping time of an MCMC trajectory as a learnable quantity rather than a fixed or tuned hyperparameter. The authors recast MCMC-with-stopping as a GFlowNet defined on a state space where forward/backward classifiers determine the probability of terminating a trajectory at a given state. They then propose a practical training algorithm using a prefix trajectory-balance objective plus flow regularisation to encourage short trajectories, and interestingly a multilevel extension that interpolates between the initial and target distributions across levels, with the classifier deciding when to advance between levels. Experiments show that classifier-based stopping substantially shortens trajectories versus fixed-length ULA, and that the multilevel variant becomes competitive with diffusion-based samplers.
Strengths and weaknesses
Strengths:
- The core theoretical contribution of casting trajectory termination as part of the GFlowNet flow and deriving a closed-form characterisation of the optimal stopping classifier in terms of the target and the flow density (Eq. 15, Theorem 3.6 is a clean and conceptually satisfying unification of two previously separate literatures.
- The multilevel extension is a sensible way to combine the classifier-based-stopping idea with importance sampling-style tempering, and Table 2 shows it closing much of the gap to dedicated diffusion samplers (PIS, DDS) on the harder d=40/d=196 tasks while using comparable or fewer steps.
Weaknesses:
- The benchmarks are entirely synthetic; there is no evaluation on a genuine Bayesian inference task with real data and an unknown posterior, which is the setting the introduction motivates the work with.
- Training introduces several new components and the paper conclusion does acknowledges this "increases optimisation complexity". However, in my opinion, the work provides limited ablation discussing which components matter most.
Questions
- In Table 1, on ManyWell (d=40), the full model underperforms the classifier-only model on EUBO and is comparable on SD but slightly worse on ManyWell SD than the classifier-only variant in some rows. Thus, can the authors clarify when the learned forward-kernel correction helps versus hurts, and can this be predicted in advance?
- Could the authors provide a quantitative (not just qualitative) comparison between detailed balance, sub-trajectory balance, and prefix trajectory balance objectives on at least one benchmark, to substantiate the claim that prefix TB is the best practical choice?
- For the multilevel scheme, how does the choice of L and the temperature schedule affect the trajectory-length and sample-quality trade-off, and is there guidance for selecting L given a compute budget?
Limitations
See Weaknesses above.
Paper formatting concerns
N/A
Final justification
Resolved: the real-data gap (new Sonar Bayesian posterior experiment, multilevel beats PIS/DDS), the ManyWell instability question (traced to cubic score growth, mitigated by multilevel smoothing), and the training-objective ablation (DB vs SubTB vs Prefix-TB, quantitatively compared). Partially resolved: the broader ablation request where authors point to existing results in the rebuttal and promise a cleaner writeup, but no major new ablations beyond the objectives comparison. Unresolved: sensitivity to the classifier floor ε, bias diagnostics for the learned stopping rule, and the small variance estimates. Score maintained.
We thank the reviewer for the positive assessment of the theoretical construction and the multilevel extension. We greatly appreciate the comments recognizing the conceptual weight of our results.
W1: experiment on a Bayesian posterior
We conducted an experiment on the Sonar target, which is a Bayesian logistic-regression posterior from the benchmark of [1]. The posterior is 61-dimensional and is defined using 208 labeled observations. Given a dataset (X,Y)∈R208×61×0,1208, the prior and the likelihood distributions are
\qquad y_i \mid w \sim \operatorname{Bernoulli} \left( \sigma(x_i^\top w) \right), \quad d=61, \quad i=1,\ldots,208$$ Our task is to sample from the posterior $p(w\mid X,Y)$, where normalizing constant and exact samples are unavailable. | Algorithm $\downarrow$ Metric $\rightarrow$ | ELBO $\uparrow$ | $\mathsf{E}[n_{\tau}] \downarrow$ | | --- | --- | --- | | PIS | $−142.916 \pm \tiny 3.395$ | 64 | | DDS | $-121.365 \pm \tiny 5.093$ | 64 | | ULA w/ clf & corr (Ours) | $-166.200 \pm \tiny 4.381$ | $\mathbf{59.610 \pm \tiny 5.729}$ | | Multilevel $L=2$ (Ours) | $-133.891 \pm \tiny 5.913$ | $61.973 \pm \tiny 3.184$ | | Multilevel $L=5$ (Ours) | $\mathbf{-113.903 \pm \tiny 3.810}$ | $63.503 \pm \tiny 4.031$ | Since true samples from the posterior are unavailable, we cannot compute sample-based metrics such as SD and MMD. For the same reason, we do not report the EUBO, which requires samples from the target distribution. Therefore, we follow the evaluation protocol for Bayesian posterior targets from [1] and report ELBO. We repeat our paper's experimental setup, where we first measure the mean trajectory length $\mathsf{E}[n_{\tau}]$ of a trained multilevel sampler, then train diffusion samplers with approximately that number of steps. We report mean $\pm$ std over three runs. For diffusion samplers baselines we used a public available implementation from [1]. For our algorithms we used a learning rate $3 \times 10^{-4}$, a step size $\gamma=0.1$, a regularization coefficient $\rho=0.01$ and trajectories of length $N_{\max}=100$ during training. To determine $N_\max$, we run ULA with the same step size $\gamma$ and choose the smallest number of samples after which the effective sample size (ESS) stabilizes. The multilevel construction improves approximation quality. The $L=2$ model outperforms PIS in terms of ELBO, while the $L=5$ model achieves the best result overall, beating both PIS and DDS. Additional levels help a classifier $d_F$ to alter between regimes, not to early-stop at the posterior's mode and explore the space. We thank the reviewer for the suggestion and will add the results to the final version of the paper, as well as evaluate on three other Bayesian logistic-regression posterior targets from [1]. ## W2: ablations of method's components We already ablate several important components. Figure 2 varies the ULA step size $\gamma$ and flow regularization coefficient $\rho$, showing their effect on the trade-off between approximation quality and trajectory length. Step size $\gamma$ controls the balance between exploration and discretization error: a large step size leads to coarse, inaccurate steps and shorter trajectories, which can degrade approximation quality. Stronger flow regularization generally encourages earlier termination, while overly aggressive values can bias the learned terminal distribution. A similar trade-off was observed by [2] in the discrete non-acyclic GFlowNet setting. Table 1 compares setup of learning $q_F$, which we call "ULA w/ clf & corr", against a classifier-only setup "ULA w/ clf". The learned drift and variance corrections substantially improve SD, MMD, ELBO, and EUBO on GMM9 and Funnel, while the results on ManyWell are mixed, reflecting the additional difficulty of this target for gradient-based methods. In Table 2 increasing the number of levels consistently improves SD and MMD on GMM9, ManyWell, and Digits, compared with the single level model. We agree that these ablations should be presented and interpreted more systematically, and we will add this discussion together with the requested comparison of training objectives. ## Q1: instability of gradient-based methods on a ManyWell target ManyWell is known to be challenging for gradient-based methods. It is constructed from double-well potentials and for the one component the corresponding energy has a representation: $$E(x_1,x_2) = a x_1 + b x_1^2 + c x_1^4 + \frac{x_2^2}{2}$$ The cubic growth of the gradient of $E$ can produce very large score values for states outside the wells. This effect is amplified in the high-dimensional target and can lead to large transition-density ratios and unstable gradients of the objective, when we learn $q_F$ with a score of a target density (see Appendix A.1 for kernels parameterizations), and is a common problem for gradient-based methods [3]. In this setting, the classifier-only model can be more robust, which explains the better results. However, in the multilevel scheme we smooth the initial distribution $p_0$ and the target $\pi$ using a geometric interpolation, which make the problem much more stable and it can be a justification for the better results, when the kernel $q_F$ is learned. ## Q2: ablation of training objectives We compare detailed balance (DB), subtrajectory balance (SubTB), and prefix trajectory balance (Prefix-TB) on the same GMM9 (d=10) benchmark for our "ULA w/ clf & corr" setup using identical model architectures, hyperparameters, and training budgets. | Loss function $\downarrow$ Metric $\rightarrow$ | SD $\downarrow$ | MMD $\downarrow$ | $\mathsf{E}[n_\tau] \downarrow$ | Wall-clock time $\downarrow$ | | --- | ---: | ---: | ---: | ---: | | DB | $11.240 \pm \tiny 1.491$ | $0.070 \pm \tiny 0.010$ |$\mathbf{89.350 \pm \tiny 3.590}$ | $3.324 \pm \tiny 0.014$ | | SubTB | $\mathbf{5.752 \pm \tiny 2.832}$ | $\mathbf{0.043 \pm \tiny 0.013}$ |$148.201 \pm \tiny 5.131$ | $5.825 \pm \tiny 0.023$ | | Prefix-TB | $7.301 \pm \tiny 1.702$ | $0.056 \pm \tiny 0.011$ |$98.437 \pm \tiny 6.042$ | $\mathbf{3.320 \pm \tiny 0.027}$ | For our algorithms we used a learning rate $3 \times 10^{-4}$, a step size $\gamma=0.1$, a regularization coefficient $\rho=0.01$ and trajectories of length $N_{\max}=100$ during training. In addition to the sample-quality metrics SD and MMD reported in the paper and the mean trajectory length $\mathsf{E}[n_\tau]$, we report wall-clock time, aggregated over training iterations. SubTB achieves the best sample quality, likely because enforcing balance over multiple subtrajectories provides denser and more informative training signals. Nevertheless, improvement is tied to a considerable increase in trajectory length, which is probably another source of enhancement of the sampler. Prefix-TB offers a trade-off: it nearly matches SubTB in quality, but with trajectory lengths and wall-clock time comparable to DB, since its computation remains linear in the trajectory length. SubTB is considerably more expensive because its full objective is quadratic in trajectory length, increasing wall-clock time by about 75%. This cost is controlled here by fixed-length training trajectories, but can become prohibitive under on-policy training if trajectory lengths grow, as observed by [2]. ## Q3: effects of alternating the number of levels and the temperature schedule Increasing $L$ decomposes the original sampling problem into a sequence of easier transitions between closer intermediate distributions. This generally improves approximation quality (see Table 2). Compared with the single-level model, $L=5$ reduces SD and MMD on all three tasks but introduces computational cost during inference, since we need to proceed over the larger number of levels. To mitigate the growth of trajectories lengths, we tune the regularization coefficient $\rho$. Also, since $L=1$ corresponds to a setting with a homogeneous kernel $q_F$, increasing $L$ can make kernels more expressive and make classifiers alter between different regimes. A practical strategy to choose the number of levels is to begin with a small $L$ and increase it until the improvement in sample quality saturates under the available compute budget. Larger $L$ is particularly useful when the initial and target distributions have little overlap or when the target is strongly multimodal. The temperature schedule $\beta_{\ell}$ should be chosen so that consecutive intermediate distributions remain sufficiently close, but in our experiments we fixed a linear schedule to simplify the method. ## References [1] Blessing et al., Beyond ELBOs: A Large-Scale Evaluation of Variational Methods for Sampling, ICML 2024. [2] Morozov et al., Revisiting Non-Acyclic GFlowNets in Discrete Environments, ICML 2025 [3] Gritsaev et al., Adaptive Destruction Processes for Diffusion Samplers, NeurIPS 2025 Workshop