Conformal Predictive Distribution Trees

Ulf Johansson, Tuve Löfström, Henrik BoströmAnnals 2023

Abstract

Being able to understand the logic behind predictions or recommendations on the instance level is at the heart of trustworthy machine learning models. Inherently interpretable models make this possible by allowing inspection and analysis of the model itself, thus exhibiting the logic behind each prediction, while providing an opportunity to gain insights about the underlying domain. Another important criterion for trustworthiness is the model’s ability to somehow communicate a measure of confidence in every specific prediction or recommendation. Indeed, the overall goal of this paper is to produce highly informative models that combine interpretability and algorithmic confidence. For this purpose, we introduce conformal predictive distribution trees, which is a novel form of regression trees where each leaf contains a conformal predictive distribution. Using this representation language, the proposed approach allows very versatile analyses of individual leaves in the regression trees. Specifically, depending on the chosen level of detail, the leaves, in addition to the normal point predictions, can provide either cumulative distributions or prediction intervals that are guaranteed to be well-calibrated. In the empirical evaluation, the suggested conformal predictive distribution trees are compared to the well-established conformal regressors, thus demonstrating the benefits of the enhanced representation.

Introduction

In the quest for "Trustworthy AI," two pillars are often at odds: interpretability (understanding why a model made a choice) and algorithmic confidence (knowing how sure the model is). Standard regression trees are favored for their interpretability, allowing users to trace decision logic from root to leaf. However, they typically provide only a single point prediction—the mean or median of training samples in a leaf—offering no insight into uncertainty. While conformal regression can provide prediction intervals, these are often "one-size-fits-all" and fail to describe the full shape of the potential outcome. This paper introduces Conformal Predictive Distribution Trees (CPDTs) to bridge this gap, providing a full, well-calibrated probability distribution for every leaf.

Methodology

The CPDT framework integrates standard regression trees with Conformal Predictive Systems (CPS). Unlike standard conformal prediction, which outputs a range, CPS outputs a Cumulative Distribution Function (CDF). This allows users to query the model for complex probabilities, such as the likelihood of a target value exceeding a specific threshold.

The workflow involves:

  1. Model Training: A regression tree is trained on a training set.
  2. Calibration: A separate calibration set is used to calculate nonconformity scores (residuals) for each leaf.
  3. Normalization: To improve efficiency, the standard deviation of target values within each leaf serves as a "difficulty estimate." This ensures that leaves with high variance produce wider, more cautious distributions.
  4. Inference: At test time, the model identifies the appropriate leaf and adjusts the stored distribution based on calibrated residuals to produce a valid CDF.

Key Insights and Ideas

A primary advantage of CPDTs is that interpretability extends to uncertainty. By examining a leaf's distribution, a human can discern if the model is "confused" due to inherent noise or if the distribution is skewed.

Figure 6: A conformal predictive distribution for an instance from the Abalone dataset, showing the CDF and various prediction intervals.

As shown in Figure 6, CPDTs provide the entire curve rather than just a box. This enables "asymmetric" confidence; for instance, a model might be certain a value isn't low but less certain about its upper bound. Crucially, these distributions are "valid," meaning that empirical error rates align with chosen significance levels ($\epsilon$) in the long run.

Empirical Evaluation

The approach was evaluated using 20 datasets from the UCI, Delve, and KEEL repositories, with sizes ranging from 1,400 to 10,000 instances.

Key Results: * Validity: Across all datasets, empirical error rates were almost exactly equal to the significance levels. If you asked for a 95% confidence interval, the model failed only ~5% of the time. * Predictive Accuracy: Using the median of the conformal distribution (CPSn) as a point prediction resulted in slightly lower Mean Absolute Error (MAE) ranks compared to standard regression trees. * Efficiency: While standard normalized conformal regression (CRn) produced slightly tighter intervals, the CPSn approach provided significantly more information while remaining nearly as efficient. * Normalization Impact: Normalized versions (using leaf-specific variance) were far more efficient than standard versions, producing tighter intervals for "easy" instances.

Conclusion and Future Work

While CPDTs offer high informativeness, the authors acknowledge that large trees can become difficult for humans to grasp globally. Future research may explore "Mondrian" systems for even more specialized local guarantees or more sophisticated heuristics for extracting intervals from the distributions. Nonetheless, CPDTs represent a significant step toward combining interpretability with rigorous algorithmic confidence.

Summary updated

BibTeX
@article{johansson2023conformal,
  author = {Ulf Johansson and Tuve Löfström and Henrik Boström},
  title = {{Conformal Predictive Distribution Trees}},
  journal = {Annals},
  year = {2023},
  doi = {10.1007/s10472-023-09847-0},
}
Figure