Manuscript Offprint

arXiv:2611.03934

Accelerating FastDEC Clustering Algorithm with GPUs

Mi Li, Eibe Frank, Bernhard Pfahringer

Abstract

Fast Dominance Estimation Clustering (FastDEC) is an efficient variant of Density Peak Clustering (DPC), offering high clustering quality through dominance-based density estimation, while still being constrained by the computational cost of both exact kk-nearest-neighbor (kk-NN) construction and dominance component (DC) processing. In this paper, we present SymWarp-FastDEC, a graphics processing unit (GPU)-accelerated implementation of FastDEC. The proposed framework employs a set of GPU-specialized optimizations. At its core is SymTri-kkNN, an exact self-kk-NN kernel that exploits the symmetry of the search setting through upper-triangular traversal and warp-cooperative top-kk selection. In addition, we introduce WP-DC, a warp-parallel dominance component (DC) reduction algorithm specifically designed to exploit the architectural characteristics of modern GPUs. Combined with a memory-adaptive execution planner and stream scheduling strategy, WP-DC effectively eliminates DC reduction as a runtime bottleneck.

We evaluate SymWarp-FastDEC on synthetic datasets and a diverse collection of real-world benchmarks. Experimental results demonstrate substantial end-to-end acceleration, and on all evaluated equivalence benchmarks SymWarp-FastDEC produces clustering outputs identical to the original FastDEC implementation. Relative to the FastDEC variant employing a widely used, highly optimized exact GPU kk-NN baseline, FAISS GpuIndexFlatL2, our approach delivers approximately 1.7×1.7\times to 4.9×4.9\times higher end-to-end performance, with both performing exhaustive (exact) kk-NN search and the advantage generally increasing as data dimensionality grows. Relative to the original single-threaded Python Fast-DEC reference implementation, speedups reach up to approximately 2.5×1042.5 \times 10^4; this extreme figure arises in a very high-dimensional setting where that baseline's k-d-tree-based search degrades, and is not representative of the typical acceleration.

Keywords: FastDEC, Density Peak Clustering, DPC, clustering, GPGPU, data mining

1 Introduction

The proliferation of big data and the increasing complexity of computational tasks have created a growing demand for efficient and scalable data analysis algorithms. Clustering, a fundamental technique in data mining and machine learning, aims to group similar data objects into meaningful clusters based on their intrinsic characteristics (Fahad et al. 2014; Sajana et al. 2016; Bhattacharjee and Mitra 2021; Yin et al. 2026). Among the various clustering paradigms, density-based methods have attracted considerable attention because of their ability to identify clusters with arbitrary shapes while effectively handling noise and outliers (Yin et al. 2026). Density Peak Clustering (DPC), introduced by Rodriguez and Laio in 2014, is a representative density-based clustering algorithm that identifies cluster centers as data points exhibiting high local density and large distances from other points with higher densities (Rodriguez and Laio 2014). It is suitable for a wide range of real-world applications (Wei et al. 2023) but is computationally expensive. The calculation of local densities and pairwise distances limits scalability as dataset size increases (Wang et al. 2024).

Fast Dominance Estimation Clustering (FastDEC) (Yang et al. 2022) advances density peak clustering by integrating k-Nearest Neighbors (k-NN) graphs with dominance estimation to form dominance components (DC), significantly improving the efficiency of the clustering process. Nevertheless, opportunities for further improvements remain, particularly by exploiting parallel processing. Parallel computing has proven to be a practical solution for handling big data (Fang et al. 2008; Langdon 2013;

Shirkhorshidi et al. 2014; Xu et al. 2024). Traditionally, supercomputers were required for high-performance parallel computing to solve complex scientific problems (Upadhyaya 2013) but modern graphics processing units (GPUs) offer an alternative for general-purpose high-performance computing (Owens et al. 2008). In particular, they have been used to significantly accelerate algorithms for clustering problems (Li et al. 2022)—for example, by applying the general-purpose CUDA programming model on NVIDIA GPU architectures (Li et al. 2016). In this paper, we show that FastDEC's performance can be further enhanced by leveraging the parallel processing capabilities of GPUs.

