NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

$M^2Net$: Unifying Scale-Specific Structures and Prototype Decomposition for Spatial-Temporal Forecasting

Chengyang Zhou, Zijian Zhang, Hao Miao, Chunxu Zhang, Ziming Liu, Chao Tang, Juncheng Hu, Irwin KingarXiv 2026

Predicting the pulse of a city—traffic flow, energy consumption, or crowd movement—is a cornerstone of smart urban management. However, urban data is notoriously messy. Traffic patterns that look like simple physical proximity at a 5-minute resolution might reveal complex functional similarities (like two distant suburban roads both serving commuters) when viewed over an hour. Furthermore, city-wide trends often "drown out" the local anomalies—like a sudden accident—that are most critical for real-time response.

In their paper, "$M^2Net$: Unifying Scale-Specific Structures and Prototype Decomposition for Spatial-Temporal Forecasting," researchers propose a new framework designed to handle these two specific headaches: scale-dependent relationships and signal entanglement.

TL;DR

$M^2Net$ is a novel forecasting framework that improves spatial-temporal predictions by capturing how city structures change across different time scales and explicitly separating global trends from local anomalies. By using multi-scale attention masks and a "subtract-to-refine" prototype module, it achieves state-of-the-art accuracy while remaining computationally efficient.

What Problem Does This Paper Address?

Existing spatial-temporal models often suffer from two major blind spots:

  1. Granularity-Dependence: Most models assume that the "spatial graph" (how nodes relate to each other) is static. In reality, at a fine-grained scale (e.g., 5 minutes), a sensor's closest "neighbors" are the ones physically next to it on the road. At a coarse scale (e.g., 40 minutes), its "neighbors" might be sensors miles away that share the same functional role, like being part of a morning commute corridor.
  2. Signal Entanglement: Global patterns (the predictable daily "breathing" of a city) are much stronger than local variations (accidents, roadwork). Standard Graph Convolutional Networks (GCNs) tend to "over-smooth" data, causing these vital local signals to be lost in the noise of the global trend.
Fig. 1: Spatial relation visualization of PEMS08. Adjacent nodes (e.g., 74 and 75) exhibit high spatial correlation at both scales. Coarse temporal scale (c) captures more long-range, non-adjacent relationships (e.g., nodes 80–115) compared to fine-grained scale (b).

Methods

The $M^2Net$ architecture (Multi-Scale Masked attention and Prototype network) tackles these issues through two parallel branches:

  • Multi-Scale Masked Attention (MSMA): The model first decomposes the time series into "seasonal" and "trend" components. It then uses strided convolutions to downsample these features into multiple resolutions. For each resolution, it generates a unique binary spatial mask. This allows the model to attend to different sets of neighbors depending on the time scale being analyzed. To keep things efficient, the model shares parameters (Query-Key-Value projections) across all scales.
  • Prototype Residual Learning (PRL): To stop local signals from being "drowned out," $M^2Net$ maintains a "prototype bank"—a set of learned representations that capture common global patterns. It uses a "subtract-to-refine" strategy: it identifies which global prototype a node currently matches, and then subtracts that prototype from the node's representation. This leaves behind a "residual" that represents the unique, node-specific deviations that are crucial for precise forecasting.
The overall architecture of M2Net, showing the parallel MSMA and PRL branches.

Datasets

The authors evaluated $M^2Net$ on five widely-used real-world traffic benchmarks:

  • PEMS-BAY: Traffic speed data from the Bay Area.
  • PEMS03, PEMS04, PEMS07, PEMS08: Traffic flow measurements from various regions in California.
  • GBA: A larger dataset with 2,352 nodes used to test the model's scalability.

Key Insights and Ideas

  • Functional vs. Physical Neighbors: The paper validates that coarse-scale views reveal long-range functional dependencies that fine-scale views miss. Capturing both is essential for a complete "spatial" understanding.
  • The Power of Subtraction: Most models try to learn everything at once. By explicitly removing the "expected" global trend via the Prototype Residual module, the model is forced to focus on the "unexpected" local variations, which significantly improves its ability to handle non-stationary events.
  • Plug-and-Play Generalization: Interestingly, the authors found that their Prototype Residual Learning (PRL) module can be added to other existing models (like GWNet or STID) to boost their performance, suggesting it addresses a universal weakness in current spatial-temporal architectures.

Key Results

$M^2Net$ consistently outperformed 16 state-of-the-art baselines across all datasets:

  • Accuracy: On the PEMS-BAY dataset, it reduced Mean Absolute Error (MAE) by 5.0% compared to the previous best Transformer-based model.
  • Robustness: It achieved the best Root Mean Squared Error (RMSE) across all five datasets, indicating it is particularly good at avoiding "extreme" prediction failures.
  • Efficiency: Despite its multi-scale approach, $M^2Net$ was the fastest to train and run inference on the PEMS08 dataset, thanks to its shared-parameter design and compact prototype bank.

Limitations and Future Work

While $M^2Net$ is efficient, the authors note that the spatial attention mechanism still has a quadratic computational complexity $O(N^2)$ relative to the number of nodes. To handle very large graphs (thousands of nodes), they had to employ memory-efficient kernels.

Future research could explore even more sophisticated signal decomposition methods or adapt the $M^2Net$ framework for other complex spatial-temporal tasks beyond traffic, such as air quality index (AQI) prediction or power grid load forecasting.

Summary updated

BibTeX
@misc{zhou2026m,
  author = {Chengyang Zhou and Zijian Zhang and Hao Miao and Chunxu Zhang and Ziming Liu and Chao Tang and Juncheng Hu and Irwin King},
  title = {{$M^2Net$: Unifying Scale-Specific Structures and Prototype Decomposition for Spatial-Temporal Forecasting}},
  year = {2026},
  eprint = {2610.24516},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.24516},
}
Figure