Rare Event Sampling Using Multicanonical Monte Carlo Method Macoto - - PowerPoint PPT Presentation

rare event sampling using multicanonical monte carlo
SMART_READER_LITE
LIVE PREVIEW

Rare Event Sampling Using Multicanonical Monte Carlo Method Macoto - - PowerPoint PPT Presentation

Rare Event Sampling Using Multicanonical Monte Carlo Method Macoto Kikuchi Cybermedia Center, Osaka University Outline Introduction: What is the Rare Event? Markov Chain Monte Carlo (Metropolis) Multicanonical MC Wang-Landau method Example:


slide-1
SLIDE 1

Rare Event Sampling Using Multicanonical Monte Carlo Method

Macoto Kikuchi

Cybermedia Center, Osaka University

slide-2
SLIDE 2

Outline

Introduction: What is the Rare Event? Markov Chain Monte Carlo (Metropolis) Multicanonical MC Wang-Landau method Example: 2D Ising Model Application: Magic Square Multi-Self-Overlap Ensemble

slide-3
SLIDE 3

Introduction

What is rare event?

slide-4
SLIDE 4

Example: Protein folding The native state is rare!

slide-5
SLIDE 5

Lattice protein model (HP model) A Red-Red contact gives energy -1. This conformation is one of the native ones

slide-6
SLIDE 6

Purpose Sample the rare configuration using Monte Carlo method Count the number of such configurations

Degeneracy of the ground states / Residual entropy

Free-energy landscape Point to consider Random sampling is useless

Almost all the sampled conformations are high energy random ones.

slide-7
SLIDE 7

One step further Importance sampling

Apply bias to sample the desired conformations

Solution Markov chain Monte Carlo method at temperature T (MCMC or Metropolis method)

MCMC at low T will generate low energy states.

slide-8
SLIDE 8

Problem of rough energy landscape How to overcome the energy barrier

slide-9
SLIDE 9

Optimization method If we only need some of the low-energy states, we can use numerical optimization methods example Simulated annealing (SA) Genetic algorithm (GA)

slide-10
SLIDE 10

Capables and uncapables of optimization methods

1

capables

generate some low-energy states

search for ground states

2

uncapables

count the number of the low-energy states finite-temperature properties

free-energy landscape

Solution Rare-event samplinc by multicanonical MC

slide-11
SLIDE 11

Markov Chain Monte Carlo (Metropolis method)

slide-12
SLIDE 12

Canonical ensemble Appearance probability of the microscopic state i at β = 1/kBT Pi ∝ e−βEi (Boltzman weight) Appearance probability of energy E P(E) ∝ Ω(E)e−βE

Ω(E): Number of states of energy E

slide-13
SLIDE 13

Trade off of Ω(E) and the Boltzman weight

slide-14
SLIDE 14

Energy distribution of the canonical ensemble

slide-15
SLIDE 15

Markov Chain Monte Carlo Sample microscopic states of temperature T using the computer simulations of a Markov chain goal Construct a Markov process that the average quantities (e.g. energy) in the steady state coincide with the thermal averages at temperature T

slide-16
SLIDE 16

Markov process is defined by a set of the transition probability wij from jth microscopic state to ith states requirement

1

0 ≤ wij ≤ 1

2

i

wij = 1

slide-17
SLIDE 17

Consider the probability distribution of microscopic state i at t-th step Pi(t), then ∑

i

Pi(t) = 1 One step of evolution of the state according to the transition probability is Pi(t + 1) = ∑

j

wijPj(t)

slide-18
SLIDE 18

In the vector and matrix notation ⃗ P(t + 1) = W ⃗ P(t) W: Markov matrix The large step limit ⃗ P(∞) = lim

n→∞ W n ⃗

P(t0) Since the largest eigenvalue of the Markov matrix is 1, ⃗ P∞ is a steady state that satisfies W ⃗ P(∞) = ⃗ P(∞)

slide-19
SLIDE 19

requirement for W Ergodicity System at an arbitrary state can reach all the states in finite steps

State space should be singly connected, otherwise the steady state is not uniquely determined.

Since the number of states is finite, the steady state is reached in a finite steps.

slide-20
SLIDE 20

We require that the steady state coincides with the thermal equilibrium state requirement Pi(∞) ∝ exp ( − Ei kBT ) The following is the sufficient condition Detailed balance wij exp ( − Ej kBT ) = wji exp ( − Ei kBT )

slide-21
SLIDE 21
  • r

Detailed balance 2 wij wji = exp (−∆Eij kBT ) where ∆Eij ≡ Ei − Ej The most widely used transition probability is Metropolis transition probability wij = min [ 1, exp ( −∆Eij kBT )]

slide-22
SLIDE 22

Problem The state space is usually astronomically huge In case of the two-state system with 1000 elements (very small considering today’s computing power), the number of the microscopic states is 21000 ≃ 10300. Thus the Markov matrix is 10300 × 10300. Solution Instead of having the distribution vector ⃗ P, we carry a single microscopic state and follow its trajectory in the state spece by simulating the stochastic process.

slide-23
SLIDE 23

Procedure

1

Prepare any initial state i

2

Make a candidate state j for the next step

3

Generate a random number R in [0, 1] and compare to the transition probability wji

4

If R ≤ wji, change the state to j. Otherwise, keep the state i.

5

Repeat many times After sufficiently long steps, the system reaches the thermal equilibrium state. After that, the states

  • btained by the simulation are samples from the

thermal equilibrium.

slide-24
SLIDE 24

example: 2D Ising model (20 × 20)

20000 40000 60000 80000 100000 MCS −800 −700 −600 −500 −400 −300 −200 −100 E

Time series of energy (β = 0.45)

slide-25
SLIDE 25

