Advancing Solutions for the Three-Body Problem Through Physics-Informed Neural Networks

Manuel Santos Pereira, Luís Tripa, Nelson Lima, Francisco M. Caldas, Cláudia SoaresOpenReview 2024

Introduction

The Three-Body Problem (TBP)—predicting the motion of three celestial bodies interacting via gravity—has remained a fundamental challenge in physics since the era of Isaac Newton. Due to the system's inherent chaos, infinitesimal variations in initial conditions result in divergent trajectories, precluding a general closed-form analytical solution.

Traditional approaches typically fall into two categories:

  1. Numerical Integrators: While highly accurate, these are computationally intensive and suffer from exponential error accumulation over long durations due to floating-point limitations.
  2. Standard Machine Learning: These models offer rapid inference but are "physics-blind," often producing trajectories that violate fundamental laws like energy conservation.

This research explores Physics-Informed Neural Networks (PINNs) to bridge this gap, enforcing Newtonian mechanics within a deep learning framework.

Methodology

The core innovation lies in the use of PINNs, which augment the standard data-driven loss function with a physics-informed penalty term.

Architecture of a Physics-Informed Neural Network (PINN) showing the integration of physical laws into the loss function.

Physics-Informed Loss

Unlike conventional networks that minimize only the difference between predicted and ground-truth states (e.g., Mean Absolute Error), PINNs utilize automatic differentiation to penalize violations of the Ordinary Differential Equations (ODEs) governing Newtonian gravity. This ensures that the network's output adheres to the underlying physical constraints, represented by the loss term $\mathcal{L}_f$ in the architecture diagram.

Architecture: ResNet Integration

To navigate the complex loss landscapes created by physics priors and to mitigate the risk of exploding gradients, the authors transitioned from standard feed-forward networks to Residual Networks (ResNets).

Structure of the residual block used in the ResNet architecture to stabilize training.

The implementation of residual blocks allows for deeper architectures that can better capture the intricate dynamics of the TBP. Additionally, a dynamic loss scheduler was employed to gradually increase the weight of the physics-informed loss term ($\alpha$), preventing the data and physics losses from conflicting during the early stages of training.

Dataset and Training

The models were trained on a synthetic dataset of 30,000 simulations generated via the high-precision BRUTUS n-body numerical integrator. The dataset was constrained to a 2D planar system with unitless parameters ($G=1$, $m=1$) and zero initial velocities. Each simulation spanned $t=10$ time units across 256 steps. Notably, approximately 20% of the initial simulations were excluded due to numerical divergence caused by near-singularities (collisions).

Key Results

The Physics-Informed (PI) ResNet demonstrated a profound improvement in physical consistency:

  • Physics Error: The PI-ResNet achieved a mean-square physics-informed error of $3.291 \times 10^{-7}$, compared to $0.028$ for a baseline DNN.
  • Accuracy vs. Coherence: While a standard ResNet showed slightly better raw localization (MAE of $0.243$ vs. $0.252$ for PI-ResNet), the PI-ResNet's trajectories were physically coherent, making it a more reliable surrogate for scientific applications.
  • Efficiency: Although training the PINN was approximately 300% slower due to the overhead of automatic differentiation, inference time remains identical to standard neural networks, offering a significant speedup over traditional numerical integration.

Conclusion and Future Directions

While PINNs represent a significant step forward, they face challenges during high-acceleration "close encounters" where predictions can degrade. Future research may involve Hamiltonian Neural Networks (HNNs) or Lagrangian Neural Networks, which are designed to inherently conserve energy. Additionally, the application of Neural Operators could allow for handling continuous time and variable step sizes, further enhancing the robustness of neural solvers for chaotic systems.

Summary updated

BibTeX
@misc{pereira2024advancing,
  author = {Manuel Santos Pereira and Luís Tripa and Nelson Lima and Francisco M. Caldas and Cláudia Soares},
  title = {{Advancing Solutions for the Three-Body Problem Through Physics-Informed Neural Networks}},
  year = {2024},
  eprint = {2503.04585},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2503.04585},
}
Figure