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

图注意力网络有多专注?

How Attentive are Graph Attention Networks?

Technion(以色列理工学院);Carnegie Mellon University(卡内基梅隆大学);Language Technologies Institute(语言技术研究所)

Shaked Brody, Uri Alon, Eran Yahav

摘要:

图注意力网络(GAT)是最受欢迎的GNN架构之一,被认为是使用图进行表示学习的最先进架构。在GAT中,每个节点都关注其邻居,并将其自己的表示作为查询。然而,在本文中,我们表明,GAT计算一种非常有限的注意力:排名的注意力分数是无条件的查询节点。我们正式定义这种有限的注意力为静态注意力,并将其与严格更具表现力的动态注意力区分开来。由于GAT使用静态注意力机制,有简单的图形问题,GAT不能表示:在一个受控的问题,我们表明,静态注意力阻碍GAT甚至拟合的训练数据。为了消除这一限制,我们引入了一个简单的修复修改操作的顺序,并提出GATv2:一个动态的图形注意力的变种,是严格的表达比GAT。我们进行了广泛的评估,并表明GATv2在11 OGB和其他基准测试中优于GAT,同时我们匹配它们的参数成本。我们的代码可在https://github.com/tech-srl/how_attentive_are_gats上获得。GATv2作为PyTorch Geometric库、Deep Graph库和TensorFlow GNN库的一部分提供。

英文摘要:

Graph Attention Networks (GATs) are one of the most popular GNN architectures and are considered as the state-of-the-art architecture for representation learning with graphs. In GAT, every node attends to its neighbors given its own representation as the query. However, in this paper we show that GAT computes a very limited kind of attention: the ranking of the attention scores is unconditioned on the query node. We formally define this restricted kind of attention as static attention and distinguish it from a strictly more expressive dynamic attention. Because GATs use a static attention mechanism, there are simple graph problems that GAT cannot express: in a controlled problem, we show that static attention hinders GAT from even fitting the training data. To remove this limitation, we introduce a simple fix by modifying the order of operations and propose GATv2: a dynamic graph attention variant that is strictly more expressive than GAT. We perform an extensive evaluation and show that GATv2 outperforms GAT across 11 OGB and other benchmarks while we match their parametric costs. Our code is available at https://github.com/tech-srl/how_attentive_are_gats . GATv2 is available as part of the PyTorch Geometric library, the Deep Graph Library, and the TensorFlow GNN library.

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

↑