Deep-Ensemble-Based Uncertainty Quantification in Spatiotemporal Graph Neural Networks for Traffic Forecasting

Tanwi Mallick, Prasanna Balaprakash, Jane MacFarlanearXiv 2022 · DOI

Introduction

Traffic forecasting is a cornerstone of modern urban planning and intelligent transportation systems. While deep learning models, particularly Spatiotemporal Graph Neural Networks (STGNNs) like the Diffusion Convolutional Recurrent Neural Network (DCRNN), have achieved state-of-the-art accuracy in point estimation, they often lack a critical component: uncertainty quantification (UQ). In high-stakes environments like traffic management, knowing the "confidence" of a prediction is as important as the prediction itself.

This research introduces a scalable deep-ensemble framework designed to quantify two distinct types of uncertainty:

  1. Aleatoric Uncertainty: Inherent randomness in traffic data, such as natural fluctuations in speed, which cannot be reduced by more data.
  2. Epistemic Uncertainty: Model-driven uncertainty stemming from a lack of knowledge about specific scenarios (e.g., rare accidents), which can be mitigated with additional training data.

The DCRNN-SQRUQ Framework

The proposed framework, termed DCRNN-SQRUQ, integrates simultaneous quantile regression with a generative hyperparameter selection process to create a robust and scalable ensemble.

Overview of the DCRNN-SQRUQ framework, illustrating the integration of Bayesian optimization, Gaussian copula-based hyperparameter sampling, and deep ensemble learning.

The framework operates in four primary stages:

  1. Simultaneous Quantile Regression (SQR): Unlike standard models that predict a mean value, SQR trains the network to output multiple quantiles (e.g., 5th to 95th percentiles) at once. This approach avoids the restrictive assumption that traffic noise follows a Gaussian distribution, allowing for the capture of skewed or multimodal data patterns.
  2. Scalable Bayesian Optimization: Utilizing the DeepHyper framework, the system performs an asynchronous search across a vast search space to identify high-performing hyperparameter configurations (e.g., learning rates, batch sizes).
  3. Generative Modeling via Gaussian Copula: A key innovation is the use of a Gaussian copula to model the joint distribution of successful hyperparameter configurations. By sampling from this distribution, the researchers can generate a diverse set of high-performing models for the ensemble, exploring the search space more effectively than simple selection.
  4. Variance Decomposition: The framework employs a mathematical derivation to decompose the total predictive variance into its aleatoric and epistemic parts, providing granular insights into the sources of uncertainty.

Experimental Setup and Datasets

The framework was evaluated using the METR-LA dataset, a benchmark in the field. This dataset comprises speed profiles from 207 sensors on Los Angeles County highways, recorded at 5-minute intervals over a four-month period in 2012. This large-scale spatiotemporal data provides a rigorous testing ground for both accuracy and uncertainty reliability.

Key Insights: Diversity and Scalability

The researchers observed that scaling the hyperparameter search across more compute nodes (workers) did more than just find a "better" model; it revealed a larger volume of diverse, high-performing configurations. This diversity is crucial for building a robust deep ensemble.

The Gaussian copula approach proved both effective and efficient. As shown in the performance metrics, the time required to fit the copula and sample new configurations remains remarkably low even as the number of configurations increases.

Computational efficiency of the Gaussian Copula (GC) for different numbers of configurations, showing fit and sample times in seconds.

Furthermore, the study highlighted the diagnostic value of uncertainty. Aleatoric uncertainty was found to be highest during periods of volatile traffic dynamics. In contrast, epistemic uncertainty spiked during rapid transitions, such as the onset of rush hour, signaling areas where the model's knowledge is most limited.

Results and Performance

DCRNN-SQRUQ demonstrated superior performance across several metrics:

  • Accuracy: The model achieved a Mean Absolute Error (MAE) of 2.21 for 15-minute forecasts, outperforming the previous state-of-the-art Bayesian method (SG-MCMC), which recorded an MAE of 2.32.
  • Calibration: The confidence intervals produced were narrower and more reliable than those from frequentist methods like Bootstrap or Monte Carlo Dropout, as measured by the Mean Interval Score.
  • Scalability: The framework scaled near-linearly across 100 GPU workers, proving its viability for large-scale industrial applications.

Conclusion and Future Directions

The DCRNN-SQRUQ framework represents a significant step forward in making spatiotemporal forecasting models both accurate and "self-aware." By quantifying uncertainty without sacrificing scalability, it opens doors for more reliable automated traffic management.

Future work aims to extend this UQ framework to other spatiotemporal architectures and explore more complex generative models, such as variational autoencoders, for hyperparameter generation. Additionally, integrating these uncertainty metrics into reinforcement learning loops could enable "uncertainty-informed" traffic control strategies, such as adaptive ramp metering based on forecast confidence.

Summary updated

BibTeX
@misc{mallick2022deep,
  author = {Tanwi Mallick and Prasanna Balaprakash and Jane MacFarlane},
  title = {{Deep-Ensemble-Based Uncertainty Quantification in Spatiotemporal Graph Neural Networks for Traffic Forecasting}},
  year = {2022},
  eprint = {2204.01618},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2204.01618},
}
Figure