Online Localized Conformal Prediction

Yuheng Lai, Garvesh RaskuttiNeurIPS 2026

TL;DR

When forecasting sequential data like market volatility or disease outbreaks, existing uncertainty-quantification methods either adapt to sudden shifts over time or adjust to noisy regions of the feature space—never both. This paper bridges that gap with Online Localized Conformal Prediction (OLCP) and OLCP-Hedge, giving sequential models prediction intervals that dynamically tighten in easy regimes, widen in chaotic ones, and maintain reliable long-run accuracy without tedious hyperparameter tuning.

What Problem Does This Paper Address?

Suppose you want a machine learning model to output not just a point prediction, but a prediction interval guaranteed to contain the true answer 90% of the time. Conformal prediction (CP) is a beloved, distribution-free way to get these guarantees, provided your data is exchangeable (roughly, order doesn't matter and the data distribution stays static).

In time-series and online streams, exchangeability goes out the window. Data shifts over time, and uncertainty varies across the input space (heteroskedasticity—e.g., predicting stock returns is much harder when market fear is high than when it is calm).

Until now, researchers tackled these two headaches separately:

  1. Online conformal methods (like Adaptive Conformal Inference, or ACI) adjust to temporal shifts by updating calibration targets on the fly. However, they calibrate globally—if a shift happens, they inflate intervals everywhere, making predictions overly conservative in easy regions and too narrow in hard ones.
  2. Localized conformal methods (LCP) tailor interval widths to local input difficulty by weighting similar past examples, but assume static, exchangeable data and break down under temporal drift.

This paper asks: Can we get narrow, locally adaptive prediction intervals while maintaining long-run coverage in nonstationary data streams?

Methods

The authors combine spatial localization with temporal feedback via two algorithms:

  • OLCP (Online Localized Conformal Prediction): Instead of treating all recent errors equally like standard ACI, OLCP looks at a rolling window of past data and weights past error scores by how similar their input features ($X$) are to the current input $X_t$ (using an exponential kernel with bandwidth $h$). It computes a localized quantile to form the prediction set, checks whether the true $Y_t$ landed inside, and nudges its target miscoverage level $\alpha_t$ up or down via projected online gradient descent (clamped to $[0, 1]$).
  • OLCP-Hedge: Choosing the right localization bandwidth $h$ is tricky—too small is noisy, too large washes out local structure. Rather than guessing one $h$, OLCP-Hedge runs a pool of $K$ OLCP "experts" (each with a different bandwidth) and frames selection as a constrained online convex optimization problem. It uses a "virtual queue" to track cumulative undercoverage: it feeds a surrogate loss into an expert-weighting algorithm (AdaHedge) that directly minimizes interval width while exponentially increasing the penalty on experts that violate coverage constraints.

Datasets

No new benchmarks are introduced; the authors evaluate on both synthetic and standard real-world time-series tasks:

  • Synthetic Simulations: Univariate autoregression ($T = 1,500$) across three regimes: Stationary, Heterogeneous (noise scales exponentially with the feature), and Change-point (an abrupt sign flip in dynamics halfway through).
  • ELEC2: 27,552 observations of electricity prices, demand, and cross-state transfers in Australia.
  • ILINet: 1,305 weekly US CDC influenza-like illness surveillance records.
  • ETF Volatility: Daily log returns from 2008 to March 2026 across five major ETFs (SPY, QQQ, IWM, EEM, TLT), using lagged VIX and volatility metrics as localization features.

Key Insights and Ideas

  • Calibration doesn't have to be global: By applying feedback updates to a localized family of score distributions rather than a single global empirical distribution, OLCP decouples "what time is it?" from "how hard is this specific input?"
  • Clamping nominal levels is theoretically safe (mostly): Standard ACI lets its internal $\alpha_t$ parameter wander outside $[0, 1]$, yielding infinite or empty sets. OLCP projects $\alpha_t$ onto $[0, 1]$. The authors prove an exact identity showing that long-run coverage still holds as long as boundary hits grow sublinearly over time—which empirically distorted coverage by less than 0.5 percentage points.
  • Aggregation as constrained optimization: Standard conformal aggregation tries to preserve coverage after combining models. OLCP-Hedge flips this into a constrained game: actively hunt for the narrowest intervals, using a virtual queue to police excess miscoverage at $\tilde{O}(\sqrt{T})$ rates.

Key Results

Across experiments targeting 90% coverage ($\alpha = 0.10$), OLCP and OLCP-Hedge consistently hit the coverage target while producing tighter intervals than valid baselines:

  • Simulations: Under abrupt change-points, global online methods (ACI, DtACI) maintained ~0.898 coverage only by ballooning average interval widths to ~7.8. Static LCP shrank widths to 6.04 but failed coverage (0.880). OLCP and OLCP-Hedge nailed coverage (0.900 and 0.899) with widths of 6.30 and 6.31. Under covariate heterogeneity, OLCP-Hedge hit 0.900 coverage with width 3.55, beating ACI (3.73), COP (3.85), and LQT (3.81).
  • Real-World Streams: Among all methods achieving at least 90% empirical coverage, OLCP-Hedge achieved the smallest average interval size on every dataset: 0.3364 on ELEC2 (vs. 0.3678 for ACI), 0.7798 on ILINet (vs. 0.9846 for ACI), and 2.4404% on ETF volatility (vs. 2.6770% for ACI).

Limitations and Future Work

  • Marginal, not conditional, guarantees: Despite adapting interval sizes locally, OLCP's formal guarantee is still long-run marginal coverage over time, not strict conditional coverage at every $X$.
  • Theoretical assumptions: OLCP's guarantee relies on boundary projections remaining negligible, while OLCP-Hedge's regret bounds assume bounded set sizes and the existence of at least one fixed expert mixture that satisfies expected coverage at every single round (a strong requirement in unbounded regression).
  • Distance metric sensitivity: Like all kernel methods, localization relies on informative features and sensible distance metrics, which can struggle in high dimensions.
  • Future directions: Extending constrained expert aggregation to simultaneously tune step sizes, rolling window lengths, and base predictors, as well as exploring learned distance metrics and bandit-feedback settings.

Summary updated

Abstract

Conformal prediction is a framework that provides valid uncertainty quantification for general models with exchangeable data. However, in online learning and time-series settings, exchangeability is often violated. Existing online conformal methods, such as adaptive conformal inference (ACI), can achieve long-run coverage control, yet remain inefficient under covariate heterogeneity because they rely on global calibration. We propose *Online Localized Conformal Prediction (OLCP)*, which combines online adaptation with covariate-dependent localization to better capture heterogeneity. To reduce sensitivity to the localization bandwidth, we further develop *OLCP-Hedge*, which formulates bandwidth selection as a constrained online expert aggregation problem. We establish a pathwise long-run coverage identity for OLCP with explicit boundary corrections, and expected coverage-violation and set-size guarantees for OLCP-Hedge under a feasibility assumption. Simulations and real-data experiments demonstrate that the proposed methods achieve valid long-run coverage and favorable coverage--size tradeoffs under heterogeneity and temporal distribution shifts.
BibTeX
@inproceedings{lai2026online,
  author = {Yuheng Lai and Garvesh Raskutti},
  title = {{Online Localized Conformal Prediction}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=vPeDJdLEKg},
}
Figure