JAX MD: A Framework for Differentiable Physics

Abstract

We introduce JAX MD, a software package for performing differentiable physics simulations with a focus on molecular dynamics. JAX MD includes a number of statistical physics simulation environments as well as interaction potentials and neural networks that can be integrated into these environments without writing any additional code. Since the simulations themselves are differentiable functions, entire trajectories can be differentiated to perform meta-optimization. These features are built on primitive operations, such as spatial partitioning, that allow simulations to scale to hundreds-of-thousands of particles on a single GPU. These primitives are flexible enough that they can be used to scale up workloads outside of molecular dynamics. We present several examples that highlight the features of JAX MD including: integration of graph neural networks into traditional simulations, meta-optimization through minimization of particle packings, and a multi-agent flocking simulation. JAX MD is available at www.github.com/google/jax-md.

Cite

Text

Schoenholz and Cubuk. "JAX MD: A Framework for Differentiable Physics." Neural Information Processing Systems, 2020.

Markdown

[Schoenholz and Cubuk. "JAX MD: A Framework for Differentiable Physics." Neural Information Processing Systems, 2020.](https://mlanthology.org/neurips/2020/schoenholz2020neurips-jax/)

BibTeX

@inproceedings{schoenholz2020neurips-jax,
  title     = {{JAX MD: A Framework for Differentiable Physics}},
  author    = {Schoenholz, Samuel and Cubuk, Ekin Dogus},
  booktitle = {Neural Information Processing Systems},
  year      = {2020},
  url       = {https://mlanthology.org/neurips/2020/schoenholz2020neurips-jax/}
}