betaFeedback

WorksPhysics and Astronomy

Synchronous and asynchronous Monte Carlo dynamics of mean-field spin glasses with rotationally invariant couplings: what they share and where they differ

Abstract

We compare two Markov chain Monte Carlo dynamics for Ising spin glasses with rotationally invariant couplings: the synchronous Monte Carlo method (SyncMC), which updates all spins in parallel with the help of Gaussian auxiliary fields, and asynchronous Metropolis-Hastings dynamics, which updates one spin at a time. Using the Guionnet-Maïda formula, we derive the dynamical mean-field theory of both dynamics in terms of the R-transform of the coupling spectrum. The two effective single-spin processes share a retarded self-interaction and a Gaussian noise; SyncMC has, in addition, an instantaneous self-coupling and a noise that depends only on the response function. These additional terms act only on the fastest time scale, so that the equations for slow time scales, including the fluctuation-dissipation ratio and, for the Sherrington-Kirkpatrick model, the Parisi equation, are the same for the two dynamics. Simulations of the random orthogonal and Sherrington-Kirkpatrick models confirm that both dynamics approach the same fluctuation-dissipation relations, differing only in how many updates they need to do so.

Introduction

Markov chain Monte Carlo (MCMC) sampling of spin systems is usually carried out with asynchronous updates: one spin is chosen at a time and updated according to the Metropolis–Hastings (MH) or heat-bath rule. Such dynamics satisfy detailed balance with respect to the Boltzmann distribution. On modern parallel hardware, however, updating one spin at a time is inefficient. The synchronous Monte Carlo method (SyncMC) [1, 2] updates all spins in parallel by introducing Gaussian auxiliary fields for pairwise interactions, while still sampling the Boltzmann distribution exactly. This raises a natural question: which aspects of the dynamics are common to SyncMC and asynchronous MH, and which are specific to each? Answering this question requires a description in which both dynamics can be compared term by term.

For mean-field models, dynamical mean-field theory (DMFT) provides such a description: in the limit of a large number of spins NN, it reduces the dynamics of the whole system to that of a single spin in an effective field. The dynamics of mean-field spin glasses has been studied extensively by DMFT, mostly for soft or spherical spins obeying Langevin equations [3, 4, 5]. For Ising spins, the DMFT of single-spin-flip dynamics of the Sherrington–Kirkpatrick (SK) model [6] was formulated by Sommers [7], and Eissfeller and Opper [8] solved the effective single-spin process of the deterministic parallel dynamics Si(t+1)=sgn⁡hi(t)S_i(t+1)=\operatorname{sgn} h_i(t) (zero temperature, no Boltzmann sampling) by Monte Carlo sampling of single-spin trajectories. They noted that it was not clear whether a similar single-spin equation can be derived for random sequential updates; for the Metropolis–Hastings rule, Sec. III B and Appendix A of the present paper show how random sequential trials become a continuous-time single-spin process as N→∞N\to\infty. For SyncMC, the DMFT was derived for the SK model [2] and for the random orthogonal model (ROM) [1, 9].

In this paper we derive the DMFT of SyncMC and of asynchronous MH in a common form, for Ising spin glasses whose coupling matrix is drawn from a rotationally invariant ensemble. This class includes the SK model and the ROM. Our approach rests on the Guionnet–Maïda formula [10], which expresses the average of a finite-rank spherical integral through the R-transform of the eigenvalue distribution. Because in both dynamics the couplings enter the dynamical generating functional only through a finite-rank term, the formula yields DMFT effective single-spin processes in closed form for an arbitrary spectrum.

The main results are as follows.

  1. The effective processes of the two dynamics share a retarded self-interaction R(G)−κ1\mathrm{R}(\mathcal{G})-\kappa_1 and a Gaussian noise with covariance Σϕ[G,C]\Sigma_\phi[\mathcal{G},\mathcal{C}] Eqs. (15) and (20). Here R is the R-transform of the eigenvalue distribution of the coupling matrix, κ1\kappa_1 is the mean of that distribution, and G\mathcal{G} and C\mathcal{C} are the response and correlation functions (Sec. II).

  1. SyncMC has, in addition, an instantaneous self-coupling of strength κ1+c\kappa_1+c, where cc is the constant added to the diagonal of the coupling matrix in SyncMC, and a Gaussian noise whose covariance β−1D[G]\beta^{-1}\mathcal{D}[G] depends only on the response function Eq. (21).

  1. These SyncMC-specific terms affect only the fastest time scale. Under time-scale separation, the slow-time-scale equations of the two dynamics coincide (Sec. VII).

  1. Simulations of both dynamics, together with numerical solutions of the effective processes, support this picture (Sec. IX). In the paramagnetic phase the effective processes reproduce the finite-NN data of both dynamics. Below the transition, the fluctuation–dissipation relations of both dynamics approach the same predictions: the one-step-aging form with q=0.981q=0.981 and x=0.679x=0.679 for the ROM at T=0.1T=0.1, and the Parisi solution for the SK model at T=0.5T=0.5. For the same coupling matrices, the two dynamics give the same integrated response at fixed correlation when their waiting times are related by the time needed to reach the same energy; one MCS of asynchronous MH then corresponds to about 10210^{2}–10310^{3} SyncMC steps for the ROM at T=0.1T=0.1 and to 15–18 steps for the SK model at T=0.5T=0.5.

