[Paper Review] VCR-Graphormer: A Mini-batch Graph Transformer via Virtual Connections
VCR-Graphormer proposes a mini-batch graph transformer that enables efficient training on large-scale graphs by using personalized PageRank to sample informative node neighborhoods as token lists, then applying self-attention only within each list. By introducing virtual connections via structure- and content-based super nodes, it captures long-range and heterophilous dependencies, achieving state-of-the-art performance with $O(m + k\log k)$ complexity, significantly lower than quadratic methods.
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).
Motivation & Objective
- To address the quadratic computational cost of dense attention in graph transformers, which limits scalability to large graphs.
- To enable effective mini-batch training of graph transformers by decoupling graph topology from model training through node-specific token lists.
- To enhance the information content of token lists beyond basic PPR sampling by introducing virtual connections that encode global, long-range, and heterophilous graph inductive biases.
- To reduce computational complexity from $O(n^3)$ to $O(m + k\log k)$ while maintaining or improving model performance on large-scale graphs.
- To provide a scalable, efficient, and effective graph transformer framework compatible with standard transformer architectures and mini-batch training.
Proposed method
- Each node is assigned a token list via personalized PageRank (PPR) sampling, which selects neighbors based on random walk with restarts, forming a fixed-size list of relevant nodes.
- Self-attention is applied only within each node’s token list, reducing computational cost from $O(n^2)$ to $O(k^2)$ per node, where $k \ll n$.
- Virtual connections are introduced by creating super nodes based on graph structure and node features, which are then used to rewire the graph before PPR sampling.
- The virtual connections are designed to preserve local, global, long-range, and heterophilous information, enriching the token lists with diverse inductive biases.
- The method formalizes the PPR-based tokenization as a fixed polynomial filter with jumping knowledge, linking it to graph convolutional networks.
- The entire pipeline is parallelized, with PPR computation distributed across workers, achieving $O(k\log k)$ complexity per node under sufficient parallelism.
Experimental results
Research questions
- RQ1Can personalized PageRank-based tokenization enable effective mini-batch training of graph transformers by decoupling topology from model training?
- RQ2Can virtual connections via super nodes enhance the representational capacity of PPR-based token lists to capture long-range and heterophilous dependencies?
- RQ3Does the proposed VCR-Graphormer achieve state-of-the-art performance on large-scale graph benchmarks while maintaining low computational complexity?
- RQ4How does the computational efficiency of VCR-Graphormer compare to existing methods that rely on eigendecomposition or global attention?
- RQ5Can the PPR-based tokenization be formally linked to graph convolutional networks with fixed polynomial filters and jumping knowledge?
Key findings
- VCR-Graphormer achieves a node classification accuracy of 54.15% ± 0.09 on the large-scale heterophilous arXiv-year dataset, outperforming or matching state-of-the-art methods like GloGNN++ and LINKX.
- On the same dataset, VCR-Graphormer maintains strong performance under mini-batch training, achieving 54.15% ± 0.09 accuracy, comparable to LINKX and GloGNN++.
- The method reduces computational complexity from $O(n^3)$ in methods like NAGphormer to $O(m + k\log k)$, with $k$ being the number of selected neighbors per node.
- On the Amazon2M dataset, VCR-Graphormer’s virtual node-based PPR sampling took ~409 seconds using content-based super nodes, significantly faster than eigendecomposition-based methods (~682 seconds).
- The use of content-based virtual nodes reduced PPR sampling time to ~409 seconds due to fewer super nodes, compared to ~620 seconds for structure-based virtual nodes.
- The model demonstrates robustness across homophilous and heterophilous graphs, with consistent performance gains on challenging datasets like arXiv-year.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.