cs.LGMar 10, 2026

Stochastic Port-Hamiltonian Neural Networks: Universal Approximation with Passivity Guarantees

Authors: Luca Di Persio, Matthias Ehrhardt, Youness Outaleb

Organizations: Department of Computer Science - College of Mathematics University of Verona, Strada le Grazie 15 - 37134 Verona, Italy · University of Wuppertal, Chair of Applied and Computational Mathematics, Gaußstrasse 20, 42119 Wuppertal, Germany · Doctoral School in Mathematics, University of Trento Via Sommarive, 14 - 38123 Povo, Italy

Abstract

Stochastic port-Hamiltonian systems represent open dynamical systems with dissipation, inputs, and stochastic forcing in an energy based form. We introduce stochastic port-Hamiltonian neural networks, SPH-NNs, which parameterize the Hamiltonian with a feedforward network and enforce skew symmetry of the interconnection matrix and positive semidefiniteness of the dissipation matrix. For Itô dynamics we establish a weak passivity inequality in expectation under an explicit generator condition, stated for a stopped process on a compact set. We also prove a universal approximation result showing that, on any compact set and finite horizon, SPH-NNs approximate the coefficients of a target stochastic port-Hamiltonian system with C2C^2 accuracy of the Hamiltonian and yield coupled solutions that remain close in mean square up to the exit time. Experiments on noisy mass spring, Duffing, and Van der Pol oscillators show improved long horizon rollouts and reduced energy error relative to a multilayer perceptron baseline.

Figures & tables

Explore similar work

CardsList
  1. Structure- and Stability-Preserving Learning of Port-Hamiltonian Systems

    Apr 14, 2026Binh Nguyen, Nam T. Nguyen, Truong X. NghiemPort-Hamiltonian SystemsHamiltonian Neural Networks

  2. Controlled oscillation modeling using port-Hamiltonian neural networks

    Feb 17, 2026Maximino Linares, Guillaume Doras, Thomas HéliePort-Hamiltonian SystemsHamiltonian Dynamics