Is Simple Uniform Sampling Efficient for Center-Based Clustering With Outliers: When and Why?

Hu Ding, Jiawei Huang · OpenReview

Abstract

Real-world datasets often contain outliers, and the presence of outliers can make the clustering problems to be much more challenging. In this paper, we propose a simple uniform sampling framework for solving three representative center-based clustering with outliers problems: $k$-center/median/means clustering with outliers. Our analysis is fundamentally different from the previous (uniform and non-uniform) sampling based ideas. To explain the effectiveness of uniform sampling in theory, we introduce a measure of "significance" and prove that the performance of our framework depends on the significance degree of the given instance. In particular, the sample size can be independent of the input data size $n$ and the dimensionality $d$, if we assume the given instance is "significant", which is in fact a fairly reasonable assumption in practice. Due to its simplicity, the uniform sampling approach also enjoys several significant advantages over the non-uniform sampling approaches in practice. To the best of our knowledge, this is the first work that systematically studies the effectiveness of uniform sampling from both theoretical and experimental aspects.

1. Introduction

Clustering is a fundamental tool in data science, but real-world data is messy and often contains outliers that can completely derail standard algorithms. While "center-based clustering with outliers"—the task of finding $k$ centers while ignoring $z$ noisy points—is well-studied, existing solutions face a dilemma. Exact or high-quality algorithms often have super-linear time complexities, making them unusable for massive datasets. Conversely, non-uniform sampling methods like $k$-means++ seeding require multiple passes over the data and can be complex to implement in distributed environments like MapReduce or streaming architectures.

Illustration of center-based clustering where points are assigned to optimal centers $o_i^*$ within clusters $C_i^*$.

This paper addresses whether simple uniform sampling—taking a small, random subset of data—can be efficient and effective. Historically, uniform sampling was thought to require excessively large samples to avoid being overwhelmed by outliers. This research provides the theoretical justification for "when and why" this simple approach succeeds, introducing a framework that is both theoretically sound and practically superior in large-scale settings.

2. Methodology

The authors propose a framework where a small uniform sample $S$ is taken from the input, and an existing approximation algorithm (a "black box") is run on that sample. Two main algorithmic variations are analyzed:

  • Bi-criteria Approximation (Algorithms 1 & 3): These algorithms return $k + O(\log k)$ centers. This "over-sampling" ensures that even if some outliers are sampled, the true clusters remain covered.
  • Standard Approximation (Algorithms 2 & 4): These return exactly $k$ centers and are particularly effective for "significant" instances.

3. Theoretical Framework: The Significance Measure

The core innovation is the $(\epsilon_1, \epsilon_2)$-significant instance definition. An instance is deemed significant if every optimal cluster contains at least a certain fraction of points ($\epsilon_1/k$) and the total number of outliers is bounded ($\epsilon_2/k$).

Geometric intuition for the significance measure, showing the relationship between points $p$, cluster representatives $p_j$, and centers $h_{l_j}$.

The effectiveness of uniform sampling depends heavily on the ratio of the smallest cluster size to the number of outliers. If clusters are "significant," a small random sample is highly likely to capture representatives from every cluster. Remarkably, for such instances, the required sample size depends only on $k$ and the desired confidence/error parameters, remaining independent of the total number of points $n$ or dimensions $d$. This theoretical result explains why uniform sampling often performs better in practice than pessimistic worst-case bounds suggest.

4. Experimental Evaluation

The approach was evaluated on synthetic Gaussian datasets and large-scale real-world benchmarks from the UCI Repository, including Kddcup (4.9M points), Covertype (581k points), Poking Hand (1M points), and Shuttle (58k points), with 1% artificial outliers added to test robustness.

Key findings include:

  • Efficiency: On datasets up to $n=10^7$, uniform sampling was several orders of magnitude faster than non-uniform baselines like LocalSearch or DataSummary.
  • Quality: Objective values (clustering cost) were comparable to much slower state-of-the-art algorithms, demonstrating that the sample size reduction does not come at a significant cost to accuracy.
  • Accuracy: On the Kddcup dataset, the framework achieved a purity of 0.991, matching or exceeding complex baselines.

5. Conclusion

Simple uniform sampling is a powerful yet overlooked tool for robust clustering. By assuming "significance"—a condition often met in practice—practitioners can achieve high-quality clustering with massive speedups and simplified implementation in big data pipelines. Future work may extend this "significance" analysis to other robust optimization problems like Robust PCA or projective clustering.

Summary updated

BibTeX
@misc{ding2021is,
  author = {Hu Ding and Jiawei Huang},
  title = {{Is Simple Uniform Sampling Efficient for Center-Based Clustering With Outliers: When and Why?}},
  year = {2021},
  eprint = {2103.00558},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2103.00558},
}

Loading related content...

Figure