Skip to main content
QUICK REVIEW

[论文解读] NAGphormer: A Tokenized Graph Transformer for Node Classification in Large Graphs

Jinsong Chen, Kaiyuan Gao|arXiv (Cornell University)|Jun 10, 2022
Advanced Graph Neural NetworksComputer Science被引用 22
一句话总结

NAGphormer 引入 Hop2Token 将多跳邻域信息进行标记化,使图Transformer的 mini-batch 训练成为可能,并在大规模图上相对于现有图 Transformer 与 GNN 提升节点分类性能。

ABSTRACT

The graph Transformer emerges as a new architecture and has shown superior performance on various graph mining tasks. In this work, we observe that existing graph Transformers treat nodes as independent tokens and construct a single long sequence composed of all node tokens so as to train the Transformer model, causing it hard to scale to large graphs due to the quadratic complexity on the number of nodes for the self-attention computation. To this end, we propose a Neighborhood Aggregation Graph Transformer (NAGphormer) that treats each node as a sequence containing a series of tokens constructed by our proposed Hop2Token module. For each node, Hop2Token aggregates the neighborhood features from different hops into different representations and thereby produces a sequence of token vectors as one input. In this way, NAGphormer could be trained in a mini-batch manner and thus could scale to large graphs. Moreover, we mathematically show that as compared to a category of advanced Graph Neural Networks (GNNs), the decoupled Graph Convolutional Network, NAGphormer could learn more informative node representations from the multi-hop neighborhoods. Extensive experiments on benchmark datasets from small to large are conducted to demonstrate that NAGphormer consistently outperforms existing graph Transformers and mainstream GNNs. Code is available at https://github.com/JHL-HUST/NAGphormer.

研究动机与目标

  • 推动在大规模图上使用图Transformer进行可扩展的节点分类。
  • 提出 Hop2Token 将多跳邻域转换为每个节点的一系列标记。
  • 将 Hop2Token 与 Transformer 主干网络和自适应跳级读取进行整合。
  • 提供将 NAGphormer 与解耦 GCN 进行比较的理论分析。
  • 在小型和大型图基准上展示出色的性能。

提出的方法

  • 引入 Hop2Token,将 k 距邻域聚合为每个节点的一系列标记。
  • 将每个节点的输入构建为 k∈[0, K] 的 x_v^k 表示序列,并投影到 Transformer 维度。
  • 使用包含 LayerNorm、MSA 和 FFN 的 Transformer 编码器从标记序列中学习节点表示。
  • 应用基于注意力的读取来自适应加权不同跳数的贡献,以获得最终节点嵌入。
  • 通过在节点特征上串联拉普拉斯特征向量来引入结构编码;使用基于注意力的读取进行聚合。
  • 提供复杂度分析和与解耦 GCN 的理论比较,以展示潜在的表达能力提升。

实验结果

研究问题

  • RQ1Hop2Token 是否能够通过将每个节点视为多跳标记序列来实现大规模图上图 Transformer 的可扩展训练?
  • RQ2基于注意力的读取是否能有效地对不同跳的邻域进行加权,从而提升节点表示?
  • RQ3在小规模与大规模数据集上,NAGphormer 与解耦 GCN 及其他图 Transformer 的比较如何?
  • RQ4结构编码和读取方式的选择对性能有何影响?

主要发现

  • NAGphormer 在小规模数据集上的多项指标均持续超越基线。
  • 在大规模数据集上,NAGphormer 在 AMiner-CS、Reddit 和 Amazon2M 上超越了可扩展 GNNs 如 PPRGo、GraphSAINT 及 GRAND+。
  • 引入结构编码在各数据集上提升了准确率,提升幅度因图结构而异。
  • 在多跳标记上的基于注意力的读取优于简单的SIN或SUM读取,尤其在小图上。
  • 该模型在大规模图上通过小批量训练展示出可扩展性和较优的训练成本。
  • 理论分析表明,NAGphormer 通过自注意力可以学习比解耦 GCN 更具表达力的多跳邻域表示。

阅读本论文

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

在 Nubint 中阅读本论文

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