Abstract
We investigate an algorithm named histogram transform ensembles (HTE) density estimator whose effectiveness is supported by both solid theoretical analysis and significant experimental performance. On the theoretical side, by decomposing the error term into approximation error and estimation error, we establish universal consistency under $L_1(\mu)$-norm. Furthermore, under the assumption that the underlying density function resides in the H"{o}lder space $C^{0,\alpha}$, we prove almost optimal convergence rates for both single and ensemble density estimators. In contrast, for smoother functions in $C^{1,\alpha}$, almost optimal convergence rates can only be established for ensembles, illustrating their benefits over single estimators. Experimental simulations support these theoretical results, and an adaptive version (AHTE) is proposed to further enhance performance. Real-world data experiments demonstrate that AHTE achieves state-of-the-art accuracy.
Introduction
Density estimation is a fundamental task in machine learning, essential for applications ranging from anomaly detection to Bayesian inference. Traditional methods typically rely on histograms or Kernel Density Estimation (KDE). While histograms are robust and simple, they often suffer from non-smoothness and poor performance in high dimensions. Conversely, KDE provides smooth estimates but is highly sensitive to bandwidth selection and often struggles with the "curse of dimensionality."
This research introduces Histogram Transform Ensembles (HTE), a nonparametric approach that combines the robustness of histograms with the power of ensemble learning. By leveraging random rotations, stretchings, and translations, HTE creates a diverse set of histogram "views" that, when averaged, yield a smooth and accurate density estimate.
Methods
The fundamental building block of this approach is the Histogram Transform. Rather than constructing a fixed grid on raw data, the algorithm applies a series of random transformations to the input space before partitioning it into cells.
Specifically, the process involves:
- Space Transformation: Applying a random rotation matrix ($R$), a scaling matrix ($S$), and a translation vector ($b$) to the data.
- Partitioning: Dividing the transformed space into a grid of cells.
- Ensemble Averaging: Repeating this process $T$ times and averaging the resulting estimators to produce the final density estimate.
The study explores two variants:
- Naïve HTE (NHTE): Employs data-independent, equal-sized bins, primarily used for theoretical analysis.
- Adaptive HTE (AHTE): Utilizes recursive splitting based on data density. This version adaptively refines the grid in dense regions while maintaining larger cells in sparse areas, effectively capturing local structures.
A key theoretical finding is that while individual histograms are limited, an ensemble can achieve higher-order smoothness. For functions in the $C^{1,\alpha}$ Hölder space, the ensemble achieves a faster convergence rate than any single histogram, effectively bypassing the "blockiness" of traditional histograms through randomness.
Experimental Evaluation
The HTE framework was validated using both synthetic and real-world datasets. Synthetic data included four distribution types across dimensions $d=2$ and $d=5$. Real-world evaluation utilized datasets from the UCI repository, including WineQuality, Parkinsons, and Ionosphere, with varying dimensionalities reduced via PCA.
The performance of AHTE was compared against NHTE and standard KDE using Mean Absolute Error (MAE) and Average Negative Log-Likelihood (ANLL).
Key Results
- Superior Accuracy: AHTE consistently outperformed KDE on real-world datasets. For the Ionosphere dataset ($d=22$), AHTE achieved an ANLL of -25.3548, compared to -18.7878 for KDE.
- Resilience to Dimensionality: The performance advantage of AHTE became more pronounced as dimensionality increased, suggesting better resistance to the curse of dimensionality.
- Theoretical Alignment: Experimental results in the $C^{1,\alpha}$ space provided strong evidence for the theoretical benefits of ensembles over single transforms.
Conclusion
Histogram Transform Ensembles offer a mathematically grounded and empirically powerful alternative to traditional density estimation. By combining random transforms with adaptive partitioning, the method achieves near-optimal convergence rates and superior performance in high-dimensional settings. Future work may focus on extending rigorous theoretical proofs to the adaptive variant and optimizing hyper-parameter selection for the splitting process.
Summary updated