Introduction
Clustering is a cornerstone of unsupervised learning, with $k$-Median being one of its most fundamental formulations. However, as datasets scale into the billions, even linear-time algorithms become computationally prohibitive. To handle this, researchers often rely on coresets—small, weighted subsets of the data that act as a proxy for the whole. While coresets effectively reduce storage requirements, they suffer from a major query efficiency problem: most construction methods require reading the entire dataset at least once ($\Omega(n)$ queries) to calculate importance weights for sampling.
This paper asks a provocative question: Can we achieve a high-quality approximation by simply picking points at random (uniform sampling) without scanning the entire dataset first? While uniform sampling is data-oblivious and incredibly fast, it has historically been considered unreliable for clustering due to the risk of missing small, distant clusters. By introducing a "balancedness" parameter, this work challenges that assumption and proves that simple uniform sampling is surprisingly effective for massive datasets.
The Role of Balancedness
The authors bridge the gap between theory and practice by introducing the concept of balancedness, denoted as $\beta \in (0, 1]$. This parameter measures the ratio between the smallest cluster size and the average cluster size in an optimal solution. A $\beta$ of 1 indicates perfectly equal-sized clusters, while a tiny $\beta$ indicates the presence of highly sparse, lopsided clusters.
The authors establish balancedness as a fundamental limit for sublinear clustering by proving that any algorithm—not just uniform sampling—must make at least $\Omega(1/\beta)$ queries to the point set to achieve an $O(1)$-approximation for $k$-Median. This implies that existing coreset constructions cannot be query-efficient in the worst case.
Theoretical Guarantees and Methodology
Countering the lower bound, the authors demonstrate that a simple uniform sample of $\mathrm{poly}(k \epsilon^{-1} \beta^{-1})$ points is sufficient to achieve a $(1 + \epsilon)$-approximation for $k$-Median across various metric spaces. For Euclidean space specifically, a uniform sample of size $\tilde{O}(\frac{k^2}{\beta \epsilon^3})$ suffices, notably removing any dependence on the number of dimensions ($d$).
This dimension independence is a massive win for modern machine learning, where feature vectors are often very long. It is achieved through sophisticated chaining arguments and terminal Johnson-Lindenstrauss transforms. The analysis is also extended beyond Euclidean space to doubling metrics, finite metrics, and graph metrics (shortest-path distances).
The theoretical framework relies on two key components:
- The $(k, \beta)$-Median Problem: A variant of the clustering problem where every cluster is constrained to have at least a certain number of points.
- Structural Lemmas: Proofs showing that if a center set is "bad" for the full dataset, it will likely also evaluate poorly on a small uniform sample.
Ultimately, while coresets offer "strong" guarantees (approximating the cost for any possible set of centers), uniform samples offer "weak" guarantees (approximating the cost only for the best centers). For most practical applications, this weak guarantee is entirely sufficient.
Empirical Evaluation
The theoretical findings are validated on three large-scale real-world datasets:
- Twitter: 21 million data points represented as 2D Euclidean vectors.
- Census1990: ~2.5 million data points with 68 numerical features (high-dimensional Euclidean).
- NY (New York Road Network): A graph with ~2.2 million vertices and ~2.9 million edges, using shortest-path distances.
A major insight from the experiments is that real-world datasets are rarely pathological; even for large $k$, clusters tend to be naturally balanced enough for uniform sampling to excel. For example, on the NY road network, the balancedness $\beta$ remained high enough that a sample of just 500 points provided an excellent approximation for a dataset of millions.
In practice, uniform sampling proved to be orders of magnitude faster than coreset construction. On the Twitter dataset, computing a coreset took 391 seconds, whereas uniform sampling took a mere 0.001 seconds. Despite this massive speedup, the clustering cost achieved by uniform sampling was comparable to—and sometimes better than—complex importance-sampling methods.
Limitations and Future Directions
While uniform sampling is highly effective for balanced datasets, it will fail if the data contains "needle in a haystack" clusters (e.g., a cluster of 5 points in a billion-point dataset). Practitioners must have some prior belief that their clusters are reasonably balanced.
Furthermore, while the theoretical guarantees rely on the $(k, \beta)$-Median algorithm, which is harder to implement than standard $k$-Median, experiments show that standard algorithms usually perform perfectly well on the sample in practice. Finally, the paper assumes $\beta$ is a known property of the dataset. Developing methods to estimate balancedness on the fly remains a valuable direction for future research.
Summary updated