paper-with-me

홈 › Papers

Log-Time K-Means Clustering for 1D Data: Novel Approaches with Proof and Implementation

2024-12-19 · Jake Hyun

Clustering is a key task in machine learning, with $k$-means being widely used for its simplicity and effectiveness. While 1D clustering is common, existing methods often fail to exploit the structure of 1D data, leading to inefficiencies. This thesis introduces optimized algorithms for $k$-means++ initialization and Lloyd's algorithm, leveraging sorted data, prefix sums, and binary search for improved computational performance. The main contributions are: (1) an optimized $k$-cluster algorithm achieving $O(l \cdot k^2 \cdot \log n)$ complexity for greedy $k$-means++ initialization and $O(i \cdot k \cdot \log n)$ for Lloyd's algorithm, where $l$ is the number of greedy $k$-means++ local trials, and $i$ is the number of Lloyd's algorithm iterations, and (2) a binary search-based two-cluster algorithm, achieving $O(\log n)$ runtime with deterministic convergence to a Lloyd's algorithm local minimum. Benchmarks demonstrate over a 4500x speedup compared to scikit-learn for large datasets while maintaining clustering quality measured by within-cluster sum of squares (WCSS). Additionally, the algorithms achieve a 300x speedup in an LLM quantization task, highlighting their utility in emerging applications. This thesis bridges theory and practice for 1D $k$-means clustering, delivering efficient and sound algorithms implemented in a JIT-optimized open-source Python library.

📄 PDF Abstract BibTeX arXiv:2412.15295

Code (1)

SyphonArch/flash1dkmeans 공식 구현

Tasks

ClusteringQuantization

Similar Papers 제목 키워드 기반

Probably certifiably correct k-means clustering

2015-09-26 · Takayuki Iguchi, Dustin G. Mixon, Jesse Peterson, Soledad Villar

Recently, Bandeira [arXiv:1509.00824] introduced a new type of algorithm (the so-called probably certifiably correct algorithm) that combines fast solvers with the optimality certificates provided by convex relaxations. …

Clustering

Non-parametric Power-law Data Clustering

2013-06-13 · Xuhui Fan, Yiling Zeng, Longbing Cao

It has always been a great challenge for clustering algorithms to automatically determine the cluster numbers according to the distribution of datasets. Several approaches have been proposed to address this issue, includ…

ClusteringVariational Inference

Cluster-based pruning techniques for audio data

2023-09-21 · Boris Bergsma, Marta Brzezinska, Oleg V. Yazyev, Milos Cernak

Deep learning models have become widely adopted in various domains, but their performance heavily relies on a vast amount of data. Datasets often contain a large number of irrelevant or redundant samples, which can lead …

ClusteringKeyword Spotting

On the optimality of kernels for high-dimensional clustering

2019-12-01 · Leena Chennuru Vankadara, Debarghya Ghoshdastidar

This paper studies the optimality of kernel methods in high-dimensional data clustering. Recent works have studied the large sample performance of kernel clustering in the high-dimensional regime, where Euclidean distanc…

ClusteringVocal Bursts Intensity Prediction

Evaluation of k-means time series clustering based on z-normalization and NP-Free

2024-01-28 · Ming-Chang Lee, Jia-Chun Lin, Volker Stolz

Despite the widespread use of k-means time series clustering in various domains, there exists a gap in the literature regarding its comprehensive evaluation with different time series normalization approaches. This paper…

ClusteringTime SeriesTime Series Clustering