Probabilistic Time Series Forecasting with Structured Shape and Temporal Diversity

Vincent Le Guen, Nicolas ThomearXiv 2020

Abstract

Probabilistic forecasting consists in predicting a distribution of possible future outcomes. In this paper, we address this problem for non-stationary time series, which is very challenging yet crucially important. We introduce the STRIPE model for representing structured diversity based on shape and time features, ensuring both probable predictions while being sharp and accurate. STRIPE is agnostic to the forecasting model, and we equip it with a diversification mechanism relying on determinantal point processes (DPP). We introduce two DPP kernels for modeling diverse trajectories in terms of shape and time, which are both differentiable and proved to be positive semi-definite. To have an explicit control on the diversity structure, we also design an iterative sampling mechanism to disentangle shape and time representations in the latent space. Experiments carried out on synthetic datasets show that STRIPE significantly outperforms baseline methods for representing diversity, while maintaining accuracy of the forecasting model. We also highlight the relevance of the iterative sampling scheme and the importance to use different criteria for measuring quality and diversity. Finally, experiments on real datasets illustrate that STRIPE is able to outperform state-of-the-art probabilistic forecasting approaches in the best sample prediction.

Introduction

Predicting the future of non-stationary time series, such as traffic flow or electricity demand, is a fundamental challenge because the future is rarely a single path but rather a distribution of possibilities. Current state-of-the-art models often face a "sharpness vs. diversity" trade-off. Deterministic models trained with Mean Squared Error (MSE) tend to produce "blurred" averages that fail to represent realistic, sharp transitions. Conversely, probabilistic models like conditional Variational Autoencoders (cVAEs) or DeepAR frequently suffer from "mode collapse," where they generate many similar trajectories instead of covering the full range of plausible futures.

The authors propose STRIPE (Shape and Time diverRsIty in Probabilistic forEcasting), a model-agnostic framework designed to produce forecasts that are both "plausible" (sharp and realistic) and "diverse" (covering different potential timings and magnitudes of events).

The STRIPE Framework

STRIPE is built upon three main pillars designed to decouple the requirements of accuracy and variety:

  1. Model-Agnostic Backbone: STRIPE utilizes a Sequence-to-Sequence (Seq2Seq) architecture, making it compatible with various temporal encoders like RNNs or Transformers.
  2. DILATE for Quality: To ensure predictions are sharp and accurately timed, the framework employs the DILATE loss. Unlike MSE, DILATE explicitly penalizes errors in shape and temporal alignment using logic derived from Dynamic Time Warping.
  3. DPP for Structured Diversity: To prevent the model from predicting redundant trajectories, STRIPE uses Determinantal Point Processes (DPP). The authors introduce two novel differentiable, positive semi-definite kernels: $K^{shape}$ (focusing on the geometric profile) and $K^{time}$ (focusing on the timing of events).
The STRIPE architecture: A model-agnostic framework that decouples quality and diversity using specialized DPP kernels for shape and time.

A key innovation in STRIPE is its sequential sampling mechanism. The authors argue that temporal diversity is most meaningful when shapes are similar. Consequently, STRIPE first samples diverse shapes and then, for each shape, samples diverse timings. This structured approach to the latent space allows for explicit control over the type of diversity generated, rather than relying on unstructured Gaussian noise.

Experimental Results

The model was evaluated on synthetic step functions and real-world datasets, including California traffic occupancy and electricity consumption measurements.

Synthetic Evaluation

On synthetic data, STRIPE significantly outperformed baselines like DeepAR in capturing the true distribution of future trajectories. It achieved much lower $H_{diversity}$ scores, indicating superior coverage of the ground truth. As shown in the comparison below, STRIPE successfully disentangles shape and temporal variations.

Comparison of predictions on synthetic data: STRIPE captures both shape and temporal diversity, avoiding the "blurred" averages of standard models.

Real-World Performance

On the Traffic and Electricity datasets, STRIPE achieved state-of-the-art results in terms of Continuous Ranked Probability Score (CRPS) and "best sample" MSE. In many practical scenarios, having at least one predicted scenario that closely matches the truth is more valuable than a low-error average. STRIPE excels at this "best sample" accuracy while maintaining the sharp peaks and valleys characteristic of the original signals, whereas competing models often produce smoothed, unrealistic curves.

Conclusion

STRIPE addresses the critical need for sharp and diverse probabilistic forecasts in non-stationary time series. By decoupling quality and diversity through specialized DPP kernels and a structured latent space, it provides a robust framework for complex forecasting tasks. Future work includes incorporating extrinsic knowledge like seasonality and extending the structured diversity approach to higher-dimensional spatio-temporal data.

Summary updated

BibTeX
@misc{guen2020probabilistic,
  author = {Vincent Le Guen and Nicolas Thome},
  title = {{Probabilistic Time Series Forecasting with Structured Shape and Temporal Diversity}},
  year = {2020},
  eprint = {2010.07349},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2010.07349},
}
Figure