MP3: Multi-Period Pattern Pre-training for Spatio-Temporal Forecasting

Lilan Peng, Yandi Liu, Qingren Yao, Chongshou Li, Tianrui LiarXiv 2026

TL;DR

Spatio-temporal forecasting models often stumble on "temporal mirages"—short-term data windows that look identical but lead to completely different futures. To fix this, the authors introduce MP3 (Multi-Period Pattern Pre-training), a plug-and-play plugin that extracts rich, multi-period temporal and spatial patterns from long-term historical data. By seamlessly integrating with existing Spatio-Temporal Graph Neural Networks (STGNNs), MP3 consistently boosts forecasting accuracy across multiple real-world datasets, reducing MAE by 4.7% on average.

What Problem Does This Paper Address?

Most state-of-the-art spatio-temporal graph neural networks (STGNNs) rely on short input windows (e.g., the past hour of traffic data) to predict the near future. The authors identify a fundamental flaw in this approach: temporal mirages. This occurs when two short-term data sequences look nearly identical but diverge sharply in the future (or vice versa).

The paper attributes this vulnerability to three main factors:

  1. Incomplete period observation: Short windows miss the broader periodic context (e.g., distinguishing the initial phase of a morning peak from its decline phase).
  2. Heterogeneous global spatial correlation: Similar local traffic dynamics can mean completely different things depending on the global context (e.g., a commercial district vs. a suburban scenic area).
  3. Cross-period superposition causality: Short-term fluctuations are jointly shaped by overlapping, unidirectional long-term cycles (e.g., weekly patterns dominating daily ones on weekends).

Simply increasing the input window size in standard STGNNs leads to exponential computational and memory costs, making it impractical for real-world deployment.

Methods

The authors propose MP3, a two-step pre-training framework designed to capture long-term periodic insights without bloating downstream model complexity:

  • Temporal Structure Transform: Uses a Fast Fourier Transform (FFT) to identify dominant frequencies and select the top-$k$ period lengths. It then reshapes the 1D time series into 2D tensors to explicitly separate intra-period variations (changes within a single cycle) and inter-period variations (changes across different cycles at the same phase).
  • Multi-Period Temporal Modeling: Employs decoupled edge convolutions (horizontal and vertical) to capture these intra- and inter-period dependencies separately.
  • Multi-Period Spatial Modeling: Addresses spatial scale challenges via a bottleneck projection for dimension reduction, sparse graph convolutions on dynamic sub-graphs, and a momentum global memory bank to retain global structural context during batch sampling.
  • Cross-Period Pattern Interaction: Uses a causality-enhanced Transformer. It orders period patterns from strongest to weakest and applies a Directed Acyclic Graph (DAG) causal mask to ensure information only flows from dominant patterns to weaker ones.
  • Downstream Integration: During forecasting, the pre-trained MP3 module is frozen. A gating mechanism adaptively fuses its long-term periodic features with the standard short-term inputs of the backbone STGNN model.
MP3 Framework Overview

Datasets

The framework was evaluated on five real-world traffic benchmarks from the California Performance Measurement System (PeMS), sampled at 5-minute intervals:

  • PEMS03, PEMS04, PEMS07, PEMS08: Standard, widely used medium-scale benchmarks containing hundreds of sensors.
  • CA: A massive, large-scale dataset covering a full traffic network with 9,638 sensors across nine districts, used specifically to test scalability.

Key Insights and Ideas

  • The Power of 2D Reshaping: Transforming 1D time series into 2D tensors based on FFT-derived periods allows standard convolutional operations to cleanly separate time-of-day effects from day-to-day trends.
  • Asymmetric Causality: Not all periods are equal. Stronger periodic patterns (like a weekly cycle) exert a one-way causal influence on weaker fluctuations. Enforcing this via a strict upper-triangular causal mask (DAG) prevents overfitting and mirrors real-world dynamics.
  • Pre-training as a Scalability Hack: Instead of forcing complex STGNNs to process massive historical windows (which scales quadratically or exponentially), MP3 handles the long-term context during a separate pre-training phase, keeping downstream inference lightweight and linear.

Key Results

  • Consistent Improvements: MP3 was tested against 5 prominent STGNN backbones (STGCN, GWNet, STWA, MSDR, STNorm). It achieved consistent performance gains across the board, reducing MAE by 4.7% and RMSE by 5.0% on average.
  • Outperforming Competitors: MP3 consistently beat GPT-ST, a recent generative pre-training baseline for STGNNs, proving that explicit multi-period modeling is more effective than generic spatio-temporal pre-training.
  • Massive Scalability: When paired with BigST on the huge 9,638-node CA dataset, MP3 delivered significant improvements across all forecasting horizons (15, 30, and 60 minutes), demonstrating its readiness for city-scale deployment.

Limitations and Future Work

  • Causal Discovery: The current cross-period interaction relies on a fixed, amplitude-based ordering of period strengths. The authors note that integrating more rigorous, dynamic causal discovery methods could improve both accuracy and model interpretability.
  • Inference Overhead: While pre-training shifts the heavy lifting away from downstream training, future work will focus on further optimizing MP3 to support ultra-low-cost, large-scale inference for resource-constrained real-world production environments.

Summary updated

BibTeX
@misc{peng2026mp,
  author = {Lilan Peng and Yandi Liu and Qingren Yao and Chongshou Li and Tianrui Li},
  title = {{MP3: Multi-Period Pattern Pre-training for Spatio-Temporal Forecasting}},
  year = {2026},
  eprint = {2606.13119},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.13119},
}
Figure