Deep Factors with Gaussian Processes for Forecasting

Danielle C. Maddix, Yuyang Wang, Alex SmolaarXiv 2018

TL;DR

This paper introduces "Deep Factors with Gaussian Processes" (DFGP), a novel hybrid forecasting model that combines the strengths of deep neural networks (DNNs) for capturing complex patterns across many time series with Gaussian Processes (GPs) for robust uncertainty estimation. DFGP achieves state-of-the-art accuracy, particularly in predicting quantiles, demonstrating its effectiveness in handling large collections of related time series.

What Problem Does This Paper Address?

Forecasting a large number of related time series presents a significant challenge. Traditional statistical methods, like ARIMA, excel at modeling individual time series and providing uncertainty estimates but struggle to scale and leverage information across multiple series. Conversely, deep neural networks, particularly RNNs like LSTMs, are adept at learning complex, shared patterns from vast datasets but often lack reliable uncertainty quantification and can be prone to overfitting. This paper aims to bridge this gap by creating a model that is both scalable and capable of providing accurate forecasts with well-calibrated uncertainty estimates.

Methods

The core of the proposed method, DFGP, is a global-local architecture.

  • Global Component: A deep neural network (specifically, an LSTM is used in experiments) acts as a global backbone. This network learns a set of "deep dynamic factors" (latent variables) that represent common patterns across all time series. Attention mechanisms are employed to dynamically weigh these global factors for each time series, allowing the model to focus on relevant historical segments and factor dynamics.
  • Local Component: For each individual time series, a Gaussian Process (GP) is used to model the "random effects" or local fluctuations. GPs are well-suited for capturing local dependencies and, crucially, provide a principled way to estimate uncertainty.

The generative model can be summarized as: the observed value $z_{i,t}$ for time series $i$ at time $t$ is a sum of a global fixed effect $f_{i,t}$ (a weighted combination of the global factors) and a local random effect $r_{i,t}$ (modeled by a GP). The model is trained using maximum likelihood estimation.

Datasets

The experiments were conducted on publicly available datasets:

  • Electricity
  • Traffic

These datasets are from the UCI machine learning repository. The authors note that for their experiments, they artificially pruned the data to use only one week of training data (168 observations per time series) to assess the model's ability to learn from limited history and its performance on related time series.

Key Insights and Ideas

  • Hybridization is Key: Combining the pattern-extraction power of DNNs with the uncertainty-modeling capabilities of GPs offers a powerful solution for complex forecasting tasks.
  • Global-Local Structure: The proposed architecture effectively disentangles common trends (global) from individual series variations (local), leading to more robust and accurate forecasts.
  • Uncertainty Matters: The paper emphasizes the importance of uncertainty estimates for downstream decision-making. DFGP's use of GPs allows it to provide better quantile forecasts, indicating superior uncertainty calibration compared to purely deterministic models.
  • Scalability: The global DNN component allows the model to learn from a large collection of time series simultaneously, overcoming the scalability limitations of traditional local models.

Key Results

The DFGP model demonstrated superior performance compared to state-of-the-art methods like DeepAR (DA) and Prophet (P) on the electricity and traffic datasets.

  • Accuracy: DFGP achieved lower P50QL (mean absolute percentage error) and P90QL (a measure of predictive uncertainty) across both 3-day and 24-hour forecast horizons.
  • Uncertainty: Notably, DFGP significantly outperformed other models in P90QL, indicating its strength in capturing and predicting higher quantiles, which is crucial for risk-aware forecasting.
  • RMSE: The model also achieved lower Root Mean Square Error (RMSE).

Limitations and Future Work

  • Non-Gaussian Likelihoods: The paper mentions that for non-Gaussian likelihoods, classical techniques like Box-Cox transform or variational inference (VAE) would be required. This is identified as a direction for future work.
  • Cold-Start Problems: While the global component helps with related time series, the paper doesn't explicitly detail how DFGP handles entirely new, unrelated time series (cold-start problems) beyond the general benefits of learning from a large corpus.
  • Computational Efficiency for GPs: While GPs are used locally for efficiency, scaling GPs to extremely large numbers of time series or very long individual series can still be computationally intensive. The paper focuses on a global DNN backbone for scalability, but the GP component's scalability is an implicit consideration.

Summary updated

BibTeX
@misc{maddix2018deep,
  author = {Danielle C. Maddix and Yuyang Wang and Alex Smola},
  title = {{Deep Factors with Gaussian Processes for Forecasting}},
  year = {2018},
  eprint = {1812.00098},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1812.00098},
}
Figure