Conformal Time-series Forecasting

Kamilė Stankevičiūtė, Ahmed Alaa, Mihaela van der SchaarNeurIPS 2021

Overview

Recurrent Neural Networks (RNNs) are powerful tools for time-series forecasting, but they typically only provide point predictions. This lack of reliable uncertainty estimation is a critical flaw in high-stakes domains like medicine and finance. This paper introduces Conformal Forecasting RNNs (CF-RNNs), a lightweight method that extends Inductive Conformal Prediction to multi-horizon time-series. CF-RNN generates prediction intervals with strict, mathematically guaranteed frequentist coverage without requiring complex architectural changes to the underlying model.

The Challenge of Uncertainty in Time-Series

In critical applications, knowing what a model predicts is often less important than knowing how confident it is. While methods exist for uncertainty quantification in standard feed-forward networks, doing this for RNN-based time-series models is notoriously difficult. Existing approaches—like Bayesian RNNs, Quantile RNNs, or deep ensembles—either require massive changes to the model architecture, are computationally intractable, or fail to provide theoretical guarantees that the true value will actually fall within the predicted interval (known as frequentist coverage).

Conformal Prediction (CP) is a powerful statistical framework that guarantees this exact type of coverage. However, CP relies on an assumption called exchangeability—meaning data points can be swapped without changing their joint probability. Time-series data inherently violates this because sequential time-steps are temporally dependent. Applying CP to time-series forecasting without breaking its mathematical guarantees has thus remained a major challenge.

The CF-RNN Approach

The authors propose the Conformal Forecasting RNN (CF-RNN) framework, which adapts Inductive Conformal Prediction (ICP) to time-series by shifting the perspective on exchangeability.

Instead of treating individual time-steps within a single sequence as exchangeable (which is invalid), they treat entire independent time-series within a dataset as the exchangeable units (e.g., different patients in a hospital, or different regions tracking disease spread).

Illustration of exchangeability in time-series data.

The procedure works as follows:

  1. Direct Multi-Horizon Forecasting: An underlying RNN is trained to predict all $H$ future time steps simultaneously from a single embedding, rather than predicting recursively. This prevents error accumulation and maintains conditional independence.
  2. Calibration: A separate "calibration" dataset of time-series is passed through the trained model. The system calculates nonconformity scores—essentially the residual errors between the model's predictions and the actual ground truth.
  3. Bonferroni Correction: Because the model is predicting a trajectory of $H$ steps, the authors apply a Bonferroni correction to the target error rate $\alpha$ (dividing it by $H$). This ensures that the joint coverage—the probability that the entire predicted trajectory falls within the bounds—meets the desired confidence level.
  4. Interval Generation: For any new time-series, the model outputs the point forecast and uses the calibrated error distribution to draw precise upper and lower bounds.
The CF-RNN framework: (a) calibrating nonconformity scores and (b) forecasting with prediction intervals.

Experiments and Results

The authors evaluated CF-RNN on both synthetic and real-world datasets, tasking the models with achieving a target joint coverage of 90% ($\alpha = 0.1$).

  • Synthetic Data: Autoregressive time-series were generated with both static and time-dependent noise profiles. CF-RNN consistently hit the ~90-94% coverage mark across all profiles. Competing baselines like Monte Carlo Dropout (DP-RNN) and Quantile RNNs (MQ-RNN) failed dramatically, often achieving less than 10% joint coverage. The Blockwise Jackknife RNN (BJ-RNN) achieved 100% coverage but produced intervals up to 6x wider than CF-RNN, rendering them less informative.
  • Real-World Data: CF-RNN was the only model to empirically achieve the target joint coverage across all datasets:
  • MIMIC-III (Medical): CF-RNN achieved 94.0% coverage. (DP-RNN: 40.2%, MQ-RNN: 89.3%).
  • EEG (UCI): CF-RNN achieved 96.5% coverage. (DP-RNN: 3.3%, MQ-RNN: 48.0%).
  • COVID-19 (Epidemiological): On this highly non-stationary dataset, CF-RNN achieved 89.7% coverage. (DP-RNN: 0.0%, MQ-RNN: 15.0%).

Key Insights

  • Redefining Exchangeability: By recognizing that datasets often contain multiple independent time-series, the authors successfully unlocked the use of Conformal Prediction for sequential data.
  • Joint vs. Independent Coverage: Many models can predict a single future time step with 90% confidence. But if you want a 5-step trajectory to be 90% accurate as a whole, the individual steps need tighter bounds. The Bonferroni correction elegantly solves this.
  • Computational Efficiency: Because CF-RNN is a post-hoc procedure applied to a standard RNN, adding uncertainty intervals to a prediction takes constant time, unlike ensemble or jackknife methods which require massive computational overhead.

Limitations and Future Work

To strictly guarantee coverage on highly erratic datasets (like COVID-19), CF-RNN's prediction intervals can become quite wide. While mathematically valid, overly wide intervals can sometimes be less actionable for decision-makers. Additionally, the current implementation focuses on predicting a single variable over time. Future work will explore extending the framework to multivariate time-series forecasting and making the nonconformity scores more adaptive to the specific dynamics of individual observations to narrow the intervals.

Summary updated

BibTeX
@inproceedings{stankeviciute2021conformal,
  author = {Kamilė Stankevičiūtė and Ahmed Alaa and Mihaela van der Schaar},
  title = {{Conformal Time-series Forecasting}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=Rx9dBZaV_IP},
}
Figure