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

*Kirill Korolev, Nikita Morozov, Stepan Pavlenko, Esmeralda S Whitammer, Sergey Samsonov*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/148260) · [OpenReview](https://openreview.net/forum?id=zB413mSyhL) · [Open on the map](../papers.html#p148260)

Category: [Time Series, PDEs & Probabilistic ML](../pcat/9.md) › [Bayesian Inference and Sampling](../pgroup/379.md) · Type: new method · Keywords: adaptive stopping, MCMC sampling, neural classifiers, GFlowNets, Bayesian inference

## Summary
The paper introduces Classifier-Based Adaptive Stopping for Sampling Kernels, a framework that uses neural classifiers to decide when MCMC trajectories should terminate, reducing trajectory lengths while improving mode coverage.

## Explained to a 5-year-old
In science, we sometimes need to guess numbers that are hard to calculate. One way to do this is to walk around in a landscape where tall hills represent likely answers. The old method walks the same distance every time, even if it already found a good spot. The new idea lets the walk stop early when it thinks it has found a good hill, by using a little brain that decides when to quit. This helps us get to the right answers faster and more often.

## Explained to a 5-year-old, longer
Imagine you have a big bag of numbers that you want to understand, but they are hidden in a tricky puzzle. To find them, you can take little steps and look at where you end up. The old way always takes the same number of steps, even if you already found something good. The new idea gives the steps a tiny helper that watches where you are and decides if you should keep going. This helper learns from many examples of good and not-so-good places. When the helper thinks you are near a good answer, it says it's time to stop. This way you don't waste time walking around when you already have a good guess. It also helps you find different good answers that might be hidden far away. The helper is trained in a special way that makes sure it explores all the interesting parts. By using this smarter stopping rule, you can get the right numbers faster. The scientists also proved that the helper's decisions match the true answers when everything works correctly. Overall, this makes solving hard puzzles easier and more reliable.

## For a technical reader
The paper addresses the inefficiency of traditional MCMC samplers that use fixed trajectory lengths. It proposes training neural classifiers to evaluate whether a sampled trajectory has reached a high-density region, thereby deciding when to stop. By embedding this decision process within a Generative Flow Network framework, the method ensures detailed balance and provides theoretical guarantees. Experiments on standard benchmark densities show reduced average trajectory lengths and better mode coverage compared to baseline samplers. The approach can be integrated into existing probabilistic inference pipelines as a drop-in replacement for manual tuning.

## Problem
Sampling from complex, unnormalized probability densities using MCMC often suffers from slow mixing and high computational costs due to fixed or manually tuned trajectory lengths. There is a need for adaptive methods that can automatically decide when a trajectory has reached a high-density region.

## Method
The approach frames MCMC within Generative Flow Networks (GFlowNets) and trains state-dependent neural classifiers to evaluate trajectory termination based on density. A multilevel training scheme is employed to promote exploration in complex geometries, and theoretical analysis links optimal classifiers to the target density via detailed balance.

## Results
The approach reduces average trajectory lengths and improves mode coverage and mixing relative to standard MCMC baselines.

## Contributions
A novel adaptive stopping framework that learns trajectory termination via neural classifiers, a theoretical connection between optimal classifiers and target densities, and a multilevel training scheme for better exploration.

## Research questions this paper is counted under

- [How can we achieve efficient sampling from complex, high-dimensional probability distributions?](../q/516.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/148260)