The update rule thus sets how fast a system moves through its configuration space, but not which states it visits on slow time scales. In practice, slow relaxation and aging of these models can be studied with either dynamics. SyncMC needs more updates to reach a given state but performs each update for all spins in parallel; on a GPU this gives a shorter wall-clock time in our implementation, by a factor that depends on the model and the regime (Sec. VIII).

The paper is organized as follows. Section II defines the model and the two dynamics. Section III explains how the Guionnet–Maïda formula is used. Sections IV and V derive the effective processes of asynchronous MH and SyncMC. Section VI compares them. Section VII analyzes slow time scales. Section VIII describes numerical methods, and Sec. IX presents numerical results. Section X is devoted to discussion.

Model and dynamics

Model

We consider NN Ising spins σ=(σ1,…,σN)T\boldsymbol{\sigma} = (\sigma_1,\ldots,\sigma_N)^{\mathsf{T}}, σi∈{+1,−1}\sigma_i \in\{+1,-1\}, with energy

H(σ)=−12∑i≠jJijσiσj.(1)H(\boldsymbol{\sigma})=-\frac{1}{2}\sum_{i\ne j}J_{ij}\sigma_i\sigma_j. \tag*{(1)}

The symmetric coupling matrix is J=OTDOJ=O^{\mathsf{T}}DO, where OO is an N×NN\times N orthogonal matrix drawn uniformly (Haar measure) and D=diag⁡(λ1,…,λN)D=\operatorname{diag}(\lambda_1,\ldots,\lambda_N) is a fixed diagonal matrix whose eigenvalue distribution converges to a density ρ(λ)\rho(\lambda) as N→∞N\to\infty. The R-transform of ρ\rho is denoted by R(z)=∑n≥0κn+1znR(z)=\sum_{n\ge0}\kappa_{n+1}z^n, where the coefficients κn\kappa_n are the free cumulants of ρ\rho. It is defined by R(g(z))+1/g(z)=zR(g(z))+1/g(z)=z with g(z)=∫ρ(λ) dλ/(z−λ)g(z)=\int\rho(\lambda)\,\mathrm{d}\lambda/(z-\lambda). We write R(x)=∫0xR(v) dvR(x)=\int_0^x R(v)\,\mathrm{d}v. The inverse temperature is β\beta. For any constant cc, the spectrum of J+cIJ+cI has R-transform R(z)+cR(z)+c; that is, only κ1\kappa_1 is shifted by $c.

Two examples are used throughout. For the SK model, the couplings Jij=JjiJ_{ij}=J_{ji} (i<ji<j) are drawn independently from N(0,1/N)\mathcal{N}(0,1/N), the normal distribution with mean 00 and variance 1/N1/N, as in Ref. [2]. The coupling matrix then belongs to the Gaussian orthogonal ensemble, which is rotationally invariant (the diagonal elements do not enter HH), and R(z)=zR(z)=z, that is, κ2=1\kappa_2=1 and κn=0\kappa_n=0 for n≠2n\ne2. For the ROM, the eigenvalues of DD are ±1\pm1 with equal weight and

R(z)=1+4z2−12z.(2)R(z)=\frac{\sqrt{1+4z^2}-1}{2z}. \tag*{(2)}

Asynchronous Metropolis–Hastings dynamics

The dynamics proceeds by trials. In each trial, one spin ii is chosen uniformly at random and flipped with probability min⁡(1,e−2βσihi)\min(1,e^{-2\beta\sigma_i h_i}), where hi=∑j≠iJijσjh_i=\sum_{j\ne i}J_{ij}\sigma_j is the local field. A single trial thus updates at most one spin. We let n=0,1,2,…n=0,1,2,\ldots count the trials and define the time as t=n/Nt=n/N, so that one unit of time, one Monte Carlo step (MCS), consists of NN trials. In one MCS each spin is chosen once on average, but the number of times a given spin is chosen fluctuates: it is Poisson distributed with mean one as N→∞N\to\infty. In this limit, tt becomes a continuous variable and each spin becomes a continuous-time jump process with flip rate W(σ,h)=min⁡(1,e−2βσh)W(\sigma,h)=\min(1,e^{-2\beta\sigma h}).

Synchronous Monte Carlo

