Skip to main content
QUICK REVIEW

[Paper Review] Locally-symplectic neural networks for learning volume-preserving dynamics

Jānis Bajārs|arXiv (Cornell University)|Sep 19, 2021
Neural Networks and ApplicationsComputer Science1 citations
TL;DR

This paper introduces LocSympNets and SymLocSympNets, a class of deep neural networks that learn volume-preserving dynamics by leveraging locally-symplectic modules derived from symplectic gradient layers of SympNets. The models preserve phase volume and invertibility, with SymLocSympNets achieving superior long-term accuracy by enforcing time-reversal symmetry, outperforming LocSympNets in learning linear and nonlinear systems including rigid body motion and charged particle dynamics.

ABSTRACT

We propose locally-symplectic neural networks LocSympNets for learning the flow of phase volume-preserving dynamics. The construction of LocSympNets stems from the theorem of the local Hamiltonian description of the divergence-free vector field and the splitting methods based on symplectic integrators. Symplectic gradient modules of the recently proposed symplecticity-preserving neural networks SympNets are used to construct invertible locally-symplectic modules. To further preserve properties of the flow of a dynamical system LocSympNets are extended to symmetric locally-symplectic neural networks SymLocSympNets, such that the inverse of SymLocSympNets is equal to the feed-forward propagation of SymLocSympNets with the negative time step, which is a general property of the flow of a dynamical system. LocSympNets and SymLocSympNets are studied numerically considering learning linear and nonlinear volume-preserving dynamics. We demonstrate learning of linear traveling wave solutions to the semi-discretized advection equation, periodic trajectories of the Euler equations of the motion of a free rigid body, and quasi-periodic solutions of the charged particle motion in an electromagnetic field. LocSympNets and SymLocSympNets can learn linear and nonlinear dynamics to a high degree of accuracy even when random noise is added to the training data. When learning a single trajectory of the rigid body dynamics locally-symplectic neural networks can learn both quadratic invariants of the system with absolute relative errors below 1%. In addition, SymLocSympNets produce qualitatively good long-time predictions, when the learning of the whole system from randomly sampled data is considered. LocSympNets and SymLocSympNets can produce accurate short-time predictions of quasi-periodic solutions, which is illustrated in the example of the charged particle motion in an electromagnetic field.

Motivation & Objective

  • To develop neural networks that learn the flow of volume-preserving dynamical systems while preserving phase space volume and invertibility.
  • To extend locally-symplectic networks to symmetric architectures that mirror the time-reversal symmetry of exact dynamical flows.
  • To improve long-term prediction accuracy in learning nonlinear and quasi-periodic volume-preserving dynamics compared to baseline volume-preserving networks.
  • To investigate the performance of these networks under noisy data and irregular sampling, particularly for complex systems like the free rigid body and charged particle motion.
  • To enable structure-preserving learning of both linear and nonlinear dynamics with minimal inductive bias, using only data-driven training.

Proposed method

  • Construct locally-symplectic modules using symplectic gradient modules from SympNets, adapted to model local Hamiltonian vector fields of divergence-free systems.
  • Compose these modules via a splitting method inspired by symplectic integrators, ensuring the overall flow remains volume-preserving and invertible.
  • Introduce SymLocSympNets by enforcing that the inverse of the network equals the forward pass with reversed time step, mimicking the time-reversibility of exact dynamical flows.
  • Use separable Hamiltonian structures to ensure exact and efficient computation of inverse maps, enabling invertible and stable training.
  • Train the networks using standard optimization (e.g., Adam) on trajectories from linear and nonlinear volume-preserving systems, including noisy or irregularly sampled data.
  • Allow for non-constant time steps in training and inference, enhancing flexibility in data-sparse or non-uniform sampling scenarios.

Experimental results

Research questions

  • RQ1Can locally-symplectic neural networks accurately learn linear and nonlinear volume-preserving dynamics, including systems with periodic and quasi-periodic solutions?
  • RQ2How do SymLocSympNets compare to LocSympNets in long-term prediction accuracy, especially under noisy or irregularly sampled training data?
  • RQ3To what extent can LocSympNets and SymLocSympNets preserve quadratic invariants (e.g., kinetic energy) in rigid body dynamics without explicit invariance constraints?
  • RQ4Can the proposed networks generalize well to unseen trajectories and maintain qualitative accuracy over long integration times, even when learning from randomly sampled data?
  • RQ5How robust are the networks to noise in training data, and what is the threshold beyond which performance degrades significantly?

Key findings

  • SymLocSympNets achieved the smallest solution errors and conserved both quadratic invariants of the free rigid body dynamics with absolute relative errors below 1% when learning a single periodic trajectory.
  • LocSympNets and SymLocSympNets produced accurate short-time predictions for quasi-periodic charged particle motion in electromagnetic fields, with performance independent of variable ordering.
  • When learning from noisy data, volume-preserving neural networks still produced qualitatively good long-term predictions, but performance degraded significantly with high noise levels.
  • SymLocSympNets outperformed LocSympNets in long-time predictions across all experiments, including learning the full rigid body dynamics from randomly sampled data.
  • The networks maintained stable and accurate predictions over long integration times, even with non-constant time steps, provided sufficient dynamical representation was present in the training data.
  • The models demonstrated robustness to irregular sampling and could generalize well to unseen trajectories, indicating strong generalization and structure-preserving properties.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.