Abstract
Conformal prediction provides distribution-free uncertainty quantification under minimal assumptions. An important ingredient in conformal prediction is the so-called nonconformity measure, which quantifies how the test sample differs from the rest of the data. In this paper, existing nonconformity measures from the current literature are collected and their underlying ideas are analyzed. Furthermore, the influence of different factors on the performance of conformal prediction are pointed out by focusing on the relation between the influencing factors and the choice of nonconformity measures. Lastly, we provide suggestions for future work with regard to currently existing knowledge gaps and development of new nonconformity measures.
Introduction
In modern machine learning, providing a single point estimate is often insufficient for high-stakes decision-making. Standard regression models typically lack a reliable way to quantify uncertainty without making restrictive assumptions about the underlying data distribution, such as assuming Gaussian noise. Conformal Prediction (CP) has emerged as a powerful framework to address this, offering a way to generate prediction intervals that are guaranteed to contain the true value with a user-defined probability (e.g., 95%).
The mathematical engine driving this framework is the nonconformity measure (NCM). An NCM quantifies how "strange" or "different" a new data point appears relative to the training data. While the CP framework ensures statistical validity (coverage), the practical utility of the resulting intervals—their "efficiency" or tightness—is entirely dependent on the choice of NCM. This paper synthesizes the current landscape of NCMs specifically for regression tasks, categorizing their methodologies and identifying critical performance factors.
A Taxonomy of Nonconformity Measures
Existing NCMs in the literature can be broadly categorized into three families based on how they calculate the "strangeness" of a data point:
1. Absolute Error-Based Measures
The most straightforward NCM is the absolute residual: $\alpha_i = |y_i - \hat{y}_i|$. While computationally simple and easy to implement, these measures are "global." They tend to produce intervals of constant width across the entire feature space. This lack of adaptivity makes them inefficient when dealing with data where the noise level varies (heteroscedasticity).
2. Normalized (Locally Weighted) Measures
To account for varying difficulty across the dataset, normalized measures scale the error by a predicted local difficulty or variance ($\sigma_i$). By incorporating local information—often derived from k-Nearest Neighbors (k-NN) or secondary error-prediction models—these measures produce wider intervals for "hard" examples and narrower ones for "easy" ones. This adaptivity significantly improves the efficiency of the prediction intervals in complex datasets.
3. Quantile-Based Measures
Conformalized Quantile Regression (CQR) represents a shift in perspective. Instead of centering an interval around a mean prediction, CQR uses quantile regression to estimate the lower and upper bounds directly. The NCM then measures the extent to which an actual value falls outside these predicted bounds. CQR is currently considered a "gold standard" for its ability to handle both heteroscedastic noise and non-Gaussian distributions effectively.
Key Insights and Performance Factors
The Efficiency-Validity Trade-off
A central theme in the study of NCMs is the distinction between validity and efficiency. Because CP is distribution-free, any valid NCM will meet the required coverage probability. However, a poorly chosen NCM may result in intervals so wide that they provide no actionable information. The goal of NCM research is to maximize efficiency (minimizing interval length) without sacrificing the validity guarantee.
The Challenge of Heteroscedasticity
Real-world data rarely exhibits uniform noise. In heteroscedastic environments, simple absolute error measures fail to provide informative intervals. The review highlights that normalized and quantile-based measures are essential for these scenarios, as they allow the model to adapt to local data density and noise levels.
Computational and Methodological Costs
Advanced NCMs often come with a "double training" cost. For instance, normalized measures frequently require training a secondary model to predict the error of the primary model. Additionally, the paper notes the distinction between Transductive Conformal Prediction (TCP) and Inductive Conformal Prediction (ICP). While TCP is more computationally intensive, it generally yields more stable and slightly more efficient intervals than ICP, which relies on a separate calibration set.
Future Research Directions
Despite the growth of the field, several gaps remain:
- Direct Benchmarking: There is a lack of systematic, head-to-head comparisons of different NCMs across standardized benchmarks to determine which measures excel under specific noise conditions.
- Hyperparameter Optimization: Guidance is needed on how to tune internal parameters (such as the number of neighbors $k$ in k-NN measures) without violating the exchangeability assumptions that underpin CP.
- High-Dimensional Data: Adapting these measures for high-dimensional settings, such as spatiotemporal data and complex time-series forecasting, remains a significant challenge.
- Tunable Measures: The authors suggest the development of "tunable" NCMs that allow practitioners to explicitly balance the trade-off between interval stability and tightness based on the specific requirements of their application.
Conclusion
Nonconformity measures are the defining component of Conformal Prediction in regression. While the framework provides the guarantee of validity, the NCM provides the utility. As machine learning moves toward more robust uncertainty quantification, the refinement and standardization of these measures will be critical for deploying reliable models in real-world, heteroscedastic environments.
Summary updated