GPU-INSCY: A GPU-Parallel Algorithm and Tree Structure for Efficient Density-based Subspace Clustering

Jakob Rødsgaard Jørgensen, Katrine Scheel, Ira Assent

TL;DR

GPU-INSCY is a novel parallel algorithm designed to overcome the "curse of dimensionality" in data clustering. By restructuring the INSCY subspace clustering algorithm for GPU architectures, the authors achieved staggering speedups of up to 15,000x, enabling the analysis of million-point, high-dimensional datasets in minutes rather than days.

The Challenge of High-Dimensional Data

In high-dimensional datasets, points often appear dissimilar in the full-dimensional space but form tight, meaningful groups within specific subsets of dimensions, known as subspaces. This phenomenon is the core focus of subspace clustering.

Visualization of points forming clusters within specific 1D and 2D subspaces.

The state-of-the-art algorithm, INSCY, is highly effective because it utilizes a "dimensionality-unbiased" density measure, ensuring that high-dimensional clusters are not unfairly penalized compared to low-dimensional ones. However, INSCY is computationally expensive. The search space grows exponentially ($2^d$) with the number of dimensions. Furthermore, the original INSCY uses a complex tree structure (SCY-tree) optimized for sequential CPU processing, which suffers from memory misalignment and thread divergence when ported directly to GPUs.

Methods and Innovations

GPU-INSCY reimagines the INSCY workflow for the Single Instruction, Multiple Data (SIMD) architecture of modern GPUs through several key innovations:

  • GPU-SCY-tree: The authors replaced the pointer-heavy, object-oriented tree structure with a flat, array-based representation. This ensures that data for the same tree layer is stored contiguously in memory, maximizing cache hits and throughput.
  • Parallel Restrict and Merge: In the original algorithm, "restricting" the search space and "merging" neighboring regions were interleaved sequential steps. GPU-INSCY isolates these operations, precomputing "merge maps" to allow thousands of subspaces to be processed simultaneously.
The SCY-tree structure and the visualization of the restrict and merge operations used to navigate subspaces.
  • Simultaneous Cluster Expansion: Unlike standard density-based clustering (like DBSCAN) that expands one cluster at a time, GPU-INSCY uses a label-propagation approach to expand all potential clusters in a subspace concurrently.
  • Neighborhood Bounding: By leveraging the mathematical property of monotonicity—where distances between points only increase as dimensions are added—the algorithm prunes neighborhood searches, skipping redundant calculations for points already known to be distant.

Evaluation and Datasets

The algorithm was rigorously evaluated using both synthetic and real-world benchmarks:

  • Synthetic Data: Datasets with up to 1,024,000 points and 50 dimensions were used to test extreme scalability.
  • UCI Repository: Standard benchmarks including Glass, Vowel, and Pendigits.
  • SkyServer (SDSS): A massive astronomical dataset containing measurements of stars and galaxies with ~60,000 points and 17 dimensions.

Key Results and Insights

  • Massive Speedups: GPU-INSCY outperformed the CPU version by 2,000x to 15,000x on large datasets. It processed over 1 million points in under 20 minutes—a task that would take weeks for the original CPU version.
  • Exact Results: GPU-INSCY is an acceleration, not an approximation; it produces results identical to the original INSCY algorithm.
  • Memory vs. Math: A critical insight was that the bottleneck was data organization rather than raw calculation. Moving from a "tree of objects" to a "collection of arrays" was essential for GPU efficiency.
  • Heuristic Pruning: Even with hardware acceleration, smart pruning remains vital. The "neighborhood bounding" strategy was responsible for the jump from a 1,000x speedup to a 14,000x speedup.

Limitations and Future Work

While powerful, GPU-INSCY faces challenges with GPU memory limits. High-dimensional indexing requires significant VRAM, and while a memory-efficient variant exists, it incurs a performance penalty. Additionally, the algorithm remains sensitive to parameters like the neighborhood radius ((\epsilon)) and minimum points ((minPts)). Future work may focus on automating parameter selection and porting these optimizations to non-CUDA architectures like OpenCL.

Summary updated

BibTeX
@inproceedings{jrgensen2021gpu,
  author = {Jakob Rødsgaard Jørgensen and Katrine Scheel and Ira Assent},
  title = {{GPU-INSCY: A GPU-Parallel Algorithm and Tree Structure for Efficient Density-based Subspace Clustering}},
  booktitle = {EDBT},
  year = {2021},
  doi = {10.5441/002/edbt.2021.04},
}
Figure