example: 2D Ising model (20 × 20)

−800 −750 −700 −650 −600 −550 −500 E 500 1000 1500 2000 2500 3000 H(E)

Histogram of energy (β = 0.45)

slide-26
SLIDE 26

Problem We cannot obtain the absolute probability Pi, because we do not know Ω(E). Only states in a narrow range of energy are sampled

Canonical ensemble

slide-27
SLIDE 27

Multicanonical Monte Carlo method

slide-28
SLIDE 28

purpose Sample conformations from a wide range of energy using MCMC Multicanonical ensemble

Berg and Neuhaus (1991)

Entropic sampling

Lee (1993)

slide-29
SLIDE 29

idea We can use any weight of function of energy, instead of Boltzman weight Pi ∝ e−f (Ei) if we make the weight as Pi ∝ 1 Ω(Ei)

  • r

f (Ei) = log Ω(Ei) + const. Then, energy distribution becomes constant (flat distribution)

slide-30
SLIDE 30

Ideal energy distribution of multicanonical ensemble

slide-31
SLIDE 31

Problem Ω(E) is not known beforehand Solution Improve f (E) step by step until it finally gives sufficiently flat distribution of energy Multicanonical ensemble method consists of two stages

1

Preliminary run

Machine learning for determining f (E)

2

Measurement run

Long run for measuring physical quantities using fixed f (E)

slide-32
SLIDE 32

In the original methods, E is divided into bins. Original multicanonical ensemble for ith bin f (E) = αi + βiE log Ω(E) is approximated by a piecewise-linear function

assign different temperature to each bin (that is why it is called as multi-canonical

slide-33
SLIDE 33

Entropic sampling for ith bin f (E) = αi multi-microcanonical ensemble The entropic sampling is used in most cases, because it’s simpler than the original multicanonical ensemble.

slide-34
SLIDE 34

Wang-Landau method

slide-35
SLIDE 35

Wang-Landau method Originaly proposed as an independent method from the multicanonical ensemble to estimate Ω(E) Now it is considered as a method for preliminary run to determine f (E)

Applicable only to the entropic sampling

Non-Markovian process

Transition probability changes at each step

Wang and Landau (2001)

slide-36
SLIDE 36

idea When a conformation having energy E is visited, weight for E is reduced.

Visited energy is made to be more difficult to appear

After many steps the energy histogram becomes flat and the weight is close to the multicanonical weight

slide-37
SLIDE 37

procedure

1

Initialize: set f (E) = 1 for all E

2

Run: When En is visited, f (En) → f (En) + df

This step is repeated until the energy histogram is sufficiently flat

3

Reduce df (e.g. division by 2), reset the histogram, and repeat the whole procedure until df becomes sufficiently small Finally, f (E)’s are determined.

slide-38
SLIDE 38

Example: 20 × 20 Ising model

slide-39
SLIDE 39

25000 50000 75000 100000 125000 150000 175000 200000 MCS −800 −600 −400 −200 200 400 600 800 E

Time series of energy for the last run of Wang-Landau method

slide-40
SLIDE 40

−800 −600 −400 −200 200 400 600 800 E 200 400 600 800 1000 1200 H(E)

Energy histogram for the last run of Wang-Landau method

slide-41
SLIDE 41

200000 400000 600000 800000 1000000 MCS −800 −600 −400 −200 200 400 600 800 E

Time series of energy for the measurement run

slide-42
SLIDE 42

−800 −600 −400 −200 200 400 600 800 E 1000 2000 3000 4000 5000 6000 H(E)

Energy histogram for the measurement run

slide-43
SLIDE 43

From the obtained energy histogram H(E), Ω(E) is estimated as Ω(E) ∝ H(E)ef (E) (Histogram reweighting method)

slide-44
SLIDE 44

−800 −600 −400 −200 200 400 600 800 E 0.0 0.2 0.4 0.6 0.8 1.0 1.2 1.4 Ω(E) 1e119

Ω(E) estimated from H(E) and f (E)

slide-45
SLIDE 45

−800 −600 −400 −200 200 400 600 800 E 50 100 150 200 250 logΩ(E)

log Ω(E) estimated from H(E) and f (E)

slide-46
SLIDE 46

If the total number of the conformations is known as N, the number of conformations having the energy En as N H(En)ef (En) ∑

E H(E)ef (E)

Result The estimated number of the ground state is 2.07

  • cf. exact value, 2
slide-47
SLIDE 47

Application to non-physical problems

slide-48
SLIDE 48

Idea Multicanonical ensemble with Wang-Landau method can be applied to sample rare states of non-physical systems, if an appropriate energy function (cost function) is defined

slide-49
SLIDE 49

Example: The magic square Placing the numbers from 1 to n2 in a square array using each number once, if all the sums

  • f the numbers in each row, column and

diagonal give the same value, the array makes a magic square Magic squares are numerous but rare Then how rare? Count the number of the magic squares by the multicanonical method

slide-50
SLIDE 50

Making rare conformations randomly Define the magicness E = ∑

row,column,diagonal

|sum − M| where M is the desired sum.

E = 0 if the array is a magic square, and E > 0

  • therwise

Magic squares are the ground states of this system

Considering E as the energy and estimate the appearance probability by the multicanonical method

Since the total number of the conformations is known, the number of the magic square is estimated.

slide-51
SLIDE 51

An example of 30 × 30 magic square

slide-52
SLIDE 52

How rare The number of 30 × 30 magic squares is 6.6 × 102056 Probability that a random arrangement of numbers 1 to 900 makes a magic number is 7.8 × 10−213 Kitajima and MK (2015)

slide-53
SLIDE 53

Probability that a random arrangement of the number 1 to n2 makes a magic number