NodeFormer: A Scalable Graph Structure Learning Transformer for Node Classification

Qitian Wu, Wentao Zhao, Zenan Li, David Wipf, Junchi Yan
6/14/2023
cs.LGcs.AI

No official code found. Best implementation: qitianwu/NodeFormer (312 stars, PyTorch, last commit 2024-03-04).

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 \textsc{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.

View on arXivView PDF

Code Implementations(1)

qitianwu/NodeFormerCommunity100%
PyTorch

The official implementation of NeurIPS22 spotlight paper "NodeFormer: A Scalable Graph Structure Learning Transformer for Node Classification"

31229Shell, PythonNov 4, 20222 years ago
graph-neural-networksgraph-structure-learninggraph-transformerimage-classificationlarge-graph+6 more

Similar Papers

Cite this paper

@article{wu2023nodeformer,
  title  = {NodeFormer: A Scalable Graph Structure Learning Transformer for Node Classification},
  author = {Qitian Wu and Wentao Zhao and Zenan Li and David Wipf and Junchi Yan},
  year   = {2023},
  eprint = {2306.08385},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2306.08385v1},
  journal = {NEURIPS 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2306.08385.svg)](https://codeofpaper.com/paper/2306.08385)

Discussion