Learning Quantile Functions without Quantile Crossing for Distribution-free Time Series Forecasting

Youngsuk Park, Danielle C. Maddix, François-Xavier Aubet, Kelvin Kan, Jan Gasthaus, Yuyang Wang

Abstract

Quantile regression is an effective technique to quantify uncertainty, fit challenging underlying distributions, and often provide full probabilistic predictions through joint learnings over multiple quantile levels. A common drawback of these joint quantile regressions, however, is quantile crossing, which violates the desirable monotone property of the conditional quantile function. In this work, we propose the Incremental (Spline) Quantile Functions I(S)QF, a flexible and efficient distribution-free quantile estimation framework that resolves quantile crossing with a simple neural network layer. Moreover, I(S)QF inter/extrapolate to predict arbitrary quantile levels that differ from the underlying training ones. Equipped with the analytical evaluation of the continuous ranked probability score of I(S)QF representations, we apply our methods to NN-based times series forecasting cases, where the savings of the expensive re-training costs for non-trained quantile levels is particularly significant. We also provide a generalization error analysis of our proposed approaches under the sequence-to-sequence setting. Lastly, extensive experiments demonstrate the improvement of consistency and accuracy errors over other baselines.

Introduction

In time series forecasting, point estimates often fail to capture the inherent uncertainty of future events. Probabilistic forecasting, which provides a range of possible outcomes, is essential for robust decision-making. Quantile regression has emerged as a popular "distribution-free" approach, as it avoids rigid parametric assumptions (e.g., Gaussianity) and can adapt to complex data shapes.

However, traditional joint quantile regression faces two significant hurdles. First is quantile crossing, where a predicted lower quantile (e.g., 10th percentile) exceeds a higher one (e.g., 90th percentile), violating basic probability theory. Second is the fixed-level constraint: models are typically trained on a pre-defined set of quantiles. If a different quantile level is required at inference time, the model often requires expensive retraining.

The I(S)QF Framework

To address these issues, we introduce Incremental (Spline) Quantile Functions (I(S)QF). This framework ensures monotonic quantile predictions through its architectural design rather than through soft constraints in the loss function.

Architectural Monotonicity

The core innovation is the Incremental layer. Instead of predicting absolute quantile values independently, the model predicts a base value for the lowest quantile and then predicts non-negative increments for subsequent levels. By utilizing activation functions such as ReLU or Sigmoid, the model mathematically guarantees that $q(\alpha_k) \ge q(\alpha_{k-1})$, eliminating quantile crossing by design.

The I(S)QF architecture ensures monotonicity by predicting non-negative increments and supports continuous quantile queries.

Continuous Representation

I(S)QF allows for "any-quantile" queries by interpolating between trained "knots." While the basic IQF uses linear interpolation, the ISQF variant employs learnable splines for greater flexibility. For extreme tails, the framework incorporates parametric extrapolation (e.g., Exponential or Generalized Pareto Distributions) to provide stable estimates where data is sparse. Furthermore, the authors derived a closed-form analytical expression for the Continuous Ranked Probability Score (CRPS), enabling direct optimization of the entire distribution. This "plug-and-play" layer works seamlessly with both Sequence-to-Sequence (Seq2Seq) models like MQ-CNN and Autoregressive models like DeepAR.

Experimental Evaluation

Researchers evaluated I(S)QF across nine diverse datasets, including electricity consumption (Elec), traffic occupancy (Traf), and Wikipedia page views (Wiki), alongside the M4 competition datasets.

Consistency and Accuracy

The proposed method achieved a 0% quantile crossing rate across all datasets, whereas baseline models like MQ-CNN exhibited crossing in up to 42% of predictions. In terms of accuracy, I(S)QF consistently matched or outperformed state-of-the-art baselines, particularly in Mean Weighted Quantile Loss and Mean Scaled Interval Score (MSIS).

Modeling Complex Distributions

The flexibility of the spline-based approach is particularly evident when modeling multimodal distributions. As shown below, increasing the number of knots allows the model to capture complex "humps" in the underlying distribution that simpler models would miss.

IQF with 20 knots demonstrates high fidelity in fitting a complex multimodal quantile function.

Operational Efficiency

By supporting arbitrary quantile queries at inference time without retraining, I(S)QF offers significant operational advantages. In experiments, this capability saved between 10 to 60 minutes of retraining time per run, a critical factor for large-scale industrial applications.

Conclusion

I(S)QF provides a robust, efficient, and theoretically sound solution for distribution-free probabilistic forecasting. By baking monotonicity into the network architecture, it resolves the long-standing problem of quantile crossing while offering the flexibility of continuous quantile queries. Future work will explore extending this framework to multivariate settings to capture correlations between multiple related time series.

Summary updated

BibTeX
@inproceedings{park2022learning,
  author = {Youngsuk Park and Danielle C. Maddix and François-Xavier Aubet and Kelvin Kan and Jan Gasthaus and Yuyang Wang},
  title = {{Learning Quantile Functions without Quantile Crossing for Distribution-free Time Series Forecasting}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2022},
  url = {https://openreview.net/forum?id=oCbXW2v5vi},
}
Figure