Frequency-Separable Hamiltonian Neural Network for Multi-Timescale Dynamics

Yaojun Li, Yulong Yang, Christine Allen-Blanchette

TL;DR

The Frequency-Separable Hamiltonian Neural Network (FS-HNN) overcomes the "spectral bias" of standard neural networks by decomposing a system's Hamiltonian into multiple components trained at different temporal resolutions. This architecture enables highly accurate, structure-preserving simulations of complex, multi-timescale ordinary and partial differential equations (ODEs and PDEs) over long prediction horizons.

What Problem Does This Paper Address?

Physics-informed machine learning models, such as Hamiltonian Neural Networks (HNNs), have gained popularity for their ability to bake physical laws (like energy conservation) directly into neural network architectures. However, standard HNNs frequently fail when applied to "stiff" dynamical systems—systems where physics unfold across vastly different timescales simultaneously (e.g., fast, high-frequency vibrations superimposed on slow, low-frequency planetary drifts).

This failure stems from spectral bias: deep neural networks inherently prioritize learning low-frequency, slow-varying functions before capturing high-frequency details. Consequently, standard networks smooth out fast-scale dynamics. Furthermore, extending Hamiltonian mechanics to partial differential equations (PDEs) introduces a major mathematical hurdle: unlike simple ODEs, PDEs lack a fixed, closed-form symplectic operator ($J$), meaning the underlying geometric structure changes based on system states, discretizations, and boundary conditions.

Methods

The authors introduce FS-HNN, which handles multi-timescale dynamics and variable PDE structures through two core innovations:

  1. Frequency-Separated Hamiltonian Parameterization: Instead of training a single monolithic network, FS-HNN breaks the system Hamiltonian down into $K$ single-scale sub-networks ($M_1, \dots, M_K$). Each sub-network is trained on data subsampled at a different temporal interval. This temporal subsampling acts as an implicit frequency filter, forcing individual networks to focus exclusively on specific timescales. A master multi-layer perceptron ($\mathcal{M}_{multi}$) then learns a non-linear mapping to combine these single-scale components into the total system Hamiltonian.
Figure 1: Frequency-Separable Hamiltonian Neural Network. Hamiltonian systems that exhibit dynamics with multiple timescales and be decoupled into subsystems each representing one timescale. An observation utrain is subsampled using interval I1, I2, and I3 to form subsampled dataset u(k). The single scale HNN Mk is trained on subsampled data individually. The multiscale model Mmulti combines pretrained single scale HNN trajectories to predict rollout on the original resolution.
  1. Structure-Preserving PDE Operator: To extend this framework to PDEs without a known, closed-form symplectic operator, the authors use a residual convolutional neural network (CNN) to learn the action of a state- and boundary-conditioned operator ($J_\theta$). Rather than enforcing strict mathematical symplecticity, they project the network's output onto a subspace orthogonal to the Hamiltonian gradient ($\langle \nabla H(z), \Delta z \rangle = 0$). This pseudo-skew-symmetry guarantees energy conservation in the continuous-time limit.

Datasets

The authors evaluated FS-HNN across a diverse suite of challenging physical benchmarks:

  • ODE Systems: An ideal pendulum (sanity check), a chaotic double pendulum, and the Fermi-Pasta-Ulam-Tsingou (FPUT) system (a complex, non-linear many-body lattice chain known for slow energy exchange across modes).
  • PDE Systems: Two-dimensional Shallow Water Equations (SWE) evaluated under both localized Gaussian-pulse and chaotic random initial conditions, alongside the incompressible Taylor-Green vortex (a viscous fluid system characterized by energy decay over time).

Key Insights and Ideas

  • Subsampling as an Implicit Filter: Instead of relying on complex, hand-crafted mathematical or statistical frequency decompositions, simply changing the temporal sampling rate of the training data effectively isolates fast and slow physical modes for individual networks.
  • Non-linear Combination is Crucial: The total system Hamiltonian is not merely the sum of its parts. The authors discovered that passing individual single-scale Hamiltonians through a non-linear combiner network ($\mathcal{M}_{multi}$) is essential for capturing the coupled interactions between different timescales.
  • Orthogonality Over Exact Symplecticity: For complex spatial fields like PDEs, trying to enforce exact symplecticity is often computationally intractable. Enforcing an orthogonality constraint via a projection layer provides a robust, structure-preserving alternative that prevents long-term simulation rollouts from exploding.

Key Results

Quantitatively, FS-HNN significantly outperformed standard multi-layer perceptrons (MLPs), baseline HNNs, SympNets, and Fourier Neural Operators (FNOs) in long-horizon forecasting accuracy.

  • FPUT System: For the highly multi-timescale FPUT lattice, the combined FS-HNN achieved a rollout Mean Squared Error (MSE) of $9.10 \times 10^{-5}$, beating standard HNNs ($3.95 \times 10^{-3}$) and high-resolution MLPs ($1.98 \times 10^{-2}$) by orders of magnitude.
  • Taylor-Green Vortex: On this complex fluid PDE, FS-HNN achieved a remarkable MSE of $5.01 \times 10^{-8}$, vastly outperforming specialized baselines like the Pseudo-Hamiltonian Neural Network (PHNN) and FNO.
Figure 2: Phase space comparison for ODE systems. We show the MSE error and phase space portraits of the predicted rollout of FS-HNN, MLP, HNN (Greydanus et al., 2019), and SympNet (Jin et al., 2020) for the (Top) ideal pendulum, (Middle) double pendulum, and (Bottom) Fermi-Pasta-Uam-Tsingou systems. FS-HNN achieves significantly lower prediction error compared to baseline networks. Some baselines are omitted from the MSE plot due to excessively large predictive error. Exact trajetocy prediction results can be checked in Figure 6 in Appendix C.

Qualitatively, phase space portraits reveal that while baseline models suffer from severe energy drift or completely diverge from the true trajectory over long time horizons, FS-HNN tightly tracks the ground-truth physical invariants.

Limitations and Future Work

Despite its strong performance, the authors note a few key limitations:

  • Computational Overhead: Enforcing the pseudo-skew-symmetry orthogonality constraint requires additional projection operations during training, which increases computational runtime.
  • Data Fidelity Dependencies: The training data was generated using classical numerical solvers, which are themselves only approximately conservative due to discretization errors. It remains an open question how perfectly conservative datasets would impact performance.
  • Future Directions: The authors plan to explore more efficient parameterizations of the learned operator structure to reduce training and inference times while retaining physical interpretability.

Summary updated

BibTeX
@inproceedings{li2026frequency,
  author = {Yaojun Li and Yulong Yang and Christine Allen-Blanchette},
  title = {{Frequency-Separable Hamiltonian Neural Network for Multi-Timescale Dynamics}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=sRJQgUFr36},
}
Figure