Spatial properties of Bayesian unsupervised trees

Linxi Liu, Li MaCOLT 2024

Abstract

Tree-based models like Random Forests and BART are staples of supervised learning, yet their theoretical performance in unsupervised density estimation has remained largely unexplored. This research provides a rigorous theoretical foundation for Bayesian unsupervised trees, demonstrating their effectiveness in capturing complex, spatially heterogeneous data distributions. We show that these models are near-minimax optimal and highly adaptive, automatically adjusting to varying smoothness across different dimensions and regions without prior knowledge of the distribution's underlying parameters.

Introduction

Estimating a multivariate probability density function is a fundamental challenge in statistics, often hampered by the "curse of dimensionality." Real-world data frequently exhibits spatial heterogeneity—where smoothness varies by direction or region. While traditional kernel-based methods struggle with such local variations, tree-based methods naturally handle them through recursive partitioning. This study analyzes two popular Bayesian tree priors—the Optional Pólya Tree (OPT) and the Dirichlet prior—to prove their adaptive capabilities in these complex settings.

Methods and Theoretical Framework

As a theoretical study, this research derives convergence rates over abstract function classes rather than empirical datasets. The researchers evaluated these models using posterior concentration rates, measuring the speed at which the Bayesian posterior converges to the true distribution as the sample size $n$ increases. To model complex densities, they utilized anisotropic Besov spaces (where smoothness varies by direction) and a novel extension called region-wise Besov spaces.

Hierarchical partitioning of the sample space across levels $j=0, 1, 2$.

The analysis bridges tree structures and functional analysis using multiresolution Haar wavelets. Since trees create piecewise-constant partitions, Haar wavelets provide a natural mathematical language for their behavior. Two specific priors were compared:

  • Optional Pólya Tree (OPT): A prior that penalizes tree depth.
  • Dirichlet Prior: A prior that penalizes the total number of leaf nodes (tree size).

Key Insights: Adaptivity and Dimension Selection

The theoretical analysis yielded several critical insights into why Bayesian trees perform so well:

  • Near-Minimax Optimality: The posterior concentration rates for these trees nearly match the best possible theoretical estimator for anisotropic Besov spaces.
  • Automatic Dimension Selection: The models automatically ignore irrelevant dimensions where the density is constant. The convergence rate depends on the "effective dimension" rather than the full ambient dimension.
  • Spatial Adaptivity: Unlike methods requiring manual tuning for smoothness, Bayesian trees achieve optimal rates for any smoothness level within the Besov class without prior parameter input.
  • Depth vs. Size: While both priors are effective, the Dirichlet prior offers slightly more flexibility in capturing extremely localized, "spiky" features due to its penalty on total size rather than depth.

Results

The primary result is the derivation of the posterior concentration rate $\epsilon_n$. For a density in an anisotropic Besov space with average smoothness $\bar{\sigma}$, the rate is approximately: $$\epsilon_n \approx n^{-\frac{\bar{\sigma}}{2\bar{\sigma}+d}}$$ This matches the minimax rate for this function class. For region-wise heterogeneous densities, the models learn partitions that optimally adapt to local features, ensuring fast convergence even in complex distributions.

Conclusion and Future Directions

This work establishes Bayesian trees as powerful tools for unsupervised learning, particularly for high-dimensional, heterogeneous data. However, some limitations remain. The current analysis assumes a fixed number of dimensions $d$; extending this to "ultra-high" dimensional settings where $d$ grows with $n$ is a significant next step. Additionally, while Haar wavelets are ideal for piecewise constant approximations ($\sigma \le 1$), future work could explore higher-order wavelets to more efficiently approximate smoother functions. These findings also suggest that the spatial adaptation proofs could be extended to supervised settings to further explain the success of models like BART.

Summary updated

BibTeX
@inproceedings{liu2024spatial,
  author = {Linxi Liu and Li Ma},
  title = {{Spatial properties of Bayesian unsupervised trees}},
  booktitle = {Conference on Learning Theory},
  year = {2024},
}
Figure