Introduction
In many real-world regression tasks, a single point prediction is insufficient for decision-making. Stakeholders often require a measure of uncertainty—a prediction interval that is guaranteed to contain the true value with a specific probability. Conformal Prediction (CP) provides a framework for these guarantees, but standard Inductive Conformal Prediction (ICP) often suffers from data inefficiency because it requires a separate calibration set. This paper introduces a robust framework that combines Random Forests (RF) with Conformal Prediction to generate tighter, more informative intervals while maintaining strict statistical validity.
Methodology
The proposed approach leverages the unique structure of Random Forests to overcome the limitations of traditional ICP. The authors focus on two primary innovations: calibration efficiency and interval normalization.
Out-of-Bag (OOB) Calibration
Standard ICP requires setting aside a portion of the data for calibration, which can be detrimental for smaller datasets. The authors propose RFo, a method that uses the "out-of-bag" (OOB) samples inherent in the Random Forest bagging process. Since OOB samples are not seen by the specific trees they are tested against, they provide an unbiased source for calculating nonconformity scores. This allows the model to be trained on the entire dataset without sacrificing a calibration set.
Normalized Nonconformity and RFok
While standard CP produces fixed-width intervals, the authors utilize normalized functions to scale intervals based on instance difficulty. They introduce RFok, a novel normalization method where the difficulty of a test instance is estimated by calculating the average OOB error of its $k$-nearest neighbors within the training set. This ensures that regions of the feature space with higher uncertainty receive wider, more appropriate intervals.
Empirical Evaluation
The study conducted an extensive empirical investigation using 33 publicly available datasets from the UCI, Delve, and KEEL repositories. These datasets cover diverse regression tasks with sizes ranging from 500 to 10,000 instances. The RF-based methods were benchmarked against state-of-the-art implementations using Artificial Neural Networks (ANN) and k-Nearest Neighbors (kNN).
Key Results
- Superior Efficiency: The RF-based methods, particularly RFok, produced significantly tighter intervals than ANN and kNN benchmarks across 90%, 95%, and 99% confidence levels.
- Statistical Validity: Empirical results confirmed that using OOB samples for calibration does not compromise the validity guarantee. Error rates remained strictly within the user-defined confidence levels across all 33 datasets.
- The Power of Normalization: Normalized intervals were substantially smaller on average than standard fixed-width intervals, proving that accounting for instance-specific uncertainty leads to much more informative bounds.
Discussion and Future Work
While the RFok method provides excellent efficiency, it introduces a computational cost during the prediction phase due to the required $k$-nearest neighbor search. Future work may explore more efficient difficulty estimators, such as using a secondary Random Forest to predict error, or extending the OOB calibration technique to other ensemble methods like Gradient Boosting or Bagged SVMs. Overall, the integration of RF and CP represents a significant step forward in providing reliable, data-efficient uncertainty quantification for regression models.
Summary updated