Introduction
Predicting future values in multivariate time series (MTS) is a complex task due to the dual nature of the data: intra-series temporal patterns and inter-series dependencies. Traditional methods often fail to capture the intricate, non-linear relationships between variables, especially when these relationships are dynamic and not known a priori. In this work, we present the Time Series Attention Transformer (TSAT), a novel architecture that reframes multivariate forecasting as a graph representation problem.
The Challenge of Multivariate Forecasting
Most existing forecasting tools fall into two categories. Statistical models like ARIMA are interpretable but limited in handling non-linearity. Deep learning models, such as LSTMs and standard Transformers, are powerful but typically treat multivariate data as a flat sequence of vectors, ignoring the underlying graph-like structure of variable interactions. While Graph Neural Networks (GNNs) can model these interactions, they often require a fixed, pre-defined graph structure, which is rarely available in real-world scenarios like weather patterns or smart grid power consumption.
The TSAT Framework
The core innovation of TSAT is its ability to learn dynamic graph representations directly from the data and integrate them into a Transformer-based architecture.
Signal Decomposition and Graph Construction
TSAT utilizes a Super-Empirical Mode Decomposition (SMD) module to preprocess the input data. As illustrated in Figure 1, SMD breaks each time series into Intrinsic Mode Functions (IMFs) and a residual trend.
- Nodes: Each individual time series is represented as a node in the graph.
- Edges: The graph structure is defined by the correlation between the residuals (trends) of the time series.
- Edge Features: The correlations between the corresponding IMFs (oscillatory patterns) serve as features for the edges, capturing fine-grained interactions.
Model Architecture
The TSAT architecture fuses graph-based feature enhancement with a modified Transformer block. Instead of standard self-attention, the TSAT attention layer incorporates node features, edge features, and the adjacency matrix simultaneously. This allows the model to learn temporal and relational representations in a unified manner.
To preserve chronological order, TSAT replaces traditional sinusoidal positional encodings with an RNN-based time embedding layer, ensuring the model respects the temporal flow of the data.
Experimental Evaluation
TSAT was evaluated on five major benchmarks, including the Electricity Transformer Temperature (ETT), Weather, and Electricity consumption datasets. These benchmarks represent diverse real-world scenarios with varying numbers of variables and temporal resolutions.
Key Results
TSAT demonstrated superior performance, achieving the best results in 30 out of 46 tested scenarios against state-of-the-art baselines like Informer, LSTNet, and Graph WaveNet. Notably, TSAT improved average RMSE by 8% to 14% compared to GNN-based models like MTGNN. Ablation studies confirmed that both edge features and adjacency information are critical to the model's predictive accuracy.
Discussion and Conclusion
The success of TSAT highlights the importance of separating long-term trends from high-frequency oscillations in multivariate data. By using trends to define the global graph structure and oscillations to learn local interactions, TSAT achieves a holistic representation of complex systems. Furthermore, t-SNE visualizations indicate that the model can effectively disentangle series with similar raw appearances but distinct underlying dynamics.
While TSAT offers significant improvements, future work will address the computational overhead of SMD for very high-dimensional data and explore more automated ways to tune the correlation thresholds used in graph construction.
Summary updated