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

基于混合焦点与全范围注意力的图 Transformer

Hybrid Focal and Full-Range Attention Based Graph Transformers

School of Biology(生物学院);School of Computer Science and Technology(计算机科学与技术学院);Soochow University(苏州大学)

Minhong Zhu, Zhenhao Zhao, Weiran Cai

AI总结:

针对 Graph Transformer 局部与子结构信息不足的问题,提出纯注意力 FFGT,用全范围注意力结合 ego-net 的 K-hop 焦点注意力,并在 LRGB 等数据集上取得相当 SOTA 表现。

摘要:

使用自注意力机制的 Transformer 范式已在学习图结构数据方面展现出优势。然而,Graph Transformer 虽能够建模全范围依赖,却往往不擅长从局部性中提取信息。一种常见做法是利用 Message Passing Neural Networks(MPNN,消息传递神经网络)作为辅助手段来捕获局部信息,但这在理解子结构方面仍然不够充分。本文提出一种纯粹基于注意力的架构,即 Focal and Full-Range Graph Transformer(FFGT,焦点与全范围图 Transformer),它能够缓解在学习全局相关性时局部信息的损失。FFGT 的核心组件是一种新的复合注意力机制,它将传统的全范围注意力与 ego-net 上的 K-hop 焦点注意力相结合,以同时聚合全局和局部信息。超越标准 Transformer 的范围,FFGT 具有更强的子结构感知优势。我们的方法提升了现有 Graph Transformer 在多个开放数据集上的性能,并且即使使用普通 transformer,也在若干 Long-Range Graph Benchmark(LRGB,长程图基准)数据集上取得了与 SOTA 相当的性能。我们还通过引入一个基于 SBM-PATTERN 的新型合成数据集,进一步考察了影响最佳注意力焦点长度的因素。

英文摘要:

The paradigm of Transformers using the self-attention mechanism has manifested its advantage in learning graph-structured data. Yet, Graph Transformers are capable of modeling full range dependencies but are often deficient in extracting information from locality. A common practice is to utilize Message Passing Neural Networks (MPNNs) as an auxiliary to capture local information, which however are still inadequate for comprehending substructures. In this paper, we present a purely attention-based architecture, namely Focal and Full-Range Graph Transformer (FFGT), which can mitigate the loss of local information in learning global correlations. The core component of FFGT is a new mechanism of compound attention, which combines the conventional full-range attention with K-hop focal attention on ego-nets to aggregate both global and local information. Beyond the scope of canonical Transformers, the FFGT has the merit of being more substructure-aware. Our approach enhances the performance of existing Graph Transformers on various open datasets, while achieves compatible SOTA performance on several Long-Range Graph Benchmark (LRGB) datasets even with a vanilla transformer. We further examine influential factors on the optimal focal length of attention via introducing a novel synthetic dataset based on SBM-PATTERN.

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

↑