arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2504.21780math.NAcs.MScs.NA
收藏

MAGNET:基于图神经网络的网格聚合开源库

MAGNET: an open-source library for mesh agglomeration by Graph Neural Networks

MOX, Dipartimento di Matematica, Politecnico di Milano(米兰理工大学数学系MOX实验室)

Paola F. Antonietti, Matteo Caldana, Ilario Mazzieri, Andrea Re Fraschini

AI总结:

本文介绍开源库MAGNET,利用图神经网络实现二维和三维网格聚合,结合强化学习提升性能,与METIS和k-means对比具有竞争力,并集成于Lymph库。

摘要:

我们介绍了MAGNET,一个开源的Python库,旨在基于图神经网络(GNN)实现二维和三维的网格聚合。MAGNET为训练多种GNN模型提供了全面的解决方案,集成了深度学习以及METIS和k-means等其他先进算法,以促进网格聚合和质量指标的计算。该库的介绍通过其代码结构和主要功能展开。GNN框架采用图二分方法,通过SAGE卷积层利用连通性和几何网格信息,这与Antonietti等人(2024)提出的方法一致。此外,所提出的MAGNET库结合了强化学习,以增强模型在多层级框架内预测粗分区的准确性和鲁棒性。提供了详细的教程,指导用户完成网格聚合和GNN二分模型训练的过程。我们展示了MAGNET进行的几个网格聚合示例,证明了该库在各种场景下的适用性。此外,将新引入的模型的性能与METIS和k-means进行了对比,表明所提出的GNN模型在分区质量和计算效率方面具有竞争力。最后,我们通过MAGNET与Lymph的集成展示了其接口的多功能性,Lymph是一个开源库,在多面体网格上实现间断伽辽金方法,用于多物理微分问题的数值离散化。

英文摘要:

We introduce MAGNET, an open-source Python library designed for mesh agglomeration in both two- and three-dimensions, based on employing Graph Neural Networks (GNN). MAGNET serves as a comprehensive solution for training a variety of GNN models, integrating deep learning and other advanced algorithms such as METIS and k-means to facilitate mesh agglomeration and quality metric computation. The library's introduction is outlined through its code structure and primary features. The GNN framework adopts a graph bisection methodology that capitalizes on connectivity and geometric mesh information via SAGE convolutional layers, in line with the methodology proposed by Antonietti et al. (2024). Additionally, the proposed MAGNET library incorporates reinforcement learning to enhance the accuracy and robustness of the model for predicting coarse partitions within a multilevel framework. A detailed tutorial is provided to guide the user through the process of mesh agglomeration and the training of a GNN bisection model. We present several examples of mesh agglomeration conducted by MAGNET, demonstrating the library's applicability across various scenarios. Furthermore, the performance of the newly introduced models is contrasted with that of METIS and k-means, illustrating that the proposed GNN models are competitive regarding partition quality and computational efficiency. Finally, we exhibit the versatility of MAGNET's interface through its integration with Lymph, an open-source library implementing discontinuous Galerkin methods on polytopal grids for the numerical discretization of multiphysics differential problems.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