Conformal Validity Guarantees Exist for Any Data Distribution (and How to Find Them)

Drew Prinster, Samuel Stanton, Anqi Liu, Suchi Saria · DOI

Abstract

Traditional Conformal Prediction (CP) relies heavily on the assumption of exchangeability to provide rigorous uncertainty guarantees. However, in many real-world applications—such as active learning and autonomous experimentation—data is generated through feedback loops that violate this assumption. This paper demonstrates that conformal validity is not tied to exchangeability but is a fundamental property that can be derived for any data distribution. We present a general framework for constructing valid prediction sets by factorizing the joint probability density function and introduce a computationally tractable "d-step" approximation for dynamic environments.

Introduction

Conformal Prediction (CP) has become a cornerstone of reliable machine learning by providing finite-sample coverage guarantees. For a chosen significance level $\alpha$, CP generates prediction sets that contain the true outcome with probability at least $1-\alpha$. Historically, the mathematical validity of these sets has been predicated on the data being exchangeable—meaning the joint distribution is invariant under permutations of the data points.

In practice, exchangeability is often an unrealistic ideal. When a model actively selects its training data (active learning) or operates within a sequential decision-making loop (black-box optimization), the data-generating process becomes inherently non-exchangeable. This "exchangeability barrier" has long been viewed as a fundamental limit to the applicability of CP. Researchers at Johns Hopkins and Genentech challenge this view, proving that valid guarantees exist for any distribution, provided the underlying logic of the data selection process is known.

The Theoretical Foundation: Beyond Exchangeability

The core contribution of this work is the realization that exchangeability is a sufficient condition for computational tractability, not a necessary condition for statistical validity. The authors reframe CP as an inverted permutation test. By examining the joint probability density function (PDF) of the entire sequence of observations, one can calculate the relative likelihood of different data orderings.

A General Recipe for Validity

The paper provides a systematic approach to deriving CP weights for non-exchangeable data:

  1. Structural Assumptions: Define the dependencies in the data-generating process, often represented as a graphical model.
  2. PDF Factorization: Decompose the joint PDF into "dynamic" components (the agent's query logic) and "invariant" components (the underlying conditional distribution of the labels).
  3. Weight Computation: Calculate the likelihood ratios. Crucially, because the invariant components appear in both the numerator and denominator of these ratios, they cancel out. This allows for the construction of valid intervals without prior knowledge of the true underlying data distribution.

Practical Implementation: The d-step Approximation

While theoretically sound for any distribution, the exact calculation of these weights is computationally intensive, scaling factorially with the number of samples ($O((n+t)!)$). To bridge the gap between theory and practice, the authors introduce the "d-step" approximation.

In many autonomous systems, the dependency of the current query on past data is local or has diminishing returns over time. By limiting the look-back window to the most recent $d$ steps, the complexity is reduced to a polynomial scale. This approximation allows the framework to be deployed in real-time systems while maintaining robust coverage.

Empirical Evaluation

The researchers validated their approach, termed Multistep Feedback Covariate Shift (MFCS), across several challenging domains:

In-silico Protein Design

In protein engineering, models propose sequences to maximize specific properties (e.g., fluorescence). This creates a strong feedback loop. The study found that standard CP and even simpler "one-step" shift corrections failed to maintain the target 90% coverage as the design process progressed. In contrast, the MFCS method consistently met the coverage targets, demonstrating its resilience to agent-induced distribution shifts.

Active Learning Benchmarks

The framework was also tested on standard UCI datasets, including Airfoil Self-Noise, Communities and Crime, and Medical Expenditure Panel Survey (MEPS). These tests confirmed that the "d-step" approximation (with $d$ as low as 2 or 3) is often sufficient to restore validity in active learning scenarios where standard methods falter.

Discussion and Key Insights

The paper highlights a "Control-Consistency Dilemma": the act of controlling a system (choosing data points) inherently changes the statistical properties of the data. This work provides the mathematical bridge to maintain statistical consistency under control.

Key takeaways include:

  • Known Logic as a Lever: If the algorithm for data selection is known, that knowledge can be leveraged to "de-bias" prediction intervals.
  • Efficiency vs. Depth: There is a trade-off between the depth of the look-back window ($d$) and the computational cost, but even shallow windows provide significant improvements over IID assumptions.
  • Informative Intervals: While maintaining validity is the priority, the authors show that by bounding query functions, they can prevent the prediction intervals from becoming excessively wide or non-informative.

Conclusion

By proving that conformal validity exists for any distribution, this research removes a significant theoretical hurdle in the field of uncertainty quantification. It shifts the focus from whether a guarantee can be found to how to efficiently compute it. For engineers building autonomous agents and active learning systems, this framework provides a rigorous path toward reliable and trustworthy AI in dynamic, real-world environments.

Summary updated

BibTeX
@inproceedings{prinster2024conformal,
  author = {Drew Prinster and Samuel Stanton and Anqi Liu and Suchi Saria},
  title = {{Conformal Validity Guarantees Exist for Any Data Distribution (and How to Find Them)}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=F3936hVwQa},
}
Figure