TL;DR
This paper presents a novel parallel algorithm (POPTICS) for the OPTICS clustering method, which is notoriously difficult to parallelize due to its sequential nature. By leveraging graph algorithms, specifically Minimum Spanning Tree (MST) and disjoint-set data structures, they achieve significant speedups on both shared and distributed memory systems, making OPTICS practical for massive datasets.
What Problem Does This Paper Address?
Clustering is a fundamental data mining task that groups similar data points. OPTICS is a powerful density-based clustering algorithm that can discover arbitrarily shaped clusters and handle varying densities, a significant advantage over algorithms like DBSCAN. However, OPTICS's core mechanism involves processing data points in a specific, sequential order, making it inherently difficult to parallelize. This sequential dependency creates a bottleneck, preventing OPTICS from being applied to the massive datasets common in many scientific and industrial applications. The paper aims to overcome this limitation by developing a scalable parallel version of OPTICS.
Methods
The core innovation lies in reframing the OPTICS problem using graph theory. The authors observe similarities between OPTICS and Prim's Minimum Spanning Tree (MST) algorithm. They propose an MST-based approach to OPTICS, where the goal is to compute an MST of the data points, with edge weights representing reachability distances.
- MST-based OPTICS (MOPTICS): This sequential algorithm computes the MST and core distances. Instead of generating a linear order of points, it focuses on building the MST.
- Parallelization Strategy:
- Shared Memory (POPTICSS): Data is partitioned among threads. Each thread computes a local MST on its partition. These local MSTs are then merged using a parallel Kruskal's algorithm (leveraging disjoint-set data structures) to form a global MST.
- Distributed Memory (POPTICSD): Similar to the shared-memory approach, each processor computes a local MST on its data partition. A hierarchical merging strategy, akin to a binary tree structure, is used to combine local MSTs into a global MST. Disjoint-set data structures are crucial for efficient merging.
- Cluster Extraction: Once the global MST is computed, clusters can be extracted directly from it using the disjoint-set data structure and a given clustering distance (ε'), bypassing the need for the sequential ordering step of classical OPTICS.
Datasets
The authors evaluated their algorithms on a diverse set of datasets:
- Real-world: Datasets from Chameleon and CUCIS (alphabets, textures).
- Synthetic-random: Datasets generated using the IBM synthetic data generator with uniformly distributed points.
- Synthetic-cluster: Datasets generated by first selecting random points as cluster centers and then adding points to these clusters.
- Extended Datasets: For distributed memory experiments, they used larger versions of synthetic-random and synthetic-cluster datasets, as well as datasets from the Millennium Run simulation (galaxy and halo databases). These extended datasets contained up to 1.9 million points (for shared memory) and up to 115.9 million points (for distributed memory), with dimensions up to 20.
Key Insights and Ideas
- Graph Abstraction is Key: The core insight is that OPTICS's sequential nature can be broken by viewing the problem as constructing a Minimum Spanning Tree, which has well-established parallel algorithms.
- Decoupling Ordering and Clustering: The MST-based approach effectively decouples the computationally expensive ordering step from the cluster extraction step. Clusters can be derived directly from the MST, enabling parallel extraction.
- Disjoint-Set for Parallelism: The disjoint-set data structure (Union-Find) is instrumental in achieving high parallelism, particularly for merging local MSTs and extracting clusters efficiently.
- Scalability Achieved: The paper demonstrates that OPTICS can be made highly scalable, achieving significant speedups on large datasets across both shared and distributed memory architectures.
Key Results
- Shared Memory Speedup: Achieved speedups up to 27.5x on a 40-core machine.
- Distributed Memory Speedup: Achieved impressive speedups up to 3,008x using 4,096 cores.
- Quality Preservation: The quality of clusters generated by POPTICS was found to be comparable to the classical OPTICS algorithm, as measured by the Omega-Index.
- MOPTICS Overhead: The sequential MST-based version (MOPTICS) had a slight overhead (average 5.16% to 21.64%) compared to classical OPTICS due to data structure choices, but this was deemed acceptable for enabling parallelization.
- Merging Stage Efficiency: The merging stage in parallel versions was found to be a small fraction of the total execution time, indicating efficient parallelization.
Limitations and Future Work
- Omega-Index Computation Cost: The authors note that computing the Omega-Index for quality evaluation is computationally expensive and was only feasible for smaller datasets.
- Future Work: The authors plan to conduct further studies with larger core counts and datasets from different scientific domains. They also suggest that the algorithm is potentially suitable for other parallel architectures like GPUs and heterogeneous systems.
Summary updated