Symplectic Structure-Aware Hamiltonian (Graph) Embeddings
Jiaxu Liu, Xinping Yi, Tianle Zhang, Xiaowei Huang
TL;DR
This work tackles the rigidity of fixed embedding manifolds in Graph Neural Networks by introducing SAH-GNN, which generalizes Hamiltonian dynamics to graph embeddings with an adaptively learned symplectic structure. The core idea is to parameterize the symplectic transformation with matrices $M^{(l)}$ drawn from the symplectic group $\,\mathrm{Sp}(2k^{(l+1)},2k^{(l)})$ and optimize them via hard, Riemannian gradient descent on the symplectic Stiefel manifold, ensuring $M^\top J M = J$ and energy conservation throughout training. The paper provides random initialization for symplectic matrices, a projection-based tangent-space update, and a Cayley retraction to maintain symplecticity, enabling SAH-GNN to adapt to diverse graph geometries across datasets. Empirical results on node classification show SAH-GNN consistently outperforms or matches state-of-the-art methods while maintaining energy stability, indicating the practical value of learning a geometry-aware, physically meaningful embedding space. This approach opens avenues for broader applications of Hamiltonian NN frameworks where adaptive geometry and energy conservation are beneficial.
Abstract
In traditional Graph Neural Networks (GNNs), the assumption of a fixed embedding manifold often limits their adaptability to diverse graph geometries. Recently, Hamiltonian system-inspired GNNs have been proposed to address the dynamic nature of such embeddings by incorporating physical laws into node feature updates. We present Symplectic Structure-Aware Hamiltonian GNN (SAH-GNN), a novel approach that generalizes Hamiltonian dynamics for more flexible node feature updates. Unlike existing Hamiltonian approaches, SAH-GNN employs Riemannian optimization on the symplectic Stiefel manifold to adaptively learn the underlying symplectic structure, circumventing the limitations of existing Hamiltonian GNNs that rely on a pre-defined form of standard symplectic structure. This innovation allows SAH-GNN to automatically adapt to various graph datasets without extensive hyperparameter tuning. Moreover, it conserves energy during training meaning the implicit Hamiltonian system is physically meaningful. Finally, we empirically validate SAH-GNN's superiority and adaptability in node classification tasks across multiple types of graph datasets.
