Graph neural networks informed locally by thermodynamics
Alicia Tierz, Iciar Alfaro, David González, Francisco Chinesta, Elías Cueto
TL;DR
The paper addresses learning dynamic physical systems while strictly enforcing thermodynamic laws. It introduces a local port-metriplectic (GENERIC) framework embedded in graph neural networks to preserve energy and entropy evolution without assembling large global matrices. The approach demonstrates improved accuracy, memory efficiency, and strong generalization across solid and fluid problems, including out-of-distribution geometries and large-scale sloshing simulations. This method offers practical scalability and robustness for physics-informed learning in complex, dissipative environments.
Abstract
Thermodynamics-informed neural networks employ inductive biases for the enforcement of the first and second principles of thermodynamics. To construct these biases, a metriplectic evolution of the system is assumed. This provides excellent results, when compared to uninformed, black box networks. While the degree of accuracy can be increased in one or two orders of magnitude, in the case of graph networks, this requires assembling global Poisson and dissipation matrices, which breaks the local structure of such networks. In order to avoid this drawback, a local version of the metriplectic biases has been developed in this work, which avoids the aforementioned matrix assembly, thus preserving the node-by-node structure of the graph networks. We apply this framework for examples in the fields of solid and fluid mechanics. Our approach demonstrates significant computational efficiency and strong generalization capabilities, accurately making inferences on examples significantly different from those encountered during training.
