fbpx
Wikipedia

Swendsen–Wang algorithm

The Swendsen–Wang algorithm is the first non-local or cluster algorithm for Monte Carlo simulation for large systems near criticality. It has been introduced by Robert Swendsen and Jian-Sheng Wang in 1987 at Carnegie Mellon.

The original algorithm was designed for the Ising and Potts models, and it was later generalized to other systems as well, such as the XY model by Wolff algorithm and particles of fluids. The key ingredient was the random cluster model, a representation of the Ising or Potts model through percolation models of connecting bonds, due to Fortuin and Kasteleyn. It has been generalized by Barbu and Zhu[1] to arbitrary sampling probabilities by viewing it as a Metropolis–Hastings algorithm and computing the acceptance probability of the proposed Monte Carlo move.

Motivation edit

The problem of the critical slowing-down affecting local processes is of fundamental importance in the study of second-order phase transitions (like ferromagnetic transition in the Ising model), as increasing the size of the system in order to reduce finite-size effects has the disadvantage of requiring a far larger number of moves to reach thermal equilibrium. Indeed the correlation time   usually increases as   with   or greater; since, to be accurate, the simulation time must be  , this is a major limitation in the size of the systems that can be studied through local algorithms. SW algorithm was the first to produce unusually small values for the dynamical critical exponents:   for the 2D Ising model (  for standard simulations);   for the 3D Ising model, as opposed to   for standard simulations.

Description edit

The algorithm is non-local in the sense that a single sweep updates a collection of spin variables based on the Fortuin–Kasteleyn representation. The update is done on a "cluster" of spin variables connected by open bond variables that are generated through a percolation process, based on the interaction states of the spins.

Consider a typical ferromagnetic Ising model with only nearest-neighbor interaction.

  • Starting from a given configuration of spins, we associate to each pair of nearest neighbours on sites   a random variable   which is interpreted in the following way: if   then there is no link between the sites   and   (the bond is closed); if   then there is a link connecting the spins  (the bond is open). These values are assigned according to the following (conditional) probability distribution:
  ;  ;  ;  ; 

where   is the ferromagnetic coupling strength.

This probability distribution has been derived in the following way: the Hamiltonian of the Ising model is

 ,

and the partition function is

 .

Consider the interaction between a pair of selected sites   and   and eliminate it from the total Hamiltonian, defining  

Define also the restricted sums:

 ;

 

 

Introduce the quantity

 ;

the partition function can be rewritten as

 

Since the first term contains a restriction on the spin values whereas there is no restriction in the second term, the weighting factors (properly normalized) can be interpreted as probabilities of forming/not forming a link between the sites:   The process can be easily adapted to antiferromagnetic spin systems, as it is sufficient to eliminate   in favor of   (as suggested by the change of sign in the interaction constant).

  • After assigning the bond variables, we identify the same-spin clusters formed by connected sites and make an inversion of all the variables in the cluster with probability 1/2. At the following time step we have a new starting Ising configuration, which will produce a new clustering and a new collective spin-flip.

Correctness edit

It can be shown that this algorithm leads to equilibrium configurations. To show this, we interpret the algorithm as a Markov chain, and show that the chain is both ergodic (when used together with other algorithms) and satisfies detailed balance, such that the equilibrium Boltzmann distribution is equal to the stationary distribution of the chain.

Ergodicity means that it is possible to transit from any initial state to any final state with a finite number of updates. It has been shown that the SW algorithm is not ergodic in general (in the thermodynamic limit).[2] Thus in practice, the SW algorithm is usually used in conjunction with single spin-flip algorithms such as the Metropolis–Hastings algorithm to achieve ergodicity.

The SW algorithm does however satisfy detailed-balance. To show this, we note that every transition between two Ising spin states must pass through some bond configuration in the percolation representation. Let's fix a particular bond configuration: what matters in comparing the probabilities related to it is the number of factors   for each missing bond between neighboring spins with the same value; the probability of going to a certain Ising configuration compatible with a given bond configuration is uniform (say  ). So the ratio of the transition probabilities of going from one state to another is

 

since  .

This is valid for every bond configuration the system can pass through during its evolution, so detailed balance is satisfied for the total transition probability. This proves that the algorithm is correct.

Efficiency edit

