Abstract
This paper introduces a suite of high-performance parallel algorithms for Euclidean Minimum Spanning Trees (EMST) and hierarchical density-based clustering (HDBSCAN*). By combining geometric data structures with a novel memory-saving technique called "MemoGFK," the authors achieved speedups of up to 55x over state-of-the-art serial implementations and outperformed existing parallel tools by over an order of magnitude.
The Challenge of Geometric Scale
Geometric data analysis often relies on two fundamental tasks: finding the Euclidean Minimum Spanning Tree (EMST)—the shortest network connecting a set of points—and performing Hierarchical Spatial Clustering (HDBSCAN*), which identifies clusters of varying densities.
Scaling these tasks is difficult. A naive approach takes $O(n^2)$ time, which is prohibitive for datasets with millions of points. While theoretical solutions like Well-Separated Pair Decompositions (WSPD) exist, they often fail in practice due to massive memory consumption or poor parallel scalability. Existing parallel implementations frequently suffer from high overhead, making them slower than optimized serial code on all but the largest datasets.
Methodological Innovations
The authors bridge the gap between theory and practice using four core innovations:
1. Parallel GeoFilterKruskal and MemoGFK
The researchers parallelized GeoFilterKruskal (GFK), a variant of Kruskal’s MST algorithm designed for geometry. Instead of inspecting all possible edges, it uses a $kd$-tree to focus on "well-separated" pairs of point sets.
To solve the memory bottleneck of standard WSPD algorithms—which typically save all $O(n)$ pairs to RAM—the authors introduced MemoGFK. This technique avoids full materialization by partially traversing the $kd$-tree on-the-fly during each round of the algorithm. This trades a small amount of redundant computation for a massive reduction in memory bandwidth, reducing usage by up to 10x.
2. Density-Aware Well-Separation
HDBSCAN* uses a "mutual reachability distance" to account for local density. The authors redefined what it means for two sets of points to be "well-separated" by incorporating this density metric directly into the decomposition process.
By baking the "core distance" into the geometric constraints, the algorithm can terminate much earlier, generating fewer edges to process without losing mathematical exactness.
3. Parallel Top-Down Dendrograms
Traditional dendrogram construction is bottom-up and difficult to parallelize. The authors proposed a top-down divide-and-conquer algorithm using Euler tours to split the tree into subproblems. This achieves "polylogarithmic depth," allowing the algorithm to scale exceptionally well as more processors are added.
Experimental Results
The algorithms were evaluated on a 48-core machine using massive real-world datasets, including GeoLife (24 million GPS points) and CHEM (16D chemical sensor data).
- Speed: The EMST implementation is 14.6x to 55.9x faster than the best available serial implementations (e.g.,
mlpack). - Scaling: For HDBSCAN, the implementation is at least an order of magnitude faster* than previous parallel attempts. On the
HTdataset, the code finished in under 3 seconds, while previous state-of-the-art parallel code took over 40 minutes. - Efficiency: The algorithms are "work-efficient," meaning they perform roughly the same total operations as serial algorithms but distribute them effectively across cores.
Conclusion and Future Work
While the algorithms handle up to 16 dimensions effectively, WSPD-based methods still face the "curse of dimensionality," as the number of well-separated pairs grows exponentially with $d$. Future work includes extending these shared-memory optimizations to distributed-memory clusters and adapting the parallel dendrogram algorithm for other linkage criteria, such as average-linkage clustering.
Summary updated