JAX, M.D.: A Framework for Differentiable Physics

Samuel S. Schoenholz, Ekin D. Cubuk
12/9/2019
physics.comp-phcond-mat.mtrl-scicond-mat.soft

Official code: jax-md/jax-md (1,475 stars, Jupyter Notebook, Apache-2.0, last commit 2026-04-26).

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 physics simulation environments, as well as interaction potentials and neural networks that can be integrated into these environments without writing any additional code.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

jax-md/jax-mdOfficial100%
Apache-2.0

Differentiable, Hardware Accelerated, Molecular Dynamics

1,475257Jupyter Notebook, PythonMay 13, 20197 months agoApache-2.0

Similar Papers

Cite this paper

@article{schoenholz2019jax,
  title  = {JAX, M.D.: A Framework for Differentiable Physics},
  author = {Samuel S. Schoenholz and Ekin D. Cubuk},
  year   = {2019},
  eprint = {1912.04232},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1912.04232}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1912.04232.svg)](https://codeofpaper.com/paper/1912.04232)

Discussion