TL;DR
This paper introduces a novel method for improving the efficiency of conformal prediction (CP) intervals by learning an input-dependent "conformity score" using normalizing flows. This allows for more adaptive and tighter prediction intervals, especially in scenarios with heteroscedastic noise, without requiring retraining of the underlying prediction model.
What Problem Does This Paper Address?
Conformal Prediction (CP) is a powerful framework for quantifying uncertainty in machine learning predictions by providing statistically valid prediction intervals (PIs). However, standard CP methods often produce PIs that are unnecessarily wide, particularly when the prediction errors are not uniformly distributed across the input space (i.e., in heteroscedastic settings). While some methods exist to adapt PIs to local input regions, they often require complex data splitting or assumptions about the data distribution. This paper addresses the challenge of creating input-adaptive PIs that are both statistically valid and more efficient (narrower) by learning a flexible, input-dependent transformation of the prediction errors.
Methods
The core of this work lies in treating the transformation of prediction errors as a Normalizing Flow (NF). Instead of using a fixed conformity score (like the absolute residual $|Y - f(X)|$), the authors propose learning a function $b(A, X)$, where $A$ is the raw conformity score and $X$ is the input attribute. This function $b$ transforms the scores into a new space where PIs can be constructed. The key idea is that by learning $b$ using an NF, the method can effectively learn to "localize" the prediction intervals based on the input features.
The learning process involves training the NF to map the joint distribution of conformity scores and input attributes ($P_{A,X}$) to a factorized distribution ($P_{B,X} = U_B P_X$), where $B = b(A, X)$ and $U_B$ is an arbitrary univariate distribution. This factorization is achieved by maximizing the likelihood of the transformed samples under a target distribution. The learned transformation $b$ then allows for the construction of PIs in the transformed space, which are then mapped back to the original label space. This approach is compatible with existing CP frameworks and can be applied to any pre-trained point-prediction model.
Datasets
The authors evaluate their method on:
- Four synthetic datasets: Generated with varying types of heteroscedastic noise (cosine, squared, inverse, linear) applied to a polynomial regression model.
- Six real-world benchmark datasets: Including bike sharing, CASP, community, concrete, energy, and Facebook comment volume datasets.
These datasets are split into training and testing subsets for both the regression model and the conformity functions.
Key Insights and Ideas
- Normalizing Flows for Conformity: The paper ingeniously frames the problem of learning input-adaptive conformity scores as training a Normalizing Flow. This provides a principled and flexible way to learn complex, input-dependent transformations.
- Learned Localization: By learning the transformation $b(A, X)$, the method can automatically adapt the prediction intervals to the local characteristics of the data and the prediction model's uncertainty, leading to more efficient intervals.
- Theoretical Guarantees: The work provides theoretical underpinnings for the validity of the proposed method, showing how the learned NF can lead to PIs that are both marginally and, under certain conditions, conditionally valid.
- Compatibility with Existing Methods: The approach is designed to be plug-and-play, working with any pre-trained regression model and being compatible with existing CP strategies.
Key Results
The paper demonstrates that the proposed normalizing flow-based approach (referred to as "Gauss" and "Uniform" models, depending on the target distribution used in the NF) often achieves better efficiency (smaller PIs) compared to baseline methods and the Error Reweighting (ER) algorithm, especially in heteroscedastic settings.
- Improved Efficiency: In many synthetic and real-world scenarios, the learned models achieve comparable or better coverage while producing significantly smaller average PI sizes. For instance, on synthetic data with $\alpha=0.05$, the Gauss model achieved a size of 0.506 compared to the baseline's 0.783.
- Conditional Coverage: The proposed method shows promise in approximating conditional coverage, as indicated by the Worst-Slab Coverage (WSC) metric, which is often lower (better) for the learned models compared to ER.
- Performance Across Confidence Levels: The benefits of the learned approach are observed across different confidence levels ($\alpha = 0.05, 0.1, 0.35$).
Limitations and Future Work
- Limited Model Complexity in Experiments: The authors acknowledge that their numerical simulations are limited in terms of the complexity of the learned models and the scope of comparisons with other localization approaches.
- Focus on Specific NF Architectures: The current work focuses on specific NF architectures (Gauss and Uniform). Generalizing to more complex NF architectures is a potential avenue for future work.
- Theoretical vs. Empirical: While theoretical guarantees are provided, the practical performance relies on the quality of the learned NF approximation.
- Future Directions: The authors suggest combining their calibration training with CP-aware retraining of the prediction model itself. They also note that their approach is compatible with existing localization strategies and could be used on top of them to provide theoretical guarantees.
Summary updated