The SpectACl of Nonconvex Clustering: A Spectral Approach to Density-Based Clustering.

Sibylle Hess, Wouter Duivesteijn, Philipp Honysz, Katharina Morik

Abstract

When it comes to clustering nonconvex shapes, two paradigms are used to find the most suitable clustering: minimum cut and maximum density. The most popular algorithms incorporating these paradigms are Spectral Clustering and DBSCAN. Both paradigms have their pros and cons. While minimum cut clusterings are sensitive to noise, density-based clusterings have trouble handling clusters with varying densities. In this paper, we propose SPECTACL: a method combining the advantages of both approaches, while solving the two mentioned drawbacks. Our method is easy to implement, such as Spectral Clustering, and theoretically founded to optimize a proposed density criterion of clusterings. Through experiments on synthetic and real-world data, we demonstrate that our approach provides robust and reliable clusterings.

Introduction

Clustering nonconvex shapes—such as concentric circles or interlocking moons—remains a significant challenge in unsupervised learning. Traditionally, researchers have relied on two distinct paradigms: Minimum Cut (e.g., Spectral Clustering), which seeks to minimize connections between clusters, and Maximum Density (e.g., DBSCAN), which identifies clusters as contiguous dense regions.

However, both approaches have inherent weaknesses. Spectral Clustering is notoriously sensitive to noise; even a few "bridge" points between clusters can lead to incorrect merges or arbitrary geometric splits. DBSCAN, while robust to noise, struggles with datasets containing clusters of varying densities. Because it relies on a global density threshold (the minPts parameter), it often fails to capture both high-density and low-density clusters simultaneously.

Methods: Spectral Averagely-dense Clustering (SPECTACL)

The core innovation of SPECTACL is its objective function: maximizing the average cluster density, defined as the average node degree within a cluster's subgraph. The authors establish a mathematical link between this density objective and the spectrum of the adjacency matrix.

The algorithm proceeds through four main steps:

  1. Graph Construction: An adjacency matrix $W$ is built using an $\epsilon$-neighborhood graph.
  2. Eigendecomposition: The top $d$ eigenvectors of $W$ are computed.
  3. Projected Embedding: Crucially, instead of using raw eigenvectors, SPECTACL uses their absolute values. The authors prove that the density of these "projected" eigenvectors is bounded by the absolute value of their corresponding eigenvalues.
  4. Clustering: Standard $k$-means is performed on this non-negative embedding.

By utilizing absolute values, the eigenvectors function as "fuzzy cluster indicators," where high magnitudes represent dense core regions that gradually fade out along the cluster's shape.

Visualizing eigenvectors as density indicators across different eigenvalues.

Key Results and Evaluation

SPECTACL was evaluated against synthetic benchmarks and real-world datasets, including MNIST, Pulsar candidate detection, and the Sloan Digital Sky Survey.

The Two-Circles Challenge

A primary test case for the algorithm is the "two circles" dataset, where an inner circle is significantly denser than the outer one. As shown below, traditional methods fail this test: Spectral Clustering (SC) splits the circles vertically, while DBSCAN either merges them or fails to identify the outer ring correctly. SPECTACL successfully separates the two concentric shapes by automatically scaling to their respective densities.

Comparison of SPECTACL against Spectral Clustering (SC) and DBSCAN on the two-circles dataset.

Performance and Robustness

  • Noise Resistance: In synthetic tests with increasing Gaussian noise, SPECTACL maintained a higher and more stable F-measure than both Robust Spectral Clustering (RSC) and DBSCAN.
  • Real-World Success: On the Pulsar dataset, SPECTACL achieved a Normalized Mutual Information (NMI) of 0.151, vastly outperforming SC (0.025) and DBSCAN (0.001).
  • Latent Structure: On MNIST, SPECTACL discovered handwriting styles (e.g., grouping "cursive" vs. "straight" digits) rather than just digit classes, highlighting its ability to find structural densities that other algorithms overlook.

Conclusion

SPECTACL offers a theoretically grounded bridge between the minimum cut and maximum density paradigms. By repurposing the Rayleigh quotient to find dense subgraphs via the absolute values of eigenvectors, it provides a robust solution for nonconvex clustering that handles varying densities without the "parameter hell" of manual density thresholds. While it still requires a neighborhood radius $\epsilon$ and the number of clusters $r$, its stability and performance on complex datasets make it a powerful new tool in the clustering toolkit.

Summary updated

BibTeX
@inproceedings{hess2019spectacl,
  author = {Sibylle Hess and Wouter Duivesteijn and Philipp Honysz and Katharina Morik},
  title = {{The SpectACl of Nonconvex Clustering: A Spectral Approach to Density-Based Clustering.}},
  booktitle = {AAAI},
  year = {2019},
  url = {https://openreview.net/forum?id=HQZiCZgOaB},
}
Figure