Efficient Venn predictors using random forests

Ulf Johansson, Tuve Löfström, Henrik Linusson, Henrik BoströmMachine Learning 2019 · DOI

Introduction

In modern machine learning applications, point predictions (e.g., "Class A") are often insufficient. Decision-makers in fields like medicine or finance require reliable probability estimates—confidence scores that accurately reflect real-world frequencies. However, most standard classifiers, including Random Forests, are poorly calibrated. Their internal scores do not correspond directly to probabilities. While techniques like Platt scaling or isotonic regression exist, they typically require a separate calibration dataset, forcing a trade-off between model training and calibration quality.

This paper explores the integration of Venn predictors with Random Forests, specifically leveraging out-of-bag (OOB) instances to provide statistically guaranteed calibration without sacrificing training data.

Methodology

Venn and Venn-Abers Predictors

Venn predictors (VP) and their variant, Venn-Abers predictors (VAP), are "multi-probability" frameworks. Instead of a single probability value, they output an interval $[L, U]$. These predictors are mathematically guaranteed to be valid under the assumption of exchangeability—meaning the true probability of an event is guaranteed to fall within the predicted interval in the long run.

Out-of-Bag (OOB) Calibration

The primary innovation discussed is the use of OOB data for calibration. Random Forests are built using "bagging," where each tree is trained on a bootstrap sample of the data. For any specific training instance, approximately 36.8% of the trees in the forest did not see it during training. These are the "out-of-bag" trees.

By using these OOB sub-ensembles to generate calibration scores for the training data, the authors create a "free lunch" scenario: 100% of the labeled data is used to grow the forest, and 100% of the data is simultaneously used to calibrate the model. To maintain the mathematical guarantees of exchangeability, the authors implement a procedure where test instances are treated identically to training instances by randomly selecting a training instance's OOB structure for each test prediction.

Experimental Evaluation

The researchers evaluated ten different configurations across 22 binary classification datasets from the UCI Machine Learning Repository and the PROMISE Software Engineering Repository. The comparison included:

  • Raw Random Forest probability estimates.
  • Standard calibration techniques (Platt scaling, Isotonic regression).
  • Venn predictors using separate calibration sets.
  • Venn predictors using OOB calibration (VP-oob and VAP-oob).

Key Findings

1. Superior Calibration and Reliability

The OOB-calibrated Venn Predictor (VP-oob) emerged as the most reliable model. Statistical analysis using Friedman tests and Bergmann-Hommel procedures confirmed that Venn predictors provided significantly more reliable estimates than both isotonic regression and raw forest outputs.

2. Informative Intervals

While validity is guaranteed for all Venn predictors, the utility of the prediction depends on the "informativeness" (the tightness of the interval). VP-oob produced remarkably tight intervals, averaging less than one percentage point (0.006). This indicates that the OOB approach provides enough data to make the guaranteed intervals highly precise.

3. Increased Accuracy

Models utilizing OOB calibration consistently outperformed those using a split-set approach. By keeping all data "in-play" for the ensemble, the models achieved higher overall accuracy across every dataset tested. This confirms that the OOB method successfully bypasses the traditional trade-off between model power and calibration.

Conclusion

The combination of Venn predictors and Random Forest OOB data offers a robust solution for generating well-calibrated probabilities. By leveraging the inherent structure of bagged ensembles, practitioners can achieve statistical validity and high predictive performance without the need for separate calibration sets. Future work may extend these findings to multi-class problems and explore more sophisticated taxonomies to further refine the informativeness of the predicted intervals.

Summary updated

BibTeX
@article{johansson2019efficient,
  author = {Ulf Johansson and Tuve Löfström and Henrik Linusson and Henrik Boström},
  title = {{Efficient Venn predictors using random forests}},
  journal = {Machine Learning},
  year = {2019},
  doi = {10.1007/s10994-018-5753-x},
}
Figure