Skip to main content
QUICK REVIEW

[论文解读] Polynormer: Polynomial-Expressive Graph Transformer in Linear Time

Chenhui Deng, Zichao Yue|arXiv (Cornell University)|Mar 2, 2024
Neural Networks and ApplicationsComputer Science被引用 5
一句话总结

Polynormer 引入了具多项式表达能力的图变换器,具线性时间的本地到全局注意力,在不使用密集注意力的情况下实现高表达能力,并在同质性与异质性图上均超越基线。

ABSTRACT

Graph transformers (GTs) have emerged as a promising architecture that is theoretically more expressive than message-passing graph neural networks (GNNs). However, typical GT models have at least quadratic complexity and thus cannot scale to large graphs. While there are several linear GTs recently proposed, they still lag behind GNN counterparts on several popular graph datasets, which poses a critical concern on their practical expressivity. To balance the trade-off between expressivity and scalability of GTs, we propose Polynormer, a polynomial-expressive GT model with linear complexity. Polynormer is built upon a novel base model that learns a high-degree polynomial on input features. To enable the base model permutation equivariant, we integrate it with graph topology and node features separately, resulting in local and global equivariant attention models. Consequently, Polynormer adopts a linear local-to-global attention scheme to learn high-degree equivariant polynomials whose coefficients are controlled by attention scores. Polynormer has been evaluated on $13$ homophilic and heterophilic datasets, including large graphs with millions of nodes. Our extensive experiment results show that Polynormer outperforms state-of-the-art GNN and GT baselines on most datasets, even without the use of nonlinear activation functions.

研究动机与目标

  • 动机:需要可扩展且具表达力的图变换器,超越传统GNN的表达能力。
  • 提出一种多项式表达的GT,使节点特征产生高阶多项式映射。
  • 设计置换等变的局部和全局注意力机制,以实现线性时间复杂度。
  • 证明在同质性与异质性设置下,对拥有数百万节点的图具有可扩展性。
  • 在13个数据集和大规模图上,广泛评估 Polynormer 相对于 GNN 和 GT 基线的表现。

提出的方法

  • 定义一个基础多项式表达模型,使得每层计算 X^{(l)} = (W^{(l)} X^{(l-1)}) ⊙ (X^{(l-1)} + B^{(l)}),以实现 2^L 的多项式表达能力。
  • 通过将 B 替换为节点共享偏置,并使用图拓扑 A 或线性化的全局注意力核,推导出两个等变注意力模块(局部和全局)。
  • 引入一种本地到全局的注意力架构,先有稀疏邻接矩阵 A 的局部注意力模块,随后是带核化形式的线性时间全局注意力模块。
  • 确保线性时间复杂度:局部注意力为 O(md + nd^2),全局注意力为 O(nd^2),通过核技巧实现。
  • 可选启用 ReLU 激活(Polynormer-r),在保留多项式表达核心的同时进一步提升性能。
  • 提供实现指南以及与 WL 表达性的理论联系。

实验结果

研究问题

  • RQ1图变换器在保持线性时间复杂度的同时,学习高阶多项式是否能在图上实现表达性?
  • RQ2在将图拓扑和节点特征整合到多项式系数中时,如何确保置换等变性?
  • RQ3本地到全局注意力方案是否在提升可扩展性的同时优于以往的局部-全局设计?
  • RQ4与最先进基线相比,多项式表达的变换器在同质性和异质性图上的性能提升如何?

主要发现

  • Polynormer 通过一个 L 层的基础模型实现了 2^L 的多项式表达能力。
  • 等变局部注意力使用 A 作为稀疏权重;等变全局注意力使用核化、线性时间的 softmax 注意力形式。
  • 局部到全局的 Polynormer 实现线性复杂度,并在大多数数据集上优于最先进的 GNNs 和 GTs。
  • Polynormer-r(含 ReLU)在包括大规模图在内的许多数据集上进一步提高了准确性。
  • 在13个数据集(包括数百万节点的大规模图)上的广泛实验在同质性和异质性图上均表现出色。
  • 该架构避免密集注意力和高昂的 PE/SE 开销,同时实现高阶多项式表达能力。

阅读本论文

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

在 Nubint 中阅读本论文

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