All models

VCR-Graphormer

A graph transformer that classifies a node from a PageRank-sampled token list enriched by virtual super nodes.

Graphs and geometry · 46 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (22 KB)

Open in a new tab

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.

At a glance

Parameters
2.5M
Operations
46
Framework
PyTorch
Recurrent
No
Published
ICLR 2024
Cited by
4 (as of 28 October 2026)
Authors
Dongqi Fu, Zhigang Hua, Yan Xie and others
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m21257
Graph hash
503dd7a7199c75efaf3c8e02990d4857b808061b7b7a0600bbcee11cc6a6a857
Skeleton hash
4fd7ed0686d8605a59623b50d78347f8586bc477c5a5d8be052b6f4d7158936d
Architecture hash
c247932c37765fe406840bc954a8575d06aba65f92966eec89d0a745f2f90a67
Diagram SHA-256
7a86049adb44f002f271c4e9de4835ef0630f40c9f5c12650dac25af5518eb99
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

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.

  • vcr-graphormer
  • virtual connection ranking based graph transformer
  • mini-batch graph transformer
  • graph transformer
  • node classification
  • personalized pagerank
  • ppr tokenization
  • virtual connections
  • super nodes
  • heterophily

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@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}, 
}