[Paper Review] Fast Noise Removal for $k$-Means Clustering
This paper proposes NK-means, a fast, greedy preprocessing algorithm that removes outliers for $k$-means clustering with provable guarantees. By reducing $k$-means with outliers to standard $k$-means via a pseudo-approximation-preserving transformation, it enables integration with any $k$-means algorithm—achieving near-linear time complexity and superior empirical performance on real-world datasets with high accuracy and stability.
This paper considers $k$-means clustering in the presence of noise. It is known that $k$-means clustering is highly sensitive to noise, and thus noise should be removed to obtain a quality solution. A popular formulation of this problem is called $k$-means clustering with outliers. The goal of $k$-means clustering with outliers is to discard up to a specified number $z$ of points as noise/outliers and then find a $k$-means solution on the remaining data. The problem has received significant attention, yet current algorithms with theoretical guarantees suffer from either high running time or inherent loss in the solution quality. The main contribution of this paper is two-fold. Firstly, we develop a simple greedy algorithm that has provably strong worst case guarantees. The greedy algorithm adds a simple preprocessing step to remove noise, which can be combined with any $k$-means clustering algorithm. This algorithm gives the first pseudo-approximation-preserving reduction from $k$-means with outliers to $k$-means without outliers. Secondly, we show how to construct a coreset of size $O(k \log n)$. When combined with our greedy algorithm, we obtain a scalable, near linear time algorithm. The theoretical contributions are verified experimentally by demonstrating that the algorithm quickly removes noise and obtains a high-quality clustering.
Motivation & Objective
- To address the challenge of $k$-means clustering in the presence of noise, which severely degrades solution quality.
- To develop a simple, efficient preprocessing step that removes outliers while preserving clustering quality.
- To provide the first pseudo-approximation-preserving reduction from $k$-means with outliers to standard $k$-means.
- To design a scalable algorithm with theoretical guarantees that outperforms existing methods in runtime and solution quality.
- To validate the method empirically on real-world datasets with varying noise levels and data scales.
Proposed method
- Introduces NK-means, a greedy algorithm that iteratively removes the point with the largest squared distance to its nearest center, effectively filtering outliers.
- Applies the preprocessing step before any $k$-means clustering algorithm, enabling compatibility with existing methods like $k$-means++.
- Constructs a coreset of size $O(k\log n)$ to enable efficient computation while preserving approximation guarantees.
- Combines the greedy outlier removal with coreset construction to achieve near-linear time complexity.
- Uses a normalized objective function to compare performance across datasets and ensure fairness in evaluation.
- Employs a noise injection strategy in experiments: randomly adding $1\%$ of points uniformly in $[-\Delta, \Delta]^d$ to simulate outliers.
Experimental results
Research questions
- RQ1Can a simple greedy preprocessing step effectively remove outliers in $k$-means clustering while maintaining strong theoretical guarantees?
- RQ2Is it possible to reduce $k$-means with outliers to standard $k$-means via a pseudo-approximation-preserving transformation?
- RQ3Can a coreset-based approach enable near-linear time $k$-means with outliers while preserving solution quality?
- RQ4How does the proposed NK-means algorithm compare to existing state-of-the-art methods in terms of runtime, objective value, and precision on real datasets?
- RQ5Does the algorithm maintain stability and high performance across diverse data distributions and noise levels?
Key findings
- NK-means achieved the best objective value on all real-world datasets except Skin-5, where it was within 5% of the best.
- The algorithm maintained precision above 0.99 across all datasets, outperforming other methods in stability and accuracy.
- NK-means ran in under 4 hours on all datasets, with the fastest runtime among algorithms with provable guarantees.
- On the KddFull dataset (4.8M points), NK-means significantly outperformed other methods in objective value, even without artificial noise.
- The coreset-based variant of $k$-means++ with NK-means preprocessing achieved competitive runtime and precision, demonstrating scalability.
- Experiments confirmed that NK-means is the only algorithm in the study with worst-case theoretical guarantees, which may explain its consistent performance.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.