ATMST: Efficient Spatiotemporal Forecasting via Pattern Learning and Agent Sparse Attention
Abstract
Spatiotemporal traffic forecasting is a cornerstone of intelligent transportation systems (ITSs), increasingly relying on the massive data streams generated by urban Internet of Things (IoT) sensor networks. Despite their predictive success, traditional Transformer-based approaches face two critical impediments when processing high-volume data from large-scale IoT networks: the quadratic computational complexity of self-attention, which severely hinders algorithmic scalability, and the neglect of intrinsic spatiotemporal heterogeneity among diverse traffic sensing nodes. To bridge these gaps, we propose ATMST, a novel framework designed for efficient and accurate traffic forecasting tailored for cloud-centric IoT systems. Our contributions are twofold. First, we introduce a pattern learning paradigm equipped with a decoupled gating mechanism. This module explicitly disentangles traffic series into common global trends and private local features, subsequently utilizing clustering to generate semantic-aware node labels that capture the latent heterogeneity of urban sensors. Second, we propose an efficient spatial agent attention mechanism. Instead of costly all-to-all interactions, this module employs a set of learnable latent agents to aggregate and distribute spatial information across the network. This architecture not only facilitates semantic-guided routing based on the learned patterns but also significantly reduces the spatial complexity from quadratic to near-linear, lowering inference latency for massive sensor graphs. Our proposed ATMST model achieves state-of-the-art (SOTA) predictive performance across small-, medium-, and large-scale datasets, demonstrating its algorithmic robustness and scalability for processing massive sensor data in urban IoT frameworks.