Error-quantified Conformal Inference for Time Series

Junxi Wu, Dongjian Hu, Yajie Bao, Shu-Tao Xia, Changliang Zou · OpenReview

Abstract

Uncertainty quantification in time series prediction is challenging due to the temporal dependence and distribution shift on sequential data. Conformal inference provides a pivotal and flexible instrument for assessing the uncertainty of machine learning models through prediction sets. Recently, a series of online conformal inference methods updated thresholds of prediction sets by performing online gradient descent on a sequence of quantile loss functions. A drawback of such methods is that they only use the information of revealed non-conformity scores via miscoverage indicators but ignore error quantification, namely the distance between the non-conformity score and the current threshold. To accurately leverage the dynamic of miscoverage error, we propose Error-quantified Conformal Inference (ECI) by smoothing the quantile loss function. ECI introduces a continuous and adaptive feedback scale with the miscoverage error, rather than simple binary feedback in existing methods. We establish a long-term coverage guarantee for ECI under arbitrary dependence and distribution shift. The extensive experimental results show that ECI can achieve valid miscoverage control and output tighter prediction sets than other baselines.

Introduction

In time series forecasting, point predictions are often insufficient for decision-making; robust uncertainty quantification is essential. Conformal Inference (CI) has emerged as a popular framework for generating prediction sets with a guaranteed coverage probability (e.g., 90%). However, traditional CI assumes exchangeability, an assumption frequently violated by time series data characterized by trends, seasonality, and abrupt distribution shifts (changepoints).

Existing online methods, such as Adaptive Conformal Inference (ACI), attempt to mitigate this by updating thresholds based on binary feedback—whether the previous set covered the true value. This binary approach ignores the magnitude of the error: a miss by a small margin is treated identically to a massive outlier. This leads to slow adaptation and overly conservative, wide prediction intervals.

Methodology: Error-quantified Conformal Inference (ECI)

The proposed ECI method shifts from discrete binary feedback to a continuous feedback loop by leveraging the magnitude of prediction errors through a smoothed quantile loss function.

Smoothing the Loss

By applying a smoothing function (such as a Sigmoid) to the indicator function within the standard quantile loss used in online gradient descent (OGD), the authors derive a new update rule. This derivation introduces an Error Quantification (EQ) term.

The EQ Term and Damping

The EQ term measures the distance between the current non-conformity score (the error) and the threshold. If the model significantly under-covers, the EQ term aggressively pushes the threshold up. Conversely, the term is designed to decrease if the error becomes excessively large, preventing a single outlier from destabilizing subsequent prediction sets.

Variants

  • ECI-cutoff: Filters out very small errors to prevent jitter and over-compensation.
  • ECI-integral: Incorporates errors from multiple past steps to enhance stability, analogous to the integral component in a PID controller.

Experimental Evaluation

The researchers evaluated ECI against state-of-the-art baselines including ACI, OGD, and PID across diverse datasets: financial (Amazon/Google stocks), energy (NSW electricity demand), climate (Delhi temperatures), and synthetic data with controlled changepoints.

Performance and Adaptation

ECI demonstrates superior agility in adapting to distribution shifts. As shown in Figure 1, ECI maintains stable coverage while producing significantly tighter prediction sets compared to standard OGD.

Comparison of coverage and prediction set sizes between OGD and ECI over time.

Quantitative Results

Across various base predictors—including Prophet, Autoregressive (AR), and Theta models—ECI variants consistently yielded the shortest average prediction sets while maintaining the target 90% coverage.

Quantitative comparison of coverage and interval width across different models and methods.

As summarized in the experimental results, for a Prophet model, ECI-integral reduced the average set width by nearly 25% compared to standard OGD while ensuring valid coverage.

Conclusion

ECI provides a more informative feedback mechanism for online conformal inference by quantifying the magnitude of miscoverage errors. By smoothing the quantile loss, ECI achieves a balance between aggressive adaptation to shifts and stability against outliers. Theoretical proofs confirm that ECI maintains long-term coverage guarantees under arbitrary distribution shifts, making it a robust and efficient tool for time series uncertainty quantification.

Summary updated

BibTeX
@inproceedings{wu2025error,
  author = {Junxi Wu and Dongjian Hu and Yajie Bao and Shu-Tao Xia and Changliang Zou},
  title = {{Error-quantified Conformal Inference for Time Series}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=RD9q5vEe1Q},
}
Figure