Learning Graph Structures and Uncertainty for Accurate and Calibrated Time-series Forecasting

Harshavardhan Kamarthi, Lingkai Kong, Alexander Rodríguez, Chao Zhang, B. Aditya PrakasharXiv 2024 · DOI

Abstract

Accurate multivariate time-series forecasting requires capturing complex inter-dependencies between variables. However, real-world relationships are often latent, noisy, and subject to change. We present StoIC (Stochastic Graph Inference for Calibrated Forecasting), a framework that jointly learns hidden relational structures and models uncertainty. By treating the graph structure as a probability distribution, StoIC produces forecasts that are approximately 9% more accurate and significantly better calibrated than current state-of-the-art models.

Introduction

In domains ranging from urban traffic management to financial market analysis, variables in multivariate time-series are rarely independent. While graph-based models have improved forecasting by capturing these dependencies, they typically suffer from two limitations: ignoring structural uncertainty by learning a single static graph, and poor calibration of probabilistic outputs. StoIC addresses these by leveraging a functional neural process framework to handle uncertainty across the entire modeling pipeline, ensuring that confidence intervals are as reliable as the point forecasts themselves.

Methodology

The StoIC architecture is designed to propagate uncertainty from raw input to final forecast through several key components:

  1. Probabilistic Time-series Encoder (PTE): Instead of mapping inputs to fixed vectors, the PTE encodes temporal patterns into Gaussian distributions, capturing inherent signal noise.
  2. Stochastic Graph Generation (GGM): Models edge existence as a Bernoulli distribution. This allows the model to represent relational uncertainty rather than relying on a fixed, potentially erroneous adjacency matrix.
  3. Recurrent Graph Neural Encoder (RGNE): Combines the sampled stochastic graph with temporal data using Graph Neural Networks (GNNs) and Gated Recurrent Units (GRUs) to produce graph-refined embeddings.
  4. Reference Correlation Network (RCN): Maintains a memory of historical patterns to handle distributional shifts. It compares current states to past contexts to refine the model's confidence.
  5. Adaptive Distribution Decoder: Aggregates graph information, historical references, and global patterns to output a final Gaussian forecast distribution.
The StoIC architecture overview, illustrating the flow from probabilistic encoding to stochastic graph generation and final adaptive decoding.

Experimental Evaluation

StoIC was evaluated across eight diverse benchmarks: epidemic forecasting (Flu-Symptoms, Covid-19), finance (S&P-100), energy (Electricity), traffic (METR-LA, PEMS-BAYS), and transit demand (NYC-Bike, NYC-Taxi).

Key Results

As shown in the comparative analysis, StoIC consistently outperforms established baselines such as MTGNN, DeepAR, and GTS across multiple metrics:

  • Accuracy: Achieved an average 8.8% improvement in RMSE across all benchmarks, with gains as high as 16.5% in epidemic datasets.
  • Calibration: Improved Confidence Score (CS) by 14.7%, indicating that the model's predicted probability distributions are much more trustworthy for decision-makers.
  • Probabilistic Performance: Showed a 16% improvement in Continuous Ranked Probability Score (CRPS), a metric that balances accuracy and calibration.
Performance comparison of StoIC against baseline models across eight datasets. StoIC consistently achieves the best (bold) or second-best (underlined) results in RMSE, CRPS, and CS.

Discussion and Insights

A significant finding is that stochastic graph modeling acts as a powerful regularizer. When artificial noise was introduced into the datasets, StoIC's performance remained relatively stable (9-20% drop) compared to competitors, which saw performance plummet by 45-60%. Furthermore, the model demonstrated an ability to "discover" domain-specific relationships—such as geographical proximity in epidemic data or sector-based correlations in finance—without being provided any explicit spatial or sector metadata.

Conclusion

StoIC represents a significant advancement in calibrated forecasting by embracing uncertainty in both temporal signals and relational structures. By moving away from deterministic graph assumptions, the framework provides a more robust and reliable tool for complex time-series analysis. Future work will explore non-Gaussian distribution assumptions and the extension to dynamic graphs that evolve over multiple temporal scales.

Summary updated

BibTeX
@misc{kamarthi2024learning,
  author = {Harshavardhan Kamarthi and Lingkai Kong and Alexander Rodríguez and Chao Zhang and B. Aditya Prakash},
  title = {{Learning Graph Structures and Uncertainty for Accurate and Calibrated Time-series Forecasting}},
  year = {2024},
  eprint = {2407.02641},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2407.02641},
}
Figure