Stop the Sampler! Classifier-Based Adaptive Stopping for Sampling Kernels
Kirill Korolev, Nikita Morozov, Stepan Pavlenko, Esmeralda S. Whitammer, Sergey Samsonov
SPIGM @ ICML 2026
TL;DR. We propose a novel framework for designing MCMC samplers that can terminate adaptively while maintaining detailed balance, using techniques from the literature on generative flow networks.
Abstract. Sampling from complex, unnormalized probability densities is a fundamental challenge in Bayesian inference and probabilistic modeling. While Markov chain Monte Carlo (MCMC) methods provide asymptotic guarantees, they often suffer from slow mixing and high computational costs due to fixed or manually tuned trajectory lengths. In this work, we propose a novel framework that treats trajectory termination as a learnable component of the sampling dynamics. By framing MCMC within the theory of non-acyclic generative flow networks (GFlowNets), we train state-dependent neural classifiers to decide when a trajectory has reached a high-density region and should terminate. We theoretically establish the connection between optimal classifiers and the target density via detailed balance conditions and introduce a multilevel training scheme to facilitate exploration in complex geometries. Experimental results across various benchmark densities demonstrate that our approach significantly reduces average trajectory lengths while improving mode coverage and mixing compared to standard MCMC baselines.
From the authors: Nikita Morozov · edit · also an author?
Nothing yet.
edit · history
NeurIPS 2026
Accept (poster) · 4 reviews · OpenReview
Updated 25 Nov 2026, 03:50 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
This paper proposes a framework for learning state-dependent stopping decisions for sampling trajectories. The central idea is to formulate sampling dynamics with learnable termination as a non-acyclic continuous GFlowNet, where forward and backward classifiers determine whether a trajectory terminates or continues. The paper derives flow- and detailed-balance characterizations connecting the stopping classifiers, the flow density, and the target density. It then develops practical variants using prefix trajectory balance, learned forward and backward transition kernels, flow regularization, and a multilevel construction based on intermediate distributions.
The empirical results indicate that classifier-based stopping can substantially reduce trajectory lengths relative to fixed-length ULA and classical convergence diagnostics. The learned correction to the forward dynamics generally improves approximation quality, while the multilevel construction further improves performance on several challenging and higher-dimensional targets.
The paper presents a conceptually interesting and potentially useful connection between adaptive sampling and GFlowNet theory. At the same time, several aspects of the method, theoretical scope, and empirical interpretation require clarification. In particular, the current presentation makes it difficult to reconstruct the complete practical method, distinguish the roles of its different components, and determine which theoretical statements apply to the implemented samplers. This concern was raised independently in multiple reviews and is also consistent with my own reading.
This is not merely a matter of stylistic polish. The exposition affects the reader's ability to verify the technical contribution, interpret the experiments, understand the scope of the theoretical claims, and identify which components are responsible for the reported empirical behavior. The author response should therefore prioritize the questions below.
Positive aspects
-
Conceptually interesting formulation. Treating trajectory termination as a learnable component and casting the resulting process as a non-acyclic GFlowNet provides a novel connection between adaptive sampling and GFlowNet theory.
-
Nontrivial theoretical perspective. The flow-based formulation, the relations among the stopping classifiers, target density, and flow density, and the fixed-kernel characterization provide a principled account of adaptive termination.
-
Promising empirical behavior. The experiments show substantial reductions in average trajectory length. The learned forward correction and multilevel construction also improve sampling quality and mode coverage on several benchmark targets.
-
Potentially broad scope. The framework may be relevant not only to learning stopping decisions, but also to the design of more flexible amortized sampling procedures.
Prioritized questions for the author response
1. Clear and self-contained specification of the complete method
Multiple readers found it difficult to reconstruct the complete method and its variants from the main paper. Please provide a concise and unified description of the actual training and sampling procedures, including:
- which quantities are learned in the classifier-only, full, and multilevel variants;
- the respective roles of , , , and ;
- how prefix trajectory balance and flow regularization are used;
- how on-policy sampling, off-policy replay, and MALA-based local search enter the training procedure;
- which components are used only during training and which are used at inference time; and
- how each practical variant corresponds to the theoretical formulation.
A response that only points to separate equations or appendix sections would not fully resolve this concern. Please provide a coherent account of the complete pipeline and the relationships among the different variants.
Please also explain how the paper would be revised so that the central method and the distinctions among the variants are accessible from the main text. A wholesale rewrite is not expected during the response period, but the response should demonstrate that the method can be stated clearly and unambiguously.
2. Scope of the theoretical connection to MCMC
Theorem 3.6 assumes uniform geometric ergodicity of the fixed kernel, with a total-variation convergence bound that is uniform over the initial distribution. This appears to be a strong condition for local ULA kernels on unbounded continuous state spaces.
Does the ULA kernel used in the experiments satisfy this assumption for the considered targets? If not, please clarify precisely which parts of Theorem 3.6 and its associated de-biasing interpretation remain applicable to the practical setting.
In particular, please distinguish clearly among:
- the general correctness result under exact flow and reward matching;
- the fixed-kernel characterization under the assumptions of Theorem 3.6; and
- the guarantees, if any, that apply to the experimentally implemented ULA-based models.
Please narrow the theoretical interpretation where the stated assumptions do not cover the practical kernels.
3. Correctness under approximate neural optimization
The exact sampling statements rely on flow matching, reward matching, detailed balance, or trajectory balance being satisfied exactly. In practice, these conditions are enforced only approximately through a finite-capacity neural model and an optimization objective.
Please explain what can be concluded when the balance objective is not minimized exactly. Is there:
- a theoretical bound relating balance residuals to the discrepancy between the terminal and target distributions;
- an existing result that applies to this setting; or
- a practical diagnostic indicating whether the trained sampler is sufficiently close to the target?
If no such result is currently available, please clarify how the practical method should be characterized. In particular, please state clearly whether it should be viewed as an amortized approximate sampler rather than an asymptotically exact MCMC method. This distinction is important for interpreting the paper's motivation and technical claims.
4. Attribution of the empirical improvements
Several components change across the proposed variants, including the stopping classifier, learned forward correction, learned backward dynamics, multilevel construction, replay-buffer training, and MALA-based local search.
Please clarify which empirical gains can specifically be attributed to adaptive stopping. In particular:
- the classifier-only variant appears primarily to reduce trajectory length, while improvements in approximation quality appear to arise largely from the learned forward correction;
- on some ManyWell metrics, the full model underperforms the classifier-only variant; and
- replay and local-search mechanisms may improve exploration independently of the stopping policy.
Please explain when the learned forward correction is expected to help or hurt, and provide the clearest available evidence separating the contribution of adaptive stopping from those of the learned kernel and auxiliary training mechanisms.
A large new ablation campaign is not required during the response period. However, the existing results should be interpreted carefully, and claims about the source of the improvements should be narrowed where the experiments do not isolate a particular component.
5. End-to-end computational cost and practical parameter selection
The efficiency discussion focuses primarily on trajectory length after the sampler has been trained. The proposed approach additionally requires fixed-length trajectory generation during training, neural optimization, replay-buffer updates, and periodic MALA local search, whereas several MCMC baselines are training-free.
Please discuss the end-to-end computational trade-off, including:
- training and inference costs;
- the number of generated samples or repeated sampling tasks needed for the training cost to be amortized;
- whether the reported efficiency advantage remains meaningful when auxiliary training procedures are included; and
- how , the number of levels , the temperature schedule, regularization coefficients, and other important hyperparameters would be selected in a realistic posterior-sampling problem where reference samples or direct Wasserstein-distance diagnostics are unavailable.
Additional considerations
The empirical evaluation is primarily conducted on synthetic or otherwise controlled target distributions. The high-dimensional Digits task is more challenging than a simple toy example, but it does not fully demonstrate the proposed method in the genuine Bayesian posterior-sampling setting emphasized in the motivation. An evaluation on a realistic posterior would strengthen the practical evidence. However, an extensive new experimental campaign is not expected during the author-response period.
The appendix contains pseudocode and additional implementation details, so the concern is not that the paper provides no algorithmic information. Rather, the central method, its practical implementation, and its theoretical interpretation are not currently communicated in a sufficiently integrated and accessible manner.
Please address the five prioritized questions above as directly and concretely as possible, and narrow the corresponding claims wherever the current theory or empirical evidence does not support the broader interpretation.
Final justification
The author response and subsequent discussion substantially addressed the main issues raised in the initial meta-review. In particular, the authors provided a much clearer and more unified account of the complete training and sampling pipeline, distinguished the classifier-only, learned-kernel, and multilevel variants, and proposed concrete revisions to reorganize the exposition and move a compact algorithm into the main text. The reviewers who had raised the strongest presentation concerns subsequently regarded these issues as addressable. The final version should implement these revisions carefully, as clear exposition is particularly important for making the theoretical and methodological contribution accessible beyond the GFlowNet community.
The response also clarified an important distinction in the theoretical scope. The authors acknowledged that the uniform geometric ergodicity assumption in Theorem 3.6 is restrictive and does not generally describe the ULA kernels used in the experiments. They separated this fixed-kernel characterization from the more general correctness results under exact flow/reward matching and clarified that the practically trained neural sampler should be viewed as an amortized approximate sampler rather than an asymptotically exact MCMC method. This clarification does not eliminate the limitation—there remains no tight guarantee relating approximate balance optimization to terminal-distribution error—but it appropriately narrows the theoretical interpretation and prevents the practical method from being assigned a stronger guarantee than is established.
The empirical concerns were also substantially addressed during discussion. The authors added a real Bayesian logistic-regression posterior experiment, comparisons of DB/SubTB/Prefix-TB objectives, a preconditioned variant, step-budget-matched diffusion-sampler comparisons, and an experiment removing the replay-buffer/MALA training mechanisms. These results provide useful evidence on the roles of adaptive stopping, kernel learning, and the training procedure. Some reservations remain about the breadth of the empirical validation, sensitivity and bias diagnostics for the learned stopping rule, and the extent to which individual components account for the observed gains. The computational advantage should likewise be interpreted in the amortized regime, as the method incurs nontrivial training cost. Nevertheless, these limitations do not undermine the central methodological and theoretical contribution.
On balance, I recommend acceptance. The paper provides a conceptually interesting connection between adaptive stopping and non-acyclic GFlowNets, a principled theoretical formulation under exact balance conditions, and promising empirical evidence for adaptive-horizon sampling. The author response resolved or appropriately scoped the issues that were most important for assessing this contribution, while the remaining concerns are best viewed as limitations and directions for further validation rather than reasons to preclude publication. The final version should incorporate the promised presentation improvements and clearly preserve the narrowed distinction between the exact theoretical results and the approximate learned sampler used in practice.
Read meta-review
Meta-review
This paper proposes a framework for learning state-dependent stopping decisions for sampling trajectories. The central idea is to formulate sampling dynamics with learnable termination as a non-acyclic continuous GFlowNet, where forward and backward classifiers determine whether a trajectory terminates or continues. The paper derives flow- and detailed-balance characterizations connecting the stopping classifiers, the flow density, and the target density. It then develops practical variants using prefix trajectory balance, learned forward and backward transition kernels, flow regularization, and a multilevel construction based on intermediate distributions.
The empirical results indicate that classifier-based stopping can substantially reduce trajectory lengths relative to fixed-length ULA and classical convergence diagnostics. The learned correction to the forward dynamics generally improves approximation quality, while the multilevel construction further improves performance on several challenging and higher-dimensional targets.
The paper presents a conceptually interesting and potentially useful connection between adaptive sampling and GFlowNet theory. At the same time, several aspects of the method, theoretical scope, and empirical interpretation require clarification. In particular, the current presentation makes it difficult to reconstruct the complete practical method, distinguish the roles of its different components, and determine which theoretical statements apply to the implemented samplers. This concern was raised independently in multiple reviews and is also consistent with my own reading.
This is not merely a matter of stylistic polish. The exposition affects the reader's ability to verify the technical contribution, interpret the experiments, understand the scope of the theoretical claims, and identify which components are responsible for the reported empirical behavior. The author response should therefore prioritize the questions below.
Positive aspects
-
Conceptually interesting formulation. Treating trajectory termination as a learnable component and casting the resulting process as a non-acyclic GFlowNet provides a novel connection between adaptive sampling and GFlowNet theory.
-
Nontrivial theoretical perspective. The flow-based formulation, the relations among the stopping classifiers, target density, and flow density, and the fixed-kernel characterization provide a principled account of adaptive termination.
-
Promising empirical behavior. The experiments show substantial reductions in average trajectory length. The learned forward correction and multilevel construction also improve sampling quality and mode coverage on several benchmark targets.
-
Potentially broad scope. The framework may be relevant not only to learning stopping decisions, but also to the design of more flexible amortized sampling procedures.
Prioritized questions for the author response
1. Clear and self-contained specification of the complete method
Multiple readers found it difficult to reconstruct the complete method and its variants from the main paper. Please provide a concise and unified description of the actual training and sampling procedures, including:
- which quantities are learned in the classifier-only, full, and multilevel variants;
- the respective roles of , , , and ;
- how prefix trajectory balance and flow regularization are used;
- how on-policy sampling, off-policy replay, and MALA-based local search enter the training procedure;
- which components are used only during training and which are used at inference time; and
- how each practical variant corresponds to the theoretical formulation.
A response that only points to separate equations or appendix sections would not fully resolve this concern. Please provide a coherent account of the complete pipeline and the relationships among the different variants.
Please also explain how the paper would be revised so that the central method and the distinctions among the variants are accessible from the main text. A wholesale rewrite is not expected during the response period, but the response should demonstrate that the method can be stated clearly and unambiguously.
2. Scope of the theoretical connection to MCMC
Theorem 3.6 assumes uniform geometric ergodicity of the fixed kernel, with a total-variation convergence bound that is uniform over the initial distribution. This appears to be a strong condition for local ULA kernels on unbounded continuous state spaces.
Does the ULA kernel used in the experiments satisfy this assumption for the considered targets? If not, please clarify precisely which parts of Theorem 3.6 and its associated de-biasing interpretation remain applicable to the practical setting.
In particular, please distinguish clearly among:
- the general correctness result under exact flow and reward matching;
- the fixed-kernel characterization under the assumptions of Theorem 3.6; and
- the guarantees, if any, that apply to the experimentally implemented ULA-based models.
Please narrow the theoretical interpretation where the stated assumptions do not cover the practical kernels.
3. Correctness under approximate neural optimization
The exact sampling statements rely on flow matching, reward matching, detailed balance, or trajectory balance being satisfied exactly. In practice, these conditions are enforced only approximately through a finite-capacity neural model and an optimization objective.
Please explain what can be concluded when the balance objective is not minimized exactly. Is there:
- a theoretical bound relating balance residuals to the discrepancy between the terminal and target distributions;
- an existing result that applies to this setting; or
- a practical diagnostic indicating whether the trained sampler is sufficiently close to the target?
If no such result is currently available, please clarify how the practical method should be characterized. In particular, please state clearly whether it should be viewed as an amortized approximate sampler rather than an asymptotically exact MCMC method. This distinction is important for interpreting the paper's motivation and technical claims.
4. Attribution of the empirical improvements
Several components change across the proposed variants, including the stopping classifier, learned forward correction, learned backward dynamics, multilevel construction, replay-buffer training, and MALA-based local search.
Please clarify which empirical gains can specifically be attributed to adaptive stopping. In particular:
- the classifier-only variant appears primarily to reduce trajectory length, while improvements in approximation quality appear to arise largely from the learned forward correction;
- on some ManyWell metrics, the full model underperforms the classifier-only variant; and
- replay and local-search mechanisms may improve exploration independently of the stopping policy.
Please explain when the learned forward correction is expected to help or hurt, and provide the clearest available evidence separating the contribution of adaptive stopping from those of the learned kernel and auxiliary training mechanisms.
A large new ablation campaign is not required during the response period. However, the existing results should be interpreted carefully, and claims about the source of the improvements should be narrowed where the experiments do not isolate a particular component.
5. End-to-end computational cost and practical parameter selection
The efficiency discussion focuses primarily on trajectory length after the sampler has been trained. The proposed approach additionally requires fixed-length trajectory generation during training, neural optimization, replay-buffer updates, and periodic MALA local search, whereas several MCMC baselines are training-free.
Please discuss the end-to-end computational trade-off, including:
- training and inference costs;
- the number of generated samples or repeated sampling tasks needed for the training cost to be amortized;
- whether the reported efficiency advantage remains meaningful when auxiliary training procedures are included; and
- how , the number of levels , the temperature schedule, regularization coefficients, and other important hyperparameters would be selected in a realistic posterior-sampling problem where reference samples or direct Wasserstein-distance diagnostics are unavailable.
Additional considerations
The empirical evaluation is primarily conducted on synthetic or otherwise controlled target distributions. The high-dimensional Digits task is more challenging than a simple toy example, but it does not fully demonstrate the proposed method in the genuine Bayesian posterior-sampling setting emphasized in the motivation. An evaluation on a realistic posterior would strengthen the practical evidence. However, an extensive new experimental campaign is not expected during the author-response period.
The appendix contains pseudocode and additional implementation details, so the concern is not that the paper provides no algorithmic information. Rather, the central method, its practical implementation, and its theoretical interpretation are not currently communicated in a sufficiently integrated and accessible manner.
Please address the five prioritized questions above as directly and concretely as possible, and narrow the corresponding claims wherever the current theory or empirical evidence does not support the broader interpretation.
Final justification
The author response and subsequent discussion substantially addressed the main issues raised in the initial meta-review. In particular, the authors provided a much clearer and more unified account of the complete training and sampling pipeline, distinguished the classifier-only, learned-kernel, and multilevel variants, and proposed concrete revisions to reorganize the exposition and move a compact algorithm into the main text. The reviewers who had raised the strongest presentation concerns subsequently regarded these issues as addressable. The final version should implement these revisions carefully, as clear exposition is particularly important for making the theoretical and methodological contribution accessible beyond the GFlowNet community.
The response also clarified an important distinction in the theoretical scope. The authors acknowledged that the uniform geometric ergodicity assumption in Theorem 3.6 is restrictive and does not generally describe the ULA kernels used in the experiments. They separated this fixed-kernel characterization from the more general correctness results under exact flow/reward matching and clarified that the practically trained neural sampler should be viewed as an amortized approximate sampler rather than an asymptotically exact MCMC method. This clarification does not eliminate the limitation—there remains no tight guarantee relating approximate balance optimization to terminal-distribution error—but it appropriately narrows the theoretical interpretation and prevents the practical method from being assigned a stronger guarantee than is established.
The empirical concerns were also substantially addressed during discussion. The authors added a real Bayesian logistic-regression posterior experiment, comparisons of DB/SubTB/Prefix-TB objectives, a preconditioned variant, step-budget-matched diffusion-sampler comparisons, and an experiment removing the replay-buffer/MALA training mechanisms. These results provide useful evidence on the roles of adaptive stopping, kernel learning, and the training procedure. Some reservations remain about the breadth of the empirical validation, sensitivity and bias diagnostics for the learned stopping rule, and the extent to which individual components account for the observed gains. The computational advantage should likewise be interpreted in the amortized regime, as the method incurs nontrivial training cost. Nevertheless, these limitations do not undermine the central methodological and theoretical contribution.
On balance, I recommend acceptance. The paper provides a conceptually interesting connection between adaptive stopping and non-acyclic GFlowNets, a principled theoretical formulation under exact balance conditions, and promising empirical evidence for adaptive-horizon sampling. The author response resolved or appropriately scoped the issues that were most important for assessing this contribution, while the remaining concerns are best viewed as limitations and directions for further validation rather than reasons to preclude publication. The final version should incorporate the promised presentation improvements and clearly preserve the narrowed distinction between the exact theoretical results and the approximate learned sampler used in practice.
2 comments
Response to meta-review (2/2)
Q4: Attribution of improvements
We have addressed this in three ways in our responses to the reviewers:
- The response to qWEp (W1 & Q1) explains the mechanisms: the classifier determines the terminal law and debiases a fixed kernel, while learned corrections improve mode transitions. Our follow-up quantifies the length/quality trade-off on GMM9 (; new configuration).
- The response to Z38L (Q1) explains when corrections hurt (the numerical instability in the score on ManyWell, mitigated by multilevel smoothing).
- In our final exchange with gfhd, we provide the requested isolation of gains from off-policy training: training without a replay buffer and MALA on Sonar reaches ELBO (vs. / with them), showing the gains are not attributable to the training recipe alone, together with step-budget-matched PIS/DDS reruns that preserve the ranking.
We will narrow the mixing claim in contribution 3 to what these ablations support and add a systematic ablation section.
Q5: End-to-end cost and hyperparameter selection
We have addressed this topic in the responses:
- The training-vs-inference trade-off and amortization regime are discussed in the response to qWEp (W2).
- Practical hyperparameter selection without reference samples is demonstrated in the Sonar protocol (responses to gfhd W5 / Z38L W1): via ESS stabilization of ULA at the same step size, using ELBO as a target-sample-free selection criterion.
- Guidance on , , and is given in the response to Z38L (Q3), with wall-clock costs in the DB/SubTB/Prefix-TB comparison.
We will consolidate this into a paragraph on practical hyperaparameter selection in the final version.
Additional considerations
The requested tests on realistic Bayesian posteriors were added during the discussion: the 61-dimensional Sonar Bayesian logistic regression, including a preconditioned multilevel variant, step-matched baselines, and the exploration ablation. The results continue to support the main claims of our paper. Three further logistic regression targets will be added to the final version.
In conclusion, we note that Reviewers tMLs, qWEp, and Z38L confirmed their concerns were addressed, and Reviewer gfhd also raised their score after the rebuttal.
Thank you again for handling the review process for our paper.
- Rating
- 5/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
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.
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.
Formatting concerns
N/A
2 comments
Rebuttal
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 , the prior and the likelihood distributions are
Our task is to sample from the posterior , where normalizing constant and exact samples are unavailable.
| Algorithm Metric | ELBO | |
|---|---|---|
| PIS | 64 | |
| DDS | 64 | |
| ULA w/ clf & corr (Ours) | ||
| Multilevel (Ours) | ||
| Multilevel (Ours) |
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 of a trained multilevel sampler, then train diffusion samplers with approximately that number of steps.
We report mean std over three runs. For diffusion samplers baselines we used a public available implementation from [1]. For our algorithms we used a learning rate , a step size , a regularization coefficient and trajectories of length during training. To determine N_\max, we run ULA with the same step size and choose the smallest number of samples after which the effective sample size (ESS) stabilizes.
The multilevel construction improves approximation quality. The model outperforms PIS in terms of ELBO, while the model achieves the best result overall, beating both PIS and DDS. Additional levels help a classifier 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 and flow regularization coefficient , showing their effect on the trade-off between approximation quality and trajectory length. Step size 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 , 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:
The cubic growth of the gradient of 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 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 and the target using a geometric interpolation, which make the problem much more stable and it can be a justification for the better results, when the kernel 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 Metric | SD | MMD | Wall-clock time | |
|---|---|---|---|---|
| DB | ||||
| SubTB | ||||
| Prefix-TB |
For our algorithms we used a learning rate , a step size , a regularization coefficient and trajectories of length during training. In addition to the sample-quality metrics SD and MMD reported in the paper and the mean trajectory length , 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 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, 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 . Also, since corresponds to a setting with a homogeneous kernel , increasing 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 and increase it until the improvement in sample quality saturates under the available compute budget. Larger is particularly useful when the initial and target distributions have little overlap or when the target is strongly multimodal. The temperature schedule 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
Thanks for the thorough rebuttal. The new Sonar experiment and the DB/SubTB/Prefix-TB comparison help. I'm still curious about the epsilon-floor sensitivity and some bias checks on the stopping rule itself, but those don't change my overall take. My score stands and I enjoyed reading youe work.
- Rating
- 3/6
- Confidence
- 4/5
- Quality
- 2/4
- Clarity
- 1/4
- Significance
- 2/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
It is hard to choose the right length of MCMC for approximate inference. This work uses GFlowNets to train a network that chooses when to stop. This work provides some theoretical background on the connection between optimal classifiers and the target density. It also empirically validates that early stopped MCMC still achieves sufficient performance.
Strengths and weaknesses
Strengths
- The authors provide some theoretical connection between sampling dynamics with early stopping and non-acyclic GFN environment, which I think is novel.
Weaknessess
- Although I have a decent background knowledge theories of GFlowNets, Section 2 (Background) is in general hard to follow. I think for those who have less background will have a hard time understand and follow all the notations and formulations, which authors just present sequentially. I beleive it would have been a better background section if the authors can clearly state which core concepts are needed to understand their methods and describe the reason they are brining those preliminary works in this section.
- I think the presentation of the main method section could be improved more. It would have been great if things are self-contained and well-described. It is important to describe clearly what they are within sentences for Assumptions, Definitions, Theorems or Proposition. For example, for Assumption 3.1, after the authors present a bunch of new notations, they just throw away this assumption without any explanation. They just started defending the assumption that this is common in previous literature without explaining what it is. This is similar to any theory-related statements in this section. If those are not properly explained in the text, it is really hard to follow the overall story clearly.
- This paper should provide better explanation of their method (what exactly the model is, what the algorithm is, how to train) and choice of experiment. In experiment, without any explanation, the authors start with comparing with ULA. It would have been much better if the authors provide the reason for comparing with ULA and why it is appropriate to integrate with ULA. Also, there is no detail experiment setup provided before they actually show the results.
- I had a hard time understanding what their "full model" is until I finish reading the experiments. I think the whole presentation should be fixed.
- Experiments are also very limited. I am willing to adjust the score if the authors provide more comprehensive experiments.
Questions
- Proposing a new algorithm is one of the main contributions but where is the algorithm? I cannot find an algorithm in the main paper, which makes it difficult to understand what exactly this paper is doing. Can you at least provide a pseudocode of what you are doing?
- In section 3.3, it says "Based on our theory, various GFlowNet objectives can be used to train the model" but what is "the model" here? Is it the classifier or something else? If so, where did you define the model in the main paper and what's the architecture of the model?
- Why are you comparing with Unadjusted Langevin Algorithm (ULA)?
- I think the authors put the details of RG and Geweke in the appendix, but isn't it critical to explain what the main baselines are in the main paper?
Limitations
Yes
Final justification
After the discussion period, I still believe this paper's experimental evaluation is limited, but the authors did their best to address some of my concerns during the rebuttal so I'm updating my score to weak reject. It would be great if AC can read the discussion and decide on the quality of the experimental validation of this paper.
Formatting concerns
N/A
8 comments
Rebuttal
We thank the reviewer for recognizing the novelty of the connection between adaptive stopping and non-acyclic GFlowNets. We agree that the current presentation may be overly complicated for readers unfamiliar with measure theoretic formulation of general state space GFlowNets. We will revise the main text to make the theory and the proposed algorithm more clear.
W1-2: Background and Section 3.1 presentation
We will reorganize Sections 2 and 3. In particular, we will simplify Section 2.1 by retaining only the minimum GFlowNet background required for the main construction. The more general measure-theoretic definitions and optional technical conditions will be moved to the appendix.
We will begin Section 3 by motivating the classifier as a stopping rule and, for fixed , a debiasing mechanism. We will then define the state space and forward/backward dynamics before introducing the flow measure and terminal-law guarantee.
Assumption 3.1 states that trajectories induced by the forward kernel have finite expected length and therefore terminate at the sink state almost surely. This allows to treat the forward process as an absorbing Markov process with finite expected absorption time. It also guarantees that the flow measure in Definition 3.2 is finite.
Then we follow the standard GFlowNet theoretical construction: we define the flow measure induced by , establish the corresponding balance conditions, and then prove that the resulting terminal law is equal to the target distribution. We agree, however, that the motivation for Assumption 3.1 and several subsequent statements is not explained sufficiently. In the revised version we will clarify why the assumption is required and add more intuition around the theoretical results in section 3.
W3-4, Q1-2: main algorithm and experimental details
We would like to clarify that the main text already describes the essential components of the algorithm. Section 3.1 defines the structured state space, the stopping classifiers , the continuous transition kernels , and the resulting forward and backward policies. Section 3.3 specifies which components are parameterized and learned, introduces the prefix TB loss and flow regularization, and explains how trajectory prefixes are used for training. Section 3.4 then describes the corresponding multilevel extension.
Due to space limitations, kernel parameterizations, detailed training procedure, neural architectures and environment-specific hyperparameters were provided in Appendices A.1-A.5. Complete pseudocode is provided in Appendix A.3 as Algorithm 1. Thus, the method is specified in the submission, but we agree that separating the conceptual description in the main text from the appendix makes the complete pipeline rather difficult to reconstruct.
We will therefore move a compact version of Algorithm 1 to the main text, add explicit references to the detailed appendix sections, and provide a clearer step-by-step explanation distinguishing training-time and inference-time components.
For clarity, we provide the description of the method below.
Description of the method
The forward process starts from and at each state either terminates with probability or continues according to (see eq. (14)).
The backward policy is defined analogously using and . The components and are used to evaluate reverse trajectory probabilities during training, but are not required at inference. Please, see Figure 1 for how transitions are constructed.
As stated in Section 3.3, we assume parametric policies and with learnable classifiers , learnable transition kernels , and a learnable normalizing constant .
In first section of the experiments we consider two ULA-based variants:
- ULA w/ clf: is fixed to ULA, while , and are learned.
- ULA w/ clf & corr: is also learned through state-dependent drift, score-scaling, and variance corrections.
The exact Gaussian parameterizations and MLP architecture are given in Appendices A.1 and A.3.
Since trajectory balance doesn't depend on the distribution from which trajectories come from, we used well-established off-policy training recipes that are standard for GFlowNet literature [1], such as usage of a replay buffer and MALA local search. Training alternates between:
- collect trajectories from using with disabled, put terminal states in a replay buffer
- collect trajectories starting from terminal states, which are sampled from a replay buffer, and use afterwards with disabled
- periodically update buffer of terminal states using MALA local search
The classifiers are disabled during data collection, and trajectories of a fixed length are generated to ensure sufficient exploration. Each prefix is then completed by a transition to and optimized using prefix TB and flow regularization, as defined in Eq. (21). MALA local search and replay-buffer updates improve exploration and stability on training, though they are auxiliary training mechanisms and are not part of the inference.
After training, samples are generated using and with transitions described in eq. (14).
For the multilevel scheme, the same training procedure is applied to each of the adjacent GFlowNet tasks using trajectory segments of length . The neural networks are shared across levels and conditioned on an encoded level variable .
For more specifics please refer to Appendices A.1-A.5.
W3 & Q3: justification to compare with ULA
The choice of ULA is motivated by both practice and theory. First, Langevin-type parameterizations are widely used in amortized samplers, as they correspond to the discretizations of a particular diffusion processes. The target score is included in the transition mean, while additional drift, score-scaling are learned. Our forward parameterization follows exactly this structure and reduces to standard ULA when the learned corrections are disabled.
Second, ULA with constant step size is an inexact MCMC kernel (due to discretization bias), which makes it a natural test case for Theorem 3.6. The theorem motivates using the stopping classifier to de-bias a fixed kernel, while the learned drift and variance corrections can further improve exploration and approximation quality. We will add this motivation before the ULA experiments and include a direct reference to the appendix sections containing the full experimental setup and hyperparameters.
Q4: description of the diagnostics baselines
We would not characterize RG and Geweke as the main baselines of the paper. The main goal of our work is not merely to shorten MCMC trajectories, but to introduce a new amortized sampling framework that can simultaneously learn both adaptive kernels and stopping decisions, de-bias fixed transition kernels and improve sampling quality. Shorter MCMC trajectories are one consequence of this broader construction. RG and Geweke are auxiliary baselines included specifically to compare our learned stopping mechanism with classical convergence-diagnostic stopping rules.
W5: additional experiment on a Bayesian posterior
We conducted an experiment on the Sonar target, which is a Bayesian logistic-regression posterior from the benchmark of [2]. The posterior is 61-dimensional and is defined using 208 labeled observations. Given a dataset , the prior and the likelihood distributions are
Our task is to sample from the posterior , where normalizing constant and exact samples are unavailable.
| Algorithm Metric | ELBO | |
|---|---|---|
| PIS | 64 | |
| DDS | 64 | |
| ULA w/ clf & corr (Ours) | ||
| Multilevel (Ours) | ||
| Multilevel (Ours) |
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 [2] and report ELBO. We repeat our paper's experimental setup, where we first measure the mean trajectory length of a trained multilevel sampler, then train diffusion samplers with approximately that number of steps.
We report mean std over three runs. For diffusion samplers baselines we used a public available implementation from [2]. For our algorithms we used a learning rate , a step size , a regularization coefficient and trajectories of length during training. To determine N_\max, we run ULA with the same step size and choose the smallest number of samples after which the effective sample size (ESS) stabilizes.
The multilevel construction improves approximation quality. The model outperforms PIS in terms of ELBO, while the model achieves the best result overall, beating both PIS and DDS.
We will add these results to the final version of the paper, as well as evaluate on three other Bayesian logistic-regression posterior targets from [2].
References
[1] Sendera et al., Improved off-policy training of diffusion samplers, NeurIPS 2024
[2] Blessing et al., Beyond ELBOs: A Large-Scale Evaluation of Variational Methods for Sampling, ICML 2024
Thanks for the detailed rebuttal! Before I reply to your full rebuttal, I just wanted to quickly check that the numbers are right for the experiments. When I see Table 5 from [2] paper, your results of -133 and -113 are VERY bad since even a Gaussian mixture model achieves -108 of ELBO values (and there are many other baselines that are way better than your reported numbers). Now I feel more skeptical of your proposed method. What do you think of this?
[2] Blessing et al., Beyond ELBOs: A Large-Scale Evaluation of Variational Methods for Sampling, ICML 2024
Thanks for your quick reply.
The numbers -133 and -113 are indeed correct for our method. At the same time, we would like to draw the reviewer’s attention to the following points:
-
Regarding the concern there are many other baselines that are way better than your reported numbers, this is a fair point. However, the comparison is strongly affected by the geometry of this particular target. Table 5 of [2] shows that diffusion samplers such as PIS, DDS, and GBS perform substantially worse than GMMVI, while it is consistently the best-performing one (or at least among the top-2) among all considered logistic regression problems. This is not surprising: indeed, the posterior in logistic regression is very close to ill-conditioned Gaussian, and GMM exploits this structure. This was also observed by the authors of [2], see the corresponding discussion at the beginning of section 7.2. At the same time, other results (Fashion and MNIST examples, Table 4 in [2]) show poor performance of GMM compared to diffusion samplers on distributions that cannot be well approximated by a Gaussian. This is reasonable, as one generally can not expect a single method to perform uniformly better across all sampling problems.
-
We highlight that our primary contribution is methodological: we suggest an improved diffusion sampler-based methodology and provide the corresponding training pipeline. Thus, we believe that our primary competitors are other diffusion sampler algorithms, namely DDS and PIS, as reported in our rebuttal. Our results for both baselines closely reproduce the ones which were reported in Table 5 of [2], and we show that our Multilevel method improves over both approaches. We intended to include these results in the rebuttal merely as a demonstration of our advantages over the baselines: we do not claim SOTA on the sampling problem associated with logistic regression, and we obviously did not have enough time to tune all the hyperparameters for our method. As already mentioned, the example of ill-conditioned logistic regression is fairly complicated for diffusion samplers, and that is why the reported numbers are still worse e.g. compared to the GMM from [2]. In the revised version, we intend to provide a more comprehensive comparison across other logistic regression problems from [2].
[2] Blessing et al., Beyond ELBOs: A Large-Scale Evaluation of Variational Methods for Sampling, ICML 2024
- Rating
- 5/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 4/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper studies MCMC sampling within the GFlowNet framework and proposes an adaptive stopping mechanism in which a learnable classifier decides when to terminate a sampling trajectory, significantly reducing the average trajectory length. By casting MCMC-with-stopping into the theory of non-acyclic continuous GFlowNets, the authors derive a connection between the stopping classifier and the target density via detailed balance. Experimentally, the mechanism reduces trajectory length substantially relative to standard MCMC while the authors also report improvements in sampling efficiency and approximation quality.
Strengths and weaknesses
Strengths
Clarity and structure. The paper is well-structured and easy to follow. The measure-theoretic setup is introduced carefully, and the structured non-acyclic state space (Fig. 1) makes the forward/backward construction and the role of the stopping classifier easy to understand. The theoretical formulation is presented in a clear and organized way.
Weaknesses
-
It is not clear why the mechanism should improve approximation quality. The reduction in trajectory length is clearly demonstrated, but the connection between adaptive stopping and the gain in approximation quality is not made explicit. This could be better demonstrated with an ablation experiment: the learned kernel q_F with the classifier disabled (or with fixed-length trajectories). Without it, it is unclear whether adaptive stopping contributes to approximation quality at all, or whether it is purely a length-reduction device.
-
The efficiency claim does not account for training cost. Efficiency is argued through reduced trajectory length, but this is an amortized method whereas the MCMC baselines (ULA, ULA-RG, ULA-Geweke) are training-free. The practicality of efficiency accounting can be improved by including the training cost plus the inference cost.
Questions
Questions
- The paper states that the proposed algorithm (1) improves approximation quality and (2) is more effective at transitioning between modes. Could the authors explain the mechanism by which each of these two effects is achieved? In particular, the ablation described above (learned kernel with the classifier disabled) would help clarify whether the approximation-quality gains are attributable to the stopping mechanism or to the learned kernel correction.
- The gradient-clipping value for ManyWell in Table 3 (1e-5) is far smaller than for the other environments. Does this reflect optimization instability of the objective on this target, or are there other reasons?
Limitations
Yes
Final justification
I have increased my score from 4 to 5 following the author response and discussion phase.
The authors have successfully addressed my primary concerns:
- Approximation Quality & Mode Transitions: The authors clarified the debiasing mechanism of the stopping classifier and explained how it acts as a learned acceptance/termination criteria that corrects proposal bias, allowing larger step sizes for better mode exploration. They also provided additional clarifications and empirical results explaining the trajectory-length vs. approximation-quality trade-off on targets like GMM9.
- Efficiency & Training Costs: The authors acknowledged the trade-off regarding amortized training costs compared to training-free MCMC, framing the method's efficiency benefits appropriately within the context of amortized neural samplers.
Formatting concerns
I did not find any formatting concerns.
3 comments
Rebuttal
We thank the reviewer for the positive assessment of the paper’s clarity, theoretical formulation, and originality. We also appreciate the questions concerning the source of the approximation quality improvements and trade-off between efficiency and a training cost. We agree that these points should be distinguished more clearly in the paper.
W1 & Q1: mechanisms for approximation quality improvement and transitioning between modes
Approximation quality A learned kernel applied for a fixed number of steps is closely related to the standard setting of diffusion samplers such as PIS and DDS. These methods discretize a continuous-time process and therefore generally retain finite-step approximation error. In contrast, our adaptive horizon construction can recover the exact target terminal distribution under exact flow and reward matching.
This is supported by Theorem 3.6. Even when the fixed kernel is not invariant with respect to , suitable stopping classifiers and backward dynamics can de-bias the kernel so that the terminal state follows . In practice, the balance conditions are learned only approximately, but Table 1 and Figure 2 show that the classifier-only model, with fixed to ULA, improves approximation quality over the base MCMC algorithm on several targets while greatly reducing trajectory length.
We also compare against PIS and DDS in the Section 4 in Table 2, which can be considered as a "learnable used for a fixed number of steps" with an addition of a time variable to the state. The multilevel model improves over these diffusion samplers on several tasks and metrics.
Importantly, the classifier is an essential part of the model which determines the resulting terminal law. Disabling the classifier while retaining only a learned in our model changes the underlying MDP into a fixed-horizon sampler and yields a sampler with incorrect terminal distribution.
Transitioning between modes For a learnable kernel case, state-dependent drift and variance corrections can make large directed transitions in regions where local ULA dynamics would mix slowly, while retaining small transitions where appropriate. Figure 9 (end of Appendix A) illustrates that ULA tends to remain trapped within one mode, whereas the model with learnable corrections moves between distant modes.
For a fixed kernel, the standard ULA typically requires a small step size to control discretization bias, which makes mode transitions rare. Our framework allows to use ULA with larger step size to improve exploration. The classifier can then assign low stopping probability to transient or poorly represented regions and terminate primarily in states consistent with the target distribution. Thus, using MCMC termonology, the kernel acts as a "proposal" (which can create large and sometimes inaccurate moves over the distribution support), while the classifier corrects for the bias introduced by generating inaccurate proposal, enforcing the approximation quality.
We thank the reviewer for the questions and will add a more detailed dedicated discussion on the role of classifier to the text.
W2: the efficiency claim does not account for training cost
We generally agree with this comment, but we would like to clarify that the same reasoning applies to any amortized sampling method which requires to traine an additional model. Training cost is therefore a part of the trade-off, as it is for PIS, DDS, and other neural samplers.
At the same time, for many distributions with complicated geometry or large number of modes, standard training-free MCMC methods simply fail [1], while amortized techniques such as diffusion sampler still could be run. Thus learning the auxliliary model (as in the amortized methods) is often the only way to solve the problem.
On simpler examples, our method is more suitable when many samples are generated from the same target, allowing the training cost to be amortized. For a small number of samples, training-free MCMC may be preferable. We will add the corresponding discussion to the text.
Q2: gradient clipping 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:
The cubic growth of the gradient of 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. Hence, it is a common practice to stabilize gradient-based methods using clipping or other techniques [2].
References
[1] Zhang et al., Path Integral Sampler: a stochastic control approach for sampling, ICLR 2021
[2] Gritsaev et al., Adaptive Destruction Processes for Diffusion Samplers, NeurIPS 2025 Workshop
I thank the authors for their detailed response and clarifications.
The rebuttal has satisfactorily addressed several of my original concerns, including the mechanism for improving mode transitions via larger step sizes, the trade-off regarding amortized training costs, and the rationale behind the tight gradient clipping used for the unstable ManyWell target.
Regarding approximation quality and the debiasing mechanism (W1 & Q1):
- Classifier Debiasing Mechanism (W1 / Q1): The empirical performance of ULA w/ clf in Table 1 generally supports the claim that the stopping classifier serves as an effective debiasing mechanism. However, I would appreciate a brief clarification on one specific detail: why does ULA w/ clf perform noticeably worse on the GMM9 () target compared to standard ULA (SD of vs. , and MMD of vs. )?
Thank you, we are glad that our comments helped address your concerns!
Regarding the performance on GMM9 d=2, which indeed stands out from the other targets in the stronger relative performance of the base ULA, we want to point the difference in the sampling step budgets. Standard ULA is evaluated after approximately steps when it reaches its stationary regime, whereas ULA w/ clf depicted in the table terminates after only about 15 steps on average (see column). So the explanation behind the metrics is that the classifier-only model achieves a substantial reduction in trajectory length at the cost of some approximation error in this particular configuration. The overall picture on this exact task can be also clearly seen in Figure 2. ULA and diagnostic-based stopping mix very slowly, while our method provides a better quality–length trade-off across different step sizes and regularization coefficients. In particular, at 15 sampling steps the standard ULA can only achieve SD of around 20.
Although we did not perform a full hyperparameter sweep to explicitly avoid overoptimizing the metrics in the table and did not present this exact configuration in the paper, further reducing the flow-regularization strength would allow ULA w/ clf to match or even improve the sampling quality in comparison to standard ULA, while still requiring the smaller amount of sampling steps. For example, we now ran ULA w/ clf with the step size and regularization coefficient and obtained a sampler that makes 101 steps on average (which is still far fewer than ULA takes to stabilise) with SD of , compared to for standard ULA. The other metrics are presented in the table below:
| SD | MMD | ELBO | EUBO | |
|---|---|---|---|---|
We thank the reviewer for the question. We will add this configuration to Figure 2 and further clarify this point in the paper.
- Rating
- 5/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 1/4
- Significance
- 4/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper considers a Markov process where at each step, the particle is killed with a position-dependent probability. It studies under which situation the law of the terminal particle (last one before absorbed) follows a given distribution of interest, which is useful to determine the point of termination for MCMC algorithms. To this effect, the authors introduced the backward transition density as well as the backward sinking probability and match the forward and backward path distributions using local balance. Everything is presented in terms of GFlowNets with a source and a sink, and a special case is formulated where the forward kernel admits an approximate invariant measure. A training loss is given in terms of balance difference for trajectories of various lengths. The experiments confirm shorter trajectories for standard ULA as well as better performance when the forward kernel itself is learned and/or a multilevel version is used.
Strengths and weaknesses
This is an interesting paper which extends the forward-backward path measure matching for trajectories of fixed lengths to paths of random lengths with a sink. The programme is carried out comprehensively: a local balance condition is presented, followed by a special interpretation in the case of approximate MCMC and a loss which is more "global". It has great potential to not only determine MCMC stopping point, but also to create novel and more efficient samplers.
Unfortunately the writing is very bad and took me a significant amount of time to understand. The paper assumes great familiarity with continuous GFlowNets, and even then, remains hard to read. Section 2.1 quickly descends into complicated notations, and, by being restricted to trajectories of fixed maximum length, hides the essential idea of the paper. Section 3.1 bombards readers with definitions and theorems, and only at its end are the idea of classifier and the essential formulas (14) and (15) revealed. This is a real pity: the paper's applicability is large, goes beyond the GFlowNet community, and can be presented in a much more accessible way.
For instance, the authors can start with introducing immediately the main idea of a killed Markov process, the flow measure of (12), as well as the terminal law (6). Before presenting balance conditions, it is more helpful to spell out the time-reversal of the killed process, i.e. giving the general formula for and given and .
Questions
- In practice the neural networks are not perfect and the law of the terminal particle will be only approximately , forgoing the asymptotically exact nature of MCMC as well as the ideal stopping time of Theorem 3.6. Can we use the ratio in (20) to assign weights to trajectories and recover exactness in the sense of importance sampling?
- Is it possible to use this framework to also tune the step size of ULA?
- How to handle the Metropolis corrections (since we don't have transition densities)?
Limitations
yes
Final justification
I initially found the paper's idea interesting, that's why I suggested Accept. My main concern was the writing, but the authors promised to fully fix this in the camera-ready version, so I stand by my Accept decision. My other questions are also adequately attended to.
Formatting concerns
none
2 comments
Rebuttal
We thank the reviewer for the careful reading of our paper, for recognizing the potential of the proposed framework beyond the GFlowNet community, and for suggesting concrete ways to improve the presentation.
Weaknesses
W1: clarity of the exposition We agree that the current exposition introduces the measure-theoretic machinery too early and does not sufficiently emphasize the general idea of our approach.
To improve clarity, we will reorganize Sections 2 and 3. In particular, we will simplify Section 2.1 by retaining only the minimum GFlowNet background required for the main construction. The more general measure-theoretic definitions and technical conditions will be moved to the appendix. Also, we will clarify that the finite maximum-length construction in Section 2 is a part of the background framework and is not an assumption of our proposed method, where we consider a milder assumption - trajectories with arbitrary random length with .
Furthermore, we will begin Section 3 by motivating the introduction of the stopping classifier, which can act as the stopping rule or, for a fixed Markov kernel , as a debiasing mechanism. Then we will define a structured state space and give a direct description of the proposed construction similar to the passage after equation (13), where we define classifiers, kernels, how forward and backward dynamics are constructed. Then we proceed by introducing a flow measure, for which we establish the relevant statements, and by justifying that the terminal law is correct.
Additionally, before describing balance conditions, we will explicitly state the representation of the backward process in terms of and :
Q1: recover exact sampling using (20)
Yes. The ratio in Eq. (20) can be used to construct a trajectory-level importance weight. For a set of trajectories terminating at , , one can define
and construct
Such a construction is standard for models with latent variables, see e.g. [1]. The resulting weighted empirical distribution recovers the celebrated AIS estimator [2]. Yet the distribution of does not coincide with . To get the asymptotic unbiasedness, one can use as a proposal for iterative-sampling importance resampling (i-SIR) MCMC algorithms (e.g. [3]). Alternatively, one can equip the procedure of generarting with additional resampling steps and recover some version of the SMC algorithm [4] with adaptive proposals. We leave the detailed exploration of AIS-style or SMC-style adaptive as a promising direction for future work.
Q2: tuning the ULA step size
Yes. In the setup with the trainable kernel , we already learn corrections for both the drift and the covariance (see Appendix A.1 Continuous kernels parameterizations):
Thus, the learned score scaling and covariance scaling already behave as state-dependent corrections to the effective ULA step size. In the current experiments, however, step size γ is treated as a fixed hyperparameter. Nevertheless, our framework also allows to parameterize as a ULA kernel with a learnable .
Q3: Metropolis corrections
Metropolis-Hastings kernels do not admit an ordinary transition density with respect to the Lebesgue measure, because rejection introduces a point mass at the current state. A possible solution is to augment each transition with the proposal state and an accept/reject variable. On this extended state space, the transition probability can be written using the proposal density together with the corresponding acceptance or rejection probability, yielding a generalized density that can be evaluated and differentiated. This construction is used in [5] for differentiating objectives through MALA transitions. Applying the same idea in our setting would require formulating trajectory balance over augmented trajectories that include the accept/reject variables. This is possible, yet it clearly yield additional overload with measure-theoretic notations, and we decided to avoid it for the current manuscript. We will clarify that extensions to more general Markov kernels are possible and remain an interesting direction for future work.
References
[1] Doucet, A., Moulines, E. and Thin, A., 2023. Differentiable samplers for deep latent variable models. Philosophical transactions. Series A, Mathematical, physical, and engineering sciences, 381(2247), p.20220147.
[2] R. Neal. Annealed importance sampling. Statistics and computing, 2001.
[3] C. Andrieu, A. Doucet, and R. Holenstein. Particle Markov chain Monte Carlo methods. Journal of the Royal Statistical Society: Series B, 72(3):269–342, 2010.
[4] Choi et al., Reinforced sequential Monte Carlo for amortised sampling, ICML 2026
[5] Thin et al., Monte Carlo Variational Auto-Encoders, ICML 2021
Follow-up to rebuttal
I thank the authors for the rebuttal. I appreciate that they've now promised a more accessible presentation. In journal submissions, this should normally be verified again by reviewers; but for this conference format, I trust that they will make sufficient effort on the camera-ready version.
I understand that the notations of Metropolis-corrected versions can be overwhelming, and the authors also promised to make this clear in connection with MCMC.
For the sake of the discussion, I agree that optimizing step size is indeed possible, but I doubt that in practice this would lead to a very overparameterized problem that's hard to optimize.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Response to meta-review (1/2)
We thank the AC for the thorough meta-review. Below we summarize how each prioritized question is addressed in the discussion and answer the points not raised by the reviewers.
Q1: Complete method specification
A unified, self-contained description of the pipeline is given in our rebuttal to Reviewer gfhd ("Description of the method"), where we summarize what is learned in each variant:
We also describe the roles of dF,dB,qF,qB, the training procedure (prefix TB + flow regularization; alternating on-policy / replay-based collection of trajectories with classifiers disabled; periodic MALA buffer refresh), and the training/inference separation (inference uses only qF and dF via eq. (14); dB,qB, replay and MALA are training-only).
We will make the following revisions (described in the responses to tMLs W1 and gfhd W1-2): simplify §2.1 to the minimal background, restructure §3 to motivate the classifier first and give the direct construction, and move a compact Algorithm 1 into the main text with explicit annotations separating training- and inference-time procedures.
Q2: Scope of Theorem 3.6
This was not raised by reviewers. However, in the revision we will separate three levels of guarantees:
Q3: Correctness under approximate optimization
The practical method we propose should be characterized as an amortized approximate sampler, not an asymptotically exact MCMC method, which we will state this explicitly. As detailed in our response to tMLs (Q1), asymptotic exactness can be recovered on top of the trained model via trajectory-level importance weights (eq. 20), yielding AIS-type estimators, or via i-SIR/SMC wrappers. This connection is grounded in the diffusion sampling literature (see, e.g., our reference [Choi et al., ICML’26]).
As a practical diagnostic without reference samples, the ELBO-EUBO gap (or ELBO alone for real posteriors, as in our Sonar protocol) bounds logZ from both sides and reflects the residual mismatch. We are not aware of a tight bound from balance residuals to terminal TV error and will state this as an open question.