Elsevier

Journal of Computational Physics

Volume 231, Issue 4, 20 February 2012, Pages 1524-1532
Journal of Computational Physics

Efficient assignment of the temperature set for Parallel Tempering

https://doi.org/10.1016/j.jcp.2011.10.019Get rights and content

Abstract

We propose a simple algorithm able to identify a set of temperatures for a Parallel Tempering Monte Carlo simulation, that maximizes the probability that the configurations drift across all temperature values, from the coldest to the hottest ones, and vice versa. The proposed algorithm starts from data gathered from relatively short Monte Carlo simulations and is straightforward to implement. We assess its effectiveness on a test case simulation of an Edwards–Anderson spin glass on a lattice of 123 sites.

Introduction

The Parallel Tempering (PT) method was first introduced in literature by Swendsen and Wang [1] in order to reduce the long correlation time characteristic of the Monte Carlo (MC) simulation of complex systems, and then further developed by several authors [2], [3].

Dealing with spin glasses, proteins or neural networks means handling rough landscapes of the free energy and facing problems such as the stall of the system in a metastable state. PT tries to overcome these problems by simulating many copies of the system in parallel (hence the name) at different temperatures Ti (and correspondingly, inverse temperatures βi) and allowing copies, whose inverse temperature (energy) difference is ΔβE), to exchange their temperatures with probability min {1, eΔβΔE}. A given configuration will perform many times a walk in temperature space, wandering from high temperatures, where equilibration in fast, to low temperatures, where relaxation times can be long, exploring efficiently the complex energy landscape [4] with correct statistical weights, so the system can more easily overcome barriers in the free energy landscape. In spite of the simplicity and the power of this algorithm, its application can backfire in all cases in which the walk of the configuration in temperature space gets stuck.

Choosing a good temperature ensemble for a PT-enabled Monte Carlo simulation is not an easy task, as one must in principle satisfy many conflicting requirements, such as: (i) fast equilibration (sufficient time spent at “hot” temperatures); (ii) able to efficiently manage the study of “cold” enough temperatures (typically where the interesting physics is); (iii) good acceptance ratio (a large enough set of temperatures allowing a good exchange efficiency, but not too large, kicking the system away from its position, and preventing equilibration); (iv) an acceptance ratio independent of the temperature and (v) limited computational requests (a small set of temperatures).

Over the years, several methods have been proposed to define an optimal (or, at least, a “good”) set of temperatures. A simple approach might be choosing a geometric progression in the desired range of N temperatures [β1, βN]; however, if the system presents a divergent specific heat, this approach does not give the desired effect [5]. For this reason more complex methods [6], [7], [8] aim to obtain a better temperature set tuning values according to the theoretical acceptance, expressing the acceptance itself as a weighted function of the specific heat. Recently, a new method has been proposed, the so called iterative feedback-optimized, in which one considers the diffusion of a configuration in temperature space, and tries to keep its drift velocity constant, by appropriately choosing the specific temperature values (which are fixed in number) [9], [10], [11]. In this case one defines a flux function for every temperature Tk:f(Tk)=nup(Tk)nup(Tk)+ndown(Tk),where nup(ndown) is the normalized fraction of configurations which have visited for at least one MC sweep the lowest (highest) temperature and are traveling away from it, and tries to maximize a current defined asj=D(T)η(T)dfdTin which D(T) is the so called diffusivity; this is done by appropriately adjusting the temperature distribution density η(T) (for a better explanation of this method see [9], [10], [11]). Once f(Tk) is known, an optimal solution for η can be derived; however, measuring f(Tk) (or equivalently nup and ndown) takes very large computational resources. Other approaches have been suggested, a review can be found in [12].

In this paper, we present a very simple algorithm, whose tuning requires limited computational resources, that determines a set of temperatures βk that equalizes the exchange probability of all pairs of copies of the system sitting at nearby temperatures: in this way we try to increase the probability for a configuration to move across all available temperatures back and forth between the two (fixed) extremal ones. Our algorithm is based on the analysis of the energy distribution of the MC configurations at some given temperatures and we calculate their overlap to extract the acceptance ratio of a given exchange proposal. In our approach the number of available temperatures N and the lowest and highest temperatures are fixed: this is appropriate if one wants to explore some given physically interesting temperature range and has a given amount of available computational resources. This paper proceeds in Section 2 introducing our optimization algorithm, followed (Section 3) by a review of performance, measured in terms of a few specific metrics in a test case that would be difficult to handle for the usual PT algorithm, in order to better assess the advantages of our approach. The paper ends with some concluding remarks (Section 4).

Section snippets

The spring algorithm

We start from a preliminary (e.g. evenly spaced) assignment βi, i = 1,   N for each of the N copies of the system. Measurements on an initial MC simulation (without PT) at these temperatures allows to derive a (not necessarily very accurate) estimate of the probability distribution functions Pβi(E) for energy at each temperature in the initial set. These estimates are available in terms of a set of energy histograms Hβi collected from MC data after discarding an appropriate number of initial

Results

In order to evaluate the goodness of the proposed method, we tested it with a discrete Edwards Anderson spin glass [14] on a 3-D lattice of linear size 12, using 10 inverse temperatures, that we initially choose to be evenly distributed (in β) over the range [0.3, 1.25]; in this model, there is a spin glass phase transition at βc  0.901. The Hamiltonian of the model is:H=-i,jJijσiσj,where σi is the spin value (σi = ±1) and Jij are the quenched couplings, randomly initialized to be ±1. We have

Conclusions

In this paper we have discussed a very simple approach for the selection of a set of β values to be used for Parallel Tempering in a Monte Carlo simulation. Our approach defines a set of temperatures by requesting that, for all considered temperatures pairs, the PT exchange probability Pij is constant. The determination of the actual values of set of βi requires a limited amount of preliminary MC data and is easily performed using some crude but reliable approximations. We have tested our

Acknowledgment

We would like to thank A.P. Young for reading our manuscript and for valuable comments.

References (15)

  • D. Paschek et al.

    Replica exchange simulation of reversible folding/unfolding of the Trp-cage miniprotein in explicit solvent: on the structure and possible role of internal water

    J. Struct. Biol.

    (2007)
  • R.H. Swendsen et al.

    Replica Monte Carlo simulation of spin glasses

    Phys. Rev. Lett.

    (1986)
  • K. Hukushima et al.

    Exchange Monte Carlo method and application to spin glass simulations

    J. Phys. Soc. Japan

    (1995)
  • E. Marinari et al.

    Simulated tempering: a new Monte Carlo scheme

    Europhys. Lett.

    (1992)
  • H.G. Katzgraber, Introduction to Monte Carlo methods, lecture at “Modern Computation Science”, Oldenburg, Germany,...
  • C. Predescu et al.

    The incomplete beta function law for parallel tempering sampling of classical canonical systems

    J. Chem. Phys.

    (2004)
  • C. Predescu et al.

    On the efficiency of exchange in parallel tempering Monte Carlo simulations

    J. Phys. Chem. B

    (2005)
There are more references available in the full text version of this article.

Cited by (5)

View full text