A Finite-Rate Selection Law for Annealed Gibbs Sampling

Izhar Ali, Muhammad Haris Khan, Saeed AhmadarXiv 2026

Imagine you’re trying to find the tallest peak in a mountain range, but the entire landscape is shrouded in a thick, shifting fog. To find the summit, you decide to wait for the sun to rise and burn the fog away. This is the essence of Annealed Gibbs Sampling: you start at a "high temperature" where the probability distribution is a flat, blurry mess, and slowly "cool" it down until the distinct peaks (modes) of the distribution emerge.

Ideally, if you have two peaks where one is twice as likely as the other, your sampler should land in the bigger peak twice as often. But in the real world, we don't have an eternity to wait. We cool at a "finite rate," and as this paper reveals, that haste comes at a specific, quantifiable cost.

TL;DR

When we cool a sampling algorithm too quickly, it "decides" which peak to land in long before the landscape is clear, leading to biased results. This paper derives a mathematical law showing that this error is incredibly stubborn: to double your accuracy, you have to slow down your cooling by a factor of sixteen.

What Problem Does This Paper Address?

In machine learning and physics, we often need to sample from distributions with multiple "modes"—think of these as different valid solutions to a complex problem. Annealing is the standard trick to avoid getting stuck in a single local sub-optimal solution.

However, researchers have long known that if you cool the system too fast, the sampler doesn't end up in the modes in the correct proportions. It loses the "preference" of the model. The authors define a metric, $c$, which represents the fraction of the true "log-odds" (the relative weight between two modes) that the sampler actually manages to keep. If $c=1$, the sampler is perfect; if $c=0$, it’s basically just flipping a coin, ignoring the model's actual preferences entirely.

The gap this paper fills is providing a precise, predictive law for $c$. Why does it fail, and exactly how much does it fail by?

Methods

The authors dive into the mechanics of the Curie–Weiss (CW) model, a classic physics model where binary variables (spins) try to agree with each other. They use a "drift-and-noise" approximation to describe how the system's average state (magnetization) evolves over time.

They identify three distinct phases during cooling:

  1. Pre-transition: The system is a chaotic mess; any initial bias is quickly erased.
  2. The Selection Window: This is the "aha!" moment. Right as the temperature hits a critical point (the phase transition), the system must choose a side. Here, the random noise of the sampling updates is much stronger than the "field" (the true underlying preference).
  3. Post-transition: Once a side is chosen, the modes separate so far that the sampler can almost never jump between them again. The "choice" is locked in.

By modeling this process as a stochastic differential equation, they derive a Selection Law that predicts $c$ based on the cooling rate and the size of the system.

Datasets

The paper relies on two primary theoretical "playgrounds":

  • The Curie–Weiss Model: Used for the core derivation because it is exactly solvable, allowing the authors to compare their law against "ground truth" math.
  • The Hopfield Model: A more complex model used in neural network theory where modes are stored patterns. This allowed them to test how "competition" between many different modes affects the selection process.

Key Insights and Ideas

  • The Selection Window is Everything: The fate of a sampling run is decided in a tiny window of time near the phase transition. If your model has a weak preference for one mode, that preference is easily overwhelmed by the "noise" of the sampler during this critical window.
Figure 1: (a) shows how runs split into + and - modes at the transition. (b) shows the "early amplitude" distribution—if you're on the right of zero, you end up in the + mode. (c) shows the "Fraction kept" $c$ vs cooling time.
  • The Fourth-Root Law: This is the "sobering" result. The accuracy $c$ grows only as the fourth root of the cooling time ($\gamma^{-1/4}$). This means if you want to be twice as accurate, you can't just double your compute time—you have to increase it by $2^4 = 16$ times.
  • Competition is a Good Thing: In the Hopfield model, having more modes actually increases the accuracy $c$. Why? Because the "winning" mode is usually the one that had the largest random fluctuation in the right direction. A larger fluctuation is more likely to have been correctly biased by the underlying field.
Figure 2: (a) shows that the "winner" among three patterns has a larger average magnitude than a single pattern. (b) confirms that more patterns ($p$) lead to a higher measured $c$.

Key Results

  • High Precision: The derived law for $c$ matches exact numerical computations to within 2% across nine different linear cooling schedules.
  • Predictive Power: For the Hopfield model, the predicted boost in accuracy from mode competition matched experimental results within 3–6% on average.
  • Scaling: The law correctly predicts that larger systems (larger $N$) actually make the selection harder, with $c$ decreasing as $N^{-1/2}$.

Limitations and Future Work

  • Averages vs. Specifics: While the law works great on average for the Hopfield model, individual sets of patterns can deviate significantly. The authors suspect this is due to random correlations between patterns that their current theory doesn't account for.
  • Diffusion Models: The authors note that while their work is relevant to modern diffusion models (which also "commit" to a class partway through generation), their specific derivation doesn't yet cover the "variance-preserving" processes used in those models.
  • Topology: The models used here are "fully connected" (everyone interacts with everyone). Real-world data often has more complex structures (like grids or graphs), and it remains to be seen how the selection law changes in those settings.

In short, the next time you're waiting for a complex model to finish sampling, remember: the "choice" was likely made long ago, in a brief moment of noisy indecision at the very start of the thaw.

Summary updated

Abstract

Annealed Gibbs sampling samples a multimodal model by redrawing one variable at a time from its conditional distribution as the temperature falls from a high value, where the distribution is broad, to the target temperature. Each run ends in a single mode, and unbiased Monte Carlo estimates require the runs to end in each mode in proportion to its probability under the model. At a finite cooling rate this can fail. We measure the error by $c$, the fraction of the model's log-odds between two modes that the samples retain. In the Curie--Weiss model, where a weak external field favors one of two modes, each run selects its mode near the transition at which the modes form, and rarely switches once they have separated. Near the transition, the random fluctuations of the Gibbs updates still outweigh the weak field, which therefore biases the choice of mode only slightly. Building on the selection probability of Kondepudi and coworkers, we derive a law for $c$ that agrees with an exact computation to within $2\%$ on nine linear cooling ramps. For the Hopfield model, whose modes are stored patterns and their negatives, we derive a factor by which competition among patterns raises $c$. The $c$ measured over random pattern sets lies within $3$--$6\%$ of its prediction, but single pattern sets depart from it, contrary to its derivation.
BibTeX
@misc{ali2026finite,
  author = {Izhar Ali and Muhammad Haris Khan and Saeed Ahmad},
  title = {{A Finite-Rate Selection Law for Annealed Gibbs Sampling}},
  year = {2026},
  eprint = {2611.29041},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.29041},
}
Figure