Towards Quantifying Long-Range Interactions in Graph Machine Learning: a Large Graph Dataset and a Measurement

Huidong Liang, Haitz Sáez de Ocáriz Borde, Baskaran Sripathmanathan, Michael M. Bronstein, Xiaowen Dong

In the world of Graph Machine Learning, "long-range dependencies"—the idea that a node’s state might depend on information from a neighbor dozens of hops away—are critical for complex reasoning. However, most standard benchmarks are "small-world" graphs (like social networks) where nodes are only a few steps apart. This makes it nearly impossible to tell if a model is actually capturing distant signals or just over-fitting to local clusters.

A new paper introduces City-Networks, a massive dataset and a principled measurement technique designed to fix this gap and rigorously evaluate long-range interactions.

The "Small-World" Trap

Most Graph Neural Networks (GNNs) rely on local message-passing, aggregating information from immediate neighbors. While Graph Transformers promise to capture global context, existing "long-range" benchmarks are often small and inductive (focused on molecules or super-pixels).

Meanwhile, common transductive datasets like Cora or ogbn-arxiv have small diameters; in these graphs, a 3-hop neighborhood might already cover a huge chunk of the entire network. This creates a trap where deep models don't actually perform better because the "long-range" signal simply isn't there, or it is easily inferred from local features.

Introducing City-Networks

To provide a true test of long-range dependencies, the researchers derived City-Networks from real-world OpenStreetMap data. The dataset features road networks from four major cities: Paris, Shanghai, Los Angeles, and London.

City-Networks: Paris, Shanghai, Los Angeles, and London

These graphs range from ~114k to ~569k nodes and have diameters between 121 and 404—an order of magnitude larger than traditional benchmarks like Cora (diameter 19). Because city junctions have low degrees (usually 3 or 4), this sparse, regular structure allows long-range signals to persist without being washed out by local noise.

Methodology: Forcing Models to Look Further

The researchers tackled the long-range problem from three distinct angles:

  1. The Labeling Strategy: To ensure the task requires long-range information, nodes are labeled based on local eccentricity (the maximum distance one must travel to reach any neighbor within a $k$-hop radius). Calculating this requires the model to understand the structural connectivity of a wide area.
  2. Jacobian-Based Measurement: They propose using the Jacobian of the model’s output with respect to its input features. By aggregating the $\ell_1$-norm of these Jacobians for all neighbors at exactly $h$ hops, they calculate a "per-hop influence" score. This reveals exactly how much a node 16 hops away affects the final prediction.
  3. Theoretical Grounding: The authors provide a spectral analysis linking over-smoothing to graph diameter. They prove that graphs with large diameters and low maximum degrees are naturally more resilient to over-smoothing, making them ideal for deep learning.

Key Insights and Results

  • The "Dilution" Effect: The authors argue that "total influence" (summing the impact of all $h$-hop neighbors) is a better metric than "mean influence." In a grid-like graph, averaging the influence dilutes the signal from a single important distant node to zero, even if it is critical for the task.
  • Depth Improves Performance: On traditional datasets, GNN performance usually tanks after a few layers due to over-smoothing. On City-Networks, models like GCN, GraphSAGE, and various Graph Transformers showed a clear upward trend in accuracy as depth increased from 2 to 16 layers. This confirms the dataset successfully provides a usable long-range signal.
  • Quantified Influence: Using their Jacobian metric, the authors showed that models on City-Networks have an effective range of 4.0 to 8.0 hops, whereas on Cora or ogbn-arxiv, the influence effectively dies out after just 1.3 to 2.8 hops.

Limitations and Future Work

While optimized, Jacobian-based analysis remains computationally heavy for very dense graphs. Furthermore, the measurement reflects what the model has learned, which might underestimate the task's true long-range nature if the model is poorly trained.

Currently, the labels use road length as a proxy for accessibility. Future iterations could incorporate complex urban features like traffic congestion, speed limits, or public transit layers to create even more challenging, real-world tasks.

Summary updated

BibTeX
@inproceedings{liang2026towards,
  author = {Huidong Liang and Haitz Sáez de Ocáriz Borde and Baskaran Sripathmanathan and Michael M. Bronstein and Xiaowen Dong},
  title = {{Towards Quantifying Long-Range Interactions in Graph Machine Learning: a Large Graph Dataset and a Measurement}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=fylMiUmg39},
}
Figure