Abstract
With the recent developments in machine learning, Carrasquilla and Melko have proposed a paradigm that is complementary to the conventional approach for the study of spin models. As an alternative to investigating the thermal average of macroscopic physical quantities, they have used the spin configurations for the classification of the disordered and ordered phases of a phase transition through machine learning. We extend and generalize this method. We focus on the configuration of the longrange correlation function instead of the spin configuration itself, which enables us to provide the same treatment to multicomponent systems and the systems with a vector order parameter. We analyze the BerezinskiiKosterlitzThouless (BKT) transition with the same technique to classify three phases: the disordered, the BKT, and the ordered phases. We also present the classification of a model using the training data of a different model.
Introduction
Numerical simulations, such as Monte Carlo methods, have been successfully employed in the study of phase transitions and critical phenomena^{1}. In spin systems, the spin configurations are sampled using a stochastic importance sampling technique, and the estimators for physical quantities, such as the order parameter and the specific heat, are evaluated for these samples.
Several spin models have recently been studied through machine learning^{2,3,4,5,6}. Carrasquilla and Melko^{2} proposed a paradigm that is complementary to the above approach. By using large data sets of spin configurations, they classified and identified a hightemperature paramagnetic phase and a lowtemperature ferromagnetic phase. It was similar to image classification using machine learning. They demonstrated the use of fully connected and convolutional neural networks for the study of the twodimensional (2D) Ising model and an Ising lattice gauge theory.
In this study, we extend and generalize the method proposed by Carrasquilla and Melko^{2}. First, instead of considering the spin configuration itself, we analyze the longrange correlation configuration, which will be explained later. From this analysis, we can evaluate the multicomponent systems, such as the Potts model, and the systems with a vector order parameter, such as the XY model. We can identify identical configurations with the permutational symmetry or the rotational symmetry, which results in an efficient classification of phases. Moreover, the inclusion of longrange correlation is helpful in the study of phase transition. Second, we investigate the BerezinskiiKosterlitzThouless (BKT) phase^{7,8,9,10}, described by a fixed line instead of a fixed point from the perspective of the renormalization group, using the same treatment as the paramagneticferromagnetic phase transition. By studying the 2D clock model, which is a discrete version of the XY model, we classify the paramagneticBKTferromagnetic transitions through machine learning.
Model
We enlist the models we analyze below. We consider a 2D Ising model on the square lattice, whose Hamiltonian is given as
The summation is realized over the nearestneighbor pairs, and periodic boundary conditions are imposed in numerical simulations.
The Hamiltonian of the qstate Potts model^{11,12} is given by
where δ_{ab} is the Kronecker delta. The 2D ferromagnetic Potts model is known to exhibit a secondorder phase transition for \(q\le 4\) and a firstorder phase transition for \(q\ge 5\). The Potts model for \(q=2\) is identical to the Ising model.
The 2D spin systems with a continuous XY symmetry exhibit a unique phase transition called the BKT transition^{7,8,9,10}. A BKT phase of a quasi longrange order (QLRO) exists, wherein the correlation function decays as a power law. Here, we consider the qstate clock model, which is a discrete version of the classical XY model. Its Hamiltonian is given by
The 2D qstate clock model experiences a BKT transition for \(q\ge 5\), whereas the clock model for \(q=4\) comprises two sets of the Ising model and the 3state clock model is equivalent to the 3state Potts model. The clock model for \(q=2\) is simply the Ising model.
We measure temperature in units of J.
Correlation Configuration
The correlation function in the Ising model, with a distance r, is given by
It clearly assumes a value of +1 or −1.
In the case of the qstate Potts model, the correlation function is defined by
It assumes a value of +1 or \(1/(q1)\).
The correlation function \({g}_{i}(r)\) of the qstate clock model is
It assumes a value between +1 and −1.
There are several types of symmetries in spin systems. A few different spin configurations are essentially identical, whereas they have the same correlation configuration.
For phase transitions, it is preferable to include longrange correlations, which play an essential role in phase transitions. Because the longest distance in the finitesize systems of size L with periodic boundary conditions is L/2, we consider the average value of the xdirection and the ydirection, that is,
for the Ising model. The same definitions are employed for other models.
We note that this type of correlation function was used along with the generalized scheme for the probabilitychanging cluster algorithm^{13}.
Using the SwendsenWang multicluster flip algorithm^{14} for updating spins, we generated the spin configurations for a given temperature T.
The examples of the spin configurations {s_{i}} and correlation configurations \(\{{g}_{i}(L/2)\}\) for several models are shown in the Supplementary Information section. The plots of the 2D Ising model, the 2D 5state Potts model, and the 2D 6state clock model are shown in Fig. S1, Fig. S2, and Fig. S3, respectively.
MachineLearning Study
We have considered a fully connected neural network implemented with a standard TensorFlow library^{15} using the 100hidden unit model to classify the ordered and the disordered phases. For the input layer, we use correlation configurations \(\{{g}_{i}(L\mathrm{/2)\}}\). A schematic diagram of the fully connected neural network in the present simulation is shown in Fig. 1. We have used a crossentropy cost function supplemented with an L2 regularization term. The neural networks were trained using the Adam method^{16}.
Typically, around 40,000 training data sets are used, and 30,000 test data sets are used. Ten independent calculations were performed to provide error analysis. Although the exact transition temperatures T_{c} are known for most of the models in the present study, we have not used the samples close to T_{c} for the training data. We have assumed that the exact T_{c} is not known.
We first analyzed the 2D 3state Potts model. The output layer averaged over a test set as a function of T for the 2D 3state Potts model is shown in Fig. 2a. The probabilities of predicting the phases, the disordered or the ordered, are plotted for each temperature. The system sizes are L = 24, 32, and 48. The samples of T within the ranges \(0.85\le T\le 0.94\) and \(1.06\le T\le 1.15\) were used for the training data. The exact secondorder transition temperature T_{c} for this model is known as \(1/\mathrm{ln}(1+\sqrt{3})=0.995\). We observed that the neural network could successfully classify the disordered and ordered phases. We give the finitesize scaling plot of the secondorder transition^{17} in the inset, where the horizontal axis is chosen as \(t{L}^{\mathrm{1/}\nu }\) with \(t=(T{T}_{c})/J\) and the correlationlength exponent v. For the values of T_{c} and v, we used the exact values, \({T}_{c}=1/\mathrm{ln}(1+\sqrt{3})=0.995\) and v = 5/6. We obtained very good finitesize scaling.
We have presented the output layer averaged over a test set as a function of T for the 2D 5state Potts model in Fig. 2b. The system sizes are L = 24, 32, and 48. The samples of T within the ranges \(0.7\le T\le 0.79\) and \(0.91\le T\le 1.0\) were used for the training data. This model is known to exhibit the firstorder transition at \({T}_{c}=1/\mathrm{ln}\,\mathrm{(1}+\sqrt{5})=0.852\). The transition is sharp compared with the Potts model for \(q=3\) for the secondorder transition.
It is instructive to use the training data obtained from the 3state Potts model for the classification of the phases of the 5state Potts model. The output layer for the 5state Potts model using the training data of the 3state Potts model is given in Fig. 3a. It successfully reproduces the sharp transition of the 5state Potts model at \({T}_{c}=1/\mathrm{ln}(1+\sqrt{5})=0.852\). The plot of the opposite direction, that is, the output layer obtained for the 3state Potts model using the training data of the 5state Potts model is given in Fig. 3b. It reproduces the transition of the 3state Potts model at \({T}_{c}=1/\mathrm{ln}(1+\sqrt{3})=0.995\). The order of the transition for the 3state Potts model is second order, whereas that for the 5state Potts model is first order. However, the training data of one model successfully reproduces the classification of the other model.
We have considered the 2D qstate clock model next. Because of the discreteness, there are two transitions for \(q\ge 5\). One is a higher BKT transition, T_{2}, between the disordered phase and the BKT phase of QLRO, and the other is a lower transition, T_{1}, between the BKT phase and the ordered phase. The recent numerical estimates of T_{1} and T_{2} for the 6state clock model are 0.701(5) and 0.898(5), respectively^{18}. The output layer averaged over a test set as a function of T for the 2D 6state clock model is shown in Fig. 4a. The system sizes are L = 24, 32, 48, and 64. The samples of T within the ranges \(0.4\le T\le 0.64\), \(0.77\le T\le 0.83\), and \(0.96\le T\le 1.2\) were used for the lowtemperature, midrange temperature, and hightemperature training data, respectively. Figure 4a shows the classification into the three phases. We estimate the sizedependent \({T}_{\mathrm{1,2}}(L)\) from the point that the probabilities of predicting two phases are 50%. The estimates of \({T}_{1}(L)\) and \({T}_{2}(L)\), in the range of \(24\le L\le 64\), are around 0.66–0.67 and 0.93–0.94, respectively. The correlation length at the BKT transitions diverges rapidly, as given below,
with \(t=(T{T}_{1,2})/{T}_{1,2}\), which is both below T_{1} and above T_{2}. Finitesize effects result in a wider prediction of the BKT phase for smaller sizes. Size effects become smaller gradually with ln L. In the conventional Monte Carlo study of the BKT transition, the helicity modulus was calculated, and the sizedependent \({T}_{2}(L)\) can be estimated from the intersection with the straight line, \(\mathrm{(2/}\pi )\,\ast \,T\), the universal jump^{19,20}. The numerical estimates of \({T}_{2}(L)\) are 0.935 (\(L=24\)), 0.929 (\(L=32\)), 0.925 (\(L=48\)), and 0.921 (\(L=64\)), which slowly converge to 0.898 in the infinite L limit^{18}. The present estimates of finitesize T_{2} are compatible with the universal jump analysis, although the systematic size dependence is hided because of statistical errors. The situation for T_{1} is the same. Thus, Fig. 4a clearly shows the behavior of the three phases.
It is interesting to investigate the relation between the BKT transition and the secondorder transition. For this purpose, we have examined the 4state clock model. This model is equivalent to two sets of the Ising model; it has a single secondorder transition at \({T}_{c}=1/\mathrm{ln}(1+\sqrt{2})=1.135\). The output layer averaged over a test set as a function of T for the 2D 4state clock model is given in Fig. 4b. The samples of T within the ranges \(0.9\le T\le 1.06\) and \(1.2\le T\le 1.4\) were used for the training data.
We investigate the result of using the training data of the 6state clock model for the classification of the 4state clock model. We present the output layer for the 4state clock model as a function of T using the training data of the 6state clock model in Fig. 5. The phases of the 4state clock model are classified into the ordered and disordered phases with the expected T_{c} around 1.135. However, the narrow region near T_{c} is regarded as the BKT phase. It is an indication that the BKT phase with a fixed line is the same as the critical phase of the secondorder transition with a fixed point. The figure indicates that the critical region becomes narrower as the system size increases.
Summary and Discussion
We reported a machinelearning study on several spin models to study phase transitions. We considered the configuration of a longrange spatial correlation instead of the spin configuration itself. By doing so, we provided a similar treatment to various spin models including the multicomponent systems and the systems with a vector order parameter. We successfully classified the disordered and the ordered phases, along with the BKT type topological phase. We showed a good finitesize scaling plot for the secondorder transition.
Using the training data of the secondorder transition system of the 3state Potts model, we reproduced the phase classification of the firstorder transition of the 5state Potts model. The phase classification of the opposite direction was also successful. We achieved the phase classification of the secondorder transition of the 3state Potts model using the training data of the 5state Potts model. Using the training data of the BKT transition system for the 6state clock model, we elucidated the role of the critical phase of the secondorder transition of the 4state clock model. It is a direct demonstration that explains that the phase with a fixed line, whose spatial decay is an algebraic one, has the same structure as the critical phase of the secondorder transition with a fixed point.
The present treatment of machinelearning study is generalized, and can be applied to various systems including quantum spin systems. It will be interesting to study the universal behavior of the topological phase of BKT type. There are sometimes implicit symmetries in the models of physics. Universality appears in totally different systems. The 3state antiferromagnetic square lattice Potts model with a ferromagnetic nextnearestneighbor interaction is an example. This model was studied by Otsuka et al.^{21} using the levelspectroscopy method, where they presented two BKT transitions and the universality of the 6state ferromagnetic clock model. The machinelearning study on this model is in progress, and it is expected to be reported in the future.
References
D. P. Landau & K. Binder A Guide to Monte Carlo Simulations in Statistical Physics, 4th edition, (Cambridge University Press, Cambridge, 2014).
Carrasquilla, J. & Melko, R. G. Machine learning phases of matter. Nat. Phys. 13, 431–434 (2017).
Beach, M. J. S., Golubeva, A. & Melko, R. G. Machine learning vortices at the KosterlitzThouless transition. Phys. Rev. B. 97, 045207 (2018).
Suchsland, P. & Wessel, S. Parameter diagnostics of phases and phase transition learning by neural networks. Phys. Rev. B. 97, 174435 (2018).
Zhang, W., Liu, J. & Wei, T.C. Machine learning of phase transitions in the percolation and XY models. Phys. Rev. E. 99, 032142 (2019).
RodriguezNieva, J. F. & Scheurer, M. S. Identifying topological order through unsupervised machine learning. Nat. Phys. 15, 790–795 (2019).
Berezinskii, V. L. Destruction of Longrange Order in Onedimensional and Twodimensional Systems having a Continuous Symmetry Group I. Classical Systems. Sov. Phys. JEPT 32, 493–500 (1970).
Berezinskii, V. L. Destruction of Longrange Order in Onedimensional and Twodimensional Systems Possessing a Continuous Symmetry Group. II. Quantum Systems. Sov. Phys. JEPT 34, 610–616 (1972).
Kosterlitz, J. M. & Thouless, D. Ordering, metastability and phase transitions in twodimensional systems. J. Phys. C: Solid State Phys. 6, 1181–1203 (1973).
Kosterlitz, J. M. The critical properties of the twodimensional xy model. J. Phys. C: Solid State Phys. 7, 1046–1060 (1974).
Potts, R. B. Some generalized orderdisorder transformations. Proc. Camb. Phil. Soc. 48, 106–109 (1952).
Wu, F. Y. The Potts model. Rev. Mod. Phys. 54, 235–268 (1982).
Tomita, Y. & Okabe, Y. Finitesize scaling of correlation ratio and generalized scheme for the probabilitychanging cluster algorithm. Phys. Rev. B 66, 180401(R) (2002).
Swendsen, R. H. & Wang, J. S. Nonuniversal critical dynamics in Monte Carlo simulations. Phys. Rev. Lett. 58, 86–88 (1987).
Abadi, M. et al. TensorFlow: LargeScale Machine Learning on Heterogeneous Distributed Systems. arXiv:1603.04467 http://tensorflow.org (2015).
Kingma, D. P. & Adam, J. B A method for stochastic optimization. arXiv:1412.6980 (2014).
Fisher, M. E. In Proc. 1970 E. Fermi Int. School of Physics, edited by M. S. Green (Academic, New York, 1971) Vol. 51, p. 1; Finitesize Scaling, edited by J. L. Cardy (NorthHolland, New York, 1988).
Surungan, T., Masuda, S., Komura, Y. & Okabe, Y. BerezinskiiKosterlitzThouless transition on regular and Villain types of qstate clock models. J. Phys. A: Math. Theor. 52, 275002 (2019).
Weber, H. & Minnhagen, P. Monte Carlo determination of the critical temperature for the twodimensional XY model. Phys. Rev. B 37, 5986(R) (1988).
Harada, K. & Kawashima, N. Universal Jump in the Helicity Modulus of the TwoDimensional Quantum XY Model. Phys. Rev. B 55, 11949(R) (1997).
Otsuka, H., Mori, K., Okabe, Y. & Nomura, K. Level spectroscopy of the squarelattice threestate Potts model with a ferromagnetic nextnearestneighbor coupling. Phys. Rev. E. 72, 046103 (2005).
Acknowledgements
This work was supported by a GrantinAid for Scientific Research from the Japan Society for the Promotion of Science, Grant Number JP16K05480, Tokyo Metropolitan University, Japan, and the Biomedical Research Council of A*STAR (Agency for Science, Technology and Research), Singapore. KS is grateful to the A*STAR Research Attachment Programme (ARAP) of Singapore for financial support.
Author information
Authors and Affiliations
Contributions
K.S. and Y.O. designed the study and performed computer calculations. All authors analyzed the results, and approved the final manuscript.
Corresponding authors
Ethics declarations
Competing interests
The authors declare no competing interests.
Additional information
Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Supplementary information
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons license, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons license and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this license, visit http://creativecommons.org/licenses/by/4.0/.
About this article
Cite this article
Shiina, K., Mori, H., Okabe, Y. et al. MachineLearning Studies on Spin Models. Sci Rep 10, 2177 (2020). https://doi.org/10.1038/s41598020582635
Received:
Accepted:
Published:
DOI: https://doi.org/10.1038/s41598020582635
Further reading

A datadriven approach to violin making
Scientific Reports (2021)

A cautionary tale for machine learning generated configurations in presence of a conserved quantity
Scientific Reports (2021)

Inverse renormalization group based on image superresolution using deep convolutional networks
Scientific Reports (2021)
Comments
By submitting a comment you agree to abide by our Terms and Community Guidelines. If you find something abusive or that does not comply with our terms or guidelines please flag it as inappropriate.