Probabilistic Time Series Forecasting with Implicit Quantile Networks

Adèle Gouttes, Kashif Rasul, Mateusz Koren, Johannes Stephan, Tofigh NaghibiarXiv 2021

Abstract

Here, we propose a general method for probabilistic time series forecasting. We combine an autoregressive recurrent neural network to model temporal dynamics with Implicit Quantile Networks to learn a large class of distributions over a time-series target. When compared to other probabilistic neural forecasting models on real- and simulated data, our approach is favorable in terms of point-wise prediction accuracy as well as on estimating the underlying temporal distribution.

Introduction

In time series forecasting, providing a single point estimate is often insufficient for decision-making under uncertainty. Instead, practitioners require a probability distribution that quantifies the range of possible outcomes. Traditional deep learning models, such as DeepAR, are typically parametric; they assume the data follows a specific distribution (e.g., Gaussian or Negative Binomial). However, real-world data frequently exhibits complex characteristics like skewness, heavy tails, or multi-modality that these rigid assumptions fail to capture.

The challenge lies in developing a distribution-free model capable of learning the shape of uncertainty directly from data without a-priori assumptions. We address this by introducing IQN-RNN, a framework that leverages Implicit Quantile Networks (IQNs) within an autoregressive recurrent structure.

Methodology: The IQN-RNN Framework

The IQN-RNN architecture combines the temporal modeling capabilities of Recurrent Neural Networks (RNNs) with the distributional flexibility of IQNs.

The IQN-RNN architecture combines a GRU for temporal dynamics with an Implicit Quantile Network head for flexible distribution modeling.

The model consists of two primary components:

  1. Temporal Dynamics: A standard Gated Recurrent Unit (GRU) processes the historical time series to capture trends and seasonal patterns.
  2. Implicit Quantile Head: Instead of outputting distribution parameters (like mean and variance), the model takes a random sample $\tau \sim U([0, 1])$ as input. It learns a mapping function that transforms $\tau$ into the corresponding quantile of the target distribution. For instance, an input of $\tau = 0.9$ directs the network to predict the 90th percentile value.

Training is performed using the Quantile Loss. Since the integral of this loss over all $\tau \in [0, 1]$ is equivalent to the Continuous Ranked Probability Score (CRPS), the model effectively minimizes the discrepancy between the predicted and true cumulative distribution functions. During inference, "ancestral sampling" is used: by drawing multiple $\tau$ values at each step, the model generates diverse future trajectories, allowing for the calculation of any desired statistic (e.g., median, 95% prediction interval).

Experimental Evaluation

We evaluated IQN-RNN against state-of-the-art models across several benchmarks, including a synthetic Gaussian Mixture Model (GMM) and three real-world datasets: Electricity (hourly consumption), Traffic (highway occupancy), and Wikipedia (daily page views).

Key Results

IQN-RNN consistently outperformed or matched existing probabilistic models. On synthetic multi-modal data, it accurately captured complex distribution shapes that parametric models missed. On real-world datasets, IQN-RNN achieved superior performance in terms of CRPS, the primary metric for probabilistic accuracy.

Performance comparison of IQN-RNN against SQF-RNN, DeepAR, and ETS across three real-world datasets. Bold values indicate the best performance.

As shown in the results table, IQN-RNN achieved the lowest CRPS scores across all real-world datasets:

  • Electricity: 0.060 (vs. 0.062 for DeepAR-t)
  • Traffic: 0.139 (vs. 0.172 for DeepAR-t)
  • Wikipedia: 0.207 (vs. 0.235 for DeepAR-t)

Furthermore, the model showed strong point-prediction accuracy (measured by the median), suggesting that better distributional modeling enhances overall forecasting precision.

Conclusion and Future Work

IQN-RNN provides a robust, distribution-free approach to time series forecasting. By avoiding parametric "straitjackets," it excels in modeling complex real-world uncertainties. While currently limited to univariate forecasting, future work aims to extend this framework to multivariate settings, enabling the modeling of dependencies between thousands of related time series without relying on restrictive comonotonicity assumptions.

Summary updated

BibTeX
@misc{gouttes2021probabilistic,
  author = {Adèle Gouttes and Kashif Rasul and Mateusz Koren and Johannes Stephan and Tofigh Naghibi},
  title = {{Probabilistic Time Series Forecasting with Implicit Quantile Networks}},
  year = {2021},
  eprint = {2107.03743},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2107.03743},
}
Figure