VCR-Graphormer: A Mini-batch Graph Transformer via Virtual Connections

Dongqi Fu, Zhigang Hua, Yan Xie, Jin Fang, Si Zhang +5 more
3/24/2024
cs.LG

No official code found. Best implementation: DongqiFu/VCR-Graphormer (14 stars, last commit 2024-05-09).

Abstract

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).

View on arXivView PDF

Code Implementations(1)

VCR-Graphormer: A Mini-batch Graph Transformer via Virtual Connections, ICLR 2024

144PythonMar 14, 20242 years ago
attention-mechanismgraph-neural-networkgraph-transformerneural-networktransformer

Similar Papers

Cite this paper

@article{fu2024vcrgraphormer,
  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},
  url    = {http://arxiv.org/abs/2403.16030v1},
  journal = {ICLR 2024 2024}
}

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/2403.16030.svg)](https://codeofpaper.com/paper/2403.16030)

Discussion