HyperAIHyperAI

Command Palette

Search for a command to run...

3 months ago

Efficient Large-Scale Traffic Forecasting with Transformers: A Spatial Data Management Perspective

Yuchen Fang Yuxuan Liang Bo Hui Zezhi Shao Liwei Deng Xu Liu Xinke Jiang Kai Zheng

Efficient Large-Scale Traffic Forecasting with Transformers: A Spatial Data Management Perspective

Abstract

Road traffic forecasting is crucial in real-world intelligent transportation scenarios like traffic dispatching and path planning in city management and personal traveling. Spatio-temporal graph neural networks (STGNNs) stand out as the mainstream solution in this task. Nevertheless, the quadratic complexity of remarkable dynamic spatial modeling-based STGNNs has become the bottleneck over large-scale traffic data. From the spatial data management perspective, we present a novel Transformer framework called PatchSTG to efficiently and dynamically model spatial dependencies for large-scale traffic forecasting with interpretability and fidelity. Specifically, we design a novel irregular spatial patching to reduce the number of points involved in the dynamic calculation of Transformer. The irregular spatial patching first utilizes the leaf K-dimensional tree (KDTree) to recursively partition irregularly distributed traffic points into leaf nodes with a small capacity, and then merges leaf nodes belonging to the same subtree into occupancy-equaled and non-overlapped patches through padding and backtracking. Based on the patched data, depth and breadth attention are used interchangeably in the encoder to dynamically learn local and global spatial knowledge from points in a patch and points with the same index of patches. Experimental results on four real world large-scale traffic datasets show that our PatchSTG achieves train speed and memory utilization improvements up to $10\times$ and $4\times$ with the state-of-the-art performance.

Code Repositories

lmissher/stwave
pytorch
Mentioned in GitHub
lmissher/patchstg
Official
pytorch
Mentioned in GitHub
lmissher/stgnn
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
traffic-prediction-on-largestPatchSTG
CA MAE: 17.35
GBA MAE: 19.50
GLA MAE: 18.96
SD MAE: 16.90

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp
Efficient Large-Scale Traffic Forecasting with Transformers: A Spatial Data Management Perspective | Papers | HyperAI