A Practical Framework for Solving Center-Based Clustering with Outliers

Hu Ding, Haikuo YuarXiv 2019

Abstract

Clustering has many important applications in computer science, but real-world datasets often contain outliers. Moreover, the presence of outliers can make the clustering problems to be much more challenging. To reduce the complexities, various sampling methods have been proposed in past years. Namely, we take a small sample (uniformly or non-uniformly) from input and run an existing approximation algorithm on the sample. Comparing with existing non-uniform sampling methods, the uniform sampling approach has several significant benefits. For example, it only needs to read the data in one-pass and is very easy to implement in practice. Thus, the effectiveness of uniform sampling for clustering with outliers is a natural and fundamental problem deserving to study in both theory and practice. In this paper, we propose a new and unified framework for analyzing the effectiveness of uniform sampling for three representative center-based clustering with outliers problems, $k$-center/median/means clustering with outliers. We introduce a "significance" criterion and prove that the performance of uniform sampling depends on the significance degree of the given instance. In particular, we show that the sample size can be independent of the ratio $n/z$ and the dimensionality. More importantly, to the best of our knowledge, our method is the first uniform sampling approach that allows to discard exactly $z$ outliers for these three center-based clustering with outliers problems. The results proposed in this paper also can be viewed as an extension of the previous sub-linear time algorithms for the ordinary clustering problems (without outliers). The experiments suggest that the uniform sampling method can achieve comparable clustering results with other existing methods, but greatly reduce the running times.

Introduction

Clustering is a cornerstone of data science, yet real-world datasets are frequently contaminated with outliers. These outliers can catastrophically distort cluster centers, leading to poor results in standard algorithms. While specialized algorithms exist for clustering with outliers, they often suffer from high computational complexity—sometimes quadratic ($O(n^2)$)—rendering them impractical for large-scale datasets.

To address this, researchers often employ sampling techniques. However, traditional theoretical analyses of uniform sampling suggested a "dilemma": to guarantee high-quality results, the sample size was thought to require dependency on the ratio of total points to outliers ($n/z$) and the dimensionality ($D$), both of which can be prohibitively large. Furthermore, many existing methods require "over-discarding" outliers to maintain theoretical guarantees. This work bridges the gap between pessimistic theory and strong empirical performance by demonstrating that uniform sampling is remarkably effective under a "significance" criterion.

Methodology

The proposed framework provides a unified analysis for uniform sampling across three core problems: $k$-center, $k$-median, and $k$-means clustering with outliers.

The Significance Criterion

The core of the analysis is the "Significance" Criterion. An instance is defined as $(\epsilon_1, \epsilon_2)$-significant if the smallest optimal cluster is sufficiently large relative to the number of outliers. This ensures that a small uniform sample will likely contain representative points from each major cluster, allowing the algorithm to distinguish true clusters from noise.

Illustration of the center-based clustering model with optimal clusters $C_i^*$ and centers $o_i^*$.

Algorithm Design

The framework introduces two classes of algorithms:

  1. Bi-criteria Algorithms: These return $k + O(\log k)$ centers. This added flexibility enables a 4-approximation for $k$-center in sub-linear time.
  2. Exact-$k$ Algorithms: These return exactly $k$ centers by executing an existing approximation algorithm on the uniform sample. This is the first uniform sampling approach proven to work while discarding exactly $z$ outliers.

Star Shaped Transformation

For $k$-means and $k$-median analysis, the authors introduce the "Star Shaped Transformation". This geometric proof technique treats clusters as "stars" to bound the error introduced by sampling, proving that the cost is bounded by a constant factor of the optimal cost plus a small additive error related to the cluster diameter.

Geometric construction for the Star Shaped Transformation analysis, used to bound distances between points $p$ and centers.

Experimental Evaluation

The framework was evaluated on synthetic datasets (100D, $10^5$ points) and several large-scale real-world datasets, including Covertype (581k points), Kddcup (494k points), and Poker Hand (1M points).

Key Results

  • Efficiency: Sampling methods reduced running times by orders of magnitude compared to full-dataset baselines (e.g., Charikar’s 3-approximation) while maintaining comparable quality.
  • Independence: Sample sizes were shown to be independent of $n/z$ and dimensionality $D$ for "significant" instances, validating the theoretical claims.
  • Stability: Objective values remained stable as sample sizes varied from 2% to 10% of the total data, showing the robustness of uniform sampling.
  • Precision: The algorithms achieved near-perfect precision and purity on synthetic data, matching more complex non-uniform sampling methods like coresets.

Conclusion

This research demonstrates that simple uniform sampling—which is trivial to implement and requires only a single pass over the data—is theoretically sound and practically superior for many center-based clustering problems with outliers. While the theoretical guarantees rely on the "significance" of clusters and involve a small additive error for $k$-means/median, the empirical performance is robust. Future work may extend this significance-based framework to other high-dimensional problems such as Principal Component Analysis (PCA) or Projective Clustering.

Summary updated

BibTeX
@misc{ding2019practical,
  author = {Hu Ding and Haikuo Yu},
  title = {{A Practical Framework for Solving Center-Based Clustering with Outliers}},
  year = {2019},
  eprint = {1905.10143},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1905.10143},
}
Figure