Abstract
We present tree- and list- structured density estimation methods for high dimensional binary/categorical data. Our density estimation models are high dimensional analogies to variable bin width histograms. In each leaf of the tree (or list), the density is constant, similar to the flat density within the bin of a histogram. Histograms, however, cannot easily be visualized in higher dimensions, whereas our models can. The accuracy of histograms fades as dimensions increase, whereas our models have priors that help with generalization. Our models are sparse, unlike high-dimensional histograms. We present three generative models, where the first one allows the user to specify the number of desired leaves in the tree within a Bayesian prior. The second model allows the user to specify the desired number of branches within the prior. The third model returns lists (rather than trees) and allows the user to specify the desired number of rules and the length of rules within the prior. Our results indicate that the new approaches yield a better balance between sparsity and accuracy of density estimates than other methods for this task.
Introduction: The Curse of Dimensionality in Density Estimation
Density estimation—the process of estimating the underlying probability distribution from a set of data points—is a cornerstone of statistical analysis. For low-dimensional data (1D or 2D), histograms are the gold standard. They are intuitive, providing a "piecewise constant" view where density remains flat within defined bins.
However, histograms fail in high-dimensional spaces. A simple dataset with 10 binary features requires $2^{10} = 1,024$ bins. As dimensionality grows, most bins become empty, leading to severe overfitting and a complete loss of visual interpretability. While non-parametric alternatives like Kernel Density Estimation (KDE) exist, they often result in complex mathematical expressions that offer little insight into the data's structure. This research introduces a "middle ground": sparse, tree-based models that function as high-dimensional histograms while remaining human-readable.
Bayesian Generative Models for Sparse Density Estimation
The authors propose three methods that frame density estimation as a Bayesian model selection problem. Unlike traditional decision trees (e.g., CART) that rely on greedy, top-down splitting, these models utilize global optimization via simulated annealing to find the most parsimonious structure.
- Leaf-Sparse Density Trees: This model uses a Poisson prior to penalize the total number of leaves ($K_T$). By allowing users to specify a target number of leaves ($\lambda$), the model is encouraged to aggregate data into a few high-impact "bins."
- Branch-Sparse Density Trees: Instead of total leaves, this method penalizes the number of branches at each internal node. This is particularly effective for categorical features with many levels, as it forces the model to group similar categories together.
- Sparse Density Rule Lists: This approach generates a "one-sided" tree, essentially a sequence of
if-then-elserules. Priors control both the list length and the complexity (number of conjunctions) of each rule.
In these models, the density within a leaf is calculated as the ratio of the number of points in that leaf to its "volume"—defined as the number of possible discrete configurations the leaf represents.
Evaluation and Actionable Insights
The models were tested on several datasets, including the Titanic passenger list, Cambridge crime records, and the high-dimensional COCO-Stuff computer vision dataset.
The Titanic Dataset
On the Titanic dataset, the tree-based model identifies common and rare passenger profiles with high clarity. By calculating the density as $P(l_i) / V(l_i)$, the model highlights which groups were over- or under-represented relative to the total possible configurations of age, gender, and class.
Key Results
- Sparsity vs. Accuracy: The proposed methods consistently outperformed baseline Density Estimation Trees (DET). They achieved higher test log-likelihoods while maintaining significantly fewer leaves, proving that global optimization yields more efficient data representations than greedy splits.
- Scalability: The leaf-sparse method demonstrated impressive performance, processing the US Census dataset (~2.1M samples) in under two hours. Smaller datasets typically converged in less than a minute.
- Interpretability: In crime analysis, the model identified specific high-density patterns, such as "forceful entry through a door or window when the owner is not home on a weekend," providing actionable insights that a standard histogram or KDE would obscure.
Conclusion and Future Directions
While these models offer a powerful tool for categorical density estimation, challenges remain. The Rule List method (Method III) is computationally demanding due to the complexity of calculating volumes for overlapping rules. Additionally, the current focus on point estimates (MAP) for the sake of interpretability sacrifices the uncertainty quantification provided by full Bayesian posterior sampling. Future work aims to extend these methods to handle mixed categorical and continuous data types more natively.
Summary updated