Localised Adaptive Spatial-Temporal Graph Neural Network

Wenying Duan, Xiaoxi He, Zimu Zhou, Lothar Thiele, Hong Rao

Introduction

Spatial-temporal data—measurements captured across both space and time—is foundational to modern infrastructure, powering everything from traffic management systems to disease surveillance. Traditionally, this data is modeled using Graph Neural Networks (GNNs). The current state-of-the-art approach is the Adaptive Spatial-Temporal Graph Neural Network (ASTGNN). Unlike traditional GNNs that rely on a fixed physical map, ASTGNNs dynamically learn the underlying graph structure from the data itself.

However, this flexibility introduces a significant computational burden. By assuming a "complete" graph where every node can influence every other node, these models face a complexity bottleneck of $O(N^2)$. This research investigates a fundamental question: Do we truly need all these edges? The findings suggest a surprising reality: over 99.5% of spatial edges in these models are redundant during inference, though they remain critical during the training phase.

The Computational Bottleneck of Adaptive Graphs

In an ASTGNN, the model attempts to learn a dense adjacency matrix to capture hidden dependencies between nodes. While this allows the model to discover non-obvious relationships (e.g., how a traffic jam in one part of a city might affect a distant suburb), it leads to an explosion in parameters and computational requirements as the number of nodes ($N$) increases.

The authors propose "localisation" as a solution—pruning the vast majority of these learned edges to create a sparse, efficient model. The goal is to determine if these models can be simplified without sacrificing prediction accuracy.

Methodology: Adaptive Graph Sparsification (AGS)

To achieve this localisation, the researchers developed Adaptive Graph Sparsification (AGS). Unlike standard pruning techniques designed for static graphs, AGS is tailored for the adaptive matrices learned by ASTGNNs.

The AGS algorithm utilizes a differentiable approximation of $L_0$-regularization, specifically employing a "hard concrete distribution" to generate a mask. This mask functions as a series of binary gates that determine whether a specific edge should be retained or eliminated. The process is executed in three distinct stages:

  1. Pre-training: A standard, dense ASTGNN is trained to establish a baseline.
  2. Iterative Pruning: AGS is applied to progressively zero out the least significant edges based on their magnitude.
  3. Fine-tuning: The model is further trained with the fixed mask to stabilize and optimize the remaining connections.

Experimental Setup and Datasets

The efficacy of AGS was evaluated across nine real-world datasets representing three diverse domains:

  • Transportation: Traffic flow data from California (PeMSD3, PeMSD4, PeMSD7, and PeMSD8).
  • Blockchain: Ethereum token price predictions (Bytom, Decentraland, and Golem).
  • Biosurveillance: COVID-19 hospitalization counts in California and Texas.

The Redundancy of Space and the Training Paradox

The study revealed two profound insights into the nature of spatial-temporal modeling:

1. Spatial Redundancy

In many scenarios, the information provided by spatial neighbors is largely redundant, as it is already captured by a node's own temporal history. For many forecasting tasks, local temporal patterns are significantly more predictive than global spatial correlations. This suggests that the "graph" in GNNs may often be over-engineered for the task at hand.

2. The Training Paradox

Perhaps the most intriguing finding is what the authors call a "training paradox." While a model can function with 99.5% of its edges pruned, it cannot be trained from scratch using that same sparse architecture. The dense graph acts as a "scaffold" during the optimization process. It is essential for guiding the model toward an accurate solution, even if those connections are unnecessary for the final prediction. If the model is re-initialized with only the sparse edges, performance drops significantly.

Key Results

  • Extreme Sparsity: Across all datasets, models maintained baseline accuracy even with 99.5% of edges removed.
  • The "Graphless" Limit: In several cases, models were "fully localised" (100% sparsity), effectively operating as independent RNNs or Transformers for each node. Remarkably, this resulted in no deterioration in accuracy for the majority of datasets.
  • Efficiency Gains: Localisation led to dramatic reductions in inference overhead. For instance, on the PeMSD7 dataset, the AGCRN model achieved a 4.8x reduction in FLOPs (Floating Point Operations).
  • Superior Performance: Even at 99% sparsity, these localised models consistently outperformed complex, non-localised state-of-the-art architectures such as Z-GCNETs and STG-NCDE.
  • Regularization Benefits: In some instances, sparsification actually improved test accuracy. By removing the "noise" of weak or irrelevant spatial connections, the model became less prone to overfitting.

Limitations and Future Work

While AGS significantly optimizes inference, the training phase remains computationally expensive. Because the dense "scaffold" is required for the initial learning stages, the $O(N^2)$ complexity still poses a challenge for memory and compute during training.

Future research will focus on:

  1. Developing techniques to train sparse spatial-temporal models from scratch without performance loss.
  2. Scaling these findings to massive graphs with millions of nodes where dense training is currently impossible.
  3. Deploying these localised models on edge devices and distributed sensor networks where bandwidth and power are limited.

Summary updated

BibTeX
@inproceedings{duan2023localised,
  author = {Wenying Duan and Xiaoxi He and Zimu Zhou and Lothar Thiele and Hong Rao},
  title = {{Localised Adaptive Spatial-Temporal Graph Neural Network}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2023},
}
Figure