HyperST-Net: Hypernetworks for Spatio-Temporal Forecasting

Zheyi Pan, Yuxuan Liang, Junbo Zhang, Xiuwen Yi, Yong Yu, Yu ZhengarXiv 2018

Abstract

Spatio-temporal (ST) data, which represent multiple time series data corresponding to different spatial locations, are ubiquitous in real-world dynamic systems, such as air quality readings. Forecasting over ST data is of great importance but challenging as it is affected by many complex factors, including spatial characteristics, temporal characteristics and the intrinsic causality between them. In this paper, we propose a general framework (HyperST-Net) based on hypernetworks for deep ST models. More specifically, it consists of three major modules: a spatial module, a temporal module and a deduction module. Among them, the deduction module derives the parameter weights of the temporal module from the spatial characteristics, which are extracted by the spatial module. Then, we design a general form of HyperST layer as well as different forms for several basic layers in neural networks, including the dense layer (HyperST-Dense) and the convolutional layer (HyperST-Conv). Experiments on three types of real-world tasks demonstrate that the predictive models integrated with our framework achieve significant improvements, and outperform the state-of-the-art baselines as well.

Introduction

Spatio-temporal (ST) forecasting—predicting variables like PM2.5 levels or traffic congestion—is difficult because it involves two distinct types of information: static spatial attributes (e.g., POIs, road density) and dynamic temporal information (e.g., historical sensor readings, weather).

Most existing models treat these as separate inputs and "fuse" them via simple concatenation. However, this ignores the intrinsic causality between a location's identity and its behavior. For example, a region's spatial attributes (like office buildings) define it as a "business area," which in turn causes specific temporal patterns, such as high morning inflow. Standard models often fail to capture this "identity-driven" behavior effectively.

Different spatial areas exhibit distinct temporal flow trends, illustrating the intrinsic causality between spatial identity and temporal patterns.

The HyperST-Net Framework

To address these challenges, we propose HyperST-Net, a framework that uses hypernetworks to model the relationship between space and time. Instead of just adding spatial features as inputs, HyperST-Net uses them to dynamically generate the weights of the forecasting network.

The HyperST-Net architecture: Spatial attributes are used to deduce the temporal characteristics (weights) of the prediction model.

The framework consists of three core modules:

  1. Spatial Module: Extracts characteristics from spatial attributes (e.g., POIs and road networks) and embeds them into a low-dimensional vector.
  2. Deduction Module: The bridge of the system. It takes the spatial characteristics and "deduces" (generates) the parameter weights for the temporal module.
  3. Temporal Module: The forecasting engine (e.g., LSTM or CNN). Its weights are customized for each specific location by the Deduction Module, allowing the model to learn that "physics" works differently in a residential area than in a commercial one.

Efficient Weight Generation

Generating entire weight matrices for every location would lead to a parameter explosion. To maintain efficiency, we introduce HyperST-Dense and HyperST-Conv layers. Instead of generating every weight from scratch, the hypernetwork generates a scaling vector ($z$) used to scale the rows of a shared, learnable weight matrix ($W'$). This "relaxed weight sharing" ensures that locations with similar spatial attributes receive similar generated weights while remaining memory-efficient.

Experimental Results

We evaluated HyperST-Net on three real-world tasks: air quality prediction, traffic prediction (METR-LA), and human flow prediction (TaxiBJ).

  • Performance Gains: Integrating HyperST-Net into a standard LSTM improved Mean Absolute Error (MAE) by 16.6% in air quality forecasting and 17.4% in traffic prediction.
  • State-of-the-Art Comparison: In air quality tasks, HyperST-LSTM-D outperformed complex, hand-crafted models like GeoMAN. In traffic forecasting on the METR-LA dataset, the HyperST-DCGRU variant achieved the lowest MAE across multiple time horizons, outperforming the previous SOTA, DCRNN.
  • Embedding Logic: Visualization via PCA confirmed that HyperST-Net learns a smoother embedding space where locations with similar spatial profiles naturally exhibit similar predicted temporal patterns.

Conclusion

HyperST-Net provides spatio-temporal models with a "sense of place" by dynamically generating network weights based on spatial characteristics. This approach effectively captures the intrinsic causality between a location's physical attributes and its dynamic patterns. Future work includes extending this logic to more complex architectures like Graph Attention Networks (GATs) and accounting for long-term urban evolution.

Summary updated

BibTeX
@misc{pan2018hyperst,
  author = {Zheyi Pan and Yuxuan Liang and Junbo Zhang and Xiuwen Yi and Yong Yu and Yu Zheng},
  title = {{HyperST-Net: Hypernetworks for Spatio-Temporal Forecasting}},
  year = {2018},
  eprint = {1809.10889},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1809.10889},
}
Figure