Although not analytically clear from the original paper, the reason why all the values of z obtained with the SW algorithm are much lower than the exact lower bound for single-spin-flip algorithms ( ) is that the correlation length divergence is strictly related to the formation of percolation clusters, which are flipped together. In this way the relaxation time is significantly reduced. Another way to view this is through the correspondence between the spin statistics and cluster statistics in the Edwards-Sokal representation.[3]

Generalizations edit

The algorithm is not efficient in simulating frustrated systems, because the correlation length of the clusters is larger than the correlation length of the spin model in the presence of frustrated interactions.[4] Currently, there are two main approaches to addressing this problem, such that the efficiency of cluster algorithms is extended to frustrated systems.

The first approach is to extend the bond-formation rules to more non-local cells, and the second approach is to generate clusters based on more relevant order parameters. In the first case, we have the KBD algorithm for the fully-frustrated Ising model, where the decision of opening bonds are made on each plaquette, arranged in a checkerboard pattern on the square lattice.[5] In the second case, we have replica cluster move for low-dimensional spin glasses, where the clusters are generated based on spin overlaps, which is believed to be the relevant order parameter.

See also edit

References edit

  1. ^ Barbu, Adrian; Zhu, Song-Chun (August 2005). "Generalizing Swendsen-Wang to sampling arbitrary posterior probabilities". IEEE Transactions on Pattern Analysis and Machine Intelligence. 27 (8): 1239–1253. doi:10.1109/TPAMI.2005.161. ISSN 0162-8828. PMID 16119263. S2CID 410716.
  2. ^ Gore, Vivek K.; Jerrum, Mark R. (1999-10-01). "The Swendsen–Wang Process Does Not Always Mix Rapidly". Journal of Statistical Physics. 97 (1): 67–86. Bibcode:1999JSP....97...67G. doi:10.1023/A:1004610900745. ISSN 1572-9613. S2CID 189821827.
  3. ^ Edwards, Robert G.; Sokal, Alan D. (1988-09-15). "Generalization of the Fortuin-Kasteleyn-Swendsen-Wang representation and Monte Carlo algorithm". Physical Review D. 38 (6): 2009–2012. Bibcode:1988PhRvD..38.2009E. doi:10.1103/PhysRevD.38.2009. PMID 9959355.
  4. ^ Cataudella, V.; Franzese, G.; Nicodemi, M.; Scala, A.; Coniglio, A. (1994-03-07). "Critical clusters and efficient dynamics for frustrated spin models". Physical Review Letters. 72 (10): 1541–1544. Bibcode:1994PhRvL..72.1541C. doi:10.1103/PhysRevLett.72.1541. hdl:2445/13250. PMID 10055635.
  5. ^ Kandel, Daniel; Ben-Av, Radel; Domany, Eytan (1990-08-20). "Cluster dynamics for fully frustrated systems". Physical Review Letters. 65 (8): 941–944. Bibcode:1990PhRvL..65..941K. doi:10.1103/PhysRevLett.65.941. PMID 10043065.
  • Swendsen, Robert H.; Wang, Jian-Sheng (1987-01-12). "Nonuniversal critical dynamics in Monte Carlo simulations". Physical Review Letters. 58 (2). American Physical Society (APS): 86–88. Bibcode:1987PhRvL..58...86S. doi:10.1103/physrevlett.58.86. ISSN 0031-9007. PMID 10034599.
  • Kasteleyn P. W. and Fortuin (1969) J. Phys. Soc. Jpn. Suppl. 26s:11
  • Fortuin, C.M.; Kasteleyn, P.W. (1972). "On the random-cluster model". Physica. 57 (4). Elsevier BV: 536–564. Bibcode:1972Phy....57..536F. doi:10.1016/0031-8914(72)90045-6. ISSN 0031-8914.
  • Wang, Jian-Sheng; Swendsen, Robert H. (1990). "Cluster Monte Carlo algorithms". Physica A: Statistical Mechanics and Its Applications. 167 (3). Elsevier BV: 565–579. Bibcode:1990PhyA..167..565W. doi:10.1016/0378-4371(90)90275-w. ISSN 0378-4371.
  • Barbu, A. (2005). "Generalizing Swendsen-Wang to sampling arbitrary posterior probabilities". IEEE Transactions on Pattern Analysis and Machine Intelligence. 27 (8). Institute of Electrical and Electronics Engineers (IEEE): 1239–1253. doi:10.1109/tpami.2005.161. ISSN 0162-8828. PMID 16119263. S2CID 410716.