Let A=J+cIA = J + cI, where the diagonal shift cc is chosen so that AA is positive semidefinite (for the ROM, c=1c = 1). One SyncMC step consists of two parallel updates:

x(t)=Aσ(t)+β−1/2A1/2ζ(t),ζ(t)∼N(0,IN),(3)x(t) = A\sigma(t) + \beta^{-1/2} A^{1/2}\zeta(t), \qquad\zeta(t) \sim\mathcal{N}(0,I_N), \tag*{(3)}
P(σi(t+1)=±1∣x(t))=e±βxi(t)2cosh⁡βxi(t)(4)P(\sigma_i(t + 1) = \pm1 \mid x(t)) = \frac{e^{\pm\beta x_i(t)}}{2\cosh\beta x_i(t)} \tag*{(4)}

independently for all ii.

Here N(0,IN)\mathcal{N}(0,I_N) denotes the standard normal distribution in RN\mathbb{R}^N. The auxiliary field xx has the units of energy and plays the role of the local field, in the same way as hih_i in asynchronous MH. This is a blocked Gibbs sampler for the joint distribution p(σ,x)∝exp⁡(−βxTA−1x/2+βσTx)p(\sigma,x) \propto\exp(-\beta x^{\mathsf{T}}A^{-1}x/2+\beta\sigma^{\mathsf{T}}x), whose marginal for σ\sigma is the Boltzmann distribution of Eq. (1) because σi2=1\sigma_i^2=1. Hence the chain of σ\sigma is reversible with respect to the Boltzmann distribution. Here t=0,1,2,…t = 0,1,2,\ldots counts SyncMC steps; it is an integer, and each step updates all NN spins simultaneously. This is the SyncMC of Refs. [1, 2], written with the auxiliary field in units of energy. In Ref. [1] the field xx is denoted uu and the matrix AA is denoted KK; in Ref. [2] the field is denoted hh. In both references the response function, denoted GG here, is denoted RR; we reserve R for the R-transform.

Time units

The time tt has different meanings in the two dynamics. In asynchronous MH, tt is a continuous variable measured in MCS; one unit of tt consists of NN trials, each of which updates at most one spin. In SyncMC, tt is an integer counting steps; one unit of tt is a single step in which all NN spins are updated in parallel. In both cases one unit of tt contains NN single-spin update opportunities, so we compare the two dynamics with one MCS of asynchronous MH corresponding to one SyncMC step. The difference lies in how these opportunities are distributed: in SyncMC every spin is updated exactly once per unit time, all at the same instant, whereas in asynchronous MH each spin is chosen at random instants whose number per unit time is Poisson distributed with mean one.

This difference carries over to the DMFT. For asynchronous MH, C(t,s)C(t,s) and G(t,s)G(t,s) are functions of two continuous times; G(t,s)G(t,s) is a response per unit time, and products of the corresponding operators are time integrals. For SyncMC, C(t,s)C(t,s) and G(t,s)G(t,s) are defined on integer times; G(t,s)G(t,s) is the response to a field applied during one step, and operator products are sums over intermediate steps. With this convention, the expressions written in terms of operators below apply to both dynamics. Physical quantities that depend on how time is measured, such as relaxation times, are compared in units of MCS and SyncMC steps, respectively.

In both dynamics we assume that the initial configuration is drawn independently of JJ. An external field θi(t)\theta_i(t) conjugate to σi\sigma_i (entering the energy as −∑iθiσi-\sum_i\theta_i\sigma_i) is used to define the response function G(t,s)=δ⟨σ(t)⟩/δθ(s)G(t,s)=\delta\langle\sigma(t)\rangle/\delta\theta(s). In SyncMC it enters as xi(s)→xi(s)+θi(s)x_i(s)\to x_i(s)+\theta_i(s).

Generating functional

The generating functional of each dynamics is a sum over spin trajectories, weighted by their probability, in which the local field is introduced as an integration variable and its definition is imposed by auxiliary (conjugate) variables. It consists of two parts: a part containing the couplings, which we average over the rotation OO (Sec. III A), and a part that factorizes over sites once the order parameters are introduced (Sec. III B). How each part is brought to a form suitable for N→∞N\to\infty differs between the two dynamics, because their times have different meanings (Sec. II D).

Average over the rotation

For a real orthogonal Haar matrix OO and a complex matrix BB of fixed finite rank,

lim⁡N→∞1Nlog⁡EOexp⁡(NTr⁡(BOTMO))=12Tr⁡RM(2B)(5)\lim_{N\to\infty}\frac{1}{N}\log\mathbb{E}_{O}\exp\left(N\operatorname{Tr}(B O^{\mathsf T} M O)\right)=\frac{1}{2}\operatorname{Tr}\mathcal{R}_{M}(2B) \tag*{(5)}

