Learning Hamiltonian Flow Maps Mean Flow Consistency for Large-Timestep Molecular Dynamics

Rather than regressing future states from reference trajectories, we learn the cumulative dynamics directly from a single phase-space configuration and its instantaneous time derivative.

Background

Hamiltonian

#classical-mechanics

v=xห™=โˆ‚H(x,p)โˆ‚p,f=pห™=โˆ’โˆ‚H(x,p)โˆ‚x

x: position, p: momenta, v: instantaneous velocity, f: instantaneous force
The state at a later time tโˆ— can be obtained by integrating over time interval [t,tโˆ—]

[xtโˆ—ptโˆ—]=[xtpt]+โˆซttโˆ—[vฯ„fฯ„]dฯ„

Molecular Dynamics

Concrete instantiation of Hamiltonian mechanics in which Hamiltonian is separable ie

H(x,p)=T(p)+V(x),T(p)=โˆ‘i=1N||p(i)||222m(i)

Equation of motion reduces to

v=โˆ‚T(p)โˆ‚p=pm,f=โˆ’โˆ‚V(x)โˆ‚x

Method

Model the Hamiltonian evolution directly in phase space over a finite time interval
Hamiltonian flow map utโ†’tโˆ— learns

[xtโˆ—ptโˆ—]=[xtpt]+โˆซttโˆ—[vฯ„fฯ„]dฯ„โ†’uยฏ(xt,pt,tโˆ—โˆ’t)=1tโˆ—โˆ’tโˆซttโˆ—[vฯ„fฯ„]dฯ„

Uses Mean Flow and self-distillation
This time averaged velocity and force captures the non-trivial, integration-dependent component of the flow map.
By multiplying (tโˆ—โˆ’t) and take time derivative ddt the equation on the right becomes

uยฏ(xt,pt,tโˆ—โˆ’t)โˆ’(tโˆ—โˆ’t)ddtโˆซttโˆ—[vฯ„fฯ„]dฯ„ddt(uยฏ(xt,pt,tโˆ—โˆ’t))=(vtโ‹…โˆ‚xt)uยฏ+(ftโ‹…โˆ‚pt)uยฏโˆ’โˆ‚tโˆ—โˆ’tuยฏ

Above two equations are the consistency condition, which can be used for regression objective.

L(ฮธ,x,p,v,f)=Eฮ”t[||uยฏฮธ(x,p,ฮ”t)โˆ’uยฏtgt||22]uยฏtgt=[vf]+ฮ”t[(vโ‹…โˆ‚x)uยฏฮธ+(fโ‹…โˆ‚p)uยฏฮธโˆ’โˆ‚ฮ”tuยฏฮธ]

Given N particles and d dimensions uยฏฮธ=R2dN+1โ†’R2dN

Force matching: in case ฮ”t=0,

L(ฮธ,x,p,v,f)dN+1=Eฮ”t[||uยฏฮธ(x,p,ฮ”t=0)โˆ’f||22]

Network learns to predict interatomic force.
-> self distillation across time. instantaneous force prediction is the base signal, pred at larger ฮ”t are constrained to match the accumulation of local dynamics.

Since MLFF dataset only provides molecular geometry and force labels (x, f), momenta is sampled from Boltzmann distribution

piย N(0,mikBTI)

Remove center of mass drift by ensuring โˆ‘i=1Npi=0
Ensure the kinetic energy stays the same after drift removal by rescaling momenta piโ†TtgtTcurrpi

Appendix B3: Coupled Conservation Filter set such that the corrected momenta is as close to the model's predicted momenta as possible, while