arXiv:2610.31491cs.DSOct 2026

Manuscript Offprint

arXiv:2610.31491

Coresets for kk-Means: When Does Uniform Sampling Suffice?

Amir Carmel, Robert Krauthgamer

Abstract

Data summarization techniques, such as coresets, are essential for scaling clustering algorithms to massive datasets. We study uniform sampling, which is an extremely simple and ultra-efficient method to construct coresets, in the context of weak, stable, and strong coresets for the k-means problem in Hilbert space. We begin with the fundamental case k=1k = 1, and establish matching upper and lower bounds on the sample complexity of stable and weak coresets, finding that the two notions require different sample complexities. As a consequence, we obtain tight bounds for stable 1-median coresets in ℓ1\ell_1 and ℓ2\ell_2 (and thus also Kendall–tau and Jaccard metrics), removing the dimension dependence of Carmel and Krauthgamer (ICLR 2026). Our analysis is substantially simpler than prior work and reduces to bounding the deviation of the sample mean. For the general k-means problem on ρ\rho-separated instances, a well-studied structural assumption on the input, we show that uniform sampling yields a stable coreset for all O(1)O(1)-approximate solutions, and a strong coreset if the instance additionally has bounded kurtosis. In all these results, the sample complexity is independent of the dimension and the instance size.

1 Introduction

Center-based clustering seeks to partition a set of points into groups of similar points and further assign a single representative center to each partition. Formally, in the (k,z)(k, z)-clustering problem, the input is a set PP of nn points in a metric space (X,dist)(\mathcal{X}, \text{dist}) and an integer k≥1k \geq 1, and the goal is to find a set of kk centers C⊆XC \subseteq \mathcal{X} minimizing costz(C,P):=1n∑p∈Pmin⁡c∈Cdist(p,c)z\text{cost}_z(C, P) := \frac{1}{n} \sum_{p \in P} \min_{c \in C} \text{dist}(p, c)^z. We focus on z∈[1,2]z \in [1, 2] where the cases z=1z = 1 and z=2z = 2 are the classical kk-median and kk-means problems, respectively. The special case k=1k = 1, namely the 1-median and 1-mean problems, is interesting in its own right and serves as a basic building block for the general problem.

Modern datasets are massive, and this motivates data summarization techniques that let downstream algorithms run on a smaller input rather than the original one. A coreset is a small, reweighted subset of the input that provably preserves the relevant properties of the clustering objective, so that solving the problem (optimally or near optimally) on the coreset gives a near-optimal solution for the original input. Coresets have been the subject of an extensive line of work, offering tunable tradeoffs between size and accuracy, and are the central tool we study here. (Since our results focus on coresets constructed by uniform sampling, we present the coreset definitions without weights.)

The prevailing coreset notion is the strong ϵ\epsilon-coreset, a subset Q⊆PQ \subseteq P such that for every candidate center set C⊆XC \subseteq \mathcal{X} of size kk,

costz(C,Q)∈(1±ϵ)costz(C,P).(1)\mathrm{cost}_{z}(C,Q)\in(1\pm\epsilon)\mathrm{cost}_{z}(C,P). \tag{1}