Our primary contributions are summarized as follows:

  1. To the best of our knowledge, we introduce the first GPU-accelerated FastDEC framework capable of scaling to large datasets, high-dimensional feature spaces, and a large number of cluster centers.

  2. We propose a high-performance GPU-based k-NN algorithm specifically designed for FastDEC. Leveraging query-reference symmetry via tiled upper-triangular traversal, the method achieves efficient nearest-neighbor computation on large-scale, high-dimensional datasets.

  3. We propose an efficient index-free algorithm for Dominance Component (DC) Inter-Dominance Estimation and Reduction on GPUs. Through warp-parallel reduction, memory-adaptive slab planning, and streamed ping-pong execution, the algorithm eliminates the nearest-neighbor constraints imposed by most existing GPU-based k-NN methods.

  4. We decouple DC Inter-Dominance Estimation and Reduction from the spatial indexing structures employed during Density Estimation, thereby enhancing the flexibility, scalability, and general applicability of the FastDEC framework.

The remainder of this paper is structured as follows. Section 2 provides background on GPU architectures and reviews related work on Density Peak Clustering (DPC) and GPU-accelerated DPC methods. Section 3 introduces our GPU-accelerated Fast-DEC framework and describes its design, implementation, parallelization strategies, and optimization techniques. Section 4 presents a comprehensive experimental evaluation across diverse datasets and benchmarks the proposed method against FastDEC variants employing similarity-search algorithms from well-established libraries. Finally, Section 5 summarizes the main findings and outlines avenues for future work.

References (39)

  • multicore-based parallelization approach
  • A gpu accelerated algorithm for density-based clustering
  • In: Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp 2055–2063 (opens the publisher in a new tab)
  • Frontiers of Computer Science 15(1):151308
  • Academic Journal of Computing & Information Science 4(2):1–6
  • Knowledge-Based Systems 187:104824
  • In: Neural Networks: Tricks of the Trade
  • Taxonomy and empirical analysis
  • 2008 IEEE Computer Society Conference on Computer Vision and Pattern Recognition Workshops
  • Fast GPU-based implementations and application to high-dimensional feature matching
  • Frontiers of Information Technology & Electronic Engineering 18(7):915–927
  • IEEE Signal Processing Letters 28:897–901
  • Journal of Classification 2(1):193–218
  • IEEE Transactions on Computational Social Systems 11(4):5468–5482
  • IEEE Transactions on Big Data 7(3):535–547 (opens the publisher in a new tab)
  • A GPU-native, spatio-graph-based approach to exact kNN
  • The Open Images Dataset V4: Unified Image Classification, Object Detection, and Visual Relationship Detection at Scale
  • Proceedings of the IEEE 86(11):2278–2324 (opens the publisher in a new tab)
  • International Journal of Networked and Distributed Computing 4(3):173–181
  • Data Mining and Knowledge Discovery 37(1):67–109
  • In: 2022 14th International Conference on Intelligent Human-Machine Systems and Cybernetics (IHMSC), IEEE, pp 145–149
  • Information Sciences 450:200–226
  • In: Bottou L, Chapelle O, DeCoste D, et al (eds) Large Scale Kernel Machines
  • ultra-scalable and index-free density peak clustering
  • Ultra-scalable parallel density peak clustering
  • Proceedings of the IEEE 96(5):879–899
  • Global vectors for word representation
  • IEEE Transactions on Knowledge and Data Engineering 34(5):2212–2226
  • Frontiers in Physics 13:1623161
  • Science 344(6191):1492–1496
  • Indian Journal of Science and Technology 9(3):1–12
  • A gpu-accelerated density peaks clustering algorithm
  • Scientific Reports 15(1):8510
  • A review on the decade 2014–2023
  • In: Proceedings of the 24th International Conference on Very Large Data Bases (VLDB '98)
  • Neurocomputing 554:126633
  • clustering by fast dominance estimation
  • Array p 100904
  • clustering by quick density subgraph estimation