where EO\mathbb{E}_{O} is the average over OO, MM is a diagonal matrix with limiting spectrum whose integrated R-transform is RM\mathcal{R}_{M}, and RM\mathcal{R}_{M} acts on the nonzero eigenvalues of 2B2B [10]. The formula is proved for real arguments; we use it for complex BB by analytic continuation.

Equation (5) requires that the rank of BB stay finite as N→∞N\to\infty. This requirement is met differently in the two dynamics. Let LL denote the maximum time, in SyncMC steps or in MCS.

  • In SyncMC, the dynamics consists of LL steps, and the path integral is written on the T=LT=L integer times. No further discretization is needed.

  • In asynchronous MH, the dynamics consists of NLNL trials. A path integral written trial by trial would have T=NLT = NL time points, which grows with NN, and Eq. (5) could not be applied. We therefore introduce a coarse time grid with spacing Δt\Delta t (in MCS), independent of NN, and impose the definition of the local field only at the T=L/ΔtT = L/\Delta t grid points, holding the field fixed within each interval. Each interval contains NΔtN\Delta t trials, and each spin is chosen a Poisson-distributed number of times with mean Δt\Delta t within it. The error from holding the field fixed vanishes as Δt→0\Delta t \to0. We take N→∞N \to\infty at fixed Δt\Delta t first, and Δt→0\Delta t \to0 afterwards, which yields the continuous-time description.

In both cases TT does not depend on NN. After the dynamics is written as a path integral with auxiliary variables on these TT time points, the couplings appear only through a factor exp⁡(NTr⁡(BA′))\exp(N\operatorname{Tr}(BA')), where A′A' is JJ or J+cIJ+cI and

2B=1NXKXT,X=[v(1),…,v(T),v^(1),…,v^(T)]∈RN×2T.(6)2B = \frac{1}{N}XKX^{\mathsf{T}}, \qquad X = [v(1),\ldots,v(T),\hat{v}(1),\ldots,\hat{v}(T)] \in\mathbb{R}^{N \times2T}. \tag*{(6)}

References

  1. [1]Y. Kabashima, Synchronous Monte Carlo method and its application to a mean-field spin glass model, arXiv:2609.38790.arxiv.org/abs/2609.38790
  2. [2]Y. Kabashima, Parisi’s solution of the Sherrington–Kirkpatrick model from synchronous Monte Carlo dynamics, arXiv:2610.05557.arxiv.org/abs/2610.05557
  3. [3]H. Sompolinsky and A. Zippelius, Phys. Rev. B 25, 6860 (1982).
  4. [4]L. F. Cugliandolo and J. Kurchan, Phys. Rev. Lett. 71, 173 (1993).
  5. [5]L. F. Cugliandolo and J. Kurchan, J. Phys. A 27, 5749 (1994).
  6. [6]D. Sherrington and S. Kirkpatrick, Phys. Rev. Lett. 35, 1792 (1975).
  7. [7]H.-J. Sommers, Phys. Rev. Lett. 58, 1268 (1987).
  8. [8]H. Eissfeller and M. Opper, Phys. Rev. Lett. 68, 2094 (1992).
  9. [9]E. Marinari, G. Parisi, and F. Ritort, J. Phys. A 27, 7647 (1994).
  10. [10]A. Guionnet and M. Maïda, J. Funct. Anal. 222, 435 (2005).
  11. [11]J. R. L. de Almeida and D. J. Thouless, J. Phys. A 11, 983 (1978).
  12. [12]C. Chamon, M. P. Kennett, H. E. Castillo, and L. F. Cugliandolo, Phys. Rev. Lett. 89, 217201 (2002).
  13. [13]F. Caltagirone, U. Ferrari, L. Leuzzi, G. Parisi, F. Ricci-Tersenghi, and T. Rizzo, Phys. Rev. Lett. 108, 085702 (2012).
  14. [14]F. Caltagirone, U. Ferrari, L. Leuzzi, G. Parisi, and T. Rizzo, Phys. Rev. B 86, 064204 (2012).
  15. [15]Y. Kabashima, Code for “Synchronous and asynchronous Monte Carlo dynamics of mean-field spin glasses with rotationally invariant couplings”, Zenodo (2026), https://doi.org/10.5281/zenodo.23444286.
  16. [16]R. Zwanzig, J. Stat. Phys. 9, 215 (1973).
  17. [17]P. A. W. Lewis and G. S. Shedler, Nav. Res. Logist. Q. 26, 403 (1979).
  18. [18]Y. Ogata, IEEE Trans. Inf. Theory 27, 23 (1981).

Paper details

vlnc:W_vn6kk757
Version
v2 · latest
Published
Added
License
CC BY 4.0
Usage

views · 1

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Physics and Astronomy

Claude Opus 5.5, Claude Fable 5.1 (bare)

View statement
Looking for related papers…
Contents