Scalable Graph Networks for Particle Simulations

Learning system dynamics directly from observations is a promising direction in machine learning due to its potential to significantly enhance our ability to understand physical systems. However, the dynamics of many real-world systems are challenging to learn due to the presence of nonlinear potentials and a number of interactions that scales quadratically with the number of particles $N$, as in the case of the N-body problem. In this work, we introduce an approach that transforms a fully-connected interaction graph into a hierarchical one which reduces the number of edges to $O(N)$. This results in linear time and space complexity while the pre-computation of the hierarchical graph requires $O(N\log (N))$ time and $O(N)$ space. Using our approach, we are able to train models on much larger particle counts, even on a single GPU. We evaluate how the phase space position accuracy and energy conservation depend on the number of simulated particles. Our approach retains high accuracy and efficiency even on large-scale gravitational N-body simulations which are impossible to run on a single machine if a fully-connected graph is used. Similar results are also observed when simulating Coulomb interactions. Furthermore, we make several important observations regarding the performance of this new hierarchical model, including: i) its accuracy tends to improve with the number of particles in the simulation and ii) its generalisation to unseen particle counts is also much better than for models that use all $O(N^2)$ interactions.

[1]  Archie E. Roy,et al.  Predictability, stability, and chaos in N-body dynamical systems , 1991 .

[2]  Andrew Gordon Wilson,et al.  Generalizing Convolutional Neural Networks for Equivariance to Lie Groups on Arbitrary Continuous Data , 2020, ICML.

[3]  Jiajun Wu,et al.  Learning Particle Dynamics for Manipulating Rigid Bodies, Deformable Objects, and Fluids , 2018, ICLR.

[4]  Shirley Ho,et al.  Learning Symbolic Physics with Graph Networks , 2019, ArXiv.

[5]  Marc Peter Deisenroth,et al.  Variational Integrator Networks for Physically Structured Embeddings , 2020, AISTATS.

[6]  P. Koumoutsakos,et al.  High-resolution simulations of the flow around an impulsively started cylinder using vortex methods , 1995, Journal of Fluid Mechanics.

[7]  Walter Dehnen,et al.  A fast multipole method for stellar dynamics , 2014, 1405.2255.

[8]  Jure Leskovec,et al.  Learning to Simulate Complex Physics with Graph Networks , 2020, ICML.

[9]  Rui Xu,et al.  Discovering Symbolic Models from Deep Learning with Inductive Biases , 2020, NeurIPS.

[10]  L. Greengard The Rapid Evaluation of Potential Fields in Particle Systems , 1988 .

[11]  Razvan Pascanu,et al.  Relational inductive biases, deep learning, and graph networks , 2018, ArXiv.

[12]  Jianyu Zhang,et al.  Symplectic Recurrent Neural Networks , 2020, ICLR.

[13]  Vladlen Koltun,et al.  Lagrangian Fluid Simulation with Continuous Convolutions , 2020, ICLR.

[14]  Ivo Kabadshow,et al.  Periodic Boundary Conditions and the Error-Controlled Fast Multipole Method , 2018 .

[15]  Tingyang Xu,et al.  DropEdge: Towards Deep Graph Convolutional Networks on Node Classification , 2020, ICLR.

[16]  Jimmy Ba,et al.  Adam: A Method for Stochastic Optimization , 2014, ICLR.

[17]  Piet Hut,et al.  A hierarchical O(N log N) force-calculation algorithm , 1986, Nature.

[18]  Leslie Greengard,et al.  A fast algorithm for particle simulations , 1987 .

[19]  Daniel L. K. Yamins,et al.  Flexible Neural Representation for Physics Prediction , 2018, NeurIPS.

[20]  Jason Yosinski,et al.  Hamiltonian Neural Networks , 2019, NeurIPS.

[21]  Stephen Roberts,et al.  VIGN: Variational Integrator Graph Networks , 2020, ArXiv.

[22]  Raia Hadsell,et al.  Graph networks as learnable physics engines for inference and control , 2018, ICML.

[23]  Razvan Pascanu,et al.  Interaction Networks for Learning about Objects, Relations and Physics , 2016, NIPS.

[24]  Amit Chakraborty,et al.  Symplectic ODE-Net: Learning Hamiltonian Dynamics with Control , 2020, ICLR.

[25]  Vitaly A. Kuzkin,et al.  On angular momentum balance for particle systems with periodic boundary conditions , 2013, 1312.7008.

[26]  W. Goddard,et al.  Atomic level simulations on a million particles: The cell multipole method for Coulomb and London nonbond interactions , 1992 .

[27]  Rajendra Gunda Boundary Elément Acoustics and the Fast Multipole Method (FMM) , 2008 .

[28]  H. Plummer On the Problem of Distribution in Globular Star Clusters: (Plate 8.) , 1911 .

[29]  J. W. Causey,et al.  Accelerated molecular dynamics simulation with the parallel fast multipole algorithm , 1992 .

[30]  J. Read,et al.  N-body simulations of gravitational dynamics , 2011, 1105.1082.

[31]  Kyle Cranmer,et al.  Hamiltonian Graph Networks with ODE Integrators , 2019, ArXiv.

[32]  Richard K. Beatson,et al.  Reconstruction and representation of 3D objects with radial basis functions , 2001, SIGGRAPH.