[Paper Review] Theoretically-Efficient and Practical Parallel DBSCAN
This paper presents theoretically efficient and highly parallel DBSCAN algorithms for Euclidean space that match the work complexity of the best sequential algorithms while achieving polylogarithmic depth. The authors implement optimized versions that achieve up to 33x speedup over the fastest sequential implementations and up to 6,102x speedup over existing parallel DBSCAN algorithms on a 36-core system with two-way hyper-threading.
The DBSCAN method for spatial clustering has received significant attention due to its applicability in a variety of data analysis tasks. There are fast sequential algorithms for DBSCAN in Euclidean space that take $O(n\log n)$ work for two dimensions, sub-quadratic work for three or more dimensions, and can be computed approximately in linear work for any constant number of dimensions. However, existing parallel DBSCAN algorithms require quadratic work in the worst case, making them inefficient for large datasets. This paper bridges the gap between theory and practice of parallel DBSCAN by presenting new parallel algorithms for Euclidean exact DBSCAN and approximate DBSCAN that match the work bounds of their sequential counterparts, and are highly parallel (polylogarithmic depth). We present implementations of our algorithms along with optimizations that improve their practical performance. We perform a comprehensive experimental evaluation of our algorithms on a variety of datasets and parameter settings. Our experiments on a 36-core machine with hyper-threading show that we outperform existing parallel DBSCAN implementations by up to several orders of magnitude, and achieve speedups by up to 33x over the best sequential algorithms.
Motivation & Objective
- Address the gap between theoretical efficiency and practical performance in parallel DBSCAN by designing algorithms that match sequential work bounds while being highly parallel.
- Develop parallel algorithms for exact and approximate DBSCAN in Euclidean space that achieve polylogarithmic depth and work efficiency.
- Ensure the algorithms produce identical clustering results to standard DBSCAN without sacrificing quality.
- Optimize implementations for practical performance on shared-memory systems, outperforming existing parallel DBSCAN solutions.
- Demonstrate superior scalability and performance on diverse synthetic and real-world datasets across varying parameter settings.
Proposed method
- Design parallel 2D exact DBSCAN using box or grid partitioning with three connectivity determination methods: Delaunay triangulation, unit-spherical emptiness checking with line separation, and bichromatic closest pairs.
- Extend the approach to higher-dimensional exact DBSCAN by solving the higher-dimensional bichromatic closest pairs problem in parallel.
- Develop a parallel approximate DBSCAN algorithm using quadtree construction and querying, matching the output of Gan and Tao’s (2017) sequential approximate algorithm.
- Implement the algorithms with optimizations such as lock-free data structures and efficient memory access patterns to enhance practical performance.
- Use a shared-memory architecture with 36 cores and two-way hyper-threading to evaluate performance across diverse datasets and parameter settings.
- Leverage work-efficient parallel primitives and high parallelism (polylogarithmic depth) to ensure theoretical efficiency and practical scalability.
Experimental results
Research questions
- RQ1Can parallel DBSCAN algorithms be designed to match the work complexity of the best sequential algorithms while maintaining polylogarithmic depth?
- RQ2Can exact DBSCAN be parallelized without sacrificing clustering quality or output correctness compared to the standard definition?
- RQ3Can approximate DBSCAN be parallelized efficiently to match the performance of sequential approximate algorithms while scaling well on multi-core systems?
- RQ4How do the proposed parallel algorithms compare in practice to existing parallel DBSCAN implementations in terms of speedup and absolute performance?
- RQ5Can the proposed algorithms handle large-scale datasets, including those previously considered too large for exact DBSCAN, and outperform distributed alternatives?
Key findings
- The proposed exact DBSCAN implementations achieve 2–89x (24x on average) self-relative speedup and 5–33x (16x on average) speedup over the fastest sequential implementations on a 36-core system.
- The approximate DBSCAN implementations achieve 14–44x (24x on average) self-relative speedup, demonstrating strong scalability.
- Compared to existing parallel DBSCAN algorithms, the fastest exact implementations are up to 6,102x faster under optimal parameter settings.
- The algorithms process the largest dataset used in the literature for exact DBSCAN and outperform the state-of-the-art distributed RP-DBSCAN algorithm by 18–577x on the same 13-dimensional TeraClickLog dataset.
- The implementations achieve excellent parallel efficiency, with polylogarithmic depth and work complexity matching that of the best sequential algorithms.
- The results confirm that theoretical efficiency and practical performance can be simultaneously achieved in parallel DBSCAN, closing a long-standing gap in the field.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.