Long Range Graph Benchmark

Vijay Prakash Dwivedi, Ladislav Rampášek, Mikhail Galkin, Ali Parviz, Guy Wolf, Anh Tuan Luu, Dominique Beaini

In the domain of Graph Neural Networks (GNNs), the dominant paradigm is Message Passing (MP). In this framework, a node updates its state by aggregating information from its immediate, 1-hop neighbors. While highly effective for capturing local structural patterns, this approach struggles when a task requires understanding interactions between distant nodes—a concept known as Long-Range Interactions (LRI).

To address this critical gap, researchers have introduced the Long Range Graph Benchmark (LRGB), a suite of five datasets specifically designed to evaluate how well graph models capture global information.

The "Oversquashing" Problem and Local Bias

Standard MP-GNNs operate much like a game of telephone. To transmit information across a 10-hop distance, the network requires 10 message-passing layers. However, as layers increase, information from distant nodes becomes compressed and lost, a phenomenon known as oversquashing.

Historically, the graph learning community has relied on benchmarks (such as ZINC or OGB) that are heavily biased toward local information. On these datasets, models can achieve state-of-the-art performance by simply analyzing a node’s immediate vicinity. This local bias has masked the limitations of traditional GNNs and obscured the potential benefits of Graph Transformers, which utilize all-to-all attention to process the entire graph simultaneously. LRGB provides the necessary yardstick to measure true long-range reasoning capabilities.

The LRGB Datasets

The benchmark comprises five datasets across computer vision and chemistry, chosen based on graph size, the global nature of the task, and the necessity of long-range structural reasoning.

Computer Vision: Superpixel Graphs

  • PascalVOC-SP & COCO-SP: In these tasks, images are converted into "superpixel" graphs (averaging around 480 nodes). The objective is node classification for semantic segmentation. Because objects within images often span large areas, a model must connect distant superpixels to correctly identify the full object context.
Superpixel graph generation process showing the original image, SLIC superpixels, region adjacency graph overlay, and the final graph structure.

Chemistry & Quantum Mechanics

  • PCQM-Contact: This is a link prediction task. Given a 2D molecular graph, the model must predict which atoms will be physically close to each other in 3D space. This inherently requires understanding the complex, global folding of the molecule, rather than just its local bonds.
A molecular graph illustrating a long-range interaction, where atoms distant in the 2D graph structure are physically close in 3D space.
  • Peptides-func & Peptides-struct: These datasets involve long chains of amino acids (peptides). The tasks are to classify the peptide's function or predict its 3D structural properties. The large diameters of these molecular graphs make them ideal stress tests for LRI capabilities.

Key Findings: Transformers vs. Message Passing

The LRGB paper benchmarks standard local MP-GNNs (like GCN, GINE, and GatedGCN) against Graph Transformers (like SAN and Transformer+LapPE). The results highlight a significant shift in model performance when LRI is required:

  • Transformers Dominate: On datasets like Peptides-func, Graph Transformers significantly outperformed the best local GNNs. For instance, SAN achieved a Test AP of 0.6439 compared to 0.5930 for a standard GCN.
  • Superior 3D Understanding: In the PCQM-Contact link prediction task, Transformer models were vastly superior at identifying contact between distant atoms, demonstrating a better grasp of 3D folding dynamics.
  • The Failure of Shallow Models: While shallow GNNs (e.g., 2-layer models) perform adequately on older, local-heavy benchmarks, they fail entirely on LRGB tasks because their receptive fields cannot span the necessary distances.
  • Positional Encodings Are Insufficient: Simply augmenting a local GNN with global coordinates (like Laplacian Positional Encodings) provides a minor boost, but it does not replace the architectural need for a mechanism that directly routes information across the graph.

Future Directions

The primary limitation of the Graph Transformer approach is scalability. Standard all-to-all attention mechanisms have a computational complexity of $O(N^2)$, where $N$ is the number of nodes. For graphs with thousands of nodes, this becomes prohibitively slow and memory-intensive.

The introduction of LRGB paves the way for developing Linear Transformers for graphs—architectures capable of capturing long-range dependencies with $O(N)$ complexity. By providing a rigorous testbed for LRI, LRGB is set to drive the next generation of global graph representation learning.

Summary updated

BibTeX
@inproceedings{dwivedi2022long,
  author = {Vijay Prakash Dwivedi and Ladislav Rampášek and Mikhail Galkin and Ali Parviz and Guy Wolf and Anh Tuan Luu and Dominique Beaini},
  title = {{Long Range Graph Benchmark}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=in7XC5RcjEn},
}
Figure