Abstract
Clustering "Big Sparse Data" poses significant challenges for traditional algorithms due to the "Sparsity Trap," where dimensionality reduction often increases memory usage. This paper introduces a breakthrough streaming algorithm for $k$-means that produces a $(k, \epsilon)$-coreset with a size independent of both the number of data points ($n$) and their dimensionality ($d$). By utilizing a deterministic "Merge-and-Reduce" framework and preserving the sparsity of the original data, the proposed method enables efficient streaming and distributed processing, outperforming standard sampling methods on real-world datasets like MNIST and NIPS.
Introduction: The Sparsity Trap
Clustering via $k$-means is a fundamental task in data science, but it often fails when applied to high-dimensional sparse data. For instance, a document-term matrix for Wikipedia might contain millions of documents ($n$) and hundreds of thousands of unique words ($d$), yet each document contains only a few dozen words.
Standard approaches typically fall into two traps:
- Dimensionality Reduction: Techniques like PCA or Johnson-Lindenstrauss projections transform sparse vectors into dense ones. This "compression" often results in a dataset that requires significantly more memory than the original sparse representation.
- Coresets: Existing coreset constructions—small subsets of data that represent the whole—usually have a size that scales with the dimension $d$. In high-dimensional settings, these coresets cease to be "small."
This work introduces a "sparse coreset" that is truly compact, preserves the original data's sparsity, and has a size depending only on the number of clusters $k$ and the error parameter $\epsilon$.
Methodology
The core contribution is a deterministic algorithm called $k$-Mean-Coreset, which identifies a weighted subset of points (or linear combinations thereof) that approximates the $k$-means cost of the entire dataset.
Merge-and-Reduce Framework
To handle streaming data, the authors utilize a binary tree framework known as "Merge-and-Reduce." Data arrives in chunks; a coreset is computed for each chunk, and these coresets are then merged and reduced hierarchically. This approach keeps the memory footprint logarithmic relative to the total number of points seen ($n$).
Preserving Sparsity and Determinism
Unlike randomized sampling, this algorithm is deterministic. It finds a specific number of "intermediate" centers ($m$) such that adding more centers does not significantly reduce the error. This "leveling off" point allows the authors to bound the coreset size without needing to know the data's dimension. Furthermore, by using optimization methods like Frank-Wolfe, the algorithm ensures that the coreset points remain sparse linear combinations of the input data.
Experimental Evaluation
The authors evaluated their algorithm against uniform and importance sampling on three benchmarks:
- MNIST: 60,000 handwritten digits ($d=784$).
- Pendigits: ~11,000 digit trajectories ($d=16$).
- NIPS Dataset: A sparse word-count matrix ($n=2,865$ authors, $d=14,036$ words).
Key Results
- Superior Accuracy and Stability: The proposed algorithm consistently achieved lower error than sampling methods for the same memory budget. Error distributions were significantly tighter, indicating higher reliability.
- Logarithmic Scaling: Experiments confirmed that memory usage grows only logarithmically with the number of streamed points, validating its use for infinite data streams.
- Communication Efficiency: In distributed settings, the algorithm reduces communication costs to a factor independent of $d$, which is critical for limited-bandwidth networks.
Conclusion
This research provides the first coreset construction where the size is $k^{O(1/\epsilon^2)}$, completely independent of the dimensionality $d$. This is a major advancement for "wide" data where features outnumber samples. While one step of the algorithm is theoretically exponential in $k$, practical heuristics (like using Lloyd’s algorithm for initial centers) allow it to scale effectively. Future work may extend this dimension-independent approach to other clustering metrics like $k$-median.
Summary updated