Skip to main content
QUICK REVIEW

[论文解读] Graph Inductive Biases in Transformers without Message Passing

Liheng Ma, Chen Lin|arXiv (Cornell University)|May 27, 2023
Advanced Graph Neural NetworksComputer Science被引用 15
一句话总结

GRIT 引入一个图 Transformer,利用学习的相对随机游走位置编码、双节点与节点对注意力机制,以及度信息,以在不显式消息传递的情况下实现图的归纳偏置,在从小到大图数据集上达到最先进的结果。

ABSTRACT

Transformers for graph data are increasingly widely studied and successful in numerous learning tasks. Graph inductive biases are crucial for Graph Transformers, and previous works incorporate them using message-passing modules and/or positional encodings. However, Graph Transformers that use message-passing inherit known issues of message-passing, and differ significantly from Transformers used in other domains, thus making transfer of research advances more difficult. On the other hand, Graph Transformers without message-passing often perform poorly on smaller datasets, where inductive biases are more crucial. To bridge this gap, we propose the Graph Inductive bias Transformer (GRIT) -- a new Graph Transformer that incorporates graph inductive biases without using message passing. GRIT is based on several architectural changes that are each theoretically and empirically justified, including: learned relative positional encodings initialized with random walk probabilities, a flexible attention mechanism that updates node and node-pair representations, and injection of degree information in each layer. We prove that GRIT is expressive -- it can express shortest path distances and various graph propagation matrices. GRIT achieves state-of-the-art empirical performance across a variety of graph datasets, thus showing the power that Graph Transformers without message-passing can deliver.

研究动机与目标

  • 动机并解决在没有消息传递的图 Transformer 在小规模数据集上表现不佳,同时在仅使用注意力时缺乏图的归纳偏置之间的差距。
  • 提出 GRIT 作为一个不进行消息传递的图 Transformer,具备图的归纳偏置。
  • 从理论上证明并从实证上验证能够提升图任务的表达力和实际性能的设计选择。

提出的方法

  • 引入以随机游走概率初始化的学习相对位置编码(RRWP)以捕捉图结构。
  • 开发一个灵活的注意力机制,联合更新节点和节点对表示,并能够更新 RRWP 编码。
  • 通过度缩放因子在每一层注入度信息,并将层归一化替换为批量归一化以保留度信息。
  • 证明带有 MLP 更新器的 RRWP 在表达能力上足以逼近最短路径距离和各种图传播矩阵。
  • 提供消融和合成实验以证明设计选择的合理性并展示跨数据集的最先进性能。

实验结果

研究问题

  • RQ1GRIT 是否能够通过学习更新的 RRWP 表达常见的图传播矩阵和最短路径距离?
  • RQ2联合更新节点和节点对 表示是否提升模型利用图结构而无需消息传递的能力?
  • RQ3在没有 MPNN 的图 Transformer 中,加入度信息和替代归一化如何影响表达能力和性能?

主要发现

  • GRIT 在各种图基准上实现了最先进的实验性能,包括从小到中等规模到大规模的数据集。
  • 带有 MLP 更新器的 RRWP 能近似 SPD 距离和若干图的传播,使 RRWP 在 GD-WL 分析中比 SPD 表达力更强。
  • 提出的更新节点和节点对表示的注意力机制能够学习更新位置编码,从而增强表达力。
  • 通过度缩放因子和批量归一化引入度信息,保留有用的度信号并提高性能。
  • 消融研究表明,移除度缩放因子、RRWP 更新,或使用替代的注意力/匹配编码会降低性能,支持 GRIT 设计选择的有效性。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。