[Paper Review] k-Means for Streaming and Distributed Big Sparse Data
This paper presents the first deterministic streaming and distributed algorithm for computing a provable $(k,\varepsilon)$-coreset for sparse Big Data in $\mathbb{R}^d$, where each vector has $O(1)$ non-zero entries and $d \geq n$. The coreset size is $k^{O(1)}$, independent of $n$ and $d$, enabling efficient $k$-means clustering with logarithmic memory and communication, outperforming prior methods that either scale with $d$ or destroy sparsity via dimensionality reduction.
We provide the first streaming algorithm for computing a provable approximation to the $k$-means of sparse Big data. Here, sparse Big Data is a set of $n$ vectors in $\mathbb{R}^d$, where each vector has $O(1)$ non-zeroes entries, and $d\geq n$. E.g., adjacency matrix of a graph, web-links, social network, document-terms, or image-features matrices. Our streaming algorithm stores at most $\log n\cdot k^{O(1)}$ input points in memory. If the stream is distributed among $M$ machines, the running time reduces by a factor of $M$, while communicating a total of $M\cdot k^{O(1)}$ (sparse) input points between the machines. % Our main technical result is a deterministic algorithm for computing a sparse $(k,ε)$-coreset, which is a weighted subset of $k^{O(1)}$ input points that approximates the sum of squared distances from the $n$ input points to every $k$ centers, up to $(1\pmε)$ factor, for any given constant $ε>0$. This is the first such coreset of size independent of both $d$ and $n$. Existing algorithms use coresets of size at least polynomial in $d$, or project the input points on a subspace which diminishes their sparsity, thus require memory and communication $Ω(d)=Ω(n)$ even for $k=2$. Experimental results real public datasets shows that our algorithm boost the performance of such given heuristics even in the off-line setting. Open code is provided for reproducibility.
Motivation & Objective
- To address the challenge of performing $k$-means clustering on sparse Big Data where $d \geq n$, and traditional dimensionality reduction techniques destroy sparsity.
- To design a streaming and distributed algorithm that maintains $k$-means approximation quality while using memory and communication independent of $d$ and $n$.
- To construct a deterministic sparse $(k,\varepsilon)$-coreset of size $k^{O(1)}$ that approximates the sum of squared distances to any $k$ centers within $1\pm\varepsilon$.
- To enable efficient $k$-means computation in streaming, distributed, and GPU-accelerated settings without sacrificing sparsity or approximation guarantees.
- To empirically validate that the coreset construction boosts the performance of existing heuristics like Lloyd’s algorithm in both offline and streaming settings.
Proposed method
- The algorithm constructs a sparse $(k,\varepsilon)$-coreset using a deterministic, merge-and-reduce tree over a streaming or distributed data set, maintaining $O(\log n \cdot k^{O(1)})$ memory.
- It processes data in chunks, computes local coresets per machine or stream segment, and recursively merges them using a binary tree structure, preserving coreset guarantees.
- The coreset construction uses weighted sampling based on local variance and distance to candidate centers, ensuring approximation for all possible $k$-center configurations.
- The method supports sparse input representations (e.g., row-wise pairs of indices and values), preserving sparsity throughout computation.
- It enables distributed computation by communicating only $M \cdot k^{O(1)}$ sparse points across $M$ machines, reducing running time by a factor of $M$.
- The algorithm is compatible with GPU acceleration by relying on simple, parallelizable operations such as vector addition and distance computation.
Experimental results
Research questions
- RQ1Can a deterministic coreset be constructed for sparse Big Data in a streaming or distributed setting with size independent of $d$ and $n$?
- RQ2Does such a coreset preserve the sum of squared distances to any $k$ centers within a $1\pm\varepsilon$ factor, even when $d \geq n$?
- RQ3Can the coreset be used to significantly improve the performance of existing $k$-means heuristics like Lloyd’s algorithm in both offline and streaming settings?
- RQ4How does the memory and communication cost scale with data size and number of machines in a distributed setup?
- RQ5Is the coreset construction stable and robust across different data distributions and sparsity patterns?
Key findings
- The proposed algorithm constructs a sparse $(k,\varepsilon)$-coreset of size $k^{O(1)}$, independent of $n$ and $d$, which is the first such coreset for sparse Big Data with provable guarantees.
- The algorithm achieves $O(\log n \cdot k^{O(1)})$ memory usage in streaming mode and $O(M \cdot k^{O(1)})$ communication in distributed mode, both independent of $d$.
- Experimental results show that the coreset construction significantly outperforms uniform and non-uniform sampling in terms of error, with lower and more stable error values across all tested datasets and $k$ values.
- The algorithm starts with a very low error even at small coreset sizes and improves steadily, while baseline methods start with higher errors and only converge to lower values at large sample sizes.
- The error distribution across experiments is tightly clustered around the median, indicating high stability and low variance, especially in the streaming model.
- Memory usage during streaming construction grows logarithmically with the number of points, consistent with the binary merge-reduce tree structure, with oscillations corresponding to tree-level updates.
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.