It is well known that constructing a strong coreset requires reading the entire input PP, as a single far point (outlier) can dominate the cost, and not including it in QQ would violate the guarantee. At the scale of modern datasets, reading the entire input is prohibitive and thus other notions were suggested. A weak (ϵ,η)(\epsilon, \eta)-coreset is such a notion, that in contrast, only requires that near-optimal solutions on QQ remain near-optimal on PP. Writing OPTz(Q):=min⁡C′⊆X,∣C′∣=kcostz(C′,Q)\mathrm{OPT}_z(Q) := \min_{C' \subseteq \mathcal{X}, |C'| = k} \mathrm{cost}_z(C', Q), and similarly for PP, it formally requires that for all C⊆XC \subseteq \mathcal{X} of size kk,

ifcostz(C,Q)≤(1+ϵ)OPTz(Q),thencostz(C,P)≤(1+η)OPTz(P).(2)if cost_{z}(C,Q)\leq(1+\epsilon)OPT_{z}(Q),\quad then cost_{z}(C,P)\leq(1+\eta)OPT_{z}(P). \tag{2}

While this guarantees the most basic property one would expect from a coreset, it says nothing about candidates C that are not near-optimal on Q. This is a serious limitation whenever the centers are constrained to lie in some subset

*Email: amir6423@gmail.com

†^{\dagger}The Harry Weinrebe Professorial Chair of Computer Science. Work partially supported by the Israel Science Foundation grant #1336/23. Email: robert.krauthgamer@weizmann.ac.il

X⊂XX \subset \mathcal{X}, since an optimal solution over XX need not be near-optimal over all of X\mathcal{X} (we give concrete examples of such constraints below).

Recently, Carmel and Krauthgamer (2026) introduced an intermediate notion, the stable (ϵ,η)(\epsilon, \eta)-coreset, which strengthens the weak coreset guarantee by approximately preserving the relative order of costs between every pair of candidate solutions. Formally it requires that, for all C1,C2⊆XC_1, C_2 \subseteq \mathcal{X} of size kk,

ifcostz(C1,Q)≤(1+ϵ)costz(C2,Q),thencostz(C1,P)≤(1+η)costz(C2,P).(3)if cost_{z}(C_{1},Q)\leq(1+\epsilon)cost_{z}(C_{2},Q),\quad then cost_{z}(C_{1},P)\leq(1+\eta)cost_{z}(C_{2},P). \tag{3}

This guarantee transfers to every submetric of X\mathcal{X}, and hence to every variant of the problem in which the centers are restricted to a subset X⊂XX \subset \mathcal{X}, without even needing to know XX in advance, yet it is permissive enough to be achieved by uniform sampling without reading the entire input. Concretely, it is shown in (Carmel and Krauthgamer, 2026) that uniform sampling produces a stable coreset for 1-median in ℓ1\ell_1, and since tree metrics, Hamming, Kendall-tau, and Jaccard distance are all submetrics of ℓ1\ell_1, this transfer-to-submetric property immediately unlocks coreset results for all of these, which were not previously studied. This property also captures constraints on the solution itself, such as the discrete centers (medoids) variant, where centers must be input points, or kernel-based clustering, where the data points are images of a feature map and also the centers are constrained to lie in that map's image (Feldman et al., 2007; Jiang et al., 2024; Carmel et al., 2026).

Even though (k,z)(k, z)-clustering is NP-hard in general (in fact APX-hard (Cohen-Addad et al., 2022a)), it is solved routinely in practice, and this apparent tension has motivated a large body of work isolating structural assumptions under which the problem becomes tractable (see (Ben-David, 2015; Roughgarden, 2020) for surveys). One recurring assumption is ρ\rho-separation, introduced by Ostrovsky et al. (2013), which requires that the optimal cost with k centers is substantially smaller than with k−1k - 1 centers, formalizing the intuition behind the elbow method used in practice to choose k. Another common assumption is that each cluster has bounded dispersion, in the sense of not having a heavy tail, for instance because it arises from Gaussian or sub-exponential distributions; we formalize this via a bound on the kurtosis, which is the fourth moment of each cluster relative to the square of its variance.

All our coreset results are obtained by sampling points from P uniformly. Uniform sampling is a cheap, data-oblivious approach that requires no preprocessing of the data, and is therefore particularly suitable for streaming and distributed settings. This distinguishes it from sensitivity sampling and other strong coreset constructions, which inherently require processing the entire input. Our goal is to understand which guarantees can be obtained without processing the entire input. This stands in contrast to much of the literature, which has generally dismissed uniform sampling as a viable construction for (strong) coresets, in both theory and practice (Schwiegelshohn and Sheikh-Omar, 2022, Appendix B). Thus, the structural assumptions we use below for general k should be viewed as investigating the conditions under which uniform sampling succeeds. As discussed in (Meyerson et al., 2004; Huang et al., 2023), one structural requirement for such success is some form of balancedness of the optimal clusters, since a cluster of small size is likely to be completely missed by the sample. This is in line with practice, where a very small fraction of points is routinely treated as outliers rather than as an extra cluster. We adopt a standard formalization called β\beta-balancedness, which requires that every cluster in the optimal solution contains at least a β/k\beta/k-fraction of the points. Our objective is to find what uniform sampling can really achieve despite these apparent limitations.

References (73)