Skip to main content
QUICK REVIEW

[Paper Review] A New Parallelization Method for K-means

Shikai Jin, Yuxuan Cui|arXiv (Cornell University)|Aug 23, 2016
Advanced Clustering Algorithms ResearchComputer Science7 references6 citations
TL;DR

This paper proposes IPKMeans, a novel parallel k-means method that completes clustering in a single MapReduce job using a k-d tree-based preprocessing stage to enable highly parallel centroid updates. By allowing multiple reducers to update each centroid and minimizing I/O overhead, IPKMeans reduces I/O costs by up to 66% and execution time compared to PKMeans, achieving comparable clustering results with significantly improved efficiency on large datasets in Hadoop.

ABSTRACT

K-means is a popular clustering method used in data mining area. To work with large datasets, researchers propose PKMeans, which is a parallel k-means on MapReduce. However, the existing k-means parallelization methods including PKMeans have many limitations. PKMeans can't finish all its iterations in one MapReduce job, so it has to repeat cascading MapReduce jobs in a loop until convergence. On the most popular MapReduce platform, Hadoop, every MapReduce job introduces significant I/O overheads and extra execution time at stages of job start-up and shuffling. Even worse, it has been proved that in the worst case, k-means needs $2^{Ω(n)}$ MapReduce jobs to converge, where n is the number of data instances, which means huge overheads for large datasets. Additionally, in PKMeans, at most one reducer can be assigned to and update each centroid, so PKMeans can only make use of limited number of parallel reducers. In this paper, we propose an improved parallel method for k-means, IPKMeans, which has a parallel preprocessing stage using k-d tree and can finish k-means in one single MapReduce job with much more reducers working in parallel and lower I/O overheads than PKMeans and has a fast post-processing stage generating the final result. In our method, both k-d tree and the new improved parallel k-means are implemented using MapReduce and tested on Hadoop. Our experiments show that with same dataset and initial centroids, our method has up to 2/3 lower I/O overheads and consumes less amount of time than PKMeans to get a very close clustering result.

Motivation & Objective

  • To address the high I/O overhead and scalability limitations of existing MapReduce-based k-means methods like PKMeans.
  • To eliminate the need for cascading MapReduce jobs by enabling full k-means convergence in a single job iteration.
  • To increase parallelism by allowing multiple reducers to update each centroid simultaneously.
  • To reduce convergence time and I/O costs for large-scale k-means clustering on Hadoop.
  • To design a scalable, efficient parallel k-means framework that maintains clustering quality while improving performance.

Proposed method

  • A k-d tree is constructed during a preprocessing stage to enable efficient spatial partitioning of data points before the main MapReduce job.
  • The main MapReduce job assigns data points to centroids using the k-d tree structure, allowing multiple reducers to process different regions in parallel.
  • Multiple reducers are allowed to update the same centroid, increasing parallelism and reducing the number of required job iterations.
  • A post-processing stage aggregates partial centroid updates across reducers to produce the final clustering result.
  • Both the k-d tree construction and the improved k-means algorithm are implemented using Hadoop MapReduce.
  • The method avoids repeated job scheduling and shuffling by completing all iterations within one MapReduce job.

Experimental results

Research questions

  • RQ1Can k-means clustering be completed in a single MapReduce job while maintaining clustering accuracy?
  • RQ2Can multiple reducers be effectively assigned to update the same centroid to improve parallelism and reduce I/O overhead?
  • RQ3Can k-d tree preprocessing reduce the communication and computation cost in distributed k-means clustering?
  • RQ4How does the I/O overhead and execution time of the proposed method compare to PKMeans on large datasets?
  • RQ5Does the proposed method achieve convergence with comparable clustering quality to PKMeans while reducing job iterations?

Key findings

  • IPKMeans completes k-means clustering in a single MapReduce job, eliminating the need for cascading job iterations required by PKMeans.
  • The method reduces I/O overhead by up to 66% compared to PKMeans under the same dataset and initial centroids.
  • Execution time is significantly lower than PKMeans due to reduced job start-up and shuffling overheads.
  • The use of k-d tree enables more efficient data partitioning and allows multiple reducers to update the same centroid.
  • The final clustering result is very close to that of PKMeans, indicating minimal loss in accuracy.
  • The method scales better on large datasets by minimizing repeated job scheduling and improving load distribution across reducers.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.