TL;DR
Clustering algorithms often struggle as dimensionality grows, but evaluating their degradation has been difficult due to a lack of controlled, high-dimensional benchmarks with realistic noise. The authors introduce MNIST-Nd, a suite of synthetic benchmark datasets spanning 2 to 64 dimensions generated by training Gaussian Mixture Variational Autoencoders (m-VAEs) on MNIST. Benchmarking reveals that graph-based community detection (specifically Leiden) is substantially more robust to rising dimensionality than classic distance- or density-based methods like $k$-means and GMMs.
What Problem Does This Paper Address?
Clustering is critical for uncovering latent structures in high-dimensional domains like single-cell transcriptomics and deep learning embeddings. However, pairwise Euclidean distances become increasingly uniform in high-dimensional spaces ("the curse of dimensionality"), making cluster boundaries and local densities hard to discern.
Evaluating how clustering algorithms handle this has historically hit a wall:
- Toy datasets are almost universally low-dimensional (2D or 3D).
- Real-world high-dimensional datasets have distinct underlying distributions, making cross-dimensional comparisons an apples-to-oranges problem.
- Existing synthetic multidimensional benchmarks (e.g., standard isotropic Gaussians) fail to scale cluster variance with dimensionality, causing clusters to shrink and artificially separate rather than exhibit the noisy overlap typical of real data.
Methods
To isolate the impact of dimension without changing the fundamental data geometry, the authors designed a generative framework:
- Mixture Variational Autoencoder (m-VAE): A deep generative model with a 10-component Gaussian mixture prior, trained unsupervised on MNIST digits. A Gumbel-Softmax layer assigns samples to mixture components differentiably without using true labels.
- Dimensionality-scaled Regularization ($\beta$-VAE): Because the Kullback-Leibler (KL) divergence loss naturally grows with dimension, the regularization weight $\beta$ is scaled inversely with latent dimensionality ($\beta \propto 1/d$). This preserves a constant ratio of reconstruction loss to KL loss and maintains a consistent signal-to-noise ratio across models.
- Evaluated Algorithms: Distance-based ($k$-means), density-based (Gaussian Mixture Models [GMM] and Student’s $t$-distribution Mixture Models [TMM]), and graph-based community detection (Leiden).
- Validation Metrics: Cluster overlap was verified via density-peak analysis and DISCO/DBCV validation scores. Performance was tracked using the Adjusted Rand Index (ARI), Normalized Mutual Information (NMI), and Fowlkes-Mallows scores across random initializations and bootstrapped subsamples.
Datasets
- MNIST: Standard handwritten digit dataset (used as the base training input).
- MNIST-Nd (New Benchmark): A collection of six embedding datasets with latent dimensions $D \in \{2, 4, 8, 16, 32, 64\}$. By construction, each dataset retains ~10 natural, overlapping density modes. A cross-validated random forest classifier achieves a steady ~90% accuracy across all dimensions, confirming that intrinsic class separability remains consistent across the entire suite.
Key Insights and Ideas
- Controlled Difficulty Across Dimensions: By scaling $\beta$ with dimension, the latent space does not artificially collapse or drift apart. This isolates dimension as an independent variable while preserving non-uniform noise and inter-cluster density overlap.
- Leiden Excels in High Dimensions: Graph-based clustering constructing a $k$-nearest-neighbor graph bypasses the global distance concentration problem. While $k$-means and GMMs rely on geometric centroids and hyperspherical/elliptical assumptions that break down in higher dimensions, local graph topology remains informative.
- TMM Resists Data Perturbations Better Than GMM: Due to heavier tails, $t$-distribution mixtures proved noticeably more resilient to data bootstrapping perturbations than standard GMMs and $k$-means.
Key Results
- Clustering Performance: As dimensionality increased from 2D to 64D, the ARI against ground-truth labels for $k$-means and GMMs dropped sharply from ~0.75 down to ~0.40–0.50. In contrast, Leiden clustering retained an ARI of ~0.80–0.85 across all dimensions.
- Initialization Stability: Measuring pairwise ARI across 10 random initialization seeds showed that centroid-based models became increasingly erratic in higher dimensions, whereas Leiden’s partition stability remained virtually flat.
- Data Perturbations: Under a bootstrapping regime (evaluating on a 40% shared overlap across 60% subsamples), all algorithms saw performance decreases at 32D and 64D, but Leiden and TMM suffered the least degradation.
Limitations and Future Work
- Single Domain Source: The benchmark is derived solely from MNIST handwritten digits, meaning clusters share digit-like manifold properties.
- Equal Cluster Sizes: MNIST-Nd has relatively balanced classes, whereas many real-world domains (e.g., rare cell types in biology) exhibit extreme class imbalance.
- Future Directions: The authors intend to apply this dimensional scaling framework to diverse datasets and explore other graph construction hyperparameters to further test the limits of topological clustering.
Summary updated