Any-Quantile Probabilistic Forecasting of Short-Term Electricity Demand

Slawek Smyl, Boris N. Oreshkin, Pawel Pelka, Grzegorz DudekarXiv 2024 · DOI

Abstract

This paper introduces the "any-quantile" (AQ) framework, a novel approach for probabilistic time-series forecasting. By treating the target quantile level as an input feature, a single deep learning model can predict any arbitrary quantile at inference time. Integrated into architectures like ESRNN and N-BEATS, this method achieves state-of-the-art performance in short-term electricity demand forecasting across 35 European countries, significantly outperforming traditional baselines and modern probabilistic models.

Introduction

In the energy sector, "point forecasts"—predicting a single expected value—are often insufficient for operational decision-making. Power grid operators and energy traders require a comprehensive understanding of uncertainty to manage weather fluctuations, equipment failures, and sudden load spikes. This necessitates probabilistic forecasting, which predicts the entire distribution of possible outcomes.

Current approaches typically suffer from two main limitations: they either assume a specific parametric distribution (e.g., Gaussian), which often fails to capture real-world "fat tails," or they are trained to predict a small set of fixed quantiles (e.g., the 10th, 50th, and 90th percentiles). The latter approach lacks flexibility; if a risk assessment requires the 99th percentile, a new model must often be trained. This paper bridges this gap by proposing a flexible, non-parametric model capable of generating any quantile on demand.

Methods

The authors propose Any-Quantile (AQ) Learning. The core innovation is treating the desired quantile level ($q \in [0, 1]$) as an input feature to the neural network, rather than just a parameter of the loss function. This allows the model to learn the inverse cumulative distribution function (CDF) of the target variable.

The Any-Quantile (AQ) framework treats the quantile level q as an input feature to the forecasting network.

Key Techniques

  • Dynamic Conditioning: During training, the model is fed a randomly sampled $q$ for every sample. The network learns to adjust its output based on this value.
  • AQ-ESRNN: The authors modified the Exponential Smoothing RNN (ESRNN) by "reminding" the network of the quantile level at every layer. They found that using a Beta distribution to sample $q$ (focusing more on the tails) significantly improved performance by compensating for vanishing gradients.
  • AQ-NBEATS: Three variants for injecting the quantile into the N-BEATS architecture were explored: AQ-CAT (input concatenation), AQ-FiLM (Feature-wise Linear Modulation for shifting and scaling internal representations), and AQ-OUT (conditioning only in the final block for computational efficiency).
  • Quantile Sorting: To prevent "quantile crossing"—where a higher quantile is predicted to be lower than a lower one—a post-processing sorting step was implemented.

Datasets

The study utilizes a massive real-world dataset from the ENTSO-E repository, covering hourly electricity demand for 35 European countries from 2016 to 2018. This dataset is highly diverse, including countries with vastly different load profiles (e.g., Montenegro vs. Germany) and varying seasonal patterns. The authors have made their code and the processed dataset available on GitHub to support reproducibility.

Results and Insights

The AQ models were evaluated against a battery of baselines, including ARIMA, Prophet, and modern deep learning architectures like DeepAR and Temporal Fusion Transformers (TFT).

  • Superior Accuracy: AQ-ESRNN and AQ-NBEATS significantly outperformed all baselines. AQ-ESRNN achieved a Continuous Ranked Probability Score (CRPS) of 195.94, compared to 293.38 for WaveNet and 325.80 for TFT.
  • Point Forecast Performance: Even for simple point forecasting (using the 0.5 quantile), AQ-ESRNN achieved a Mean Absolute Percentage Error (MAPE) of 2.32%, the lowest in the study.
  • Architecture Sensitivity: N-BEATS was found to be naturally more resistant to quantile crossing than ESRNN, suggesting that architectural choices (like ReLU vs. Sigmoid/Tanh) fundamentally impact how models perceive probability space.
  • Efficiency: The AQ-OUT variant of N-BEATS demonstrated that near-state-of-the-art results are achievable by conditioning only at the final stage, which is 10–30 times faster than conditioning every block.

Conclusion and Future Work

The "Quantile as a Feature" approach allows models to become distribution-agnostic, learning the shape of uncertainty without parametric assumptions. While post-processing sorting addresses quantile crossing, future work could involve integrating mathematical constraints directly into the loss function. Additionally, the authors plan to extend this methodology to more volatile domains, such as renewable energy generation and financial time-series.

Summary updated

BibTeX
@misc{smyl2024any,
  author = {Slawek Smyl and Boris N. Oreshkin and Pawel Pelka and Grzegorz Dudek},
  title = {{Any-Quantile Probabilistic Forecasting of Short-Term Electricity Demand}},
  year = {2024},
  eprint = {2404.17451},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2404.17451},
}
Figure