Skip to main content
QUICK REVIEW

[论文解读] NodeFormer: A Scalable Graph Structure Learning Transformer for Node Classification

Qitian Wu, Wentao Zhao|arXiv (Cornell University)|Jun 14, 2023
Advanced Graph Neural NetworksComputer Science被引用 75
一句话总结

NodeFormer 引入了一个全对所有对信息传递的 Transformer,采用核化的 Gumbel-Softmax 来学习潜在图结构,在每层实现线性时间复杂度,并可扩展到具有数百万节点的图用于节点分类。

ABSTRACT

Graph neural networks have been extensively studied for learning with inter-connected data. Despite this, recent evidence has revealed GNNs' deficiencies related to over-squashing, heterophily, handling long-range dependencies, edge incompleteness and particularly, the absence of graphs altogether. While a plausible solution is to learn new adaptive topology for message passing, issues concerning quadratic complexity hinder simultaneous guarantees for scalability and precision in large networks. In this paper, we introduce a novel all-pair message passing scheme for efficiently propagating node signals between arbitrary nodes, as an important building block for a pioneering Transformer-style network for node classification on large graphs, dubbed as extsc{NodeFormer}. Specifically, the efficient computation is enabled by a kernerlized Gumbel-Softmax operator that reduces the algorithmic complexity to linearity w.r.t. node numbers for learning latent graph structures from large, potentially fully-connected graphs in a differentiable manner. We also provide accompanying theory as justification for our design. Extensive experiments demonstrate the promising efficacy of the method in various tasks including node classification on graphs (with up to 2M nodes) and graph-enhanced applications (e.g., image classification) where input graphs are missing.

研究动机与目标

  • 激励在固定输入拓扑之外为节点分类学习灵活的潜在图结构。
  • 开发一个可扩展、可微分的机制,在所有节点对之间推断潜在图。
  • 使大规模图没有输入图时也能端到端训练类似 Transformer 的架构。
  • 在可用时通过关系偏置和边正则化将输入拓扑纳入其中。
  • 展示对高达 2 million 节点的图的可扩展性,以及在异质性图和无图设置下的有效性。

提出的方法

  • 提出 NodeFormer,在每层学习到的潜在图上进行全对信息传递。
  • 使用核化的 Gumbel-Softmax 运算符,通过随机特征映射以线性时间逼近全对注意力。
  • 通过随机特征近似的核函数重写注意力,以避免 N^2 计算。
  • 应用可微采样方案(带温度的 Gumbel-Softmax)以获得稀疏、可学习的潜在图。
  • 引入边级正则化损失,在可用时将学习到的边与观测边对齐。
  • 在边存在时,将输入图的关系偏置作为注意力权重的附加项加入。
Figure 1: Illustration for the data flow of NodeFormer which takes node embedding matrix $\mathbf{X}$ and (optional) graph adjacency matrix $\mathbf{A}$ as input. There are three components in NodeFormer . The first one is the all-pair message passing (MP) module (colored red) which adopts our propo
Figure 1: Illustration for the data flow of NodeFormer which takes node embedding matrix $\mathbf{X}$ and (optional) graph adjacency matrix $\mathbf{A}$ as input. There are three components in NodeFormer . The first one is the all-pair message passing (MP) module (colored red) which adopts our propo

实验结果

研究问题

  • RQ1一个类似 Transformer 的节点分类器是否能在不依赖输入拓扑的情况下,为大规模图学习出有效的潜在图以进行信息传递?
  • RQ2如何在离散潜在结构下,通过可微分优化实现可扩展的全对信息传递?
  • RQ3潜在结构学习在同质性和异质性图上的节点分类性能有何影响?
  • RQ4在核化 Gumbel-Softmax 中,核特征映射维度、温度与近似精度之间的权衡是什么?
  • RQ5NodeFormer 相较于现有的结构学习方法和可扩展的 GNN 方法在大规模数据集(高达数百万节点)上的表现如何?

主要发现

  • NodeFormer 在标准节点分类基准测试上达到具有竞争力或更优的准确率/ROC-AUC,包括异质性图。
  • 在大规模数据集(OGB-Proteins 和 Amazon2M)上,NodeFormer 比基线获得更高的指标,同时保持可接受的内存使用。
  • 该方法可扩展到最多 2M 节点的图,具有每层线性复杂度,在速度和内存方面均优于先前的结构学习方法。
  • 带随机特征的核化 Gumbel-Softmax 提供了良好设定的近似,其误差与 N 无关,使可扩展的潜在结构学习成为可能。
  • 关系偏置和边正则化有助于在有可用输入拓扑时利用现有拓扑,提升训练稳定性和性能。
  • NodeFormer 展示了对图增强任务(图像/文本分类)的适用性,在输入图可能缺失的情况下。
Figure 2: Experimental results for node classification in transductive setting on four common datasets. The missing results on Deezer is caused by out-of-memory (OOM).
Figure 2: Experimental results for node classification in transductive setting on four common datasets. The missing results on Deezer is caused by out-of-memory (OOM).

阅读本论文

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

在 Nubint 中阅读本论文

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