Robust Probabilistic Time Series Forecasting

Taeho Yoon, Youngsuk Park, Ernest K. Ryu, Yuyang Wang

Abstract

Probabilistic time series forecasting has played a critical role in decision-making processes due to its capability to quantify uncertainties. Deep forecasting models, however, could be prone to input perturbations, and the notion of such perturbations, together with that of robustness, has not even been completely established in the regime of probabilistic forecasting. In this work, we propose a framework for robust probabilistic time series forecasting. First, we generalize the concept of adversarial input perturbations, based on which we formulate the concept of robustness in terms of bounded Wasserstein deviation. Then we extend the randomized smoothing technique to attain robust probabilistic forecasters with theoretical robustness certificates against certain classes of adversarial perturbations. Lastly, extensive experiments demonstrate that our methods are empirically effective in enhancing the forecast quality under additive adversarial attacks and forecast consistency under supplement of noisy observations. The code for our experiments is available at https://github.com/tetrzim/robust-probabilistic-forecasting.

Introduction: The Vulnerability of Deep Forecasters

Deep learning has revolutionized time series forecasting, yet these models remain notoriously brittle. A minor, strategically calculated "adversarial" perturbation to input data can lead to wildly inaccurate predictions. While robustness is well-defined for point-prediction tasks like image classification, it remains an underdeveloped concept in probabilistic forecasting, where the goal is to predict a distribution rather than a single value.

This work addresses two critical gaps: the lack of a formal mathematical definition for distributional robustness in time series and the need for practical defense mechanisms against adversarial noise and compounding errors (exposure bias).

Defining and Visualizing Robustness

The authors propose defining robustness through the 1-Wasserstein distance. In this framework, a model is considered robust if a small perturbation in the input leads to a bounded change in the resulting forecast distribution. This choice is particularly apt for forecasters because the Wasserstein distance between two distributions is equivalent to the average difference between their corresponding quantiles—the primary metric used in practical uncertainty quantification.

Visualizing robustness in probabilistic forecasting.

Methodology: Randomized Smoothing and Training

To achieve this robustness, the paper introduces three core techniques:

  1. Randomized Smoothing (RS): This is a model-agnostic defense mechanism. Instead of a single input $x$, the model processes multiple versions of $x$ augmented with Gaussian noise. The final forecast is the average of these noisy samples. This process provides a "smoothed" forecaster with provable limits on its sensitivity to input changes.
  2. Future Smoothing for Autoregressive Models: For models like DeepAR that predict sequences step-by-step, the authors developed a technique to apply noise to the model's own previous predictions during inference. This prevents a single outlier from causing errors to compound over time.
  3. Randomized Training (RT): By training the base model on noise-augmented data, the model becomes more resilient. Interestingly, RT acts as a form of temporal regularization, often improving performance even on clean, non-perturbed data.

Experimental Evaluation

The framework was evaluated using the DeepAR model across four diverse benchmarks: Exchange Rate, M4-Daily, Traffic, and UCI Electricity. The primary metric used was Normalized Deviation (ND).

Performance of defense strategies across multiple datasets.

The results indicate a clear hierarchy of performance. Vanilla models fail rapidly as the attack threshold increases. While Randomized Smoothing (RS) alone provides significant improvements and theoretical guarantees, the synergy of RT+RS (Randomized Training combined with Smoothing) yields the best empirical results. For instance, on the Exchange Rate dataset, the RT+RS approach maintained an ND of approximately 0.20 under heavy attack, whereas the vanilla model's error climbed toward 0.35.

Conclusion and Future Directions

This research provides a foundational framework for building "braced-for-impact" predictors. By bridging the gap between abstract distributional stability and practical quantile forecasting, the authors offer a path toward more reliable AI-driven decision-making.

Future work will need to address the computational overhead of generating multiple sample paths for smoothing, which may be a constraint for real-time applications. Additionally, extending theoretical certificates to cover non-additive perturbations, such as time shifts or missing data, remains an important open challenge.

Summary updated

BibTeX
@inproceedings{yoon2022robust,
  author = {Taeho Yoon and Youngsuk Park and Ernest K. Ryu and Yuyang Wang},
  title = {{Robust Probabilistic Time Series Forecasting}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2022},
  url = {https://openreview.net/forum?id=iILiDUWSKar},
}
Figure