Abstract
As datasets scale toward the "trillion-edge" threshold, traditional sequential clustering algorithms for $k$-center and $k$-median problems become computationally prohibitive. This paper presents a robust framework for distributed clustering within the MapReduce paradigm. By introducing a novel iterative sampling technique, the authors provide the first clustering algorithms that strictly adhere to the $MRC^0$ complexity class—requiring only constant rounds and sub-linear memory—while maintaining constant-factor approximation guarantees. Empirical evaluations demonstrate that this approach achieves up to a 1000x speedup over sequential methods and a 20x speedup over parallelized Lloyd’s algorithm, with negligible loss in solution quality for the $k$-median objective.
Introduction
Clustering is a fundamental task in unsupervised learning, yet its application to massive datasets is often hindered by the architectural constraints of distributed systems. MapReduce, the industry standard for large-scale data processing, imposes strict limits on per-machine memory and the number of communication rounds. Many classic clustering algorithms, such as those designed for the PRAM or streaming models, do not translate efficiently to MapReduce because they require a logarithmic or linear number of rounds, leading to massive communication overhead.
This research bridges the gap between theoretical rigor and practical performance by developing algorithms for $k$-center and $k$-median clustering that are both theoretically sound (fitting the $MRC^0$ model) and empirically fast.
Problem Statement
The primary challenge in distributed clustering is twofold:
- Memory Constraints: Each individual machine in a MapReduce cluster typically possesses memory that is sub-linear relative to the total size of the dataset ($n$).
- Communication Bottlenecks: MapReduce is optimized for a small, constant number of rounds. Algorithms requiring many iterations incur significant latency due to data shuffling and synchronization.
Previous attempts at parallelizing clustering often assumed either "infinite" available machines or shared memory architectures that do not exist in large-scale distributed environments. This paper seeks to provide a solution that operates within these realistic constraints.
Methodology: The Iterative-Sample Subroutine
The core innovation of this framework is the Iterative-Sample subroutine. Rather than relying on a single random sample—which might fail to capture small but distinct clusters—the algorithm employs an iterative filtering process:
- Sampling: A small subset of points is selected from the dataset.
- Filtering: The algorithm identifies which points in the original dataset are "well-represented" (satisfied) by the current sample based on a distance threshold.
- Recursion: Satisfied points are discarded, and the process repeats on the remaining "unsatisfied" points.
- Global Clustering: Once the accumulated set of sampled points is small enough to fit on a single machine, a standard sequential clustering algorithm (such as Local Search or Lloyd’s algorithm) is executed to produce the final centers.
For the $k$-median problem, the authors incorporate a weighting mechanism. Each sampled point is assigned a weight corresponding to the number of unsampled points it represents, ensuring that the final global objective function remains an accurate proxy for the original data distribution.
Theoretical Framework
The theoretical foundation of the paper rests on the concept of Proxy Points. The authors prove that every point not included in the sample can be mapped to a "proxy" point within the sample in an injective manner. This mapping allows for a formal bounding of the total error relative to the optimal solution ($OPT$).
If the underlying sequential algorithm used in the final step is an $\alpha$-approximation, the MapReduce framework provides the following guarantees:
- $k$-center: $(4\alpha + 2)$ approximation factor.
- $k$-median: $(10\alpha + 3)$ approximation factor.
These results confirm that the algorithms belong to the $MRC^0$ class, ensuring scalability across massive clusters.
Experimental Evaluation
The authors evaluated the framework using synthetic datasets in $\mathbb{R}^3$, ranging from 10,000 to 10,000,000 points. To mimic real-world data distributions where community sizes vary significantly, cluster sizes were determined using a Zipf distribution.
The proposed method was compared against three primary baselines:
- Sequential LocalSearch: A standard non-parallel clustering approach.
- Parallel-Lloyd: A distributed version of the $k$-means/Lloyd’s algorithm.
- Divide-and-Conquer: A simple partitioning scheme.
Key Results
- Computational Efficiency: On a dataset of 1 million points, the sampling-based local search was 1000x faster than the sequential version. Furthermore, it outperformed the parallelized Lloyd’s algorithm by a factor of 20x.
- Solution Quality: For $k$-median clustering, the solution quality was nearly identical to (and in some instances, better than) parallel Lloyd’s.
- Objective Sensitivity: A significant finding was the divergence in performance between the two objectives. $k$-median proved robust to sampling because it sums distances, making it less sensitive to outliers. In contrast, $k$-center—which focuses on the maximum distance—showed poorer empirical performance, yielding objectives approximately 4x worse than sequential benchmarks due to its sensitivity to individual unsampled points.
Conclusion and Future Work
This work demonstrates that iterative sampling is a powerful tool for distributed clustering, providing a rare combination of theoretical guarantees and massive practical speedups. However, certain limitations remain. The $k$-center objective remains challenging to optimize via sampling due to its sensitivity to outliers. Additionally, while the theory applies to any metric space, the practical implementation currently assumes Euclidean distances. Future research may explore more efficient ways to handle non-Euclidean metrics and cases where distance computations themselves are expensive, such as shortest-path distances in sparse graphs.
Summary updated