Stop the Sampler! Classifier-Based Adaptive Stopping for Sampling Kernels

Kirill Korolev, Nikita Morozov, Stepan Pavlenko, Esmeralda S. Whitammer, Sergey Samsonov
6/15/2026
cs.LGstat.ML

No confident code implementation found for this paper.

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{korolev2026stop,
  title  = {Stop the Sampler! Classifier-Based Adaptive Stopping for Sampling Kernels},
  author = {Kirill Korolev and Nikita Morozov and Stepan Pavlenko and Esmeralda S. Whitammer and Sergey Samsonov},
  year   = {2026},
  eprint = {2606.16073},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.16073v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2606.16073.svg)](https://codeofpaper.com/paper/2606.16073)

Discussion