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

GraphiT:在Transformers中编码图形结构

GraphiT: Encoding Graph Structure in Transformers

Univ. Grenoble Alpes(格勒诺布尔阿尔卑斯大学);Inria(法国国家信息与自动化研究所);CNRS(法国国家科学研究中心);Grenoble INP(格勒诺布尔理工学院);École Normale Supérieure(巴黎高等师范学院)

Grégoire Mialon, Dexiong Chen, Margot Selosse, Julien Mairal

摘要:

我们表明,将图视为节点特征集并将结构和位置信息纳入Transformer架构能够优于用经典图神经网络(GNN)学习的表示。我们的模型GraphiT通过以下方式对这些信息进行编码:(i)基于图上的正定核,在自我注意力分数中利用相对位置编码策略,以及(ii)枚举和编码局部子结构,例如短长度的路径。我们在许多分类和回归任务中彻底评估了这两个想法,证明了它们各自的有效性,以及它们的组合。除了在标准基准测试中表现良好外,我们的模型还承认自然的可视化机制,用于解释解释预测的图形图案,使其成为解释重要的科学应用的潜在强有力的候选者。代码可在https://github.com/inria-thoth/GraphiT获得。

英文摘要:

We show that viewing graphs as sets of node features and incorporating structural and positional information into a transformer architecture is able to outperform representations learned with classical graph neural networks (GNNs). Our model, GraphiT, encodes such information by (i) leveraging relative positional encoding strategies in self-attention scores based on positive definite kernels on graphs, and (ii) enumerating and encoding local sub-structures such as paths of short length. We thoroughly evaluate these two ideas on many classification and regression tasks, demonstrating the effectiveness of each of them independently, as well as their combination. In addition to performing well on standard benchmarks, our model also admits natural visualization mechanisms for interpreting graph motifs explaining the predictions, making it a potentially strong candidate for scientific applications where interpretation is important. Code available at https://github.com/inria-thoth/GraphiT.

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

↑