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

面向有向无环图的Transformer模型

Transformers over Directed Acyclic Graphs

Beihang University(北京航空航天大学);MIT-IBM Watson AI Lab, IBM Research(MIT-IBM沃森人工智能实验室,IBM研究院)

Yuankai Luo, Veronika Thost, Lei Shi

AI总结:

本文针对有向无环图提出高效注意力机制和偏序位置编码,使图Transformer在源代码图分类和引文网络节点分类等任务上超越定制图神经网络并提升SOTA性能。

摘要:

Transformer模型最近在图表示学习中受到关注,因为它们有潜力学习超出常规图神经网络所能捕捉的复杂关系。核心研究问题是如何将图的结构偏置注入Transformer架构,目前已针对无向分子图提出若干方案,近期也扩展到了更大的网络图。本文研究面向有向无环图(DAG)的Transformer,并提出针对DAG定制的架构改进:(1)一种注意力机制,其效率显著优于Transformer常规的二次复杂度,同时能忠实捕捉DAG结构;(2)一种对DAG偏序关系进行位置编码的方法,作为对前者的补充。我们在多种任务上严格评估了所提方法,包括源代码图分类和引文网络节点分类,并证明其在两个重要方面有效:使图Transformer普遍优于针对DAG定制的图神经网络,并在质量和效率两方面提升了SOTA图Transformer的性能。

英文摘要:

Transformer models have recently gained popularity in graph representation learning as they have the potential to learn complex relationships beyond the ones captured by regular graph neural networks. The main research question is how to inject the structural bias of graphs into the transformer architecture, and several proposals have been made for undirected molecular graphs and, recently, also for larger network graphs. In this paper, we study transformers over directed acyclic graphs (DAGs) and propose architecture adaptations tailored to DAGs: (1) An attention mechanism that is considerably more efficient than the regular quadratic complexity of transformers and at the same time faithfully captures the DAG structure, and (2) a positional encoding of the DAG's partial order, complementing the former. We rigorously evaluate our approach over various types of tasks, ranging from classifying source code graphs to nodes in citation networks, and show that it is effective in two important aspects: in making graph transformers generally outperform graph neural networks tailored to DAGs and in improving SOTA graph transformer performance in terms of both quality and efficiency.

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

↑