Graph neural networks with hybrid local-global attention for effective prediction of mechanical response in structures
File(s) 1-s2.0-S0045782526000277-main.pdf (6.87 MB)
Published version
Author(s)
Patrignani, Luca
Pinho, Silvestre
Type
Journal Article
Abstract
Graph Neural Networks (GNNs) are emerging as a transformative approach for predicting mechanical response in structures by naturally encoding unstructured finite element meshes as graphs. While traditional finite element analysis (FEA) provides trusted solutions for mechanics problems, it encounters significant computational and scalability bottlenecks. Existing machine learning approaches using regular grids fail to capture the irregular nature of real-world meshes, whereas standard GNNs suffer from over-smoothing and limited long-range information
propagation that compromise accuracy. To overcome these limitations, we present a Graph Transformer methodology that implements an encoder-processor-decoder framework augmented with a frequency-controlled hybrid local-global attention mechanism, which systematically bridges local mesh connectivity with global information awareness across the computational domain. Our approach integrates
seamlessly with real-world FEA workflows through an automated FEM-to-GNN pipeline that converts FE simulations to graph representations and generates training datasets directly from commercial solvers, enabling rapid deployment across various engineering applications without manual preprocessing bottlenecks. We validate our approach on open holes Carbon Fibre Reinforced Polymer (CFRP) laminate plates under various loading conditions and geometric configurations, and extend validation to nonlinear woven composites exhibiting plasticity and progressive damage under shear-dominated loadings, employing systematic hyperparameter optimisation with Tree-structured Parzen Estimator (TPE) sampling and mesh convergence studies. The linear case demonstrates excellent predictive accuracy (R2 = 0.98, RMSE = 0.00028) with 70× speedup over equivalent-accuracy FEA and 58 − 64% reduction in training and validation loss compared to standard message-passing GNN architectures without attention mechanisms, while the nonlinear case achieves R2 = 0.97 (RMSE = 0.0013) with 660× speedup.
propagation that compromise accuracy. To overcome these limitations, we present a Graph Transformer methodology that implements an encoder-processor-decoder framework augmented with a frequency-controlled hybrid local-global attention mechanism, which systematically bridges local mesh connectivity with global information awareness across the computational domain. Our approach integrates
seamlessly with real-world FEA workflows through an automated FEM-to-GNN pipeline that converts FE simulations to graph representations and generates training datasets directly from commercial solvers, enabling rapid deployment across various engineering applications without manual preprocessing bottlenecks. We validate our approach on open holes Carbon Fibre Reinforced Polymer (CFRP) laminate plates under various loading conditions and geometric configurations, and extend validation to nonlinear woven composites exhibiting plasticity and progressive damage under shear-dominated loadings, employing systematic hyperparameter optimisation with Tree-structured Parzen Estimator (TPE) sampling and mesh convergence studies. The linear case demonstrates excellent predictive accuracy (R2 = 0.98, RMSE = 0.00028) with 70× speedup over equivalent-accuracy FEA and 58 − 64% reduction in training and validation loss compared to standard message-passing GNN architectures without attention mechanisms, while the nonlinear case achieves R2 = 0.97 (RMSE = 0.0013) with 660× speedup.
Date Issued
2026-04-15
Date Acceptance
2026-01-10
Citation
Computer Methods in Applied Mechanics and Engineering, 2026, 452 (Part A)
ISSN
0045-7825
Publisher
Elsevier
Journal / Book Title
Computer Methods in Applied Mechanics and Engineering
Volume
452
Issue
Part A
Copyright Statement
© 2026 The Author(s). Published by Elsevier B.V. This is an open access article under the CC BY license (http://creativecommons.org/licenses/by/4.0/).
License URL
Identifier
10.1016/j.cma.2026.118753
Publication Status
Published
Article Number
118753
Date Publish Online
2026-01-19
