arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2106.03893cs.LG
收藏

基于谱注意力的图Transformers再思考

Rethinking Graph Transformers with Spectral Attention

McGill University(麦吉尔大学);Mila(米拉人工智能研究所);Valence Discovery;University of Ottawa(渥太华大学)

Devin Kreuzer, Dominique Beaini, William L. Hamilton, Vincent Létourneau, Prudencio Tossou

摘要:

近年来,Transformer体系结构已被证明在序列处理中非常成功,但由于难以正确定义位置,其在其他数据结构(如图)中的应用仍然有限。在这里,我们提出了$\textit{Spectral Attention Network}$(SAN),它使用一个学习的位置编码(LPE),可以利用完整的拉普拉斯频谱来学习给定图中每个节点的位置。然后将此LPE添加到图的节点特征中,并传递给全连接的Transformer。通过利用拉普拉斯算子的全谱,我们的模型理论上在区分图方面是强大的,并且可以更好地从它们的共振中检测相似的子结构。此外,通过完全连接图形,Transformer不会遭受过度挤压,这是大多数GNN的信息瓶颈,并且能够更好地建模物理现象,例如热传递和电相互作用。当在一组4个标准数据集上进行经验测试时,我们的模型的性能与最先进的GNN相当或更好,并且远远优于任何基于注意力的模型,成为第一个在图形基准上表现良好的全连接架构。

英文摘要:

In recent years, the Transformer architecture has proven to be very successful in sequence processing, but its application to other data structures, such as graphs, has remained limited due to the difficulty of properly defining positions. Here, we present the $\textit{Spectral Attention Network}$ (SAN), which uses a learned positional encoding (LPE) that can take advantage of the full Laplacian spectrum to learn the position of each node in a given graph. This LPE is then added to the node features of the graph and passed to a fully-connected Transformer. By leveraging the full spectrum of the Laplacian, our model is theoretically powerful in distinguishing graphs, and can better detect similar sub-structures from their resonance. Further, by fully connecting the graph, the Transformer does not suffer from over-squashing, an information bottleneck of most GNNs, and enables better modeling of physical phenomenons such as heat transfer and electric interaction. When tested empirically on a set of 4 standard datasets, our model performs on par or better than state-of-the-art GNNs, and outperforms any attention-based model by a wide margin, becoming the first fully-connected architecture to perform well on graph benchmarks.

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

↑