Residual neural networks for the prediction of planetary collision outcomes

Philip Matthias Winter, Christoph Burger, Sebastian Lehner, Johannes Kofler, Thomas I. Maindl, Christoph SchäferOpenReview 2022 · DOI

Abstract

Fast and accurate treatment of collisions in the context of modern N-body planet formation simulations remains a challenging task due to inherently complex collision processes. We aim to tackle this problem with machine learning (ML), in particular via residual neural networks. Our model is motivated by the underlying physical processes of the data-generating process and allows for flexible prediction of post-collision states. We demonstrate that our model outperforms commonly used collision handling methods such as perfect inelastic merging and feed-forward neural networks in both prediction accuracy and out-of-distribution generalization. Our model outperforms the current state of the art in 20/24 experiments. We provide a dataset that consists of 10164 Smooth Particle Hydrodynamics (SPH) simulations of pairwise planetary collisions. The dataset is specifically suited for ML research to improve computational aspects for collision treatment and for studying planetary collisions in general. We formulate the ML task as a multi-task regression problem, allowing simple, yet efficient training of ML models for collision treatment in an end-to-end manner. Our models can be easily integrated into existing N-body frameworks and can be used within our chosen parameter space of initial conditions, i.e. where similar-sized collisions during late-stage terrestrial planet formation typically occur.

Introduction

In the final stages of terrestrial planet formation, giant collisions are the primary architects of planetary systems. To study this, astronomers use $N$-body simulations to track thousands of bodies over millions of years. However, these simulations face a "Goldilocks" problem regarding collision handling. The standard approach, Perfect Inelastic Merging (PIM), assumes two bodies simply stick together. While fast, it is physically inaccurate, failing to account for "hit-and-run" events or mass loss. Conversely, Smooth Particle Hydrodynamics (SPH) simulations provide high-fidelity physics but are computationally ruinous, taking hours or days for a single collision. This paper introduces a Machine Learning (ML) approach to bridge this gap, providing a model that is nearly as fast as PIM but approaches the accuracy of SPH.

Methodology

The authors propose a Residual Neural Network (RES) architecture formulated as a multi-task regression problem. Unlike standard feed-forward networks (FFNs) that attempt to predict the final state in a single step, the RES model is autoregressive. It breaks the prediction into discrete steps, iteratively evolving the system's state to mimic numerical solvers like the Euler method.

The architecture consists of three shared modules:

  • Encoder (E): Maps the initial physical state into a hidden representation.
  • Residual (R): Predicts updates to the hidden state at each step.
  • Decoder (D): Translates the hidden state back into physical quantities such as mass, position, and velocity.

By using multi-task learning, a single model learns to predict masses, material fractions (iron, silicate, water), positions, and velocities for the two largest remnants and the remaining debris simultaneously. This forces the model to learn the underlying physical correlations between these variables.

Datasets and Training

To train and evaluate the model, the researchers generated a massive new dataset consisting of 10,164 SPH simulations. Each simulation involves pairwise collisions of differentiated, rotating planets with a core, mantle, and water shell. The parameter space covers total masses from $2 \times$ Ceres to $2 \times$ Earth, varying mass ratios, impact velocities, and impact angles.

Time evolution of a planetary collision in the SPH dataset, showing the system at 1.6h, 2.1h, and 3h post-impact.

Key Results

The RES model demonstrates superior accuracy, outperforming state-of-the-art FFNs in 20 out of 24 experimental setups. Crucially, it achieves a speedup of approximately four orders of magnitude compared to SPH simulations, with inference taking mere milliseconds.

The model excels at identifying the transition between merging and hit-and-run outcomes, a critical factor in determining the final composition and number of planets in a system. Furthermore, the autoregressive structure provides a physics-inspired inductive bias that makes the model more robust and better at generalizing to "out-of-distribution" scenarios—regions of the parameter space not seen during training.

Discussion and Future Work

While the RES model represents a significant advancement, some limitations remain. The model does not yet predict post-collision rotation states, and the resolution of volatile layers (water/ice) in the training data was relatively low. Future work may explore Graph Neural Networks (GNNs) to operate directly on individual fragments (micro-states) rather than just the largest remnants (macro-states).

The authors have demonstrated that this model can be easily integrated into existing $N$-body frameworks, providing a "plug-and-play" replacement for oversimplified collision rules and enabling more realistic simulations of planetary system formation.

Reference: Winter, P. M., et al. (2022). "Residual Neural Networks for the Prediction of Planetary Collision Outcomes." Monthly Notices of the Royal Astronomical Society. arXiv:2210.04248

Summary updated

BibTeX
@misc{winter2022residual,
  author = {Philip Matthias Winter and Christoph Burger and Sebastian Lehner and Johannes Kofler and Thomas I. Maindl and Christoph Schäfer},
  title = {{Residual neural networks for the prediction of planetary collision outcomes}},
  year = {2022},
  eprint = {2210.04248},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2210.04248},
  howpublished = {OpenReview},
}
Figure