arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.05583cs.LGcs.DC
收藏

全局注意力何时有所帮助?原子图学习的统一实证研究

When Does Global Attention Help? A Unified Empirical Study on Atomistic Graph Learning

Computational Sciences and Engineering Division (CSED)(计算科学与工程 division)

Arindam Chowdhury, Massimiliano Lupo Pasini

AI总结:

本文通过统一框架研究原子图学习中全局注意力的作用,发现编码器增强的MPNN是稳健基线,融合局部-全局模型在长程相互作用主导的属性上表现最佳。

摘要:

图神经网络(GNNs)被广泛用于替代昂贵实验和第一性原理模拟,以研究原子尺度化合物行为,其架构复杂性不断增加以建模复杂物理。尽管大多数最新GNNs结合更多传统消息传递神经网络(MPNNs)层来建模短程相互作用,以及更先进的图Transformer(GTs)具有全局注意力机制来建模长程相互作用,但因实现不一致、特征或超参数调优不同,仍不清楚全局注意力机制何时能比调优良好的MPNN层提供实际益处。我们引入了首个统一、可重复的基准测试框架——基于HydraGNN,该框架可无缝切换四种受控模型类别:MPNN、MPNN结合化学/拓扑编码器、MPNN与全局注意力的GPS式混合模型以及完全融合的局部-全局模型。使用七个多样化的开源数据集进行基准测试,涵盖回归和分类任务,我们系统地隔离了消息传递、全局注意力和编码器增强特征扩展的贡献。我们的研究显示,编码器增强的MPNN形成稳健基线,而融合局部-全局模型在受长程相互作用影响的属性上收益最明显。我们进一步量化了注意力的精度-计算权衡,报告了其内存开销。这些结果建立了原子图学习中全局注意力的首次受控评估,并为未来模型开发提供了可重复的测试平台。

英文摘要:

Graph neural networks (GNNs) are widely used as surrogates for costly experiments and first-principles simulations to study the behavior of compounds at atomistic scale, and their architectural complexity is constantly increasing to enable the modeling of complex physics. While most recent GNNs combine more traditional message passing neural networks (MPNNs) layers to model short-range interactions with more advanced graph transformers (GTs) with global attention mechanisms to model long-range interactions, it is still unclear when global attention mechanisms provide real benefits over well-tuned MPNN layers due to inconsistent implementations, features, or hyperparameter tuning. We introduce the first unified, reproducible benchmarking framework - built on HydraGNN - that enables seamless switching among four controlled model classes: MPNN, MPNN with chemistry/topology encoders, GPS-style hybrids of MPNN with global attention, and fully fused local-global models with encoders. Using seven diverse open-source datasets for benchmarking across regression and classification tasks, we systematically isolate the contributions of message passing, global attention, and encoder-based feature augmentation. Our study shows that encoder-augmented MPNNs form a robust baseline, while fused local-global models yield the clearest benefits for properties governed by long-range interaction effects. We further quantify the accuracy-compute trade-offs of attention, reporting its overhead in memory. Together, these results establish the first controlled evaluation of global attention in atomistic graph learning and provide a reproducible testbed for future model development.

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

↑