CaDET: interpretable parametric conditional density estimation with decision trees and forests

Cyrus Cousins, Matteo RiondatoMachine Learning 2019 · DOI

Introduction

Conditional Density Estimation (CDE) is a fundamental task in probabilistic machine learning, aimed at predicting the full probability distribution of a target variable $Y$ given a set of features $X$. Unlike standard regression, which typically outputs a point estimate (the conditional mean), CDE provides a comprehensive view of the uncertainty, multimodality, and skewness inherent in the data. While decision trees and random forests are favored for their interpretability and robustness, existing tree-based CDE methods often rely on non-parametric techniques that sacrifice efficiency and clarity. This paper introduces CaDET (Conditional Density Estimation with Trees), a framework that integrates parametric distributions into the leaf nodes of decision trees, optimized via a novel information-theoretic splitting criterion.

The Limitations of Current Tree-Based CDE

Existing tree-based approaches to CDE, such as Random Forest CDE (RFCDE) or Quantile Regression Forests, generally fall into two categories: they either use non-parametric kernel density estimation (KDE) at the leaves or store the entire empirical distribution of training labels. These methods face three significant challenges:

  1. Interpretability: Non-parametric estimates are often "black boxes" that are difficult for practitioners to summarize or visualize intuitively.
  2. Computational Efficiency: Storing all training labels at every leaf node leads to high memory overhead and slow query times, especially in large-scale applications.
  3. Suboptimal Splitting Criteria: Traditional splitting metrics like Mean Squared Error (MSE) are designed to minimize variance around the mean. Consequently, they may fail to capture splits that significantly alter the shape of the distribution (e.g., changing variance or kurtosis) if the mean remains constant.

Methodology: The CaDET Framework

CaDET addresses these issues by treating each leaf node as a parametric distribution family. Instead of raw data, each leaf stores only the sufficient statistics required to parameterize the chosen distribution.

Empirical Cross-Entropy (ECE) Impurity

The core innovation of CaDET is the use of Empirical Cross-Entropy (ECE) as the impurity criterion for tree growth. ECE measures the negative log-likelihood of the data under the best-fitting distribution within a specific family. By minimizing ECE during the splitting process, CaDET directly optimizes for the likelihood of the predicted density. Mathematically, the paper demonstrates that ECE is a natural generalization of the criteria used in standard classification and regression trees: minimizing ECE for a Gaussian family is equivalent to minimizing MSE in regression, while doing so for a Categorical family recovers the standard cross-entropy used in classification.

Efficiency via Sufficient Statistics

By utilizing parametric families, CaDET achieves extreme efficiency. During training, the model only needs to track sufficient statistics (e.g., the sum and sum of squares for a Gaussian) to perform Maximum Likelihood Estimation (MLE) at the leaves. This eliminates the need to store raw training labels, resulting in models that are orders of magnitude smaller than their non-parametric counterparts.

Flexible Distribution Families

CaDET supports a wide range of distribution types to handle diverse data structures:

  • Product Families: For handling multivariate target variables.
  • Transformation Families: Allowing the model to operate on non-Euclidean spaces, such as spheres or simplices, through appropriate mapping functions.
  • Union Families: Using the Akaike Information Criterion (AIC), CaDET can automatically select the most appropriate distribution family for each leaf, allowing the model to adapt to local data characteristics.

Experimental Evaluation

The authors compared CaDET against the state-of-the-art RFCDE across several benchmarks:

  • UCI Datasets: 17 datasets from the UCI Machine Learning Repository, covering diverse domains such as air quality, medical diagnosis, and wine quality.
  • BATTING Dataset: A large-scale dataset of professional baseball statistics (over 88,000 samples) used to predict complex batting outcomes.
  • SML2010 Dataset: A dataset for indoor temperature prediction, specifically chosen to test CaDET’s ability to handle cyclic data (e.g., time of day) using the Von-Mises distribution.

Key Results and Insights

The experimental results highlight three primary advantages of CaDET:

  1. Superior Accuracy: CaDET consistently outperformed RFCDE in terms of Average Conditional Log Likelihood (ACLL) across the majority of the UCI datasets.
  2. Massive Model Compression: CaDET models are significantly more compact. While RFCDE might store thousands of labels per leaf, a CaDET leaf might store only 2 or 3 parameters. In one comparison, RFCDE averaged over 6,000 parameters per tree, while CaDET achieved better results with far fewer.
  3. Lower Sample Complexity: Because CaDET leverages the inductive bias of parametric families, it requires fewer samples to converge to an accurate density estimate compared to non-parametric methods that must "learn" the distribution shape from scratch.

Conclusion

CaDET represents a significant step forward in making conditional density estimation both interpretable and computationally efficient. By combining the structural advantages of decision trees with the statistical power of parametric modeling and a principled ECE splitting criterion, it offers a robust alternative to existing non-parametric methods. Future work will explore automated discovery of transformation functions and further refinements to the Union Family selection process to handle even more complex data topologies.

Summary updated

BibTeX
@article{cousins2019cadet,
  author = {Cyrus Cousins and Matteo Riondato},
  title = {{CaDET: interpretable parametric conditional density estimation with decision trees and forests}},
  journal = {Machine Learning},
  year = {2019},
  doi = {10.1007/s10994-019-05820-3},
}
Figure