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.
Figures & tables
Figure 1: Where the samples lose the model’s preference. (a) The magnetization m of the CW model, the mean of its binary variables, cooled from high temperature (left) without a field (drift-and-noise approximation). Runs split into the + and − modes at the transition, β=1 (band: scale of the selection window). (b) The early amplitude: the imbalance built up by field and noise around the transition; its sign decides the run’s mode. A weak field toward + shifts its distribution by a fifth of its spread: 58% of runs end in + , which the model gives 97% . (c) The fraction c of the model’s log-odds kept by the samples against cooling time: exact (markers), our law (lines); sixteen times longer cooling only doubles c .
Figure 2: Competition among patterns. (a) Densities of the magnitude of one Gaussian amplitude and of the largest of three: the winner is larger on average, by a factor A3=1.662 (dotted: means). (b) Measured over predicted c , pooled over 50 random pattern sets, with 95% intervals (dark: exact chain and two-block predictions; purple: ApcCW ). (c) The same ratio for each set with p≥3 , against p times pattern 1’s win share; alike patterns would put every set at (1,1) (bar: median 95% interval of a four-pattern set).
Appendix figures & tables4 assets
Supplementary material from the paper’s appendix.
Appendix
N
γ=0.004
γ=0.001
γ=0.00025
1024
0.09370(0.93%)
0.13393(1.81%)
0.18868(1.03%)
2048
0.06587(0.46%)
0.09372(0.97%)
0.13314(1.23%)
4096
0.04645(0.23%)
0.06589(0.49%)
0.09361(0.86%)
Appendix
Table 1: Exact c on the nine linear ramps of Section 3 and, in parentheses, its percentage excess over the selection law csel .
Ramp
Update n of M=225N uses βn=0.7+0.9(n+21)/M , so the ramp lasts 225 sweeps of N updates ( γ=0.004 ).
Update
Redraws one uniformly chosen spin.
Start
Independent unbiased spins, the equilibrium at β=0 .
Field
NG=1.2544 along pattern 1, half of the runs with each sign; a=0.21 , 0.15 and 0.10 at N=1024 , 2048 and 4096 .
Pattern sets
50 for each p and N , with equal numbers of runs. A set is the first p of four vectors of independent equiprobable signs, so the sets are nested in p ; set s comes from NumPy default_rng ( [20261027,N,s] ).
Winner
The pattern with the largest ∣mμ∣ at β=1.6 . No run ended in a tie.
Estimator
c=\logitq/\logitqeqCW(N) , where q is the fraction of the runs won by pattern 1 whose m1 has the field’s sign, pooled over pattern sets and field signs.
Appendix
Table 2: Settings of the Hopfield test of Section 4 .
p
N
prediction
cpred
measured c [ 95% interval]
ratio
runs
won
1
1024
exact chain
0.0937
0.0928[0.0909,0.0947]
0.990
320,000
320,000
1
2048
exact chain
0.0659
0.0659[0.0647,0.0672]
1.001
640,000
640,000
1
4096
exact chain
0.0464
0.0472[0.0464,0.0480]
1.015
1,260,000
1,260,000
2
2048
two-block
0.0936
0.0946[0.0928,0.0965]
1.011
640,000
321,598
3
1024
A3cCW
0.1558
0.1518[0.1463,0.1571]
0.975
540,000
181,324
3
2048
A3cCW
0.1095
0.1090[0.1059,0.1123]
0.995
820,000
274,222
Appendix
Table 3: Results of the Hopfield test. Ratio: measured over predicted c . Won: runs won by pattern 1, which alone enter the estimate.
p
N
win share
P
Spearman
excess SD
equal weight
3
1024
0.075 – 0.692
2×10−12
−0.75
8.0%
1.003
3
2048
0.168 – 0.566
2×10−6
−0.69
7.7%
1.013
3
4096
0.229 – 0.522
2×10−5
−0.56
6.6%
0.993
4
2048
0.087 – 0.713
5×10−40
−0.72
13.0%
1.002
Appendix
Table 4: Single pattern sets ( 50 per row, p≥3 ; post hoc). Win share: range over sets of the share of runs that pattern 1 won. P : chi-square test that all sets share one q . Spearman: rank correlation of the per-set cs with the win share. Excess SD: standard deviation of cs/cpred beyond sampling error. Equal weight: mean of cs/cpred over sets.
Sampling from multimodal distributions is a central challenge in Bayesian inference and machine learning. In light of hardness results for sampling -- classical MCMC methods, even with tempering, can suffer from exponential mixing times -- a natural question is how to leverage additional information, such as a warm start point for each mode, to enable faster mixing across modes. To address this, we introduce Reweighted ALPS (Re-ALPS), a modified version of the Annealed Leap-Point Sampler (ALPS) that dispenses with the Gaussian approximation assumption. We prove the first polynomial-time bound that works in a general setting, under a natural assumption that each component contains significant mass relative to the others when tilted towards the corresponding warm start point. Similarly to ALPS, we define distributions tilted towards a mixture centered at the warm start points, and at the coldest level, use teleportation between warm start points to enable efficient mixing across modes. In contrast to ALPS, our method does not require Hessian information at the modes, but instead estimates component partition functions via Monte Carlo. This additional estimation step is crucial in allowing the algorithm to handle target distributions with more complex geometries besides approximate Gaussian. For the proof, we show convergence results for Markov processes when only part of the stationary distribution is well-mixing and estimation for partition functions for individual components of a mixture.
Mode collapse, the failure to capture one or more modes when targeting a multimodal distribution, is a central challenge in modern variational inference. In this work, we provide a mathematical analysis of annealing based strategies for mitigating mode collapse in a tractable setting: learning a Gaussian mixture, where mode collapse is known to arise. Leveraging a low dimensional summary statistics description, we precisely characterize the interplay between the initial temperature and the annealing rate, and derive a sharp formula for the probability of mode collapse. Our analysis shows that an appropriately chosen annealing scheme can robustly prevent mode collapse. Finally, we present numerical evidence that these theoretical tradeoffs qualitatively extend to neural network based models, RealNVP normalizing flows, providing guidance for designing annealing strategies mitigating mode collapse in practical variational inference pipelines.
Luigi Fogliani, Bruno Loureiro, Marylou Gabrié
Departement d’Informatique, École Normale Supérieure, Université PSL, CNRS · Laboratoire de Physique de l’École Normale Supérieure, Université PSL, CNRS
Learning Gibbs distributions using only sufficient statistics has long been recognized as a computationally hard problem. On the other hand, computationally efficient algorithms for learning Gibbs distributions rely on access to full sample configurations generated from the model. For many systems of interest that arise in physical contexts, expecting a full sample to be observed is not practical, and hence it is important to look for computationally efficient methods that solve the learning problem with access to only a limited set of statistics. We examine the trade-offs between the power of computation and observation within this scenario, employing the Ising model as a paradigmatic example. We show that the couplings of the model can be learned to a desired accuracy from statistics whose order grows linearly with the ℓ1 width of the model and only logarithmically with the inverse of the accuracy. In particular, for a fixed accuracy, the required order is proportional to the width. This allows us to infer the model's structure, using statistics whose order grows logarithmically with the inverse of the weakest coupling, and also to learn its magnetic fields. When the width and the accuracy are fixed, the running time is polynomial in the number of variables. We also discuss a setting where prior information about structure of the model is available and show that the learning problem can be solved efficiently with even more limited observational power.
Abhijith Jayakumar, Shreya Shukla, Marc Vuffray +2
Theoretical Division, Los Alamos National Laboratory, USA