
NAGphormer
Graphs and geometry46 ops2.5M params
A graph transformer that classifies a node from a PageRank-sampled token list enriched by virtual super nodes.
Graphs and geometry · 46 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
VCR-Graphormer, the Virtual Connection Ranking based Graph Transformer, is a graph transformer built for mini-batch training. The paper starts from the dense attention that graph transformers conventionally run over every pair of nodes, whose quadratic cost it calls unaffordable for large-scale graph data. Its answer is to assign each node a token list sampled by personalized PageRank (PPR) and to apply standard multi-head self-attention only on that list.
The token list has four components. The first is the target node's own input feature, and the second aggregates neighbors' features over random walk steps to capture local topology. For the third, the graph is partitioned into clusters and each cluster gets a super node connected to every node in it. For the fourth, a super node is assigned to each kind of label and connected to every node that shares the label. Nodes ranked by PPR on these rewired graphs bring long-range interaction and heterophilous information into the list.
The stacked list is the input to transformer layers made of layer norm, multi-head self-attention and a feedforward network. The paper gives the complexity of VCR-Graphormer as O(m + klogk), against the cubic complexity NAGphormer incurs from eigendecomposition.
Key idea. The paper builds a mini-batch graph transformer by sampling each node's token list with personalized PageRank on a graph rewired with structure- and content-based super nodes.
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
@misc{fu2024vcrgraphormerminibatchgraphtransformer,
title={VCR-Graphormer: A Mini-batch Graph Transformer via Virtual Connections},
author={Dongqi Fu and Zhigang Hua and Yan Xie and Jin Fang and Si Zhang and Kaan Sancak and Hao Wu and Andrey Malevich and Jingrui He and Bo Long},
year={2024},
eprint={2403.16030},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/2403.16030},
}