Skip to main content
QUICK REVIEW

[Paper Review] Dissipative Hamiltonian Neural Networks: Learning Dissipative and Conservative Dynamics Separately

Andrew Sosanya, Sam Greydanus|arXiv (Cornell University)|Jan 25, 2022
Model Reduction and Neural NetworksPhysics and Astronomy17 citations
TL;DR

This paper introduces Dissipative Hamiltonian Neural Networks (D-HNNs), which jointly learn a Hamiltonian for conservative dynamics and a Rayleigh dissipation function for dissipative effects like friction, enabling separation of energy-conserving and energy-dissipating components in dynamic systems. The model achieves improved trajectory and energy prediction on damped spring and ocean current datasets by performing an implicit Helmholtz decomposition, outperforming standard HNNs and MLPs in noisy, real-world settings.

ABSTRACT

Understanding natural symmetries is key to making sense of our complex and ever-changing world. Recent work has shown that neural networks can learn such symmetries directly from data using Hamiltonian Neural Networks (HNNs). But HNNs struggle when trained on datasets where energy is not conserved. In this paper, we ask whether it is possible to identify and decompose conservative and dissipative dynamics simultaneously. We propose Dissipative Hamiltonian Neural Networks (D-HNNs), which parameterize both a Hamiltonian and a Rayleigh dissipation function. Taken together, they represent an implicit Helmholtz decomposition which can separate dissipative effects such as friction from symmetries such as conservation of energy. We train our model to decompose a damped mass-spring system into its friction and inertial terms and then show that this decomposition can be used to predict dynamics for unseen friction coefficients. Then we apply our model to real world data including a large, noisy ocean current dataset where decomposing the velocity field yields useful scientific insights.

Motivation & Objective

  • To address the limitation of Hamiltonian Neural Networks (HNNs) in modeling systems with energy dissipation, such as friction or noise.
  • To develop a neural network architecture that can implicitly decompose vector fields into conservative (rotational) and dissipative (irrotational) components using Helmholtz decomposition.
  • To enable accurate prediction of dynamics under unseen conditions, such as modified friction coefficients, by learning separable representations of energy-conserving and energy-dissipating terms.
  • To apply the method to real-world, noisy datasets—particularly ocean current data—where identifying dissipative features like upwelling is scientifically valuable.

Proposed method

  • The model uses two separate neural networks to parameterize a Hamiltonian function 𝒫 and a Rayleigh dissipation function 𝒟, both scalar-valued functions of state variables.
  • The Hamiltonian generates a symplectic, conservative vector field via the canonical Poisson bracket, while the dissipation function generates an irrotational, non-symplectic gradient field.
  • The total dynamics are modeled as the sum of the Hamiltonian vector field and the gradient of the dissipation function, forming a decomposition consistent with the Hodge-Helmholtz theorem.
  • The model is trained end-to-end on observed trajectories using a loss function that minimizes error in both state trajectories and total energy conservation.
  • The architecture allows for counterfactual prediction: by scaling the dissipation function, the model can simulate dynamics under different friction levels without retraining.
  • The method enables temporal upsampling of vector fields, allowing interpolation between low-frame-rate training data to effectively double video frame rates.

Experimental results

Research questions

  • RQ1Can a neural network architecture learn to separate conservative and dissipative dynamics in real-world, noisy datasets where energy is not conserved?
  • RQ2How well can such a model predict system behavior under unseen modifications to dissipative parameters, such as friction coefficients?
  • RQ3Can the implicit Helmholtz decomposition learned by the network reveal physically meaningful features—like upwelling—in complex fluid flows such as ocean currents?
  • RQ4Does the model outperform standard HNNs and baseline MLPs in trajectory prediction and energy conservation on systems with inherent dissipation?
  • RQ5Can the decomposition be used to reconstruct high-temporal-resolution dynamics from low-frame-rate observations?

Key findings

  • On the damped mass-spring system, D-HNNs achieved significantly lower mean square error in trajectory prediction and total energy conservation compared to HNNs and MLPs, with HNNs accruing errors tenfold higher than D-HNNs.
  • The model successfully predicted dynamics for unseen friction coefficients by scaling the learned Rayleigh dissipation function, demonstrating counterfactual reasoning capability.
  • In ocean current data from the OSCAR dataset, D-HNNs identified vortices via the Hamiltonian scalar field and revealed faint but detectable upwelling and downwelling features through the dissipation function, aligning with known geophysical oceanography principles.
  • The decomposition revealed that oceanic eddies dominate the velocity field, while dissipative features like upwelling are weaker but still identifiable, consistent with prior non-ML studies.
  • D-HNNs enabled temporal upsampling of vector fields, allowing interpolation between training frames and effectively doubling video frame rates by sampling the model at higher temporal resolution.
  • The model outperformed HNNs on the ocean dataset, though the improvement was modest due to the inherently more conservative nature of ocean flows compared to the damped spring system.

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.