Nested Conformal Prediction and the Generalized Jackknife

Arun Kumar Kuchibhotla, Aaditya Ramdas

Abstract

Conformal prediction is a popular tool for providing valid prediction sets for classification and regression problems, without relying on any distributional assumptions on the data. While the traditional description of conformal prediction starts with a nonconformity score, we provide an alternate (but equivalent) view that starts with a sequence of nested sets and calibrates them to find a valid prediction set. The nested framework subsumes all nonconformity scores, including recent proposals based on quantile regression and density estimation. While these ideas were originally derived based on sample splitting, our framework seamlessly extends them to other aggregation schemes like cross-conformal, jackknife+ and out-of-bag methods. We use the framework to derive a new algorithm (QOOB, pronounced cube) that combines four ideas: quantile regression, cross-conformalization, ensemble methods and out-of-bag predictions. We develop a computationally efficient implementation of cross-conformal, that is also used by QOOB. In a detailed numerical investigation, QOOB performs either the best or close to the best on all simulated and real datasets.

Introduction

In modern machine learning, point predictions are often insufficient for high-stakes decision-making. We require prediction intervals that offer reliable uncertainty quantification. Conformal prediction has emerged as the gold standard for this task, providing distribution-free guarantees: prediction sets will contain the true value with a user-specified probability (e.g., 95%), regardless of the underlying data distribution.

Traditionally, conformal prediction is defined through "nonconformity scores"—heuristic measures of how much a new data point deviates from the training set. However, selecting an optimal score can be non-intuitive. Furthermore, advanced, data-efficient techniques like the Jackknife+ were historically restricted to specific types of scores, such as residuals in mean regression. This paper re-imagines conformal prediction by replacing arbitrary scores with a framework of nested sets, simplifying the underlying theory and extending the Jackknife+ to a broader class of machine learning models.

The Nested Framework

The core of this proposal is Nested Conformal Prediction. Instead of starting with a score, the process begins with a sequence of nested sets $\mathcal{F}_t(x)$ that expand as the parameter $t$ increases. Conceptually, these sets act as concentric "envelopes" around a prediction. As $t$ grows, the envelope expands to cover more of the output space.

Table 1: Examples of nested set sequences from existing literature mapped to the proposed framework.

This shift in perspective reveals that the essence of conformal prediction is calibration: finding a mapping that translates a desired error rate $\alpha$ into the appropriate "radius" $t$ for these envelopes. As shown in Table 1, this framework is universal; it can represent any prediction interval produced by traditional score-based methods, including those based on quantile regression (Romano et al., 2019) or density estimation (Izbicki et al., 2019).

Generalizing the Jackknife+ and Cross-Conformalization

By adopting the nested viewpoint, the authors decouple the "machine learning" component (building the nested sets) from the "conformal" component (calibrating the scale). This decoupling allows for the generalization of the Jackknife+ and Cross-Conformal methods to work with various aggregation schemes, including:

  • K-fold cross-validation
  • Subsampling
  • Bootstrapping

This flexibility leads to the development of the QOOB (Quantile Out-of-Bag) algorithm, which integrates quantile regression with ensemble-based out-of-bag predictions. The authors provide formal proofs (Theorems 4.1 through 5.2) demonstrating that these generalized versions maintain rigorous coverage guarantees.

Key Insights and Theoretical Results

  • Universality: The paper proves that nested sets and nonconformity scores are mathematically equivalent, but nestedness is a more "natural" requirement for uncertainty sets, as optimal prediction sets (like probability density level sets) are inherently nested.
  • Coverage Bounds: For the generalized Jackknife+, the authors prove a coverage guarantee of at least $1 - 2\alpha$. While slightly more conservative than the ideal $1 - \alpha$, this bound is remarkably robust, holding under broad conditions without distributional assumptions.
  • Computational Efficiency: The nested framework allows for a more efficient implementation of cross-conformal regions compared to traditional score-based approaches, which often require expensive re-computation.

Limitations and Future Work

While the nested framework offers significant theoretical and practical advantages, some challenges remain. The $1 - 2\alpha$ bound for Jackknife+ variants represents a "worst-case" scenario; while empirical performance often nears $1 - \alpha$, a tighter theoretical proof for the general case remains an open problem. Additionally, while the authors improve the efficiency of cross-conformal methods, Full Conformal prediction remains computationally prohibitive for many real-world applications due to the need to refit models for every candidate output value.

In summary, by shifting the focus from scores to nested sets, this work provides a unified, flexible, and theoretically grounded approach to distribution-free uncertainty quantification, bridging the gap between simple regression residuals and complex modern estimators.

Summary updated

BibTeX
@article{kuchibhotla2019nested,
  author = {Arun Kumar Kuchibhotla and Aaditya Ramdas},
  title = {{Nested Conformal Prediction and the Generalized Jackknife}},
  journal = {Pattern Recognition},
  year = {2019},
  doi = {10.1016/j.patcog.2021.108496},
}
Figure