PS-DBSCAN: An Efficient Parallel DBSCAN Algorithm Based on Platform Of AI (PAI)

Xu Hu, Jun Huang, Minghui Qiu, Cen Chen, Wei ChuarXiv 2017

TL;DR

This paper introduces PS-DBSCAN, a communication-efficient parallel DBSCAN algorithm that leverages a Parameter Server framework and a fast global union approach. It significantly reduces communication overhead compared to existing MPI-based methods, achieving 2-10 times speedup on various datasets.

What Problem Does This Paper Address?

DBSCAN (Density-Based Spatial Clustering of Applications with Noise) is a popular clustering algorithm, but its naive implementation has a quadratic time complexity, making it inefficient for large datasets. Parallelizing DBSCAN is crucial for handling big data. While MPI-based parallel DBSCAN implementations exist, they suffer from high communication costs, especially as the number of processing nodes increases. This is because points belonging to the same cluster can be scattered across many nodes, requiring frequent merging operations that dominate the computation time. The paper aims to address this communication bottleneck in parallel DBSCAN.

Methods

The core of PS-DBSCAN is its novel approach to parallelizing DBSCAN using Alibaba's Platform of AI (PAI) and its Parameter Server framework. Instead of the peer-to-peer communication in MPI, PS-DBSCAN utilizes a Parameter Server architecture where a central server (or servers) maintains global data (like class labels), and worker nodes perform local computations.

Key techniques include:

  • Disjoint-Set Data Structure: This is used to manage clusters and their relationships, similar to existing parallel DBSCAN methods.
  • Parameter Server Framework: This framework, implemented using Alibaba's KunPeng system, separates computation (workers) from data storage and coordination (servers). This allows for more centralized management of global cluster information.
  • Fast Global Union Approach: This is the main innovation. When data points from the same cluster are distributed across different workers, they form disjoint sets. Merging these sets can be costly. PS-DBSCAN employs a "fast global union" strategy that directly links local nodes to their root parent, significantly reducing the number of merging requests and communication overhead. This is achieved through iterative steps like PropagateMaxLabel, MaxReduceToServer, PullFromServer, and GlobalUnion.

Datasets

The paper evaluates PS-DBSCAN on both synthetic and real-world datasets:

  • Synthetic Datasets:
    • D10m: 10 million data points with an average of 25 directly density-reachable core points.
  • D100m: 100 million data points with an average of 15 directly density-reachable core points.
  • Real-World Datasets:
    • Geo-tagged Tweets: 16,602,137 2D-points.
  • BremenSmall: A 3D-point cloud of an old town with 2,543,712 points.

The paper also introduces specific configurations for the Tweets dataset (e=0.01, 3600 neighbors) to highlight performance issues with existing methods.

Key Insights and Ideas

  • Communication is the Bottleneck: The paper strongly emphasizes that for large-scale parallel DBSCAN, communication overhead, not computation, becomes the dominant factor limiting performance.
  • Parameter Server Architecture is a Good Fit: The Parameter Server model, with its centralized coordination and distributed computation, is shown to be effective in managing the complexities of parallel DBSCAN and reducing communication.
  • Global Union is Key to Efficiency: The "fast global union" approach is the core innovation that directly tackles the disjoint-set merging problem, leading to substantial communication savings.
  • MPI's Limitations at Scale: The paper demonstrates that traditional MPI-based approaches struggle to scale efficiently due to their inherent peer-to-peer communication patterns, which lead to an explosion of merge requests as the number of nodes increases.
  • Neighborhood Size Matters: The performance of MPI-based DBSCAN degrades significantly with larger neighborhood sizes (epsilon and minPts), whereas PS-DBSCAN remains more robust.

Key Results

  • Speedup: PS-DBSCAN achieves a communication efficiency speedup of 2-10 times compared to the MPI-based PDSDBSCAN-D across various datasets.
  • Scalability: The algorithm shows good performance with up to 1600 CPU cores.
  • Robustness: PS-DBSCAN remains functional and stable on large datasets and with many cores, where PDSDBSCAN-D sometimes fails to generate results or is severely affected by large neighbor counts.
  • Specific Performance Gains: On the D10m dataset with 800 CPU nodes, PS-DBSCAN achieved a 10x speedup.

Limitations and Future Work

  • Multithreading: The authors suggest that combining multithreading with their distributed memory system could further boost overall efficiency. This is a clear direction for future work.
  • Parameter Tuning: While the paper demonstrates parameter tuning in PAI, the paper doesn't delve deeply into the sensitivity of PS-DBSCAN to specific parameter choices beyond the general discussion of neighborhood size.
  • Release of PS-DBSCAN: The paper mentions the release of PS-DBSCAN on Alibaba Cloud's PAI platform, indicating a practical implementation and availability for users.

Summary updated

BibTeX
@misc{hu2017ps,
  author = {Xu Hu and Jun Huang and Minghui Qiu and Cen Chen and Wei Chu},
  title = {{PS-DBSCAN: An Efficient Parallel DBSCAN Algorithm Based on Platform Of AI (PAI)}},
  year = {2017},
  eprint = {1711.01034},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1711.01034},
}
Figure