
VCR-Graphormer
Graphs and geometry46 ops2.5M params
A graph Transformer that turns each node's multi-hop neighborhood into a token sequence for node classification.
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.
NAGphormer, short for Neighborhood Aggregation Graph Transformer, is a graph Transformer for node classification in large graphs. The paper observes that existing graph Transformers treat nodes as independent tokens and build a single long sequence of all node tokens, which is hard to scale because self-attention is quadratic in the number of nodes.
NAGphormer instead treats each node as a sequence of tokens of its own. For each node, a module called Hop2Token aggregates the neighborhood features from different hops into different representations, which become the token vectors of one input. Because of this, the model can be trained in mini-batches and can scale to large graphs.
The paper also shows mathematically that, compared with the decoupled Graph Convolutional Network, NAGphormer could learn more informative node representations from multi-hop neighborhoods. On benchmark datasets from small to large, it reports that NAGphormer consistently outperforms existing graph Transformers and mainstream GNNs. The paper was accepted by ICLR 2023.
Key idea. NAGphormer treats each node as a sequence of tokens built by its Hop2Token module, so a graph Transformer can be trained in mini-batches on large graphs.
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
@misc{chen2023nagphormertokenizedgraphtransformer,
title={NAGphormer: A Tokenized Graph Transformer for Node Classification in Large Graphs},
author={Jinsong Chen and Kaiyuan Gao and Gaichao Li and Kun He},
year={2023},
eprint={2206.04910},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/2206.04910},
}