TL;DR
MSHyper is a novel framework that introduces hypergraph modeling to long-range time series forecasting to capture complex, high-order interactions between temporal patterns at different scales (e.g., hourly, daily, and weekly). By combining multi-scale feature extraction with a dual-graph structure and a tri-stage message-passing mechanism, it achieves state-of-the-art accuracy across multiple real-world benchmarks while remaining highly computationally efficient.
What Problem Does This Paper Address?
Real-world time series data—such as electricity consumption or traffic flow—is shaped by overlapping periodic patterns. For instance, a power grid experiences daily spikes during dinner time, weekly variations on weekends, and seasonal shifts during summer. To forecast the far future accurately, models must understand how these different scales interact.
While recent multi-scale Transformer models can capture pairwise relationships between scales, they fail to model high-order interactions—situations where multiple temporal patterns simultaneously influence one another. For example, peak household electricity consumption on a summer weekend afternoon is a joint, high-order interaction of daily, weekly, and seasonal factors. Existing graph- and Transformer-based methods only connect pairs of nodes, missing these complex group dynamics. MSHyper addresses this gap by being the first framework to bring hypergraph neural networks to long-range time series forecasting.
Methods
The MSHyper framework consists of three main components designed to extract features, build relational structures, and pass messages efficiently:
- Multi-Scale Feature Extraction (MFE): The raw input sequence is downsampled and mapped into hierarchical, multi-scale embeddings using 1D convolutions.
- Hypergraph and Hyperedge Graph Construction (H-HGC): Unlike standard graphs where an edge connects exactly two nodes, hypergraphs use hyperedges that can encapsulate any number of nodes simultaneously. MSHyper constructs three types of hypergraphs based on temporal proximity rules: intra-scale (within the same scale), inter-scale (between adjacent scales), and mixed-scale (across all scales). To further enhance modeling, it constructs a dual hyperedge graph where the hyperedges themselves become nodes. These are connected based on chronological order (sequential relationships) or shared underlying nodes (association relationships).
- Tri-Stage Message Passing (TMP): Information flows through three distinct phases to update embeddings:
- Node-to-Hyperedge: Aggregates initialized node features into hyperedges.
- Hyperedge-to-Hyperedge: Uses the hyperedge graph and a multi-head attention mechanism to learn the interaction strengths between different multi-scale patterns.
- Hyperedge-to-Node: Applies a dynamic attention-driven hypergraph convolution to pass the enriched pattern insights back to individual time-step nodes.
Datasets
The authors evaluated MSHyper on eight widely recognized public benchmarks for long-range time series forecasting:
- ETT (ETTh1, ETTh2, ETTm1, ETTm2): Electricity transformer oil temperature and load data recorded at hourly and 15-minute intervals.
- Electricity: Hourly electricity consumption data for 321 clients.
- Weather: Meteorological measurements recorded every 10 minutes.
- Flight: Hourly flight tracking data from major European airports.
- Exchange-Rate: Daily foreign exchange rates for 8 countries.
Key Insights and Ideas
- Pairwise Constraints Limit Forecasting: Traditional graphs restrict interactions to pairs of time steps. Hypergraphs naturally represent group dynamics, making them inherently better suited for capturing real-world anomalies or surges caused by multiple co-existing temporal scales.
- The Dual-Graph Advantage: By transforming hyperedges into nodes within a secondary graph, the model explicitly learns how complex multi-scale patterns evolve over time.
- Robustness Against Noise: MSHyper performs exceptionally well on datasets with low auto-correlation (like Exchange-Rate). In noisy datasets, standard pairwise attention mechanisms often map spurious correlations; MSHyper’s structured hyperedges act as a regularizer, forcing the model to focus on meaningful, shared temporal patterns.
Key Results
- State-of-the-Art Accuracy: MSHyper consistently outperforms nine competitive baselines (including TimesNet, MSGNet, Crossformer, and DLinear) across all eight datasets.
- Error Reduction: On average, MSHyper reduces multivariate prediction errors by 4.06% in MSE and 5.27% in MAE compared to the best-performing baseline.
- High Efficiency: Despite the complexity of hypergraph operations, MSHyper is highly optimized. On the Electricity dataset, it clocks a training time of just 13.51 seconds per epoch with a low GPU memory footprint, vastly outperforming other advanced multi-scale baselines like TimesNet (587.35s) and MSGNet (1519.10s).
Limitations and Future Work
Currently, MSHyper relies on fixed, rule-based temporal proximity heuristics to construct its hypergraphs. This reliance on prior knowledge constraints might limit the model's flexibility or scalability when dealing with highly irregular or non-periodic data.
To overcome this, the authors point to two promising future directions: designing an adaptive hypergraph module that can learn optimal hypergraph structures directly from raw data, and incorporating a neural architecture search (NAS) framework to automatically discover the best combinations of hypergraph structures for diverse forecasting scenarios.
Summary updated