Distribution-informed Online Conformal Prediction

Dongjian Hu, Junxi Wu, Shu-Tao Xia, Changliang Zou

Abstract

The authors introduce Conformal Optimistic Prediction (COP), a novel online algorithm that produces significantly tighter uncertainty intervals for time-series data. By incorporating an "optimistic" hint based on the estimated distribution of past errors, COP achieves state-of-the-art efficiency (narrower intervals) while maintaining the robust theoretical coverage guarantees that make conformal prediction highly reliable.

Introduction: The Challenge of Online Conformal Prediction

In high-stakes fields like finance or epidemiology, a point prediction (e.g., "the stock will be $100 tomorrow") is rarely sufficient; practitioners require a prediction range with a high, quantifiable probability of containing the true value. Conformal Prediction (CP) is the gold standard for this task because it provides "distribution-free" guarantees, meaning it works regardless of the underlying data model.

However, applying CP to online data, such as time series, presents unique challenges. Environments shift, and patterns change over time. Existing methods like Adaptive Conformal Inference (ACI) tend to be reactive—they widen the prediction interval only after they observe a mistake. This often results in intervals that are overly conservative (too wide to be useful) or highly jittery. Conversely, methods that attempt to model the data distribution directly often lose their theoretical safety net if the underlying model is misspecified. COP aims to bridge this gap: it utilizes distribution information to keep intervals tight when patterns exist, but falls back on robust guarantees when the environment becomes unpredictable.

Methodology: Conformal Optimistic Prediction

The core innovation of this paper is the Conformal Optimistic Prediction (COP) algorithm, which frames the problem through the lens of Optimistic Online Gradient Descent (OOGD).

  1. The Update Rule: Standard methods update the "radius" of a prediction set based on a simple binary indicator (whether the target was missed or not). COP introduces a refinement step to this process.
  2. The "Optimistic" Hint: COP leverages an estimated Cumulative Distribution Function (CDF) of recent "non-conformity scores" (errors). This CDF acts as a hint regarding the expected distribution of the next error.
  3. Refinement: Instead of merely reacting to the last error, COP uses a linear approximation of the expected quantile loss to proactively adjust the prediction interval.
  4. Efficiency: Crucially, COP does not require calculating the inverse of the estimated CDF—a common computational bottleneck in similar methods. This makes the algorithm highly efficient and numerically stable.

Importantly, the authors mathematically prove that even if the "hint" (the CDF estimate) is entirely inaccurate, the algorithm still maintains its long-term coverage guarantees.

Experimental Setup

The researchers evaluated COP against seven state-of-the-art baselines across a variety of scenarios:

  • Simulated Data: Five settings designed to stress-test the algorithms, including "Changepoints" (sudden shifts), "Distribution Drift" (gradual shifts), and "Extreme Drift."
  • Real-World Data:
    • Financial: Amazon and Google stock opening prices (2006–2014).
  • Energy: Electricity demand in New South Wales.
  • Climate: Daily temperatures in Delhi.
  • Base Models: COP was tested using different underlying predictors, including Prophet, AR (Autoregressive), and Theta models, demonstrating that the method is model-agnostic.

Key Insights

  • The Best of Both Worlds: COP effectively marries the robustness of adversarial online learning with the efficiency of statistical distribution modeling. It uses the predictable aspects of the data to shrink intervals and the adversarial framework to guarantee safety.
  • Robustness to Bad Estimates: A critical theoretical contribution is the proof that COP is robust to inaccurate CDF estimates. If the estimated distribution is noisy or wrong, the algorithm simply reverts to a more conservative state rather than failing completely.
  • Joint Bound: The paper establishes a joint bound on coverage (safety) and regret (efficiency). This demonstrates that a better distribution estimate directly reduces the width of the prediction intervals, rather than just improving theoretical properties.

Key Results

Performance comparison of COP against baselines on simulated datasets.
  • Tighter Intervals: As shown in the experimental results, COP consistently produced the narrowest prediction intervals (lowest average and median width) while successfully hitting the target 90% coverage rate across various base models.
  • Handling Extreme Shifts: In the "Extreme Drift" simulation, many traditional baselines (like PID or ECI) failed to construct valid prediction sets. COP adapted successfully, maintaining coverage where others collapsed.
  • Real-World Performance: On Amazon stock data using the Prophet model, COP achieved a median width significantly lower than standard OGD and ACI, which often produced "infinitely wide" or unusable intervals during volatile periods.
  • Speed: COP is computationally lightweight, with a per-step update time of roughly 0.011 ms, making it highly suitable for high-frequency, real-time applications.

Limitations and Future Work

  • Hyperparameter Tuning: While COP is robust to the scale factor ($\lambda$), the base learning rate ($\eta$) still requires some selection, though the authors provide an adaptive version to help mitigate this.
  • CDF Choice: The current implementation uses simple Empirical CDFs or Kernel Density Estimation. The authors suggest that integrating more sophisticated "scorecasters" (models that predict the error distribution) could yield even tighter intervals.
  • Univariate Focus: The current study focuses on scalar non-conformity scores. Extending this optimistic framework to more complex, multi-dimensional prediction regions remains an open area for future research.

Summary updated

BibTeX
@inproceedings{hu2026distribution,
  author = {Dongjian Hu and Junxi Wu and Shu-Tao Xia and Changliang Zou},
  title = {{Distribution-informed Online Conformal Prediction}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=I69SaLbwqZ},
}
Figure