replica-exchange in molecular dynamics

22
Replica-exchange in molecular dynamics Part of 2014 SeSE course in Advanced molecular dynamics Mark Abraham

Upload: others

Post on 01-Dec-2021

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Replica-exchange in molecular dynamics

Replica-exchange in molecular dynamics

Part of 2014 SeSE course in Advanced molecular dynamics

Mark Abraham

Page 2: Replica-exchange in molecular dynamics

Frustration in MD

Page 3: Replica-exchange in molecular dynamics

Frustration in MD

I different motions have different time scales

I bond vibration, angle-vibration, side-chain rotation, diffusion,secondary structure (de)formation, macromolecular events, . . .

I need a short enough time step

I a model that doesn’t get enough fine detail right will strugglewith higher-level things, too

Page 4: Replica-exchange in molecular dynamics

Barriers in MD

x

F

Page 5: Replica-exchange in molecular dynamics

Frustration in MD

I barriers more than a few kT exist, and are hard to crossI need extremely large amount of brute-force sampling to get

over themI makes solving problems like protein folding exceedingly

expensive

Page 6: Replica-exchange in molecular dynamics

Ways to grapple with the problem

I give up on fine detail, and use a coarse-graining approachI accelerate the sampling (work smarter!)I throw more hardware at it (e.g. Folding@Home)I write faster software (hard, very hard)

Page 7: Replica-exchange in molecular dynamics

Accelerating the sampling

I if the problem is that kT is too small..

1. increase T

2. sample widely

3. . . .

4. profit!

I unless the landscape changes. . .

Page 8: Replica-exchange in molecular dynamics

Accelerating the sampling - heating it up

x

F

Page 9: Replica-exchange in molecular dynamics

Simulated tempering

I use Monte Carlo approach to permit system to move incontrol parameter space

I typical control parameter is temperature (but not essential)I typically sample the system only when at temperature of

interestI correct if the (Metropolis) exchange criterion is constructed

correctly

I how? For a state s

P((β, s)→ (β′, s)) = min(1, w(β′,s)w(β,s) )

where β = 1kT and w(β, s) = exp [−βU + g(β)]

Page 10: Replica-exchange in molecular dynamics

Simulated tempering (2)

I correct if the exchange criterion is constructed correctly

I the optimal g(β) is the free energy. . .I so you’re good if you already know the relative likelihood of

each conformation at each temperature

I works great if you already know the answer to a harderproblem than the original

I (but you can use an iterative scheme to converge on theanswer)

Page 11: Replica-exchange in molecular dynamics

Parallel tempering (a.k.a replica exchange)

I side-steps the prior-knowledge problem by running anindependent copy of the simulation at each control parameter

I (note, throwing more hardware at the problem!)I now the exchange is between copies at different control

parameters, each of which is known to be sampled from acorrect ensemble already

I this eliminates g(β) from the generalized exchangecriterion. . .

Page 12: Replica-exchange in molecular dynamics

Parallel tempering - the exchange criterion

P((β, s)↔ (β′, s ′)) = min(1, w(β,s′)w(β′,s)w(β,s)w(β′,s′))

which for Boltzmann weights reduces to

= min(1, exp[(β′ − β)(U ′ − U)])

Page 13: Replica-exchange in molecular dynamics

Parallel tempering - understanding the exchanges

Figure : Potential energy distributions of alanine dipeptide replicas

Page 14: Replica-exchange in molecular dynamics

Parallel tempering - is this real?

I recall that P(βs) ∝ exp[−βU(x)]I any scheme that satisfies detailed balance forms a Markov

chain whose stationary distribution is the target (generalized)ensemble

I so we require only thatP((β, s))P((β, s)→ (β′, s)) = P((β′, s ′))P((β′, s ′)→ (β, s ′))

I . . . which is exactly what the exchange criterion isconstructed to do

Page 15: Replica-exchange in molecular dynamics

Parallel tempering - is this real? (2)

I high temperature replicas hopefully can cross barriersI if the conformations they sample are representative of

lower-temperature behaviour, then they will be able toexchange down

I if not, they won’t

Page 16: Replica-exchange in molecular dynamics

Ensembles used

I natural to use the NVT ensemble with an increasing range ofT and constant V

I there’s a hidden catch - must rescale the velocities to suit thenew ensemble in order to construct the above exchangecriterion

I probably this should use a velocity-Verlet integrator (x and vat same time)

I in principle, can use other ensembles like NPT

Page 17: Replica-exchange in molecular dynamics

Ensembles used (2)

I NVT at constant volume must increase P with TI that seems unphysicalI worse, the force fields are parameterized for a fixed

temperatureI but the method doesn’t require that the ensembles correspond

to physical onesI merely need overlap of energy distributionI how much overlap determines the probability of accepting an

exchange

Page 18: Replica-exchange in molecular dynamics

Problems with replica exchange

I molecular simulations typically need lots of waterI thus lots of degrees of freedomI energy of the system grows linearly with system sizeI width of energy distributions grow as

√size

I need either more replicas or accept lower overlap

Page 19: Replica-exchange in molecular dynamics

Unphysics is liberating

I if there’s no need to be physical, then may as well be explicitabout it

I large number of schemes proposedI example: resolution exchange

I run replicas at different scales of coarse grainingI at exchange attempts, not only rescale velocities, but

reconstruct the coordinates at the higher/lower grain level

Page 20: Replica-exchange in molecular dynamics

Hamiltonian replica exchange

I replicas can be run varying some other control parameter

I e.g. gradually turn on some biasing potential

I can construct higher-dimensional control-parameter schemesalso

I in a free-energy calculation, exchange between both alchemicaltransformation parameter λ and temperature

Page 21: Replica-exchange in molecular dynamics

Replica exchange with solute tempering

I selectively “heat” only a small region of the systemI modify the parameters to scale the energy, rather than heating

I remember P(βs) ∝ exp[−βU(x)]

I advantage that the energy distribution of only part of thesystem increases over control parameter space

I needs many fewer replicas for a given control parameter spaceI implemented in GROMACS with PLUMED plugin

Page 22: Replica-exchange in molecular dynamics

Questions?