swendsen, wang, algorithm, first, local, cluster, algorithm, monte, carlo, simulation, large, systems, near, criticality, been, introduced, robert, swendsen, jian, sheng, wang, 1987, carnegie, mellon, original, algorithm, designed, ising, potts, models, later,. The Swendsen Wang algorithm is the first non local or cluster algorithm for Monte Carlo simulation for large systems near criticality It has been introduced by Robert Swendsen and Jian Sheng Wang in 1987 at Carnegie Mellon The original algorithm was designed for the Ising and Potts models and it was later generalized to other systems as well such as the XY model by Wolff algorithm and particles of fluids The key ingredient was the random cluster model a representation of the Ising or Potts model through percolation models of connecting bonds due to Fortuin and Kasteleyn It has been generalized by Barbu and Zhu 1 to arbitrary sampling probabilities by viewing it as a Metropolis Hastings algorithm and computing the acceptance probability of the proposed Monte Carlo move Contents 1 Motivation 2 Description 3 Correctness 4 Efficiency 5 Generalizations 6 See also 7 ReferencesMotivation editThe problem of the critical slowing down affecting local processes is of fundamental importance in the study of second order phase transitions like ferromagnetic transition in the Ising model as increasing the size of the system in order to reduce finite size effects has the disadvantage of requiring a far larger number of moves to reach thermal equilibrium Indeed the correlation time t displaystyle tau nbsp usually increases as Lz displaystyle L z nbsp with z 2 displaystyle z simeq 2 nbsp or greater since to be accurate the simulation time must be t t displaystyle t gg tau nbsp this is a major limitation in the size of the systems that can be studied through local algorithms SW algorithm was the first to produce unusually small values for the dynamical critical exponents z 0 35 displaystyle z 0 35 nbsp for the 2D Ising model z 2 125 displaystyle z 2 125 nbsp for standard simulations z 0 75 displaystyle z 0 75 nbsp for the 3D Ising model as opposed to z 2 0 displaystyle z 2 0 nbsp for standard simulations Description editMain article Random cluster model The algorithm is non local in the sense that a single sweep updates a collection of spin variables based on the Fortuin Kasteleyn representation The update is done on a cluster of spin variables connected by open bond variables that are generated through a percolation process based on the interaction states of the spins Consider a typical ferromagnetic Ising model with only nearest neighbor interaction Starting from a given configuration of spins we associate to each pair of nearest neighbours on sites n m displaystyle n m nbsp a random variable bn m 0 1 displaystyle b n m in lbrace 0 1 rbrace nbsp which is interpreted in the following way if bn m 0 displaystyle b n m 0 nbsp then there is no link between the sites n displaystyle n nbsp and m displaystyle m nbsp the bond is closed if bn m 1 displaystyle b n m 1 nbsp then there is a link connecting the spins sn and sm displaystyle sigma n text and sigma m nbsp the bond is open These values are assigned according to the following conditional probability distribution P bn m 0 sn sm 1 displaystyle P left b n m 0 sigma n neq sigma m right 1 nbsp P bn m 1 sn sm 0 displaystyle P left b n m 1 sigma n neq sigma m right 0 nbsp P bn m 0 sn sm e 2bJnm displaystyle P left b n m 0 sigma n sigma m right e 2 beta J nm nbsp P bn m 1 sn sm 1 e 2bJnm displaystyle P left b n m 1 sigma n sigma m right 1 e 2 beta J nm nbsp where Jnm gt 0 displaystyle J nm gt 0 nbsp is the ferromagnetic coupling strength This probability distribution has been derived in the following way the Hamiltonian of the Ising model isH s lt i j gt Ji jsisj displaystyle H sigma sum limits lt i j gt J i j sigma i sigma j nbsp and the partition function isZ s e bH s displaystyle Z sum limits lbrace sigma rbrace e beta H sigma nbsp Consider the interaction between a pair of selected sites n displaystyle n nbsp and m displaystyle m nbsp and eliminate it from the total Hamiltonian defining Hnm s lt i j gt lt n m gt Ji jsisj displaystyle H nm sigma sum limits lt i j gt neq lt n m gt J i j sigma i sigma j nbsp Define also the restricted sums Zn msame s e bHnm s dsn sm displaystyle Z n m same sum limits lbrace sigma rbrace e beta H nm sigma delta sigma n sigma m nbsp Zn mdiff s e bHnm s 1 dsn sm displaystyle Z n m diff sum limits lbrace sigma rbrace e beta H nm sigma left 1 delta sigma n sigma m right nbsp Z ebJnmZn msame e bJnmZn mdiff displaystyle Z e beta J nm Z n m same e beta J nm Z n m diff nbsp Introduce the quantityZnmind Zn msame Zn mdiff displaystyle Z nm ind Z n m same Z n m diff nbsp the partition function can be rewritten asZ ebJnm e bJnm Zn msame e bJnmZn mind displaystyle Z left e beta J nm e beta J nm right Z n m same e beta J nm Z n m ind nbsp Since the first term contains a restriction on the spin values whereas there is no restriction in the second term the weighting factors properly normalized can be interpreted as probabilities of forming not forming a link between the sites P lt n m gt link 1 e 2bJnm displaystyle P lt n m gt link 1 e 2 beta J nm nbsp The process can be easily adapted to antiferromagnetic spin systems as it is sufficient to eliminate Zn msame displaystyle Z n m same nbsp in favor of Zn mdiff displaystyle Z n m diff nbsp as suggested by the change of sign in the interaction constant After assigning the bond variables we identify the same spin clusters formed by connected sites and make an inversion of all the variables in the cluster with probability 1 2 At the following time step we have a new starting Ising configuration which will produce a new clustering and a new collective spin flip Correctness editIt can be shown that this algorithm leads to equilibrium configurations To show this we interpret the algorithm as a Markov chain and show that the chain is both ergodic when used together with other algorithms and satisfies detailed balance such that the equilibrium Boltzmann distribution is equal to the stationary distribution of the chain Ergodicity means that it is possible to transit from any initial state to any final state with a finite number of updates It has been shown that the SW algorithm is not ergodic in general in the thermodynamic limit 2 Thus in practice the SW algorithm is usually used in conjunction with single spin flip algorithms such as the Metropolis Hastings algorithm to achieve ergodicity The SW algorithm does however satisfy detailed balance To show this we note that every transition between two Ising spin states must pass through some bond configuration in the percolation representation Let s fix a particular bond configuration what matters in comparing the probabilities related to it is the number of factors q e 2bJ displaystyle q e 2 beta J nbsp for each missing bond between neighboring spins with the same value the probability of going to a certain Ising configuration compatible with a given bond configuration is uniform say p displaystyle p nbsp So the ratio of the transition probabilities of going from one state to another isP s s P s s Pr s B C Pr B C s Pr s B C Pr B C s p exp 2b lt l m gt dsl smJlm p exp 2b lt l m gt dsl sm Jlm e bDE displaystyle frac P lbrace sigma rbrace rightarrow lbrace sigma rbrace P lbrace sigma rbrace rightarrow lbrace sigma rbrace frac Pr left lbrace sigma rbrace B C right Pr left B C lbrace sigma rbrace right Pr left lbrace sigma rbrace B C right Pr left B C lbrace sigma rbrace right frac p cdot exp left 2 beta sum limits lt l m gt delta sigma l sigma m J lm right p cdot exp left 2 beta sum limits lt l m gt delta sigma l sigma m J lm right e beta Delta E nbsp since DE lt l m gt Jlm sl sm slsm lt l m gt Jlm dsl sm 1 dsl sm dsl sm 1 dsl sm 2 lt l m gt Jlm dsl sm dsl sm displaystyle Delta E sum limits lt l m gt J lm left sigma l sigma m sigma l sigma m right sum limits lt l m gt J lm left delta sigma l sigma m left 1 delta sigma l sigma m right delta sigma l sigma m left 1 delta sigma l sigma m right right 2 sum limits lt l m gt J lm left delta sigma l sigma m delta sigma l sigma m right nbsp This is valid for every bond configuration the system can pass through during its evolution so detailed balance is satisfied for the total transition probability This proves that the algorithm is correct Efficiency editAlthough not analytically clear from the original paper the reason why all the values of z obtained with the SW algorithm are much lower than the exact lower bound for single spin flip algorithms z g n displaystyle z geq gamma nu nbsp is that the correlation length divergence is strictly related to the formation of percolation clusters which are flipped together In this way the relaxation time is significantly reduced Another way to view this is through the correspondence between the spin statistics and cluster statistics in the Edwards Sokal representation 3 Generalizations editThe algorithm is not efficient in simulating frustrated systems because the correlation length of the clusters is larger than the correlation length of the spin model in the presence of frustrated interactions 4 Currently there are two main approaches to addressing this problem such that the efficiency of cluster algorithms is extended to frustrated systems The first approach is to extend the bond formation rules to more non local cells and the second approach is to generate clusters based on more relevant order parameters In the first case we have the KBD algorithm for the fully frustrated Ising model where the decision of opening bonds are made on each plaquette arranged in a checkerboard pattern on the square lattice 5 In the second case we have replica cluster move for low dimensional spin glasses where the clusters are generated based on spin overlaps which is believed to be the relevant order parameter See also editRandom cluster model Monte Carlo method Wolff algorithm http www hpjava org theses shko thesis paper node69 html http www fcs acs i kyoto u ac jp harada monte en htmlReferences edit Barbu Adrian Zhu Song Chun August 2005 Generalizing Swendsen Wang to sampling arbitrary posterior probabilities IEEE Transactions on Pattern Analysis and Machine Intelligence 27 8 1239 1253 doi 10 1109 TPAMI 2005 161 ISSN 0162 8828 PMID 16119263 S2CID 410716 Gore Vivek K Jerrum Mark R 1999 10 01 The Swendsen Wang Process Does Not Always Mix Rapidly Journal of Statistical Physics 97 1 67 86 Bibcode 1999JSP 97 67G doi 10 1023 A 1004610900745 ISSN 1572 9613 S2CID 189821827 Edwards Robert G Sokal Alan D 1988 09 15 Generalization of the Fortuin Kasteleyn Swendsen Wang representation and Monte Carlo algorithm Physical Review D 38 6 2009 2012 Bibcode 1988PhRvD 38 2009E doi 10 1103 PhysRevD 38 2009 PMID 9959355 Cataudella V Franzese G Nicodemi M Scala A Coniglio A 1994 03 07 Critical clusters and efficient dynamics for frustrated spin models Physical Review Letters 72 10 1541 1544 Bibcode 1994PhRvL 72 1541C doi 10 1103 PhysRevLett 72 1541 hdl 2445 13250 PMID 10055635 Kandel Daniel Ben Av Radel Domany Eytan 1990 08 20 Cluster dynamics for fully frustrated systems Physical Review Letters 65 8 941 944 Bibcode 1990PhRvL 65 941K doi 10 1103 PhysRevLett 65 941 PMID 10043065 Swendsen Robert H Wang Jian Sheng 1987 01 12 Nonuniversal critical dynamics in Monte Carlo simulations Physical Review Letters 58 2 American Physical Society APS 86 88 Bibcode 1987PhRvL 58 86S doi 10 1103 physrevlett 58 86 ISSN 0031 9007 PMID 10034599 Kasteleyn P W and Fortuin 1969 J Phys Soc Jpn Suppl 26s 11 Fortuin C M Kasteleyn P W 1972 On the random cluster model Physica 57 4 Elsevier BV 536 564 Bibcode 1972Phy 57 536F doi 10 1016 0031 8914 72 90045 6 ISSN 0031 8914 Wang Jian Sheng Swendsen Robert H 1990 Cluster Monte Carlo algorithms Physica A Statistical Mechanics and Its Applications 167 3 Elsevier BV 565 579 Bibcode 1990PhyA 167 565W doi 10 1016 0378 4371 90 90275 w ISSN 0378 4371 Barbu A 2005 Generalizing Swendsen Wang to sampling arbitrary posterior probabilities IEEE Transactions on Pattern Analysis and Machine Intelligence 27 8 Institute of Electrical and Electronics Engineers IEEE 1239 1253 doi 10 1109 tpami 2005 161 ISSN 0162 8828 PMID 16119263 S2CID 410716 Retrieved from https en wikipedia org w index php title Swendsen Wang algorithm amp oldid 1163052796, wikipedia, wiki, book, books, library,

article

, read, download, free, free download, mp3, video, mp4, 3gp, jpg, jpeg, gif, png, picture, music, song, movie, book, game, games.