Introduction
In traditional $k$-means clustering, every data record is treated as a single point in space. However, real-world data is often multi-valued or "fuzzy." For example, GPS data might represent a person not by a single location, but by a set of locations (e.g., "home" and "work"). Similarly, in Natural Language Processing (NLP), a document can be viewed as a set of vectors representing different paragraphs, and sensor readings might output a distribution of possible values due to noise.
To address this, researchers have formalized the sets-k-means problem. Given $n$ sets (each containing $m$ points), the goal is to find $k$ centers that minimize the sum of squared distances from each set to its nearest center.
This problem is significantly harder than standard $k$-means because the distance function between sets is non-metric—it does not satisfy the triangle inequality. Even the simplest case of finding the "mean" of $n$ pairs of points on a 2D plane was not previously solvable in linear time. This paper introduces the first efficient coreset construction for the sets-k-means problem, enabling a near-linear time Polynomial Time Approximation Scheme (PTAS).
Methodology: Coresets and Onion Sampling
The core contribution of this work is a novel framework for building coresets. A coreset is a small, weighted subset of the original data that acts as a proxy; running an algorithm on the coreset yields nearly the same result as running it on the full, massive dataset.
The Challenge of Sampling Sets
Standard clustering algorithms often use $D^2$ sampling, which picks points with a probability proportional to their distance from current centers. This approach fails for sets because one point in a set might be very close to a center while another point in the same set is very far away.
Onion Sampling
To overcome this, the authors propose a technique called Onion Sampling:
- Recursive Similarity: The algorithm identifies sets that are "recursively similar," meaning all $m$ points in one set are close to the $m$ points in another.
- Layer Peeling: It identifies a "dense" layer of similar sets, assigns them a sampling probability, and "peels" them off the dataset.
- Iterative Weighting: This process continues iteratively until the entire "onion" is peeled. The resulting sample is carefully weighted to ensure the final clustering objective remains accurate.
By combining this coreset with an optimal (albeit slow) exhaustive search, the authors achieve a PTAS. This guarantees a solution within a $(1+\epsilon)$ factor of the optimal solution in time that is near-linear in the number of sets ($n$), though it remains exponential in $k$, $d$ (dimensions), and $m$ (set size).
Key Insights and Results
The authors evaluated their approach on real-world GPS data (LEHD/LODES representing home and work addresses), the Reuters-21578 text corpus, and synthetic datasets.
- Sets are not Points: The paper mathematically proves that you cannot simply "flatten" sets into points or take their centroids without losing critical information. The cost of sets-k-means can be zero while the cost of flattened k-means is arbitrarily large.
- Theoretical Efficiency: The authors proved that an $\epsilon$-coreset of size $O(\log^2 n)$ always exists and can be computed in $O(n \log n)$ time. Crucially, the coreset size is independent of $n$, depending only on $\log n$ and internal parameters ($k, d, m$). This makes it highly scalable for streaming or distributed applications.
- Massive Speedups: In NLP experiments using the Reuters dataset, utilizing the coreset reduced computation time from hours to seconds while maintaining an approximation error between 1/64 and 1/2.
- Separability: Unlike standard $k$-means, the optimal clusters in sets-k-means are not necessarily "separable" by simple geometric boundaries (like balls), underscoring the need for this specialized algorithmic approach.
Limitations and Future Directions
While the algorithm is near-linear in $n$, the time complexity involves "hidden" constants with terms like $n^{O(dk)}$ or $k^{m+4}$. This makes the exact solver impractical for very high-dimensional data or a large number of clusters. Additionally, the current theoretical proofs assume a fixed set size $m$, even though the authors note potential support for varying sizes.
Future work aims to extend this framework to infinite sets (such as lines, circles, or polygons) and continuous probability distributions (like Gaussians). Such extensions could have massive implications for fields like computer vision and signal processing, where data is inherently continuous and uncertain.
Summary updated