Timewarp
A transformer-based normalizing flow that proposes large time steps for molecular dynamics sampling.
Molecules, proteins and genomics · 9,150 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Parameters
- 396.6M
- Operations
- 9,150
- Framework
- PyTorch
- Recurrent
- No
- Published
- NeurIPS 2023
- Cited by
- 25 (as of 24 October 2026)
- Authors
- Leon Klein, Andrew Y. K. Foong, Tor Erlend Fjelde and others
- Source
- GitHub: microsoft/timewarp
- License
- MIT
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m20974
- Graph hash
- 8b5c8ef45f2ffde3091dc032880f1d4aeefff6d2810ce1a2bd5b84a89f0bef53
- Skeleton hash
- 539c46551b37fb523135a62b4323e667ca3f9005172407c2a9a310baeedcef7c
- Architecture hash
- f672d084dc6efbbaf9a88348cca6b9ecbfccc4a2aca115d3bf2f2202f6299ddc
- Diagram SHA-256
- 2a9135f7ab075216c2cc40aeca2fbd34de77d6545d1970f159da20f1542a15f2
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
Timewarp is an enhanced sampling method for molecular dynamics (MD): a normalizing flow acts as the proposal distribution in a Markov chain Monte Carlo method that targets the Boltzmann distribution. It addresses the fact that important processes such as binding and folding occur over milliseconds or longer and cannot be sampled efficiently with conventional MD. The flow is trained offline on MD trajectories and learns to make large steps in time.
The flow is conditional: it models the final state of a molecule given its initial state. Its architecture is based on RealNVP, a stack of coupling layers, with scaling and translation factors computed by an atom transformer. Positions are paired with non-physical auxiliary variables instead of real velocities, and each set is transformed based on the other. The attention is a kernel self-attention, which the paper found significantly faster to compute than dot product attention with similar performance.
Trained once, Timewarp generalizes to unseen small peptides (2-4 amino acids) at all-atom resolution. On 100 test dipeptides the paper reports a median speed-up factor of about five over MD. With the Metropolis-Hastings correction, it speeds up only roughly a third of the tetrapeptides tested.
Key idea. Timewarp uses a conditional normalizing flow as the proposal in a Metropolis-Hastings MCMC sampler of the Boltzmann distribution, and it transfers to peptides unseen in training.
- Timewarp
- molecular dynamics
- MD acceleration
- normalizing flow
- normalising flow
- enhanced sampling
- Boltzmann distribution
- MCMC proposal
- time-coarsened dynamics
- peptides
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{klein2023timewarptransferableaccelerationmolecular,
title={Timewarp: Transferable Acceleration of Molecular Dynamics by Learning Time-Coarsened Dynamics},
author={Leon Klein and Andrew Y. K. Foong and Tor Erlend Fjelde and Bruno Mlodozeniec and Marc Brockschmidt and Sebastian Nowozin and Frank Noé and Ryota Tomioka},
year={2023},
eprint={2302.01170},
archivePrefix={arXiv},
primaryClass={stat.ML},
url={https://arxiv.org/abs/2302.01170},
}