ROME: Robust Multi-Modal Density Estimator

Anna Mészáros, Julian F. Schumann, Javier Alonso–Mora, Arkady Zgonnikov, Jens Kober, Davide Lanti

Abstract

Density estimation—the reconstruction of a continuous probability density function from finite samples—is a cornerstone of probabilistic AI and generative modeling. However, existing methods often struggle with distributions that are multi-modal, non-normal, and highly correlated. We present ROME (RObust Multi-modal Estimator), a novel non-parametric framework that adopts a "divide and conquer" strategy. By segmenting samples into simpler uni-modal clusters and applying localized transformations (decorrelation and normalization) before performing Kernel Density Estimation (KDE), ROME achieves superior robustness. Evaluation on synthetic benchmarks and high-dimensional real-world trajectory data shows that ROME significantly outperforms state-of-the-art methods like Vine Copulas and Manifold Parzen Windows, particularly in high-dimensional settings and scenarios with varying cluster densities.

Introduction

Practitioners in density estimation often face a "Goldilocks" problem. Simple methods like standard KDE frequently over-smooth data, blurring distinct clusters. Conversely, complex methods like Manifold Parzen Windows (MPW) tend to over-fit, creating "spiky" distributions that fail to generalize. These issues are exacerbated when data is highly correlated or follows non-normal shapes, such as interlocking curves. ROME addresses this gap by transforming complex data into a "KDE-friendly" state on a per-cluster basis, allowing simple tools to capture complex global structures accurately.

Methodology: The ROME Pipeline

ROME breaks down the density estimation problem into five distinct, modular steps designed to simplify the data before estimation.

  1. Non-Parametric Clustering: Using the OPTICS algorithm, ROME segments samples into clusters without requiring a pre-defined number of groups.
  2. Model Selection: Multiple potential clusterings are generated and evaluated using the Silhouette Score to select the most representative model.
  3. Feature Decorrelation: Principal Component Analysis (PCA) is applied to each cluster to align its principal dimensions with the axes.
  4. Normalization: Features within each cluster are scaled to ensure that high-variance dimensions do not disproportionately dominate the density estimate.
  5. Weighted KDE: A standard Gaussian KDE is applied to each transformed cluster. The final global density is a weighted average of these local estimates, adjusted by the determinant of the transformation matrix to account for volume changes.
The ROME pipeline: from raw samples to an estimated distribution through clustering, decorrelation, normalization, and KDE.

Experimental Evaluation

Datasets

The framework was evaluated against three synthetic 2D benchmarks and one high-dimensional real-world dataset:

  • Aniso: Highly correlated, "stretched" Gaussian clusters.
  • Varied: Clusters with vastly different densities.
  • Two Moons: Non-normal, interlocking curved shapes.
  • Forking Paths (24D): A complex real-world dataset of human pedestrian trajectories, characterized by extreme correlation and multi-modality.
Synthetic benchmarks used for evaluation: Aniso (correlated), Varied (varying densities), and Two Moons (non-normal shapes).

Results

ROME was compared against Manifold Parzen Windows (MPW) and Vine Copulas (VC) using Jensen-Shannon Divergence ($D_{JS}$) and Log-Likelihood ($\widehat{L}$).

  • High-Dimensional Performance: On the 24D pedestrian trajectory dataset, ROME achieved a $D_{JS}$ of 0.008, significantly outperforming MPW (0.016) and VC (0.743).
  • Robustness to Over-fitting: In the "Varied" density test, ROME maintained a low $D_{JS}$ (0.011), whereas MPW over-fitted sparse regions.
  • Consistency: ROME was the only estimator that did not exhibit a "notable failure mode" across all test cases, proving its namesake robustness.

Discussion and Conclusion

The success of ROME highlights that the limitations of traditional KDE often stem from the complexity of the input data rather than the algorithm itself. By transforming data into uni-modal, axis-aligned, and normalized states, ROME enables simple estimators to perform powerfully. While the clustering and model selection steps introduce some computational overhead, the resulting stability across diverse distribution types makes ROME a highly reliable choice for complex density estimation tasks. Future work will explore nesting more sophisticated local estimators within the ROME framework to handle even more intricate local structures.

Summary updated

BibTeX
@inproceedings{meszaros2024rome,
  author = {Anna Mészáros and Julian F. Schumann and Javier Alonso–Mora and Arkady Zgonnikov and Jens Kober and Davide Lanti},
  title = {{ROME: Robust Multi-Modal Density Estimator}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2024},
}
Figure