Abstract
This paper addresses the challenges of $k$-median and $k$-means clustering in distributed environments containing outliers. Moving beyond worst-case analysis, we leverage approximation stability to develop algorithms that recover target clusterings with high accuracy. We present a distributed algorithm with $\tilde{O}(sk + z)$ communication complexity and establish a matching $\Omega(sk + z)$ lower bound, demonstrating that this complexity is a fundamental bottleneck even for stable, well-separated datasets.
Introduction
Clustering is a fundamental task in machine learning, yet its application in large-scale, real-world scenarios is often hindered by two primary factors: the distributed nature of data and the presence of outliers. Traditional algorithms typically focus on minimizing a mathematical cost function—a framework known as worst-case analysis. However, in fields such as protein functional analysis or social network community detection, the objective is not merely to minimize cost but to recover an underlying "ground truth" structure.
Worst-case algorithms often fail to recover this structure, especially when data is noisy. This work operates in the realm of "beyond worst-case analysis," assuming that the data possesses inherent stability. This stability ensures that any clustering that is near-optimal in terms of cost is also close to the target clustering, allowing for more robust and meaningful results in distributed settings.
Approximation Stability
The core of our approach is the utilization of $(1 + \alpha, \epsilon)$-approximation stability. This structural property assumes that any clustering with a cost within a factor of $(1 + \alpha)$ of the optimum must be $\epsilon$-close to the target ground-truth clustering in terms of point assignments (Hamming distance). By assuming this property, we can design algorithms that are specifically tuned to ignore outliers and focus on the dense, stable regions of the dataset that represent true clusters.
Algorithmic Framework
The Centralized Approach
We first develop a centralized algorithm for clustering with $z$ outliers. This method constructs a neighborhood graph where edges are added between points that share a significant number of common neighbors within a specific distance threshold. Under stability assumptions, points belonging to the same "true" cluster form dense cliques, while points in different clusters or outliers remain disconnected. To effectively handle outliers, we introduce a cost_min check. This technique estimates the cost of a potential cluster if it were expanded to the minimum expected cluster size, allowing the algorithm to distinguish between a small, legitimate cluster and a random collection of outliers.
The Distributed Approach
To handle data siloed across $s$ different servers, we employ a two-round coordinator model:
- Local Summarization: Each machine runs a local version of the stable clustering algorithm to produce a "summary" (a coreset of weighted centers) and transmits this summary to a central coordinator.
- Global Aggregation: The coordinator aggregates these summaries and performs a global clustering.
To maintain low communication complexity while ensuring robustness, the coordinator utilizes binary search to identify the correct distance thresholds and random sampling to estimate cluster costs without requiring the full dataset from the remote machines.
Communication Complexity and Lower Bounds
A primary contribution of this research is the characterization of the communication bottleneck in distributed clustering. Our proposed algorithm achieves a communication complexity of $\tilde{O}(sk + z)$, where $s$ is the number of machines, $k$ is the number of clusters, and $z$ is the number of outliers.
We prove that this bound is optimal by establishing a matching $\Omega(sk + z)$ lower bound using a reduction from the Multi-party Set Disjointness problem. This lower bound holds even when the data is perfectly stable and clusters are balanced. This demonstrates that the $sk + z$ requirement is a fundamental physical limit of distributed clustering; no algorithm can achieve better performance even on "easy" or highly stable datasets.
Conclusion
This work provides the first communication-optimal distributed algorithms for $k$-means and $k$-median clustering that are robust to outliers and capable of recovering ground-truth structures. By leveraging approximation stability, we show that it is possible to outperform purely distance-based algorithms in noisy environments. While the $\Omega(sk + z)$ bottleneck remains a fundamental constraint, our results provide a tight theoretical framework for building efficient, large-scale clustering systems. Future research may explore sub-linear communication models where the coordinator classifies points on demand rather than assigning all labels upfront.
Summary updated