NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

SHADE: Deep Density-based Clustering

Anna Beer, Pascal Weber, Lukas Miklautz, Collin Leiber, Walid Durani, Christian Böhm, Claudia Plant · DOI

Abstract

Clustering high-dimensional data with complex, non-Gaussian geometries remains a significant challenge for traditional deep learning methods. We introduce SHADE (Structure-preserving High-dimensional Analysis with Density-based Exploration), a novel deep clustering algorithm that integrates density-connectivity directly into its loss function. By combining an autoencoder's reconstruction capabilities with a density-connectivity loss based on Minimum Spanning Trees, SHADE preserves the natural topology of data and automatically identifies noise and cluster counts. Our evaluations on synthetic, tabular, and video datasets demonstrate SHADE's superior performance, particularly in handling intertwined manifolds and high noise levels.

Introduction

High-dimensional clustering is often hindered by the "curse of dimensionality" and the presence of arbitrarily shaped clusters. Most existing deep clustering methods, such as Deep Embedding Clustering (DEC) and Improved DEC (IDEC), rely on centroid-based objectives that assume spherical Gaussian distributions. These methods struggle with complex structures like rings or spirals and often require a pre-specified number of clusters, limiting their utility in exploratory data analysis.

Methodology

SHADE addresses these issues using a dual-objective loss function within a deep autoencoder framework. The reconstruction loss ($L_{rec}$) ensures the low-dimensional embedding preserves the global spatial structure of the data. The density-connectivity loss ($L_d$) is the primary innovation; it utilizes "mutual reachability distances" and a Minimum Spanning Tree (MST) to capture hierarchical density structures in the original high-dimensional space. This forces the encoder to align these density-based relationships with Euclidean distances in the embedding space. Furthermore, SHADE employs a novel stability measure to automatically determine the optimal number of clusters ($k$) and filter noise points without user intervention.

Experimental Results

SHADE was benchmarked against synthetic 3D datasets, real-world tabular data (UCI), and video gesture datasets. On a challenging 3D dataset featuring intertwined rings and an S-shape, SHADE achieved a perfect Adjusted Rand Index (ARI) of 1.0, significantly outperforming competitors that merged or distorted these shapes.

Comparison of 2D embeddings: SHADE (b) perfectly separates the 3D toy dataset (a) while preserving cluster shapes, unlike its competitors (c-i).

The algorithm also demonstrated exceptional robustness, maintaining high accuracy even with 90% noise contamination—a scenario where traditional methods fail. In video action recognition tasks, SHADE outperformed the next best competitor by a wide margin (ARI of 0.48 vs. 0.14 on the Weizmann dataset), highlighting its ability to model complex motion manifolds. Reachability analysis further confirms that SHADE not only preserves but enhances the separation between clusters in the latent space.

Conclusion

SHADE represents a significant step forward in deep clustering by prioritizing density-connectivity over simple centroid distances. While the algorithm may struggle with datasets featuring very smooth transitions between classes (e.g., human activity recognition), its ability to automatically discover structure in noisy, high-dimensional data makes it a powerful tool for exploratory analysis. Future work will focus on refining connectivity definitions to better distinguish between subtly different but connected classes.

Summary updated

BibTeX
@inproceedings{beer2024shade,
  author = {Anna Beer and Pascal Weber and Lukas Miklautz and Collin Leiber and Walid Durani and Christian Böhm and Claudia Plant},
  title = {{SHADE: Deep Density-based Clustering}},
  booktitle = {ICDM},
  year = {2024},
  url = {https://openreview.net/forum?id=5T9DodHpjm},
}
Figure