Overview
GTS (Graph for Time Series) is a framework that learns the hidden structural relationships between multiple time series while simultaneously training a model to forecast their future values. By using a clever "sampling trick" to make discrete graph learning differentiable, GTS outperforms existing methods in both accuracy and computational efficiency, even when the underlying network structure is completely unknown.
The Challenge of Unknown Graph Structures
In fields like traffic management, energy grid monitoring, and economics, we often deal with "multivariate time series"—multiple related data streams evolving over time. Graph Neural Networks (GNNs) have become the gold standard for forecasting these series because they can exploit the spatial or functional connections between variables (e.g., how traffic congestion at one intersection flows to the next).
However, there is a major catch: GNNs require a graph. In many real-world scenarios, the graph is either unknown, incomplete, or restricted due to privacy concerns. Previous attempts to "learn" the graph structure while training the forecaster were either computationally heavy (using expensive bilevel optimization) or failed to scale to large numbers of time series. The authors of this paper set out to find a simpler, faster, and more scalable way to discover these hidden networks.
The GTS Framework
The authors propose a framework called GTS, which consists of two main components trained end-to-end:
- Graph Structure Learning: Instead of treating the graph as a fixed set of parameters, GTS treats it as a distribution.
- Feature Extraction: It uses a simple Convolutional Neural Network (CNN) to extract a "fingerprint" for each time series.
- Link Prediction: A Multi-Layer Perceptron (MLP) evaluates pairs of fingerprints to calculate the probability of an edge existing between them.
- The Gumbel-Softmax Trick: To make the discrete choice (edge vs. no edge) differentiable, they use the Gumbel-Softmax reparameterization. This allows the model to "sample" a graph during the forward pass while allowing gradients to flow back during training.
- GNN Forecasting: Once a graph is sampled, it is fed into a Sequence-to-Sequence (Seq2Seq) model. This model uses Diffusion Convolutional GRUs—a type of recurrent unit that uses graph convolutions to share information across the network at every time step.
Unlike previous "bilevel" approaches that treat the graph as a hyperparameter optimized in a separate loop, GTS uses unilevel optimization. Everything—the graph learner and the forecaster—is trained together simultaneously.
Datasets and Evaluation
The model was evaluated on three major datasets:
- METR-LA: Traffic speed data from 207 sensors on Los Angeles highways.
- PEMS-BAY: Traffic speed data from 325 sensors in the Bay Area.
- PMU: A proprietary dataset from the U.S. power grid consisting of 42 sensors. Unlike the traffic datasets, this one has no "ground truth" physical topology, making it a pure test of structure discovery.
Key Insights
- The "Best" Graph Isn't Always the Physical One: Interestingly, the graphs GTS learns often lead to better forecasts than the actual physical road maps used by traditional models. This suggests the model is finding "functional" dependencies that are more relevant for prediction than simple physical distance.
- Efficiency through Parameterization: By learning to generate the graph from node features (fingerprints) rather than learning a raw $N \times N$ adjacency matrix, the model avoids a quadratic explosion of parameters, making it much more scalable.
- Regularization as a Bridge: If a rough idea of the graph exists (like a $k$-Nearest Neighbors graph), it can be used as a "prior" to guide the model. This keeps the learned graph sparse and interpretable without sacrificing the flexibility to discover new connections.
Key Results
- Superior Accuracy: GTS consistently outperformed both traditional statistical models (ARIMA, VAR) and state-of-the-art deep learning models (DCRNN, NRI, LDS). On the METR-LA dataset for a 60-minute forecast, GTS achieved a Mean Absolute Error (MAE) of 2.99, significantly lower than the 3.60 achieved by DCRNN (which uses the actual road network).
- Computational Speed: GTS is orders of magnitude faster than previous structure-learning methods like LDS.
While it is slightly slower than a model with a fixed, pre-defined graph (like standard DCRNN), this is a highly favorable trade-off considering it solves the much harder problem of discovering the graph structure from scratch.
- Robustness: The model proved highly effective on the PMU power grid data, where no ground-truth graph exists, demonstrating its utility for "black-box" systems.
Limitations and Future Work
The authors acknowledge a few areas for future exploration:
- Static Graphs: Currently, GTS learns one static graph for the entire dataset. In reality, relationships between time series might change (e.g., traffic patterns change during a storm). Future work could involve learning dynamic graphs that evolve over time.
- Causality vs. Correlation: While the learned graph improves forecasting, it doesn't necessarily represent true "Granger causality." It captures what helps the model predict, which isn't always the same as a physical cause-and-effect relationship.
- Scalability Limits: While more scalable than previous work, the $O(N^2)$ nature of checking every possible pair of nodes for an edge still poses a challenge for systems with tens of thousands of variables.
Summary updated