cs.LGSep 30, 2026

STCFormer: Adaptive Spatio-Temporal Modeling with Dynamic Cluster Transformer for Station-based Weather Forecasting

Authors: Rongwen Li, Haixin Xie, Mingyang Wang, Hongwu Liu, Kun Fang, Changjian Chen, Zhuo Tang, Kenli Li

Organizations: Hunan University · China Meteorological Administration · Hunan Provincial Meteorological Bureau

Abstract

Station-based weather forecasting supports daily life and economic activity, yet accurate forecasts require modeling complex spatial dependencies among stations. Recent clustering-based selective modeling offers a promising alternative to dense inter-station interactions. However, a grouping shared across an observation window may obscure local changes in station relationships, while intra-cluster interactions alone may miss important global context. The theoretical advantages of selective interactions over dense connectivity also remain insufficiently understood. We therefore propose STCFormer, an adaptive spatio-temporal Transformer that dynamically groups stations according to their local evolution within each temporal patch. Its Cluster-Guided Attention Block combines fine-grained local attention within clusters and global attention over regional state summaries, allowing each station to access information beyond its own cluster. We further show that a derived Lipschitz upper bound for cluster-conditioned local attention is no larger than its fully connected counterpart, explaining a potential robustness benefit and motivating the design of InfoLoss. Experiments on three real-world weather datasets spanning eight temperature and wind forecasting tasks show that STCFormer achieves the lowest 24-hour mean squared error on all eight tasks and ranks first or second in 47 of 48 comparisons across metrics and forecasting horizons. Ablations and case studies further confirm the benefits of locally adaptive grouping and complementary local-global interactions. Our code can be obtained at https://github.com/hnu-vis/STCFormer.

Figures & tables

Appendix figures & tables20 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. AdaST: Adaptive Coupling for Spatial-Temporal Forecasting

    Sep 28, 2026Zhenyu Lei, Chenghao Liu, Yushun Dong +2Spatio-Temporal ForecastingTemporal Dynamics

  2. ADMFormer: An Adaptive-Decomposition Transformer with Time-Varying Masked Spatial Attention for Traffic Forecasting

    May 25, 2026Ruiwen Gu, Qitai Tan, Yahao Liu +1Accurate Traffic ForecastingSpatial Attention

  3. M2^2Weather: A Benchmark for Joint Multi-Station and Multi-Variable Weather Forecasting

    Sep 30, 2026Rongwen Li, Xiao Wang, Mingyang Wang +4Weather PredictionSpatio-Temporal Forecasting