GPU-FAST-PROCLUS: A Fast GPU-parallelized Approach to Projected Clustering

Jakob Rødsgaard Jørgensen, Katrine Scheel, Ira Assent, Ajeet Ram Pathak, Anne C. Elster

Introduction

High-dimensional data analysis, prevalent in fields ranging from genomics to customer profiling, frequently encounters the "curse of dimensionality." As the number of dimensions increases, traditional distance-based clustering methods struggle because the relative distance between any two points tends to converge, making clusters indistinguishable. Projected clustering addresses this by identifying clusters within specific subsets of dimensions. PROCLUS, an adaptation of the k-medoids algorithm, is a prominent solution for this task. However, its iterative nature and high computational cost often lead to execution times of several minutes, even for modest datasets. This latency hinders interactive data exploration, which typically requires response times under 100 milliseconds.

Proposed Methodology

The researchers introduced GPU-FAST-PROCLUS, a highly optimized framework that combines algorithmic improvements with massive hardware parallelization.

Algorithmic Optimizations: FAST-PROCLUS

The "FAST" variant of the algorithm focuses on reducing redundant computations:

  • Distance Reuse: By storing Euclidean distances in a matrix, the algorithm avoids repeated calculations across iterations.
  • Incremental Updates: The authors observed that the set of points assigned to a medoid's "sphere" remains relatively stable. They developed a method to update the sum of distances incrementally, tracking only the changes ($\Delta L_i$) rather than re-scanning the entire dataset.
  • Parameter Tuning Efficiency: The algorithm is designed to reuse potential medoids and partial results when users iteratively adjust parameters like the number of clusters ($k$) or average dimensions ($l$).

Hardware Parallelization: GPU-PROCLUS

To leverage modern hardware, the sequential logic of PROCLUS was restructured into specialized CUDA kernels. Key implementation details include:

  • Atomic Operations: The use of atomicAdd and atomicMin allows thousands of threads to update shared cluster centroids and minimum distances safely.
  • Shared Memory Utilization: The clustering cost function was reformulated to minimize expensive global memory accesses, instead utilizing fast shared memory within thread blocks.

Experimental Results

The performance of GPU-FAST-PROCLUS was evaluated using both synthetic Gaussian clusters and real-world datasets, including the SkyServer astronomical dataset.

Execution time comparison between CPU and GPU implementations across varying parameters, demonstrating a consistent three-order-of-magnitude performance gap.

The results demonstrate a transformative increase in performance. GPU-FAST-PROCLUS achieved an average speedup of 1,100x over the standard CPU implementation. On the SkyServer dataset, this speedup reached a peak of 5,490x. Crucially, for datasets containing one million points, the algorithm consistently finished in under 100 milliseconds, meeting the requirements for real-time interactive use.

Speedup factor of FAST-PROCLUS variants relative to the base GPU-PROCLUS implementation as the number of data points increases.

The algorithmic optimizations alone provided a 2.5x speedup on the CPU. When combined with GPU parallelization, the "FAST" strategies provided an additional performance boost over the base GPU implementation as the dataset size increased, as shown in the scaling analysis.

Limitations and Future Work

Despite these gains, the approach is limited by GPU VRAM capacity. Datasets exceeding approximately 8 million points surpassed the 4.2GB memory limit of the test hardware. Additionally, like the original PROCLUS, the algorithm's reliance on random sampling introduces non-determinism. Future research will focus on advanced memory management techniques to handle larger-than-memory datasets and further refining the sampling strategies.

Summary updated

BibTeX
@inproceedings{jrgensen2022gpu,
  author = {Jakob Rødsgaard Jørgensen and Katrine Scheel and Ira Assent and Ajeet Ram Pathak and Anne C. Elster},
  title = {{GPU-FAST-PROCLUS: A Fast GPU-parallelized Approach to Projected Clustering}},
  booktitle = {EDBT},
  year = {2022},
  doi = {10.48786/edbt.2022.09},
}
Figure