rare event sampling using multicanonical monte carlo
play

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:


  1. Rare Event Sampling Using Multicanonical Monte Carlo Method Macoto Kikuchi Cybermedia Center, Osaka University

  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

  3. Introduction What is rare event?

  4. Example: Protein folding The native state is rare!

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

  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.

  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.

  8. Problem of rough energy landscape How to overcome the energy barrier

  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)

  10. Capables and uncapables of optimization methods capables 1 generate some low-energy states search for ground states uncapables 2 count the number of the low-energy states finite-temperature properties free-energy landscape Solution Rare-event samplinc by multicanonical MC

  11. Markov Chain Monte Carlo (Metropolis method)

  12. Canonical ensemble Appearance probability of the microscopic state i at β = 1 / k B T P i ∝ e − β E i (Boltzman weight) Appearance probability of energy E P ( E ) ∝ Ω( E ) e − β E Ω( E ): Number of states of energy E

  13. Trade off of Ω( E ) and the Boltzman weight

  14. Energy distribution of the canonical ensemble

  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

  16. Markov process is defined by a set of the transition probability w ij from j th microscopic state to i th states requirement 1 0 ≤ w ij ≤ 1 2 ∑ w ij = 1 i

  17. Consider the probability distribution of microscopic state i at t -th step P i ( t ), then ∑ P i ( t ) = 1 i One step of evolution of the state according to the transition probability is ∑ P i ( t + 1) = w ij P j ( t ) j

  18. In the vector and matrix notation P ( t + 1) = W ⃗ ⃗ P ( t ) W: Markov matrix The large step limit n →∞ W n ⃗ ⃗ P ( ∞ ) = lim P ( t 0 ) Since the largest eigenvalue of the Markov matrix is 1, ⃗ P ∞ is a steady state that satisfies W ⃗ P ( ∞ ) = ⃗ P ( ∞ )

  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.

  20. We require that the steady state coincides with the thermal equilibrium state requirement ( ) − E i P i ( ∞ ) ∝ exp k B T The following is the sufficient condition Detailed balance ( ) ( ) − E j − E i w ij exp = w ji exp k B T k B T

  21. or Detailed balance 2 ( − ∆ E ij ) w ij = exp w ji k B T where ∆ E ij ≡ E i − E j The most widely used transition probability is Metropolis transition probability [ ( − ∆ E ij )] w ij = min 1 , exp k B T

  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 2 1000 ≃ 10 300 . Thus the Markov matrix is 10 300 × 10 300 . 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.

  23. Procedure Prepare any initial state i 1 Make a candidate state j for the next step 2 Generate a random number R in [0 , 1] and 3 compare to the transition probability w ji If R ≤ w ji , change the state to j . Otherwise, 4 keep the state i . Repeat many times 5 After sufficiently long steps, the system reaches the thermal equilibrium state. After that, the states obtained by the simulation are samples from the thermal equilibrium.

  24. example: 2D Ising model (20 × 20) 0 −100 −200 −300 −400 E −500 −600 −700 −800 0 20000 40000 60000 80000 100000 MCS Time series of energy ( β = 0 . 45)

  25. example: 2D Ising model (20 × 20) 3000 2500 2000 H(E) 1500 1000 500 0 −800 −750 −700 −650 −600 −550 −500 E Histogram of energy ( β = 0 . 45)

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

  27. Multicanonical Monte Carlo method

  28. purpose Sample conformations from a wide range of energy using MCMC Multicanonical ensemble Berg and Neuhaus (1991) Entropic sampling Lee (1993)

  29. idea We can use any weight of function of energy, instead of Boltzman weight P i ∝ e − f ( E i ) if we make the weight as 1 P i ∝ Ω( E i ) or f ( E i ) = log Ω( E i ) + const . Then, energy distribution becomes constant (flat distribution)

  30. Ideal energy distribution of multicanonical ensemble

  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 Preliminary run 1 Machine learning for determining f ( E ) Measurement run 2 Long run for measuring physical quantities using fixed f ( E )

  32. In the original methods, E is divided into bins. Original multicanonical ensemble for i th bin f ( E ) = α i + β i E log Ω( E ) is approximated by a piecewise-linear function assign different temperature to each bin (that is why it is called as multi-canonical

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

  34. Wang-Landau method

  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)

  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

  37. procedure Initialize: set f ( E ) = 1 for all E 1 Run: When E n is visited, f ( E n ) → f ( E n ) + df 2 This step is repeated until the energy histogram is sufficiently flat Reduce df (e.g. division by 2), reset the 3 histogram, and repeat the whole procedure until df becomes sufficiently small Finally, f ( E )’s are determined.

  38. Example: 20 × 20 Ising model

  39. 800 600 400 200 0 E −200 −400 −600 −800 0 25000 50000 75000 100000 125000 150000 175000 200000 MCS Time series of energy for the last run of Wang-Landau method

  40. 1200 1000 800 H(E) 600 400 200 0 −800 −600 −400 −200 0 200 400 600 800 E Energy histogram for the last run of Wang-Landau method

  41. 800 600 400 200 0 E −200 −400 −600 −800 0 200000 400000 600000 800000 1000000 MCS Time series of energy for the measurement run

  42. 6000 5000 4000 H(E) 3000 2000 1000 0 −800 −600 −400 −200 0 200 400 600 800 E Energy histogram for the measurement run

  43. From the obtained energy histogram H ( E ), Ω( E ) is estimated as Ω( E ) ∝ H ( E ) e f ( E ) (Histogram reweighting method)

  44. 1e119 1.4 1.2 1.0 0.8 Ω( E ) 0.6 0.4 0.2 0.0 −800 −600 −400 −200 0 200 400 600 800 E Ω( E ) estimated from H ( E ) and f ( E )

  45. 250 200 150 logΩ( E ) 100 50 0 −800 −600 −400 −200 0 200 400 600 800 E log Ω( E ) estimated from H ( E ) and f ( E )

  46. If the total number of the conformations is known as N , the number of conformations having the energy E n as N H ( E n ) e f ( E n ) E H ( E ) e f ( E ) ∑ Result The estimated number of the ground state is 2.07 cf. exact value, 2

  47. Application to non-physical problems

  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

  49. Example: The magic square Placing the numbers from 1 to n 2 in a square array using each number once, if all the sums of 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

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend