TL;DR
STHMoE introduces a Spatio-Temporal Hypergraph-Enhanced Mixture of Experts framework that adapts pre-trained Large Language Models (LLMs) for urban traffic forecasting. By decoupling complex traffic data into distinct temporal, spectral, and adaptive higher-order spatial experts, it coordinates heterogeneous urban dependencies to significantly outperform existing spatio-temporal baselines.
What Problem Does This Paper Address?
Urban traffic forecasting is a critical component of intelligent transportation systems, yet it remains notoriously difficult due to non-stationary temporal patterns and dynamically evolving spatial relationships. For example, a sudden bottleneck at a major intersection can instantly trigger cascading delays across multiple surrounding regions.
While Large Language Models (LLMs) have recently shown remarkable capabilities in time-series forecasting, most existing adaptations are heavily "temporally centered"—they excel at finding patterns over time but struggle to capture spatial topologies. Recent attempts to combine LLMs with Graph Neural Networks (GNNs) typically rely on static, predefined geographic maps. These static maps fail to adapt to real-time traffic shifts or higher-order group interactions, such as when multiple distinct locations co-activate simultaneously due to shared urban functions or transit transfers.
Methods
The authors propose STHMoE (Spatio-Temporal Hypergraph-Enhanced Mixture of Experts) to bridge the gap between text-based LLMs and complex spatio-temporal traffic structures. The framework consists of three tightly coupled components:
- Decoupled Domain Experts: To prevent representation entanglement, the framework splits traffic dynamics into four parallel, specialized experts built on top of a partially frozen LLM backbone (parameterized efficiently using Low-Rank Adaptation, or LoRA):
- Time Expert: Models short-term fluctuations and long-term trends using temporal statistical prompts.
- Frequency Expert: Captures periodic and spectral variations in the frequency domain.
- Spatio Expert: Distills pairwise spatial relationships using graph topology statistics.
- Higher-order Spatio Expert: Explicitly models multi-way group interactions using an adaptive hypergraph neural network.
- Adaptive Structure-Enhanced Module: Rather than relying on rigid, pre-defined geographic layouts, this module dynamically learns first-order graph dependencies and higher-order hypergraph structures directly from latent feature spaces using a $k$-nearest neighbors approach.
- Time-Aware Router MoE: Unlike standard MoE models that route at the sequence or token level, STHMoE performs fine-grained, coordinate-wise routing over individual time steps and spatial nodes. It incorporates a coefficient-of-variation load-balancing loss to prevent "expert collapse" and an entropy regularization loss to maximize routing confidence.
Datasets
The framework was comprehensively evaluated on 10 real-world traffic benchmarks representing diverse urban scenarios:
- Traffic Flow: PEMS03, PEMS04, and PEMS08 (California highway sensor data).
- Traffic Speed: PEMS07 (California), TrafficHZ (Hangzhou), TrafficJN (Jinan), and TrafficNJ (Nanjing).
- Traffic Index: SZDIDI (Shenzhen) and CDDIDI (Chengdu).
- Demand: BIKE-Inflow (New York bike-sharing demand data).
All datasets were partitioned into train, validation, and test sets using a standard 7:1:2 split ratio.
Key Insights and Ideas
- The Power of Decoupling: Traffic streams contain overlapping signals (e.g., daily cycles mixed with sudden local accidents). Forcing a single model architecture to digest everything at once leads to feature interference. Separating these signals into specialized experts yields cleaner, more robust representations.
- Hypergraphs over Standard Graphs: Traditional graphs use binary edges (connecting Station A to Station B). However, real-world traffic anomalies cause group-wise co-activations across multiple regions simultaneously. Adaptive hypergraphs capture these multi-way relationships naturally without needing a hardcoded map.
- Coordinate-Wise Routing: By routing at the exact coordinate level (specific time $t$ and node $n$), the model can dynamically shift its reliance. For instance, it can prioritize temporal experts during normal routine periods but instantly pivot to spatial and hypergraph experts when an anomalous congestion event propagates across the network.
Key Results
- State-of-the-Art Performance: STHMoE consistently outperformed 13 prominent baselines, including specialized time-series models (TimesNet), spatio-temporal graph models (OpenCity), and recent LLM adaptations (TIMELLM, UniST).
- Long-Horizon Accuracy: On the PEMS08 dataset under a long-term 48-step forecasting horizon, STHMoE reduced Mean Absolute Error (MAE) by 16.08% and Root Mean Squared Error (RMSE) by 15.85% compared to the best competing baseline.
- Consistent Gains: On the PEMS03 benchmark, it achieved relative MAE improvements of 7.20%, 3.69%, and 7.70% across 12-, 24-, and 48-step horizons, respectively.
- Ablation Validation: Removing either the adaptive structure module or the LLM backbone led to significant performance drops, proving that both structural graph learning and language model reasoning are vital to the framework's success.
Limitations and Future Work
- Computational Overhead: While using a partially frozen LLM with LoRA minimizes the number of trainable parameters, deploying large transformer backbones still incurs higher computational latency and memory footprints than lightweight, pure-GNN architectures.
- Lack of External Modalities: The current framework relies purely on historical traffic data streams. It does not explicitly integrate multi-source external factors such as weather conditions, social events, or holidays, which heavily influence urban dynamics.
- Future Directions: The authors plan to explore more efficient routing strategies, incorporate multi-source external data, and enhance the interpretability of expert specialization for large-scale spatial data mining.
Summary updated