Skip to main content
QUICK REVIEW

[Paper Review] Massively Parallel Algorithms and Hardness for Single-Linkage Clustering Under $\ell_p$-Distances

Grigory Yaroslavtsev, Adithya Vadapalli|arXiv (Cornell University)|Oct 4, 2017
Advanced Clustering Algorithms ResearchComputer Science3 references21 citations
TL;DR

This paper presents the first massively parallel algorithms for single-linkage clustering under $ε_p$-distances (Hamming, $\ell_1$, $\ell_2$, $\ell_∞$), achieving $(1+\epsilon)$-approximation in $O(\log n)$ MPC rounds for fixed dimension $d$. It also establishes that $o(\log n)$-round algorithms cannot achieve constant-factor approximation under standard MPC hardness assumptions, and validates performance via Spark experiments showing orders-of-magnitude speedups.

ABSTRACT

We present massively parallel (MPC) algorithms and hardness of approximation results for computing Single-Linkage Clustering of $n$ input $d$-dimensional vectors under Hamming, $\ell_1, \ell_2$ and $\ell_\infty$ distances. All our algorithms run in $O(\log n)$ rounds of MPC for any fixed $d$ and achieve $(1+ε)$-approximation for all distances (except Hamming for which we show an exact algorithm). We also show constant-factor inapproximability results for $o(\log n)$-round algorithms under standard MPC hardness assumptions (for sufficiently large dimension depending on the distance used). Efficiency of implementation of our algorithms in Apache Spark is demonstrated through experiments on a variety of datasets exhibiting speedups of several orders of magnitude.

Motivation & Objective

  • To design efficient, scalable algorithms for single-linkage clustering on large-scale vector data under common $\ell_p$-distances in the Massively Parallel Computation (MPC) model.
  • To close the gap in provable guarantees for single-linkage clustering in MPC, as prior work focused on $k$-means or $k$-median, or lacked efficiency for vector data.
  • To establish theoretical limits by proving that $o(\log n)$-round algorithms cannot achieve constant-factor approximation under standard MPC hardness assumptions.
  • To demonstrate practical efficiency through implementation and evaluation on Apache Spark across diverse datasets.

Proposed method

  • Leverages the equivalence between $k$-SLC and the $k-1$ longest edges in the Minimum Spanning Tree (MST), using MPC-compliant MST construction via Boruvka’s algorithm simulation.
  • Applies a hierarchical clustering approach based on $\ell_p$-distance partitioning and approximate nearest neighbor (ANN) search with a parameter $\eta$ to control approximation and locality.
  • Uses a recursive partitioning strategy where vectors are grouped based on distance thresholds, with local MST computation performed via Prim’s algorithm on cached subsets.
  • Employs a $\eta$-parameterized ANN filter to reduce communication and local computation by focusing only on candidate neighbors within a shrinking distance range.
  • Implements a multi-round MPC framework where each round performs local clustering and inter-machine communication to merge clusters based on inter-cluster distances.
  • Integrates theoretical MPC guarantees with practical Spark optimizations, including cache-aware data layout and iterative refinement of cluster boundaries.

Experimental results

Research questions

  • RQ1Can single-linkage clustering under $\ell_p$-distances be solved efficiently in the MPC model with provable approximation guarantees?
  • RQ2What is the round complexity ceiling for achieving $(1+\epsilon)$-approximation in MPC for $k$-SLC under $\ell_p$-distances?
  • RQ3Are there inherent limitations in the MPC model that prevent sub-logarithmic round algorithms from achieving constant-factor approximation for $k$-SLC?
  • RQ4How does the choice of $\eta$ in the ANN-based filtering affect approximation quality and runtime performance in practice?
  • RQ5Can the theoretical MPC algorithms be efficiently implemented in real-world systems like Apache Spark with significant speedups over sequential methods?

Key findings

  • The proposed MPC algorithms achieve $(1+\epsilon)$-approximation for $k$-SLC under $\ell_1$, $\ell_2$, and $\ell_\infty$ distances in $O(\log n)$ rounds for any fixed dimension $d$.
  • An exact algorithm is provided for the Hamming distance case, also running in $O\left(\log n\right)$ rounds.
  • Under standard MPC hardness assumptions, $o(\log n)$-round algorithms cannot achieve constant-factor approximation for $k$-SLC under $\ell_p$-distances when the dimension is sufficiently large.
  • Experimental evaluation on Apache Spark shows speedups of several orders of magnitude over sequential Prim’s algorithm, especially when local data fits in L2 cache.
  • A dramatic performance jump occurs at $\eta \approx 0.5$ and approximation $\approx 1.15$, corresponding to the point where local inputs fit in L2 cache, enabling significant speedup.
  • The algorithms terminate in at most 40 rounds across all datasets, and performance under $\ell_1$ and $\ell_\infty$ is similar to $\ell_2$ due to shared partitioning logic.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.