Flow-based Conformal Prediction for Multi-dimensional Time Series

Junghwan Lee, Chen Xu, Yao Xie

Uncertainty quantification (UQ) is the "safety net" of machine learning. It tells us not just what a model predicts, but how much we should trust that prediction. While Conformal Prediction (CP) has become a gold standard for UQ due to its rigorous mathematical guarantees, it has historically struggled with two major challenges: the "messy" temporal correlations inherent in time series data, and the complexity of multi-dimensional outputs.

In a new paper, researchers introduce FCP (Flow-based Conformal Prediction), a novel method that uses generative modeling techniques to build tighter, more reliable uncertainty bounds for complex sequential data.

TL;DR

FCP leverages "Guided Flow" (a generative AI technique) to map complex, multi-dimensional prediction errors into a simple, well-understood space. This allows the model to generate highly flexible and efficient uncertainty regions that maintain rigorous coverage guarantees, even when data points are correlated over time.

The Challenge with Time Series and Multiple Dimensions

Standard Conformal Prediction relies on a property called exchangeability—essentially the idea that your data points can be shuffled like a deck of cards without changing their joint distribution. Time series data, where today’s observations are highly correlated with yesterday’s, flagrantly violates this assumption.

Furthermore, most CP methods are designed for one-dimensional outputs (e.g., "What will the temperature be?"). When moving to multi-dimensional outcomes (e.g., "What will the traffic flow be across these 10 different highway sensors?"), existing methods often produce "prediction sets" that are either too rigid (like a giant box or ellipse) or far too large to be practically useful.

Methods: Bridging Generative AI and UQ

The authors bridge the gap between generative modeling and uncertainty quantification using three key components:

  1. Guided Flow Matching: Instead of trying to estimate a complex probability density directly, FCP learns a "flow"—a time-dependent mapping that pushes a simple "source" distribution (like a neat Gaussian ball) toward the "target" distribution of the model's residuals (the prediction errors).
  2. Classifier-Free Guidance (CFG): Borrowing a trick from image generators, the researchers condition this flow on the "past context." A Transformer encoder processes previous observations and errors to provide a guidance vector. This allows the model to adapt its uncertainty based on recent events in the time series.
  3. Flexible Prediction Sets: Because the flow is a bijective (reversible) mapping, the researchers define a confidence region as a simple ball in the Gaussian source space. When mapped back through the learned flow, it transforms into a complex, non-convex shape that perfectly "hugs" the data distribution in the original multi-dimensional space.
Illustration of the flow-based mapping from a simple source distribution to a complex target distribution conditioned on past context.

Key Insights and Ideas

  • Flexible Geometry Matters: Traditional methods often force uncertainty into ellipsoids or rectangles. FCP allows the uncertainty region to take any shape. If the errors are multi-modal or irregularly shaped, the flow-based set adapts accordingly, leading to much smaller and more efficient sets.
  • Context is King: By using a Transformer to encode the past, FCP effectively "whitens" the temporal correlation. It doesn't need the data to be exchangeable because it explicitly models the dependencies that break exchangeability.
  • Source-Space Scoring: The breakthrough moment is defining the non-conformity score in the source Gaussian space rather than the residual space. This makes the math of the coverage guarantees much cleaner while allowing for high-fidelity modeling of the actual errors.

Datasets and Key Results

The researchers evaluated FCP on three real-world multi-dimensional time series datasets: Wind (speed records from 30 farms), Traffic (flow data from 15 sensors), and Solar (radiation measurements across multiple locations). They tested these across varying dimensions ($d_y = 2, 4, \text{ and } 8$) to observe scaling behavior.

Comparison of 2D prediction sets across Wind, Traffic, and Solar datasets. FCP (red) consistently generates tighter regions than baselines.
  • Efficiency: FCP consistently produced the smallest prediction sets among all tested baselines (including MultiDimSPCI and Empirical Copula methods) while maintaining the target 95% coverage.
  • High-Dimensional Scaling: The performance gap widened as the number of dimensions increased. In 8-dimensional tasks, FCP's prediction sets were often orders of magnitude smaller than those of traditional copula-based or ellipsoidal methods.
  • Reliability: Unlike some black-box probabilistic models (like DeepAR or Temporal Fusion Transformers) which often "under-covered" (failed to meet the 95% target), FCP provided stable, guaranteed coverage across all datasets.

Limitations and Future Work

While powerful, FCP is computationally more intensive than simpler methods because it requires solving an Ordinary Differential Equation (ODE) to compute the flow. The authors also note that while they provide a finite-sample bound for conditional coverage, achieving "perfect" conditional coverage in time series remains an open theoretical challenge.

Future work may involve exploring "optimal transport coupling" to make the flow even more efficient and testing the framework on higher-dimensional "foundation models" for time series.

Reference: Lee, J., Xu, C., & Xie, Y. (2026). Flow-based Conformal Prediction for Multi-dimensional Time Series. Published as a conference paper at ICLR 2026.

Summary updated

BibTeX
@inproceedings{lee2026flow,
  author = {Junghwan Lee and Chen Xu and Yao Xie},
  title = {{Flow-based Conformal Prediction for Multi-dimensional Time Series}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=Uv3efQiPBZ},
}
Figure