Skip to main content
QUICK REVIEW

[论文解读] Representing Long-Range Context for Graph Neural Networks with Global Attention

Zhanghao Wu, Paras Jain|arXiv (Cornell University)|Jan 21, 2022
Advanced Graph Neural NetworksComputer Science被引用 125
一句话总结

GraphTrans 将标准 GNN 与一个 permutation-invariant Transformer 结合,以学习长程节点关系,并为图级预测引入一个特殊的 CLS 读取机制,在多个图分类基准上达到最先进的结果。

ABSTRACT

Graph neural networks are powerful architectures for structured datasets. However, current methods struggle to represent long-range dependencies. Scaling the depth or width of GNNs is insufficient to broaden receptive fields as larger GNNs encounter optimization instabilities such as vanishing gradients and representation oversmoothing, while pooling-based approaches have yet to become as universally useful as in computer vision. In this work, we propose the use of Transformer-based self-attention to learn long-range pairwise relationships, with a novel "readout" mechanism to obtain a global graph embedding. Inspired by recent computer vision results that find position-invariant attention performant in learning long-range relationships, our method, which we call GraphTrans, applies a permutation-invariant Transformer module after a standard GNN module. This simple architecture leads to state-of-the-art results on several graph classification tasks, outperforming methods that explicitly encode graph structure. Our results suggest that purely-learning-based approaches without graph structure may be suitable for learning high-level, long-range relationships on graphs. Code for GraphTrans is available at https://github.com/ucbrise/graphtrans.

研究动机与目标

  • 说明在图中建模超过堆叠 GNN 层或分层汇聚的长程依赖的必要性。
  • 提出一种简单、框架无关的架构,将 GNN 主干与 Transformer 结合以进行全局推理。
  • 研究使用 <CLS> 标记的新的读取机制,以产生图级嵌入。
  • 展示该方法在生物学、化学和计算机编程图中的有效性与通用性。

提出的方法

  • 使用标准 GNN 主干来学习局部、短程结构。
  • 在 GNN 嵌入之上应用一个 permutation-invariant Transformer 以学习所有对之间的交互。
  • 将节点嵌入投射到 Transformer 维度而不使用位置编码,并使用多头自注意力进行处理。
  • 采用一个特殊的 <CLS> token 作为可学习的读取,用于生成一个单一的图嵌入以进行分类。
  • 使用标准优化(Adam)端到端训练,并展示可扩展性和效率的比较。

实验结果

研究问题

  • RQ1在 GNN 嵌入上应用的 Transformer 模块是否比更深的 GNN 或汇聚方法更能捕捉长程依赖?
  • RQ2一个特殊的 <CLS> token 读取是否比全局汇聚或虚拟节点方法提供更有效的图嵌入?
  • RQ3GraphTrans 是否在生物、化学、编程等不同的图领域有效,并能扩展到大规模图?

主要发现

  • GraphTrans 在若干 Open Graph Benchmark 图分类任务上取得了最先进的结果。
  • 在 NCI1 和 NCI109 生物数据集上,GraphTrans (small) 相比强基线在准确率上有显著提升(例如,81.3% 对 68–82% 基线范围)。
  • 在 molpcba 上,GraphTrans 相对于 GIN 和 GIN-Virtual 基线有改进,展示了将 GNN 本地结构与全局注意力结合的好处。
  • 在 Code2 上,GraphTrans 超越 DAGNN 的最先进方法和其他基线,证明了在编程图中的有效长程推理。
  • 消融研究表明 <CLS> 读取在简单序列聚合中是最有效的聚合方法,且 Transformer 学到的信息与 GNN 互补。

阅读本论文

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

在 Nubint 中阅读本论文

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