Dynamic Relation Discovery and Utilization in Multi-Entity Time Series Forecasting

Lin Huang, Lijun Wu, Jia Zhang, Jiang Bian, Tie-Yan LiuarXiv 2022

Introduction

Time series forecasting in multi-entity environments—such as predicting traffic flow across a city or power output across a solar farm—presents a unique challenge: capturing the complex, often hidden relationships between entities. While traditional models like 1D-CNNs or RNNs treat entities independently, and spatial-temporal Graph Neural Networks (GNNs) utilize physical proximity, they often fail to account for implicit, data-driven dependencies. For instance, two geographically distant traffic stations might exhibit similar patterns due to shared commercial zoning.

Existing methods to learn these implicit relations often rely on dense, complete graphs, which are computationally expensive and prone to "over-smoothing," where unique node features are lost. This paper introduces the Attentional Multi-Graph Neural Network with Automatic Graph Learning (A2GNN), a framework designed to discover sparse, meaningful relationships and adaptively utilize them for superior forecasting accuracy.

Methodology: The A2GNN Architecture

The A2GNN framework consists of three primary components that work in tandem to process temporal data and relational structures. First, a Temporal Encoder (utilizing an LSTM) extracts features from the raw historical time series of each node.

The A2GNN architecture overview, integrating temporal encoding, automatic graph learning (AGL), and attentional relation learning (ARL).

Second, the Auto Graph Learner (AGL) addresses the limitations of dense graphs. By employing the Gumbel-Softmax trick, the model can differentiably sample a fixed, small number of neighbors (e.g., 15 edges per node). This creates a sparse, learned graph of implicit relations ($A^*$) that can be optimized end-to-end. Finally, the Attentional Relation Learner (ARL) acts as a dynamic gatekeeper. It determines the optimal weight for three distinct information sources: the node's own historical data ($h^1$), its explicit/geographic neighbors ($h^3$), and its newly discovered implicit neighbors ($h^2$).

Interpretability and Dynamic Reliance

A key strength of A2GNN is its ability to adapt its focus based on the characteristics of the signal it is predicting. The authors' interpretability analysis revealed that the model does not treat all nodes equally; rather, it tailors its reliance on external information to the stability of the node's own pattern.

Heatmap illustrating how different nodes (IDs) prioritize their own historical data versus aggregated information from neighbors based on signal regularity.

As shown in the heatmap above, nodes with highly regular, periodic patterns (such as IDs 16 and 196) learn to pay attention almost exclusively to their own historical data. In contrast, nodes with erratic or unstable patterns (such as IDs 49 and 129) learn to lean more heavily on aggregated information from their implicit neighbors to stabilize their forecasts. This dynamic reliance ensures robustness across diverse data types.

Experimental Results and Efficiency

The authors evaluated A2GNN on five benchmark datasets, including Solar-Energy, Traffic, and Electricity (without pre-defined graphs), as well as METR-LA and PEMS-BAY (with geographic graphs). A2GNN achieved state-of-the-art results across the board:

  • Accuracy: On the Solar-Energy dataset, the model reduced the Relative Squared Error (RSE) by up to 7.3% compared to previous benchmarks. On METR-LA, it achieved a 4.3% reduction in RMSE for long-term (12-step) forecasting.
  • Efficiency: Due to the sparse sampling in the AGL, A2GNN is significantly faster than its competitors. On the METR-LA dataset, it completes inference in just 0.98 seconds, compared to 11.37s for STGCN and 18.73s for DCRNN.

Conclusion

A2GNN represents a significant advancement in multi-entity forecasting by bridging the gap between explicit physical structures and implicit data-driven relationships. By prioritizing sparsity and dynamic attention, the model avoids the pitfalls of over-smoothing and high computational overhead, making it a highly effective and engineering-friendly solution for real-time forecasting applications.

Summary updated

BibTeX
@misc{huang2022dynamic,
  author = {Lin Huang and Lijun Wu and Jia Zhang and Jiang Bian and Tie-Yan Liu},
  title = {{Dynamic Relation Discovery and Utilization in Multi-Entity Time Series Forecasting}},
  year = {2022},
  eprint = {2202.10586},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2202.10586},
}
Figure