[论文解读] VCR-Graphormer: A Mini-batch Graph Transformer via Virtual Connections
VCR-Graphormer 提出了一种小批量图变换器,通过使用个性化 PageRank 采样有信息量的节点邻域作为标记列表,仅在每个列表内应用自注意力机制,从而实现在大规模图上的高效训练。通过引入基于结构和内容的超节点虚拟连接,模型能够捕捉长距离和异质性依赖关系,实现了 SOTA 性能,时间复杂度为 $O(m + k\log k)$,显著低于二次方方法。
Graph transformer has been proven as an effective graph learning method for its adoption of attention mechanism that is capable of capturing expressive representations from complex topological and feature information of graphs. Graph transformer conventionally performs dense attention (or global attention) for every pair of nodes to learn node representation vectors, resulting in quadratic computational costs that are unaffordable for large-scale graph data. Therefore, mini-batch training for graph transformers is a promising direction, but limited samples in each mini-batch can not support effective dense attention to encode informative representations. Facing this bottleneck, (1) we start by assigning each node a token list that is sampled by personalized PageRank (PPR) and then apply standard multi-head self-attention only on this list to compute its node representations. This PPR tokenization method decouples model training from complex graph topological information and makes heavy feature engineering offline and independent, such that mini-batch training of graph transformers is possible by loading each node's token list in batches. We further prove this PPR tokenization is viable as a graph convolution network with a fixed polynomial filter and jumping knowledge. However, only using personalized PageRank may limit information carried by a token list, which could not support different graph inductive biases for model training. To this end, (2) we rewire graphs by introducing multiple types of virtual connections through structure- and content-based super nodes that enable PPR tokenization to encode local and global contexts, long-range interaction, and heterophilous information into each node's token list, and then formalize our Virtual Connection Ranking based Graph Transformer (VCR-Graphormer).
研究动机与目标
- 为解决图变换器中密集自注意力机制带来的二次方计算成本问题,该问题限制了其在大规模图上的可扩展性。
- 通过将图拓扑与模型训练解耦,利用节点特定的标记列表,实现图变换器的有效小批量训练。
- 通过引入编码全局、长距离和异质性归纳偏置的虚拟连接,提升基于 PPR 采样的标记列表的信息含量。
- 在保持或提升大规模图上模型性能的同时,将计算复杂度从 $O(n^3)$ 降低至 $O(m + k\log k)$。
- 提供一种可扩展、高效且有效的图变换器框架,兼容标准变换器架构和小批量训练。
提出的方法
- 每个节点通过个性化 PageRank (PPR) 采样被分配一个标记列表,该方法基于带重启的随机游走选择邻居,形成固定大小的相关节点列表。
- 自注意力仅在每个节点的标记列表内部应用,将每节点的计算成本从 $O(n^2)$ 降低至 $O(k^2)$,其中 $k \ll n$。
- 通过基于图结构和节点特征创建超节点,引入虚拟连接,然后在 PPR 采样前对图进行重连。
- 虚拟连接的设计旨在保留局部、全局、长距离和异质性信息,通过多样化的归纳偏置丰富标记列表。
- 将基于 PPR 的标记化形式化为具有跳跃知识的固定多项式滤波器,将其与图卷积网络建立联系。
- 整个流程实现并行化,PPR 计算在多个工作节点间分发,在足够并行度下实现每节点 $O(k\log k)$ 的复杂度。
实验结果
研究问题
- RQ1基于个性化 PageRank 的标记化是否能够通过将拓扑与模型训练解耦,实现图变换器的有效小批量训练?
- RQ2通过超节点引入的虚拟连接是否能够增强基于 PPR 的标记列表的表征能力,以捕捉长距离和异质性依赖关系?
- RQ3所提出的 VCR-Graphormer 是否在大规模图基准测试中实现了 SOTA 性能,同时保持低计算复杂度?
- RQ4与依赖特征分解或全局自注意力的现有方法相比,VCR-Graphormer 的计算效率如何?
- RQ5基于 PPR 的标记化能否与具有固定多项式滤波器和跳跃知识的图卷积网络建立形式化联系?
主要发现
- 在大规模异质性 arXiv-year 数据集上,VCR-Graphormer 达到了 54.15% ± 0.09 的节点分类准确率,优于或匹配了 GloGNN++ 和 LINKX 等 SOTA 方法。
- 在同一数据集上,VCR-Graphormer 在小批量训练下仍保持强劲性能,准确率达到 54.15% ± 0.09,与 LINKX 和 GloGNN++ 相当。
- 该方法将计算复杂度从 NAGphormer 等方法的 $O(n^3)$ 降低至 $O(m + k\log k)$,其中 $k$ 为每节点选定的邻居数。
- 在 Amazon2M 数据集上,基于超节点的 PPR 采样耗时约 409 秒(使用基于内容的超节点),显著快于基于特征分解的方法(约 682 秒)。
- 使用基于内容的虚拟节点将 PPR 采样时间减少至约 409 秒(因超节点更少),而基于结构的虚拟节点则耗时约 620 秒。
- 该模型在同质性和异质性图上均表现出鲁棒性,在 arXiv-year 等具有挑战性的数据集上实现了稳定的性能提升。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。