Long Range Graph Benchmark
- Publication
- NeurIPS Datasets and Benchmarks 2022Conference
- First submitted to arXiv
- arXiv:2206.08164
Cite this paper · BibTeX
The citation identifies the linked source version. It cites the original paper and its authors.
@misc{graphlearninglrgb2022,
title = {{Long Range Graph Benchmark}},
author = {Vijay Prakash Dwivedi and Ladislav Rampášek and Mikhail Galkin and Ali Parviz and Guy Wolf and Anh Tuan Luu and Dominique Beaini},
year = {2022},
eprint = {2206.08164},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/2206.08164}
}
In 2022, Graph Transformer papers arrive one after another with similar selling points: message passing GNNs see only one-hop neighbors per layer and struggle with distant information, while Transformers connect every node to all others and establish long-range relationships at once.
The usual benchmarks make this hard to prove. Molecular datasets such as ZINC and ogbg-mol* average only twenty-odd nodes per graph. Message passing GNNs with positional encodings often match or beat Transformers there, and local models still dominate many top leaderboard positions.
Vijay Prakash Dwivedi, Ladislav Rampášek, Mikhail Galkin and colleagues at Mila, Nanyang Technological University and Valence Discovery think the questions are the problem. Testing long-range interaction requires an exam that genuinely needs distant information to answer.
Their exam is LRGB, the Long Range Graph Benchmark.
Defining the Problem
What makes a dataset require long-range information? The authors propose three characteristics.
Graph size. A message passing GNN needs at least layers for distance- interactions. Its receptive field grows exponentially with depth, causing over-squashing. But with only twenty-odd nodes, is naturally small, bottlenecks are less obvious and local GNNs can learn well. Graphs must be large enough to expose differences.
Task properties. Size alone is insufficient: the task must depend on distant information. The authors give two examples. ZINC depends on counts of local substructures, with research finding that length-7 substructures suffice and longer ones add nothing. MalNet-Tiny can have thousands of nodes per graph, yet fully connected modules bring little improvement.
Contribution of global structure. If global positional encodings help, or the target itself concerns distances—such as molecular 2D or 3D structural properties—global information is needed.
Solving the Problem
Five Datasets
Using these characteristics, the authors create five datasets from computer vision and chemistry.
PascalVOC-SP and COCO-SP come from image semantic segmentation. SLIC divides images into superpixels, each becoming a node; adjacent superpixels connect in a rag-boundary graph. The task predicts each node's semantic class.

Earlier superpixel datasets, MNIST and CIFAR10, have at most 75 and 150 nodes per graph. Here the limit is 500, with mean shortest-path length 10.74 and diameter 27.62, compared with MNIST's 3.03 and 6.03 and CIFAR10's 3.97 and 8.46.
PCQM-Contact is molecular link prediction: predict atom pairs more than 5 graph hops apart but less than 3.5 Å apart in 3D. The 5-hop threshold excludes already-nearby graph pairs, requiring the model to learn properties related to 3D structure.
Peptides-func and Peptides-struct share 15,535 peptide molecules. Peptides are short amino-acid chains, shorter than proteins but much larger than typical drug-like small molecules. Nodes are heavy atoms, edges chemical bonds. Peptides-func is multilabel classification into 10 functions, such as antibacterial and antiviral activity. Peptides-struct is multilabel regression of properties computed from 3D structure, including inertia, length and sphericity. Inputs contain no 2D or 3D coordinates.
| Dataset | Graphs | Mean nodes | Mean shortest path | Mean diameter | Task |
|---|---|---|---|---|---|
| PascalVOC-SP | 11,355 | 479.40 | 10.74 | 27.62 | Node classification |
| COCO-SP | 123,286 | 476.88 | 10.66 | 27.39 | Node classification |
| PCQM-Contact | 529,434 | 30.14 | 4.63 | 9.86 | Link prediction |
| Peptides-func | 15,535 | 150.94 | 20.89 | 56.99 | Graph classification |
| Peptides-struct | 15,535 | 150.94 | 20.89 | 56.99 | Graph regression |
Peptide diameter averages nearly 57, around six times PCQM-Contact's, while average degree is only about 2: long chains along which information must travel step by step.
Baseline Models
The authors choose two families: message passing GCN, GCNII, GINE and GatedGCN, and fully connected Transformers—a Transformer with Laplacian encodings and an improved SAN. All have roughly 500,000 parameters and use 4 seeds per experiment. On peptides, message passing models have 5 layers and Transformers 4.
Discussion
Peptide Datasets
| Model | Peptides-func AP ↑ | Peptides-struct MAE ↓ |
|---|---|---|
| GCN | 0.5930 | 0.3496 |
| GCNII | 0.5543 | 0.3471 |
| GINE | 0.5498 | 0.3547 |
| GatedGCN | 0.5864 | 0.3420 |
| GatedGCN + RWSE | 0.6069 | 0.3357 |
| Transformer + LapPE | 0.6326 | 0.2529 |
| SAN + LapPE | 0.6384 | 0.2683 |
| SAN + RWSE | 0.6439 | 0.2545 |
Transformer models lead clearly on both peptide datasets, especially Peptides-struct, reducing MAE from around 0.34 to around 0.25.
Superpixel Datasets
On PascalVOC-SP, 8-layer message passing models score F1 0.1268 for GCN, 0.1265 for GINE and 0.2873 for GatedGCN. Transformer + LapPE reaches 0.2694 and SAN + LapPE 0.3230. On COCO-SP, Transformer and GatedGCN are close; SAN fails to converge within the 60-hour A100 limit.
The Authors' Observations
The authors draw four observations:
- Simple local GNNs perform poorly. GCN and GINE struggle everywhere except Peptides-func, consistent with the over-squashing paper's finding that GCN and GIN suffer more from bottlenecks than attention-based GNNs.
- Very shallow GNNs cannot learn enough. Two message passing layers clearly underfit, unlike classic Cora and Citeseer benchmarks where shallow GCNs outperform deep ones.
- Fully connected Transformers perform best, especially on peptides. The authors attribute this to long-range tasks, nonlocal information and graph size.
- Scale is a Transformer weakness. SAN's failure to finish on COCO-SP exposes scalability problems on larger graphs.
The same group's GraphGPS paper uses this long-range benchmark and wins on four of the five datasets.
Reexamining the Benchmark Itself
A year later, Tönshoff et al. at RWTH Aachen rerun the benchmark. Without changing the models, basic GNN hyperparameter searches and visual-feature normalization greatly reduce the gap, erasing it on peptides. They also find that PCQM-Contact evaluation code differs from the paper's definition.
LRGB's November 2023 revision adds a passage directing readers to this reassessment.
Conclusion
LRGB asks what makes a long-range dataset, using graph size, task properties and global structure's contribution to build five datasets from superpixel images and peptide molecules. In the authors' baseline experiments, local message passing GNNs trail fully connected Transformers, most clearly on peptides.
This exam becomes a standard testing ground for Graph Transformers. Read its tables alongside Tönshoff et al.'s reassessment: the same GCN's Peptides-func scores differ by nearly 0.09 across the two.