NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

A Practical Algorithm for Distributed Clustering and Outlier Detection

Jiecao Chen, Erfan Sadeqi Azer, Qin Zhang

Introduction

Clustering is a cornerstone of unsupervised machine learning, but two major real-world challenges often complicate the process: distributed data and outliers. Modern "Big Data" is frequently too massive to store on a single machine or is inherently collected across different physical locations. Moving all this data to a central server is often prohibitively slow or expensive. Furthermore, real-world datasets are messy; standard clustering algorithms like $k$-means are notoriously sensitive to outliers, which can skew cluster centers away from the actual data density.

This paper introduces a fast, one-round communication algorithm for performing $k$-means and $k$-median clustering on distributed datasets that contain outliers. By utilizing a novel "ball-growing" technique to create small data summaries at each local site, the authors achieve significant speedups and better outlier detection accuracy compared to existing state-of-the-art distributed clustering methods.

The $(k, t)$-Clustering Problem

The authors tackle the $(k, t)$-clustering problem: finding $k$ cluster centers while simultaneously identifying and discarding the $t$ "noisiest" points (outliers) to minimize the total clustering error.

Specifically, they design a solution for a distributed coordinator model. In this setup, multiple distributed sites communicate with a central coordinator. The goal is to achieve accurate clustering and outlier detection in as few communication rounds as possible to minimize network overhead.

The "Ball-Grow" Methodology

The proposed solution is a two-level framework centered on a new summary construction algorithm called Summary-Outliers (often referred to as "ball-grow").

  1. Local Summarization (The "Ball-Grow" Step): Each distributed site processes its local data independently. The algorithm samples a small set of points and "grows" balls around them until they cover a constant fraction of the local data. These points become part of the summary, and the process repeats on the remaining points until only a few (proportional to the outlier budget $t$) are left. Crucially, these "leftovers" are also added directly to the summary.
  2. Global Coordination: Each site sends its small, weighted summary to the central coordinator.
  3. Final Clustering: The coordinator merges these summaries and runs a centralized clustering algorithm (like $k$-means--) to produce the final $k$ centers and $t$ global outliers.

Unlike previous methods that require multiple rounds of communication (like $k$-means||) or have high computational complexity ($O(n^2)$ or $O(n^3)$), this approach requires only one round of communication and runs in near-linear time: $O(\max\{k, \log n\} \cdot n)$.

Key Insights

  • One-Round Efficiency: In distributed systems, the number of communication "rounds" is often the biggest bottleneck. This algorithm only requires sites to send data once, making it highly practical for high-latency networks.
  • The Power of "Leftovers": By refusing to cluster the final few points at each site and instead including them directly in the summary, the algorithm ensures that potential global outliers aren't "smoothed away" by local clustering.
  • Theoretical Rigor: Despite its simplicity, the authors prove that their summary construction results in an $O(\gamma)$-approximation of the optimal solution (where $\gamma$ is the approximation factor of the centralized algorithm used at the end).
  • Scalability: The summary size is independent of the total number of points $n$ (it scales with $k, \log n,$ and $t$), meaning the coordinator isn't overwhelmed even as the global dataset grows to billions of points.

Key Results

The algorithm was evaluated using the KDD Cup 1999 dataset, a classic benchmark for anomaly detection, comparing ball-grow against random sampling (rand), k-means++, and k-means||.

Performance comparison showing communication cost and running time
  • Speed: ball-grow proved to be roughly 7x faster than $k$-means++ and 25x faster than $k$-means|| on the tested datasets.
  • Communication: While $k$-means|| requires $O(\log n)$ rounds of communication, resulting in massive network overhead, ball-grow finishes in exactly one round with minimal communication cost.
  • Clustering Quality: The proposed method achieved lower $\ell_1$ (median) and $\ell_2$ (means) loss than all competitors.
  • Outlier Detection: In terms of "Recall" (the proportion of actual outliers correctly identified), ball-grow significantly outperformed the baselines. On the full KDD dataset, it achieved a recall of 0.58, while the next best ($k$-means++) only reached 0.14.

Limitations and Future Work

While highly effective, the approach has a few limitations. First, it requires the user to provide the outlier budget $t$ as an input. In many real-world scenarios, the exact number of outliers is unknown, and an incorrect $t$ could impact results. Second, the global performance depends heavily on the quality of the centralized algorithm used by the coordinator. Finally, while the theory supports any metric space with a distance oracle, the experiments primarily focused on Euclidean distance, leaving non-Euclidean high-dimensional manifolds as an open area for future validation.

Summary updated

BibTeX
@inproceedings{chen2018practical,
  author = {Jiecao Chen and Erfan Sadeqi Azer and Qin Zhang},
  title = {{A Practical Algorithm for Distributed Clustering and Outlier Detection}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2018},
  url = {https://openreview.net/forum?id=Hk-cwPbu-B},
}
Figure