Skip to main content
QUICK REVIEW

[Paper Review] Applying SVGD to Bayesian Neural Networks for Cyclical Time-Series Prediction and Inference

Xinyu Hu, Paul Szerlip|arXiv (Cornell University)|Jan 17, 2019
Traffic Prediction and Management TechniquesEngineering14 references4 citations
TL;DR

This paper proposes a Bayesian neural network (BNN) using Stein Variational Gradient Descent (SVGD) for cyclical time-series prediction in spatiotemporal demand forecasting, enabling accurate point estimates with calibrated uncertainty quantification. The method reduces average WMAPE by 10% compared to a fine-tuned MLP and 4% over a non-Bayesian baseline, while capturing higher prediction variability around holidays.

ABSTRACT

A regression-based BNN model is proposed to predict spatiotemporal quantities like hourly rider demand with calibrated uncertainties. The main contributions of this paper are (i) A feed-forward deterministic neural network (DetNN) architecture that predicts cyclical time series data with sensitivity to anomalous forecasting events; (ii) A Bayesian framework applying SVGD to train large neural networks for such tasks, capable of producing time series predictions as well as measures of uncertainty surrounding the predictions. Experiments show that the proposed BNN reduces average estimation error by 10% across 8 U.S. cities compared to a fine-tuned multilayer perceptron (MLP), and 4% better than the same network architecture trained without SVGD.

Motivation & Objective

  • To address the challenge of accurate and robust time-series prediction in industrial settings like ridesharing, where miscalibrated uncertainty leads to suboptimal supply allocation.
  • To model prediction uncertainty in cyclical demand patterns—especially around holidays—using a Bayesian framework that captures both model and inherent noise.
  • To improve upon point estimates from standard neural networks by incorporating uncertainty quantification through variational inference with SVGD.
  • To develop a scalable, nonparametric Bayesian inference method for large neural networks that avoids strong assumptions on posterior form.
  • To evaluate the method on real-world rider demand data across 8 U.S. cities, demonstrating improved accuracy and reliable uncertainty estimates.

Proposed method

  • A feed-forward deterministic neural network (DetNN) is designed with 1D convolutional encoders and parallel decoders to model cyclical time-series patterns and incorporate one-hot encoded temporal features (e.g., holidays, day of week).
  • Bayesian inference is applied to the model parameters (weights w and noise covariance Σ) using a hierarchical prior: w ~ N(0, α⁻¹I), α ~ Γ(a₀,b₀), and σᵢ⁻² ~ Γ(a₁,b₁) for each output dimension.
  • Stein Variational Gradient Descent (SVGD) is used to approximate the posterior over model parameters, enabling nonparametric, scalable inference without requiring explicit posterior density forms.
  • The method generates n posterior samples (particles) via SVGD, which are used to compute the predictive mean E[y] = Eθ[E[y|θ]] and total prediction variance decomposed into model uncertainty and inherent noise.
  • Prediction uncertainty is quantified using the law of total variance: Cov(y) = Covθ(E[y|θ]) + Eθ(Cov(y|θ)), with the first term representing model uncertainty and the second the residual noise.
  • The model is trained end-to-end with separate learning rates for w and Σ, and the final predictions are averaged over SVGD particles to improve robustness and uncertainty calibration.

Experimental results

Research questions

  • RQ1Can SVGD-based Bayesian neural networks improve prediction accuracy and uncertainty calibration in cyclical time-series forecasting compared to standard point-estimate models?
  • RQ2How does the inclusion of Bayesian inference via SVGD affect performance on real-world rider demand prediction across diverse urban environments?
  • RQ3Does the model exhibit higher prediction variability around anomalous time windows (e.g., holidays), as expected for uncertain forecasting scenarios?
  • RQ4To what extent does the BNN with SVGD reduce WMAPE compared to a non-Bayesian DetNN and a standard MLP baseline?
  • RQ5Can structured prior distributions or correlation structures in the noise covariance improve performance beyond the current independent diagonal assumption?

Key findings

  • The BNN with 30 SVGD particles (BNN-30) reduces average WMAPE by 4% compared to the non-Bayesian DetNN and by 10% compared to a fine-tuned MLP across 8 U.S. cities.
  • The BNN model exhibits significantly higher prediction variability around holidays—such as Christmas and Thanksgiving—indicating calibrated uncertainty in high-risk forecasting periods.
  • The 95% credible interval coverage probability remains stable or improves over longer prediction horizons, even as WMAPE increases, demonstrating reliable uncertainty quantification.
  • The model achieves an average WMAPE of 0.0741 across all cities with BNN-30, outperforming BNN-10 (0.0753) and BNN-50 (0.0742), suggesting optimal particle count at 30.
  • The decomposition of prediction variance shows that model uncertainty (Covθ(E[y|θ])) contributes meaningfully to total variability, especially during anomalous events.
  • The method successfully captures cyclical patterns in demand and responds to one-hot encoded temporal features, improving performance during special time windows like holidays.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.