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.