Introduction
Modeling physical phenomena like fluid dynamics and wave propagation often relies on solving complex partial differential equations (PDEs). Recently, Hamiltonian Neural Networks (HNNs) have emerged as a powerful tool for learning the underlying energy frameworks of these systems directly from data. However, standard HNNs are limited by their dependence on fixed data discretization and the need to explicitly define differential operators. This paper introduces a novel operator learning approach using DeepONet that bypasses these bottlenecks by mathematically linking automatic differentiation to continuous variational derivatives.
The Discretization and Operator Bottleneck
Standard HNNs are highly sensitive to how training data is gridded. Moreover, they require researchers to explicitly determine and program the differential operators (e.g., $\partial_x, \partial_{xx}$) that appear in the Hamiltonian density. In scenarios where the physics of a system is unknown, this requirement becomes a significant hurdle. The authors propose a method to learn the Hamiltonian density in a continuous function space, making the model agnostic to specific data discretization and capable of discovering physics without pre-defined operators.
Methodology: Bridging AD and Functional Calculus
The authors utilize DeepONet, an architecture designed to map infinite-dimensional functions to functions. Unlike standard networks, DeepONet is mesh-free, making it agnostic to the specific discretization of input data—a crucial feature for real-world sensor data which is often irregularly sampled.
The core breakthrough lies in handling variational derivatives ($\frac{\delta \mathcal{H}}{\delta u}$), which drive the evolution of Hamiltonian systems. Standard neural network training uses Automatic Differentiation (AD) to compute gradients with respect to parameters, not functional derivatives. The authors prove (via Riesz's representation theorem) that the true variational derivative can be reconstructed from the AD gradient by applying a transformation matrix based on the inner products of the basis functions in the DeepONet's trunk network. This allows for physics discovery without pre-defining the specific differential operators involved.
Experimental Results: 1D Wave Equation
The approach was validated using a 1D linear wave equation benchmark ($\frac{\partial^2 u}{\partial t^2} = \frac{\partial^2 u}{\partial x^2}$). The model successfully learned the operators defining the wave's state ($u$) and its time derivative ($u_t$).
Visualizations of the predicted wave propagation demonstrate high qualitative accuracy. Furthermore, the model was able to compute the system's total energy (Hamiltonian) directly from the learned physical quantities, confirming that it captured the underlying mechanics rather than just surface-level patterns.
Limitations and Future Work
While the model performs well initially, it faces challenges with long-term stability. Predicted solutions tend to diverge from the true solution over longer time horizons, and the computed Hamiltonian can exhibit numerical instabilities.
The authors attribute these issues to data scarcity and the limitations of current numerical integration techniques. Future work will focus on training with larger datasets and implementing more robust, higher-precision integration methods to improve long-term stability and energy conservation.
Summary updated