Manuscript Offprint
arXiv:2610.31491Coresets for -Means: When Does Uniform Sampling Suffice?
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 , 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 and (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 -separated instances, a well-studied structural assumption on the input, we show that uniform sampling yields a stable coreset for all -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 -clustering problem, the input is a set of points in a metric space and an integer , and the goal is to find a set of centers minimizing . We focus on where the cases and are the classical -median and -means problems, respectively. The special case , 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 -coreset, a subset such that for every candidate center set of size ,
It is well known that constructing a strong coreset requires reading the entire input , as a single far point (outlier) can dominate the cost, and not including it in would violate the guarantee. At the scale of modern datasets, reading the entire input is prohibitive and thus other notions were suggested. A weak -coreset is such a notion, that in contrast, only requires that near-optimal solutions on remain near-optimal on . Writing , and similarly for , it formally requires that for all of size ,
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
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
, since an optimal solution over need not be near-optimal over all of (we give concrete examples of such constraints below).
Recently, Carmel and Krauthgamer (2026) introduced an intermediate notion, the stable -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 of size ,
This guarantee transfers to every submetric of , and hence to every variant of the problem in which the centers are restricted to a subset , without even needing to know 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 , and since tree metrics, Hamming, Kendall-tau, and Jaccard distance are all submetrics of , 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 -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 -separation, introduced by Ostrovsky et al. (2013), which requires that the optimal cost with k centers is substantially smaller than with 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 -balancedness, which requires that every cluster in the optimal solution contains at least a -fraction of the points. Our objective is to find what uniform sampling can really achieve despite these apparent limitations.
Theorem 1.1 (Stable coreset for 1-mean). Let be a Hilbert space and let be finite. Then for every and , a uniform sample of (sufficiently large) size from is, with probability at least , a stable -coreset for the 1-mean problem.
Since for every the space endowed with the norm) embeds isometrically into -squared (Schoenberg, 1938; Bretagnolle et al., 1967), Theorem 1.1 immediately yields the same guarantee also for 1-median in .
Corollary 1.2 (Stable coreset for 1-median). Fix and let be finite. Then for every and , a uniform sample of (sufficiently large) size from is, with probability at least , a stable -coreset for 1-median in .
| Metric | Coreset type | Coreset size | Reference |
|---|---|---|---|
| weak | Cohen-Addad et al. (2021a) Huang et al. (2023) Woodruff and Yasuda (2024) | ||
| stable | Carmel and Krauthgamer (2026) Carmel et al. (2026) | ||
| stable | Carmel and Krauthgamer (2026) | ||
| stable | Corollary 1.2 |
Table 1: Uniform-sampling coreset sizes for stable and weak -coresets for the 1-median problem. The cited work is primarily concerned with the more general -median problem.
This corollary is perhaps our most important contribution for , as it improves the two known bounds on stable coresets for 1-median and has several applications (see also Appendix E for additional implications of Theorem 1.1). The endpoints and recover 1-median in and , and the same conclusion holds for every metric that embeds isometrically into , including Hamming, Kendall-tau, Spearman footrule, Jaccard, and tree metrics. These two prior results are as follows. The first (Carmel and Krauthgamer, 2026) gives a bound for that depends logarithmically on the dimension , proved using VC-dimension machinery. The second (Carmel et al., 2026) employs an iterative size reduction while exploiting the construction of (Carmel and Krauthgamer, 2026), and its bound for carries a gap that we close. Table 1 summarizes these and related works on 1-median coresets.
Our key idea is to aim for a stronger result, namely, a coreset for 1-mean in Hilbert space, which implies a coreset for 1-median in or , by embedding these spaces isometrically into -squared and applying the submetric property of stable coresets. Surprisingly, our proof is much simpler as it avoids the VC-dimension machinery entirely, and it furthermore identifies the actual source of difficulty in analyzing stable and weak coresets constructed via uniform sampling. Since every stable coreset is also a weak coreset, our results immediately improve upon all previous weak coreset constructions summarized in Table 1, with substantially simpler analysis.
To place our stable coreset results in context, the next theorem states the corresponding bound for weak coresets. It was essentially proved in (Inaba et al., 1994; Maalouf et al., 2021), albeit only for weak -coresets, and for completeness we provide a short proof of the extended bound in Appendix B. We remark that weak -coresets were established in (Cohen-Addad et al., 2021a) also for a more general problem called Euclidean power mean, and were later improved in (Woodruff and Yasuda, 2024).
Theorem 1.3 (Weak coreset for 1-mean). Let be a Hilbert space and let be finite. Then for every and , a uniform sample of (sufficiently large) size from is, with probability at least , a weak -coreset for the 1-mean problem.
We complement Theorem 1.1 and Theorem 1.3 with matching lower bounds. For weak coresets, there is already a lower bound for every power in (Cohen-Addad et al., 2021a), and thus item (i) below was already known.
Theorem 1.4. For every , there exists a finite set such that if a uniform sample of size is, with probability at least ,
(i) a weak -coreset for the 1-mean problem, then ;
(ii) a stable -coreset for the 1-mean problem, then .
Together, Theorems 1.1, 1.3 and 1.4 provide a direct comparison between the two notions for the 1-mean problem in Hilbert space, revealing a clear separation: stable coresets require samples, whereas weak coresets require only . In contrast, there is no such separation for the 1-median problem, as both notions are known to require, up to polylogarithmic factors, samples for constant success probability (Carmel et al., 2026).
We then consider the case of general , a regime where uniform-sampling constructions are scarce. Prior stable-coreset results are restricted to (Carmel and Krauthgamer, 2026; Carmel et al., 2026), and the closest prior work for is a weak -median coreset of (Huang et al., 2023), and we compare to it further below. For , we consider the candidate center sets and similarly . We think of as a small constant, since constant-factor approximations for -clustering are readily available. We first show that under -balancedness and -separation assumptions, a uniform sample already preserves the cost order (in the stable sense) of all solutions whose cost on or on is within factor of optimal.
Theorem 1.5. Let be a Hilbert space and let , , , . Then for every finite that is -balanced for and -separated with , a uniform sample of (sufficiently large) size is, with probability at least , a stable -coreset of over solutions in for the -means problem.
Observe that by setting , we immediately obtain a weak -coreset guarantee. The closest prior result, obtained by Huang et al. (2023), is a weak coreset of size for -median in , with constant success probability. They too require that is -balanced, but their weak coreset guarantee is further restricted to candidate solutions that are balanced on the sample . We require instead that the input is -separated, and for constant success probability our sample complexity matches their bound in and improves the dependence on from to , while also giving the stronger stable guarantee over all -approximate solutions. Neither their result nor their technique extends to the -means problem, whereas ours, stated above for squared-distance objective in Hilbert space, implies the Euclidean -median setting as a special case. Another advantage of our result is that if the input has in addition bounded kurtosis, then the stable guarantee strengthens to a strong one, i.e., it preserves the cost of every candidate center set in . This improves over the strong coreset result of (Carmel and Krauthgamer, 2026), which is restricted to and assumes bounded dispersion (each cluster diameter relative to its average distance). Bounded kurtosis is clearly a more relaxed requirement and arguably more typical in practice.
Theorem 1.6. Let be a Hilbert space and let , , , . Then for every finite that has kurtosis bounded by , is -balanced for , and is -separated with , a uniform sample of (sufficiently large) size satisfies, with probability at least ,
We complement our theoretical results with an experimental evaluation (Section 4) on real-world datasets, comparing uniform sampling against importance-sampling constructions of coreset for both 1-median and k-means. We find that uniform sampling matches the empirical accuracy of these more expensive methods, despite requiring several orders of magnitude less construction time and being oblivious to the input.
1.2 Technical overview
Upper bound for (Theorem 1.1). The key idea is to analyze 1-mean in Hilbert space, rather than 1-median in or . We use the sufficient condition of (Carmel and Krauthgamer, 2026) for a stable coreset, called relative cost-difference approximation (RCDA) property: for every candidate center set , the difference between its cost and the optimal cost is approximately the same whether measured on or on (see Definition 2.2).
Now for the 1-mean problem in Hilbert space H, we prove that the RCDA error at a center c factors into a center-dependent term and a sample-dependent term , which is the deviation of the sample mean from the true mean. Since this does not depend on c, a single concentration bound controls it, and hence also the RCDA error, simultaneously for all centers. Once we establish that a uniform sample Q has the RCDA property (with high probability), we just invoke the framework of (Carmel and Krauthgamer, 2026) (see Theorem 2.3) to conclude that Q is a stable coreset.
Lower bounds for (Theorem 1.4). Both bounds use the same one-dimensional instance, where -fraction of the mass is at a point and the rest is at the origin, so the sample sees the rare point only through the number of times it is drawn. The separation between the two notions comes from how accurately the sample must reproduce the mean. A weak coreset only needs the sample mean to be within of the true mean. A stable coreset must preserve the cost order of every pair of centers, and we detect the pair that is hardest to preserve; namely, two centers placed symmetrically on different sides of the sample mean . They have identical cost on , yet on their cost ratio grows linearly with the deviation of from the true mean. Any nonzero deviation therefore turns a tie on into a strict order on , and forcing this deviation below demands the sample mean to be a factor closer than in the weak coreset case. This quadratic gap in the tolerated deviation is exactly the versus separation, pinpointing an inherent difference between the two notions, weak and stable coresets. The proof appears in Section C.
Upper bounds for (Theorems 1.5 and 1.6). The difficulty in moving from to general is that the clean factorization of the RCDA error no longer holds. For a single cluster, every candidate center sees the same sample mean, so a single concentration bound controls all candidates simultaneously. For general k, however, each candidate solution (set of k centers) induces its own Voronoi partition. When the candidate centers vary (“move”), points near cluster boundaries may switch their assigned center, producing an additional error term that depends on the assignment itself. Consequently, unlike the 1-mean case, there is no single empirical quantity whose concentration controls the entire family of candidate solutions. The standard approach to handling such infinite families relies on VC-dimension or covering-number arguments (Huang et al., 2023). We take a different route.
Fix an optimal solution and parametrize every candidate solution by its displacement from the optimal centers, i.e. the candidate is . In this parametrization, applying the König–Huygens identity separately within each optimal cluster of and of the sample expresses both costs in closed form, and their difference splits into two terms. The first is the matched-cost error, in which every point is assigned to the center displaced from its own optimal center, regardless of which candidate center is actually nearest. This term depends only on the empirical weights and centroids of the optimal clusters, and is controlled by the same per-cluster concentration as in the 1-mean case. The second is the boundary-gain error, the correction for points whose nearest candidate center is displaced from a different optimal center. Bounding this term is the core technical challenge.
Before turning to it, we exploit the geometry of well-separated instances to show that every candidate of constant-factor approximation is localized around : each of its centers lies within a small radius of a distinct optimal center, so the displacements lie in a fixed set . Crucially, the set is determined by the input alone and does not depend on the sample.
The boundary-gain error depends on the minimum squared distance from each point to the candidate centers. This minimum is taken over all centers at once, making the error non-linear and non-separable across clusters. To handle it, we first symmetrize the deviation, replacing the comparison between the sample and the population by a comparison between two independent samples, which yields a Rademacher process indexed by the displacements in . The boundary gain at a point is a maximum of functions of that are affine except for a quadratic term, and we remove the two obstructions in turn. Maurer's vector contraction inequality (Maurer, 2016) removes the maximum; it bounds a Rademacher process indexed by vector-valued Lipschitz functions, up to a constant factor, by a Rademacher process indexed by the coordinates of those functions. The quadratic term is then removed by lifting each displacement to in one extra dimension, which makes every coordinate function linear in the lifted variable. The entire process thereby collapses to a single inner product in a Hilbert space between a bounded lifted displacement and one Rademacher vector, and Cauchy–Schwarz reduces the problem to the second moment of that vector, which we bound directly, without any tail assumption on the dataset . Overall, we obtain a uniform bound on the expected boundary-gain error.
The final step is to convert this expectation bound into a high-probability guarantee, and this is exactly where our two results (Theorems 1.5 and 1.6) diverge. For the strong coreset guarantee, we bound the variance of the boundary-gain error directly. Since changing one sampled point may have a large effect when that point lies far from its optimal cluster center, the resulting variance bound depends on fourth moments, which we control by the bounded-kurtosis assumption. For the stable coreset guarantee, rather than approximating the cost itself, we first establish the -RCDA guarantee. The RCDA decomposition eliminates the term responsible for the fourth-moment dependence before concentration is applied, leaving only second-moment quantities to control. The trade-off is that this requires a bound on , which follows easily from Markov's inequality, leading to the weaker dependence on the failure probability. The full proof appears in Section D due to space constraints.
1.3 Related work
A large literature studies algorithms for Euclidean -clustering under structural assumptions on the input, including perturbation resilience (Bilu and Linial, 2012; Balcan and Liang, 2016; Angelidakis et al., 2017; Balcan et al., 2016; Makarychev and Makarychev, 2020), various notions of separation and stability (Awasthi et al., 2010, 2012; Ostrovsky et al., 2013; Cohen-Addad and Schwiegelshohn, 2017) and more (Kumar and Kannan, 2010; Balcan et al., 2013; Mixon et al., 2016).
Another line of work studies sublinear-time clustering algorithms based on uniform random sampling (Mishra et al., 2001; Meyerson et al., 2004; Czumaj and Sohler, 2007; Ben-David, 2007). These works show that, under various settings and assumptions, approximate solutions for k-median and k-means can be obtained from samples whose size is independent of the input size.
Coresets have proven to be a valuable algorithmic tool for the -clustering problem and have been studied extensively for over two decades (Har-Peled and Mazumdar, 2004; Chen, 2009; Feldman and Langberg, 2011; Sohler and Woodruff, 2018; Huang and Vishnoi, 2020; Braverman et al., 2021b; Cohen-Addad et al., 2021b). The dominant notion throughout this literature is that of a strong coreset, and the current state-of-the-art construction is essentially optimal, matching the lower bound up to lower-order terms (Cohen-Addad et al., 2022b; Huang et al., 2024). Strong coreset construction based on uniform sampling was originally proposed by Chen (2009), who suggested partitioning the metric space into rings and sample uniformly from each ring. The analysis was later improved in (Cohen-Addad et al., 2021a; Braverman et al., 2022). Yet, the algorithm still requires a linear scan of the dataset and hence the overall sampling distribution is non-uniform. For kernel clustering Jiang et al. (2024) give strong coresets of size , which as a special case yields strong coresets in (and every submetric of it).
Another related problem is Euclidean 1-center (the minimum enclosing ball), for which strong coresets require size exponential in the dimension (Agarwal et al., 2005), whereas weak coresets are dimension-free (Bădoiu et al., 2002; Bădoiu and Clarkson, 2008). In the metric, however, both strong and weak coresets for 1-center must depend on the dimension (Carmel et al., 2025).
A related but conceptually different coreset notion, which is also intermediate between weak and strong coresets, is the approximation-preserving coreset of (Prabhu et al., 2026), which guarantees that an -approximate solution on Q can be post-processed to an -approximate solution on P, for every , via an explicit algorithm.
2 Preliminaries
Let be a Hilbert space equipped with inner product . Throughout the remainder of the paper, we focus on the -means problem, corresponding to the special case of -clustering. Accordingly, we omit the subscript from the notation. In the -means problem the input is a set of size and an integer , and the goal is to find a -center set minimizing
We denote by OPT := the cost of an optimal solution. Each center set induces a (Voronoi) partition of into clusters , where if is a nearest center to in (ties broken by smallest label). We fix an optimal solution for the -means problem with induced partition , for we simply denote . Define the per-cluster quantities
The following identity decomposes the cost of a single cluster into a bias term and a variance term (also known as the König–Huygens identity).
Claim 2.1. Let of size and . Then,
Proof. Write . Then
and the middle term vanishes since .
It follows immediately that the centroid of , i.e., , is the point minimizing the cost for the cluster .
Let Q be a uniform sample of size s drawn i.i.d. from P. Define the per-cluster sample quantities
Now denote , and notice that this cost and its underlying partition are not necessarily optimal for , that is, .
A key tool for establishing stable coresets, introduced in (Carmel and Krauthgamer, 2026), is the following notion, which requires that the cost gap between any candidate center set C and the fixed optimal solution be nearly the same whether measured on P or on the sample Q.
Definition 2.2 (ε-RCDA). A subset is an -relative cost-difference approximation ( -RCDA) of in if
The -RCDA property implies a stable coreset, provided that the sample does not excessively overestimate the cost of the fixed optimum . The proof given in (Carmel and Krauthgamer, 2026) for 1-median extends verbatim to k-means, for completeness we reproduce the proof in Appendix A.
Theorem 2.3 (Carmel and Krauthgamer (2026) (Theorem 3.1)). Let and suppose that
(II) Q is an -RCDA of P in H, and
(I2) for some .
Then Q is a stable -coreset of P.
3 Upper bound for
3.1 RCDA in Hilbert space
In the case, we denote the centers by lower-case letters and simply write . Also denote , , where is the sample mean of and .
Applying Claim 2.1 to both P and Q, for all :
First, we note that the RCDA error can be written as a single inner product.
Claim 3.1. For every ,
Proof. From (6) and (7):
Expanding , so
Consequently,
Second, we bound via concentration (see also (Inaba et al., 1994) for similar concentration analysis).
Claim 3.2. Let , then .
Proof. We can write , where the summands are i.i.d. with mean zero. By independence,
Applying Markov's inequality
We combine Claim 3.1 and Claim 3.2 to show that a uniformly sampled Q is an -RCDA of P.
Claim 3.3. If , then is an -RCDA of .
Proof. By Claim 3.1, the RCDA error at center equals . By Cauchy–Schwarz and Young’s inequality :
By assumption, . Hence, , for all .
3.2 Proof of Theorem 1.1
Proof of Theorem 1.1. Let , and set . By Claim 3.2, . Since , Markov's inequality gives . By the union bound, both and hold simultaneously with probability at least . Conditioned on these events, Claim 3.3 gives that is an -RCDA of , and . Applying Theorem 2.3, is a stable -coreset of , and the desired result is obtained by rescaling .
3.3 Proof of Theorem 1.3
In contrast, we show that for weak coresets it suffices to have , a single power of rather than as in Claim 3.3, thus improving upon the required sample size. While a slightly weaker result, yielding a weak -coreset via a similar technique, appears in (Inaba et al., 1994; Jubran et al., 2020), we include in Appendix B the proof of the more general statement for completeness.
Theorem 1.3 (Weak coreset for 1-mean). Let be a Hilbert space and let be finite. Then for every and , a uniform sample of (sufficiently large) size from is, with probability at least , a weak -coreset for the 1-mean problem.
4 Experiments
We evaluate uniform sampling against importance-sampling coreset constructions on widely-used real-world datasets (summarized in Table 2). Generally speaking, the accuracy of uniform sampling in our experiments is consistent with experiments in prior work (Marom and Feldman, 2019; Baker et al., 2020; Jubran et al., 2020; Braverman et al., 2021a; Huang et al., 2023). These standard datasets were not chosen to satisfy the requirements of our analysis, and indeed they do not fully satisfy them. At every value of k, the measured separation is , while the measured kurtosis is less than 5.
Our results concern the three coreset guarantees: weak, stable and strong. For each, we define an empirical error that instantiates the corresponding definition, and we report these errors as percentages. The empirical weak-coreset error instantiates (2) with , as
Table 2: Specifications of datasets used in Section 4.
| Dataset | Size n | Dim. d | Description |
|---|---|---|---|
| Yellow Taxi NYC (YT) (NYC Taxi and Limousine Commission, 2024) | 2.82M | 16 | New York City taxi trips in Jan. 2024 |
| Covertype (Blackard, 1998) | 581,012 | 54 | Cartographic variables for forest plots in the Roosevelt National Forest of Northern Colorado |
| Census 1990 (Meek et al., 2001) | 2.45M | 68 | Demographic attributes of individuals from the US Census Public Use Microdata Samples |

Figure 1: Comparison of uniform and sensitivity sampling on the Yellow Taxi NYC dataset: empirical weak-coreset error (left) and empirical stable-coreset error (right) as a function of coreset size, for 1-median in .
where and are optimal solutions for and for . The empirical stable-coreset error instantiates (3), as
The empirical strong-coreset error instantiates (1), as
Whereas Definitions (3) and (1) quantify over every center set in , in (9) and (10) the maximum is taken over a finite family of candidate solutions, that we generated once per dataset and reused across every method and coreset size; both are therefore lower bounds on the true error. In Experiment 2, consists of 5,000 sets of points drawn uniformly from . In Experiment 1, consists of centers along the direction that the proof of Theorem 1.4(ii) identifies as hardest.
Experimental setup. All experiments were conducted on a PC with Intel Core i7-13700 CPU and 32GB RAM running Python 3.12.10 on Windows 10. For each experiment, we report the average results over 20 independent runs with shaded regions representing one standard deviation across the runs.
Experiment 1: Comparison with importance sampling. We compare uniform sampling against sensitivity sampling (Feldman and Langberg, 2011) on the 1-median problem in the metric over the Yellow Taxi NYC dataset. We vary the coreset size over and report both the empirical weak-coreset error (8) and the empirical stable-coreset error (9). We find that the stable-coreset error exceeds the weak-coreset error roughly by an order of magnitude at every coreset size, reflecting that preserving the order of costs is a substantially stronger requirement than preserving near-optimality alone.
Figure 1 shows no appreciable difference between the two sampling methods, under either notion. The difference in construction time is, in contrast, fundamental: sensitivity sampling examines the entire dataset before it can draw a single point, whereas uniform sampling requires constant time per sample and is oblivious to the dataset. And indeed, producing a coreset of 500 points took 2,160 milliseconds for sensitivity sampling against 0.03 milliseconds for uniform sampling — almost five orders of magnitude faster.

Figure 2: Empirical strong coreset error as a function of coreset size, on Covertype (left) and Census 1990 (right). Color denotes the sampling method and line style the value of k.
Experiment 2: Strong coresets for k-means. We compare uniform sampling against two importance-sampling constructions, Lightweight Coresets (Bachem et al., 2018) and Sensitivity Sampling (Feldman and Langberg, 2011), on the k-means problem over the Census 1990 and Covertype datasets, and report the empirical strong-coreset error (10). We vary the coreset size over . Each dataset is run at two values of k: Covertype at its seven cover types and at 35, and Census, which carries no label, at 10 and 50.
Figure 2 shows that uniform sampling is comparable to the two importance-sampling methods, even though the assumptions of Theorem 1.6 are not satisfied. As in Experiment 1, there is a dramatic difference in construction time. On the larger value of k, producing a coreset of 1,000 points took 20,000 and 127,000 milliseconds for sensitivity sampling on Covertype and Census respectively, and 90 and 900 milliseconds for lightweight coresets, against 0.05 milliseconds for uniform sampling — at least three orders of magnitude faster and sometimes much more.
References
Marcel R. Ackermann, Johannes Blömer, and Christian Sohler. Clustering for metric and nonmetric distance measures. ACM Trans. Algorithms, 6(4):59:1–59:26, 2010. doi:10.1145/1824777.1824779.
Pankaj K. Agarwal, Sariel Har-Peled, and Kasturi R. Varadarajan. Geometric approximation via coresets. In Combinatorial and computational geometry, volume 52 of MSRI Publications, chapter 1, pages 1–30. Cambridge University Press, 2005. URL https://library2.msri.org/books/Book52/contents.html.
Haris Angelidakis, Konstantin Makarychev, and Yury Makarychev. Algorithms for stable and perturbation-resilient problems. In STOC, pages 438–451. ACM, 2017. doi:10.1145/3055399.3055487.
Pranjal Awasthi, Avrim Blum, and Or Sheffet. Stability yields a PTAS for k-median and k-means clustering. In FOCS, pages 309–318. IEEE Computer Society, 2010. doi:10.1109/FOCS.2010.36.
Pranjal Awasthi, Avrim Blum, and Or Sheffet. Center-based clustering under perturbation stability. Inf. Process. Lett., 112(1-2):49–54, 2012. doi:10.1016/j.ipl.2011.10.006.
Olivier Bachem, Mario Lucic, and Andreas Krause. Scalable k-means clustering via lightweight coresets. In Proceedings of the 24th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, KDD '18, page 1119–1127. Association for Computing Machinery, 2018. doi:10.1145/3219819.3219973.
Daniel N. Baker, Vladimir Braverman, Lingxiao Huang, Shaofeng H.-C. Jiang, Robert Krauthgamer, and Xuan Wu. Coresets for clustering in graphs of bounded treewidth. In ICML, volume 119 of Proceedings of Machine Learning Research, pages 569–579. PMLR, 2020. URL http://proceedings.mlr.press/v119/baker20a.html.
Maria-Florina Balcan and Yingyu Liang. Clustering under perturbation resilience. SIAM J. Comput., 45(1):102–155, 2016. doi:10.1137/140981575.
Maria-Florina Balcan, Avrim Blum, and Anupam Gupta. Clustering under approximation stability. J. ACM, 60(2):8:1–8:34, 2013. doi:10.1145/2450142.2450144.
Maria-Florina Balcan, Nika Haghtalab, and Colin White. k-center clustering under perturbation resilience. In ICALP, volume 55 of LIPIcs, pages 68:1–68:14. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2016. doi:10.4230/LIPIcs.ICALP.2016.68.
Shai Ben-David. A framework for statistical clustering with constant time approximation algorithms for K-median and K-means clustering. Mach. Learn., 66(2-3):243–257, 2007. doi:10.1007/S10994-006-0587-3.
Shai Ben-David. Computational feasibility of clustering under clusterability assumptions. CoRR, abs/1501.00437, 2015. URL http://arxiv.org/abs/1501.00437.
Yonatan Bilu and Nathan Linial. Are stable instances easy? Comb. Probab. Comput., 21(5):643–660, 2012. doi:10.1017/S0963548312000193.
Jock Blackard. Covertype. UCI Machine Learning Repository, 1998. DOI: https://doi.org/10.24432/C50K5N.
Vladimir Braverman, Shaofeng H.-C. Jiang, Robert Krauthgamer, and Xuan Wu. Coresets for clustering with missing values. In NeurIPS, pages 17360–17372, 2021a. URL https://proceedings.neurips.cc/paper/2021/hash/90fd4f88f588ae64038134f1eeaa023f-Abstract.html.
Vladimir Braverman, Shaofeng H.-C. Jiang, Robert Krauthgamer, and Xuan Wu. Coresets for clustering in excluded-minor graphs and beyond. In SODA, pages 2679–2696. SIAM, 2021b. doi:10.1137/1.9781611976465.159.
Vladimir Braverman, Vincent Cohen-Addad, Shaofeng H.-C. Jiang, Robert Krauthgamer, Chris Schwiegelshohn, Mads Bech Toftrup, and Xuan Wu. The power of uniform sampling for coresets. In FOCS, pages 462–473. IEEE, 2022. doi:10.1109/FOCS54457.2022.00051.
J. Bretagnolle, D. Dacunha-Castelle, and J. L. Krivine. Lois stables et espaces . In Symposium on Probability Methods in Analysis, pages 48–54. Springer Berlin Heidelberg, 1967.
Mihai Bădoiu and Kenneth L. Clarkson. Optimal core-sets for balls. Comput. Geom., 40(1):14–22, 2008. doi:10.1016/j.comgeo.2007.04.002.
Mihai Bădoiu, Sariel Har-Peled, and Piotr Indyk. Approximate clustering via core-sets. In STOC, pages 250–257. ACM, 2002. doi:10.1145/509907.509947.
Amir Carmel and Robert Krauthgamer. Stable coresets: Unleashing the power of uniform sampling. In The Fourteenth International Conference on Learning Representations, 2026. URL https://openreview.net/forum?id=sOpAa8iR0A.
Amir Carmel, Chengzhi Guo, Shaofeng H.-C. Jiang, and Robert Krauthgamer. Coresets for 1-center in metrics. In ITCS, volume 325 of LIPIcs, pages 28:1–28:20. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2025. doi:10.4230/LIPICS.ITCS.2025.28.
Amir Carmel, Robert Krauthgamer, and Nir Petruschka. Optimal Stable Coresets for Geometric Median via Uniform Sampling. In Approximation, Randomization, and Combinatorial Optimization. Algorithms and Techniques (APPROX/RANDOM 2026), volume 392 of Leibniz International Proceedings in Informatics (LIPIcs), pages 30:1–30:14, 2026. doi:10.4230/LIPIcs.APPROX/RANDOM.2026.30.
Ke Chen. On coresets for k-median and k-means clustering in metric and Euclidean spaces and their applications. SIAM J. Comput., 39(3):923–947, 2009. doi:10.1137/070699007.
Vincent Cohen-Addad and Chris Schwiegelshohn. On the local structure of stable clustering instances. In FOCS, pages 49–60. IEEE Computer Society, 2017. doi:10.1109/FOCS.2017.14.
Vincent Cohen-Addad, David Saulpic, and Chris Schwiegelshohn. Improved coresets and sublinear algorithms for power means in Euclidean spaces. In NeurIPS, pages 21085–21098. Curran Associates, Inc., 2021a. URL https://proceedings.neurips.cc/paper/2021/hash/b035d6563a2adac9f822940c145263ce-Abstract.html.
Vincent Cohen-Addad, David Saulpic, and Chris Schwiegelshohn. A new coreset framework for clustering. In STOC, pages 169–182. ACM, 2021b. doi:10.1145/3406325.3451022.
Vincent Cohen-Addad, Karthik C. S., and Euiwoong Lee. Johnson coverage hypothesis: Inapproximability of k-means and k-median in -metrics. In SODA, pages 1493–1530. SIAM, 2022a. doi:10.1137/1.9781611977073.63.
Vincent Cohen-Addad, Kasper Green Larsen, David Saulpic, and Chris Schwiegelshohn. Towards optimal lower bounds for k-median and k-means coresets. In STOC, pages 1038–1051. ACM, 2022b. doi:10.1145/3519935.3519946.
Artur Czumaj and Christian Sohler. Sublinear-time approximation algorithms for clustering via random sampling. Random Struct. Algorithms, 30(1-2):226–256, 2007. doi:10.1002/RSA.20157.
Dan Feldman and Michael Langberg. A unified framework for approximating and clustering data. In STOC, pages 569–578. ACM, 2011. doi:10.1145/1993636.1993712.
Dan Feldman, Morteza Monemizadeh, and Christian Sohler. A PTAS for k-means clustering based on weak coresets. In SoCG, pages 11–18. ACM, 2007.
Sariel Har-Peled and Soham Mazumdar. On coresets for k-means and k-median clustering. In STOC, pages 291–300. ACM, 2004. doi:10.1145/1007352.1007400.
Lingxiao Huang and Nisheeth K. Vishnoi. Coresets for clustering in Euclidean spaces: importance sampling is nearly optimal. In STOC, pages 1416–1429. ACM, 2020. doi:10.1145/3357713.3384296.
Lingxiao Huang, Shaofeng H.-C. Jiang, and Jianing Lou. The power of uniform sampling for k-median. In ICML, volume 202 of Proceedings of Machine Learning Research, pages 13933–13956. PMLR, 2023. URL https://proceedings.mlr.press/v202/huang23j.html.
Lingxiao Huang, Jian Li, and Xuan Wu. On optimal coreset construction for Euclidean -clustering. In STOC, pages 1594–1604. ACM, 2024. doi:10.1145/3618260.3649707.
Mary Inaba, Naoki Katoh, and Hiroshi Imai. Applications of weighted voronoi diagrams and randomization to variance-based k-clustering (extended abstract). In SCG, pages 332–339. ACM, 1994. doi:10.1145/177424.178042.
Shaofeng H.-C. Jiang, Robert Krauthgamer, Jianing Lou, and Yubo Zhang. Coresets for kernel clustering. Mach. Learn., 113(8):5891–5906, 2024. doi:10.1007/S10994-024-06540-Z.
Ibrahim Jubran, Murad Tukan, Alaa Maalouf, and Dan Feldman. Sets clustering. In ICML, volume 119 of Proceedings of Machine Learning Research, pages 4994–5005. PMLR, 2020. URL http://proceedings.mlr.press/v119/jubran20a.html.
Amit Kumar and Ravindran Kannan. Clustering with spectral norm and the k-means algorithm. In FOCS, pages 299–308. IEEE Computer Society, 2010. doi:10.1109/FOCS.2010.35.
Amit Kumar, Yogish Sabharwal, and Sandeep Sen. A simple linear time -approximation algorithm for k-means clustering in any dimensions. In FOCS, pages 454–462. IEEE Computer Society, 2004. doi:10.1109/FOCS.2004.7.
Alaa Maalouf, Ibrahim Jubran, and Dan Feldman. Introduction to coresets: Approximated mean. CoRR, abs/2111.03046, 2021. URL https://arxiv.org/abs/2111.03046.
Konstantin Makarychev and Yury Makarychev. Certified algorithms: Worst-case analysis and beyond. In ITCS, volume 151 of LIPics, pages 49:1–49:14. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2020. doi:10.4230/LIPICS.ITCS.2020.49.
Yair Marom and Dan Feldman. k-means clustering of lines for big data. In NeurIPS, pages 12797–12806, 2019. URL https://proceedings.neurips.cc/paper/2019/hash/6084e82a08cb979cf75ae28aed37ecd4-Abstract.html.
Andreas Maurer. A vector-contraction inequality for rademacher complexities. In ALT, volume 9925 of Lecture Notes in Computer Science, pages 3–17, 2016. doi:10.1007/978-3-319-46379-7_1.
Chris Meek, Bo Thiesson, and David Heckerman. US Census Data (1990). UCI Machine Learning Repository, 2001. URL https://archive.ics.uci.edu/ml/datasets/US+Census+Data+(1990). DOI: https://doi.org/10.24432/C5VP42.
Adam Meyerson, Liadan O'Callaghan, and Serge Plotkin. A k-median algorithm with running time independent of data size. Mach. Learn., 56(1–3):61–87, 2004. doi:10.1023/B:MACH.0000033115.78247.f0.
Nina Mishra, Daniel Oblinger, and Leonard Pitt. Sublinear time approximate clustering. In SODA, pages 439–447. ACM/SIAM, 2001. URL http://dl.acm.org/citation.cfm?id=365411.365499.
Dustin G. Mixon, Soledad Villar, and Rachel Ward. Clustering subgaussian mixtures with k-means. In 2016 IEEE Information Theory Workshop (ITW), pages 211–215, 2016. doi:10.1109/ITW.2016.7606826.
NYC Taxi and Limousine Commission. TLC trip record data. NYC.gov Official Website, 2024. URL https://www.nyc.gov/site/tlc/about/tlc-trip-record-data.page. Accessed: March 2024.
Rafail Ostrovsky, Yuval Rabani, Leonard J. Schulman, and Chaitanya Swamy. The effectiveness of lloyd-type methods for the k-means problem. J. ACM, 59(6), January 2013. ISSN 0004-5411. doi:10.1145/2395116.2395117. URL https://doi.org/10.1145/2395116.2395117.
Milind Prabhu, Chris Schwiegelshohn, and Sudarshan Shyam. Approximation preserving coresets, 2026. URL https://arxiv.org/abs/2606.17316.
Tim Roughgarden, editor. Beyond the Worst-Case Analysis of Algorithms. Cambridge University Press, 2020. doi:10.1017/9781108637435.
I. J. Schoenberg. Metric spaces and completely monotone functions. Annals of Mathematics, 39(4):811–841, 1938. URL http://www.jstor.org/stable/1968466.
Chris Schwiegelshohn and Omar Ali Sheikh-Omar. An empirical evaluation of k-means coresets. In ESA, LIPIcs, pages 84:1–84:17. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2022. doi:10.4230/LIPICS.ESA.2022.84.
Christian Sohler and David P. Woodruff. Strong coresets for k-median and subspace approximation: Goodbye dimension. In FOCS, pages 802–813. IEEE Computer Society, 2018. doi:10.1109/FOCS.2018.00081.
J. H. Wells and L. R. Williams. Embeddings and Extensions in Analysis, volume 84 of Ergebnisse der Mathematik und ihrer Grenzgebiete. Springer, 1975. ISBN 978-3-642-66039-9. doi:10.1007/978-3-642-66037-5. URL https://doi.org/10.1007/978-3-642-66037-5.
David P. Woodruff and Taisuke Yasuda. Coresets for multiple regression. In Forty-first International Conference on Machine Learning, ICML 2024, Proceedings of Machine Learning Research, pages 53202–53233. PMLR / OpenReview.net, 2024. URL https://proceedings.mlr.press/v235/woodruff24a.html.
A Proof of Theorem 2.3
Theorem 2.3 (Carmel and Krauthgamer (2026) (Theorem 3.1)). Let and suppose that (II) is an -RCDA of in , and
(I2) for some .
Then Q is a stable -coreset of P.
Proof. For every with , using (I1) and (I2),
For every of size , we have by the triangle inequality and property (I1),
Now if , then
where the third line applies (11) to . By rearranging, , where the last inequality uses .
B Proof of Theorem 1.3
Theorem 1.3 (Weak coreset for 1-mean). Let be a Hilbert space and let be finite. Then for every and , a uniform sample of (sufficiently large) size from is, with probability at least , a weak -coreset for the 1-mean problem.
Proof. Let and let be a uniform sample of size . If , then by (7), , and we need to show that . Observe
It remains to bound and . As in Claim 3.2, . Using Claim 2.1, , and therefore . Since , Markov's inequality gives . Conditioned on both events, , with probability . The result is obtained by rescaling .
C Lower bounds for
The proofs of the lower bounds use a two-point instance, mass at and the rest at 0, with n tuned to s differently in each proof. We prove the weak bound first, as the stable construction reuses the same instance; its proof also appears in (Cohen-Addad et al., 2021a), and we include it to contrast with the stable guarantee.
Proof of Theorem 1.4 (i). Let , Let be such that points are at and the rest are at 0 (w.l.o.g. divides the size of ). Let be a random variable denoting the number of sampled points at in , then, with . We have,
If is a weak -coreset then , that is, . By (12) it follows that . Conditioned on the event , since we have , while . Consequently, conditioned on the event , is not a weak -coreset. As,
We get , since , it follows that .
The stable lower bound instead controls the cost ratio between two centers symmetric about , rather than the displacement directly.
Proof of Theorem 1.4 (ii). Let P and X be as in the proof of Item (i) and further denote .
Let and . Since are symmetric around , Claim 2.1 gives . Using , we get
By setting , this ratio equals , which implies .
Case 1: . Set . Conditioned on ,
It follows that , and therefore, conditioned on , is not a stable -coreset.
As,
Therefore the sample cannot succeed with probability at least .
Case 2: . Set . Conditioned on ,
It follows that , and therefore, conditioned on , is not a stable -coreset.
As, . We get, .
D Upper bounds for
In this section we establish our coreset guarantees for k-means. We begin in Section D.1 by introducing the structural assumptions of balancedness and separation, and derive several geometric consequences that are used throughout the analysis.
In Section D.2, we parametrize candidate solutions by their displacement from the optimal centers. This yields a master identity that splits the difference between the costs on P and on Q into a matched-cost error and a boundary-gain error, reducing the analysis to bounding these two terms separately.
In Section D.3 we define a high-probability event on which the sampled cluster weights and sample-mean deviations concentrate, and show that on this event every candidate solution of interest is localized: its displacement lies in a fixed set , determined by the input alone. Localization is used only through this deterministic inclusion; all subsequent probabilistic statements are made uniformly over and require no conditioning.
We then analyze the two error terms in Sections D.4 and D.5. We first bound the matched-cost error, and then establish a uniform bound on the boundary-gain error, which forms the core technical component of the analysis.
Finally, the analysis branches according to the desired guarantee. In Section D.6, we combine the matched-cost and boundary-gain bounds with a one-sided estimate on the sampled optimal cost to obtain an RCDA guarantee, which is then converted into a stable coreset. In Section D.7, we instead assume bounded kurtosis to strengthen the boundary-gain bound, leading to the strong coreset guarantee.
D.1 Structural assumptions
We start by defining the balancedness property, which is inherent to the uniform sampling approach.
Definition D.1. The dataset is -balanced for the -means problem if there exists an optimal -center set whose induced partition satisfies for every .
Fix an optimal with induced partition and set , , and . Since is the centroid of , Claim 2.1 gives, for any ,
For , let denote the index with and . For convenience .
The separation condition, which originated in (Ostrovsky et al., 2013), requires that the optimal cost drop substantially when passing from k - 1 to k centers.
Definition D.2 ( -separated, (Ostrovsky et al., 2013)). is -separated for -means if , where and is the optimal -means cost.
The following lemma allows us to bound the distance between optimal centers via the -separated guarantee (similar ideas appeared in (Ostrovsky et al., 2013)).
Lemma D.3. If then satisfies .
Proof. Merging and keeping the other clusters changes the normalized cost by , so by Claim 2.1 applied to the two optimal centers, . Since , . With , , giving .
Let denote the set of far points and their cost. Let be a uniform i.i.d. sample of size , drawn with replacement and regarded as a multiset; set , , , , , , and . Applying (13) within each ,
Note that is the cost on of the fixed partition when each is represented by its empirical centroid ; hence it upper-bounds the optimal sample cost, .
D.2 Displacements and the master identity
Our analysis parametrizes candidate solutions by their offset from the optimal centers. For a displacement write , and define the pointwise boundary gain
which measures how much a point gains by being served by its nearest center in rather than by the center displaced from its own optimal center. Set and . The matched costs are obtained by assigning every point to the center displaced from its optimal center,
so that and .
Applying (13) within each , and likewise within each (whose centroid is ), the matched costs evaluate in closed form, and we obtain
(16)
Subtracting the two lines of (16) and expanding gives the master identity: for every ,
The first bracket in (17) is the matched-cost error and the second is the boundary-gain error, arising from points whose nearest center changes under sampling.
Using (14) to write , the last term of (18) cancels against the term, and the RCDA error of becomes
(19)
D.3 A good event and localization
Throughout, and .
Claim D.4. Let denote the event that
(E1) for all ,
(E2) for all .
For a uniform sample Q of (sufficiently large) size it holds that .
Proof. We bound and . For the former, with , so multiplicative Chernoff and a union bound give once . For the latter, on (E1) we have ; conditionally on the set is an i.i.d. uniform sample of size from , so and Markov gives per-cluster failure . A union bound gives .
Fix a constant and set , . Since , we have , so proving a guarantee uniformly over yields it over the -class as well.
The next lemma shows that every candidate of interest is pinned near the optimal centers. It is stated for a generic a-priori bound , where will be determined later as it depends on the exact application; note that it implies by (14). Throughout we write
We stress that , K, and hence the set V, are determined by P, k, , and alone, and in particular do not depend on the sample Q.
We start with a geometric claim bounding the boundary gain.
Claim D.5. Assume . Then for every with for all , and every , if then , and .
Proof. Let and let attain . If then , and , so and . Hence (using ), i.e. and . Writing and (as ),
as .
In particular, averaging Claim D.5 over P and over Q gives
We next prove the localization lemma.
Lemma D.6. Suppose . Then, conditioned on , every satisfies for some .
Proof. Fix and let and be a nearest center to . First we show that for every , for all , . For every we have,
Averaging over and using gives
If , using , , and ,
Else, if the same averaging over , with , , in place of , , , gives for . Using , , , and by (E1),
By (E2), , so, by the triangle inequality
where the last inequality follows from .
Second, we show that for every , . As , the balls , , are pairwise disjoint; each contains at least one center of by the above, and , so each contains exactly one. Letting be the index of the unique center of inside the -th ball and yields with for all .
For , , using (16) for the first equality and (22) for the second inequality.
For , the second line of (16) together with and (22) gives
Hence, by , (E2) and ,
and by (E1), , so , using .
D.4 Matched-cost error
We next bound the terms of (18), uniformly over V.
Lemma D.7. Assume and condition on . Then for every :
(i) , and, ,
(ii)
(iii)
Proof. (i): by (16) and (22), , using . Then, by (E1), .
(ii): by Cauchy–Schwarz and Young inequalities, . By (E1), the first part is bounded by . By (E1), (E2), the second part is at most , so their sum is at most .
(iii): by (E1), (E2), .
D.5 Boundary-gain error
We now bound uniformly over , which is the main technical difficulty of the proof. The obstacle is that is nonlinear in the displacements : it is a maximum of functions that are affine in except for a quadratic term . The proof handles the two features separately. Maurer's vector contraction inequality removes the maximum, and a one-coordinate lifting turns the quadratic term into a linear one, after which the whole process is a single inner product in a Hilbert space and Cauchy–Schwarz finishes the argument.
Theorem D.8 (Maurer’s vector contraction inequality (Maurer, 2016, Theorem 2)). Let be a countable set and let , () satisfy for all . Let and be independent Rademacher variables. Then
where denotes the -th coordinate of .
Lemma D.9. Assume and let . Then
Proof. Fix . By Claim D.5, only when , so assume . With we may write
where and . The restriction to is valid since for the argument of Claim D.5 gives , while attains 0.
Symmetrization. Let be an independent i.i.d. copy and Rademacher. Since for every fixed , and the index set depends on neither nor , Jensen applied to and exchangeability of give
the sum running over far points only, as vanishes off .
Contraction. Fix with far points , and write , . By (24), is 1-Lipschitz with respect to the , hence the , norm of the vector . Since
and we have for every sign pattern , so writing and using the symmetry of , Theorem D.8 gives
Lifting. The functions are not linear in , but they all become linear after appending one coordinate to each displacement. Let with the direct-sum inner product, and define the lifted displacement
For and , let be the vector whose only nonzero blocks are
for these two expressions cancel and , consistently with . Expanding the inner products gives the identity
Consequently the Rademacher process in (25) is a single inner product.
Setting ,
Bounding . Since we have , and by the aggregate constraint in (21) together with ,
Hence .
Bounding . For we have and , so
The are independent with zero mean, so , and by Jensen . Combining with (27) and ,
Finally, combining with (25) and using Jensen (concavity of ) together with ,
D.6 Stable coreset
We further augment with a one-sided control on the sampled optimal cost, i.e. the event (E3): . Since , Markov gives . In this section we write for (E1) (E2) (E3), so that Claim D.4 gives .
We instantiate (20) with , so OPT / . Assume ; then by Lemma D.3, so and Claim D.5 and Lemmas D.6, D.7 and D.9 all apply.
Lemma D.10. Let . Then for a uniform sample of (sufficiently large) size , with probability , OPT.
Proof. By Lemma D.9 and the trivial bound ,
For the variance we apply Efron–Stein to Z, which is a function of the i.i.d. coordinates only, the class being fixed. By Claim D.5, for every , so replacing by an independent copy changes by at most uniformly in , and hence changes the supremum Z by at most the same amount. By Efron–Stein and ,
Hence , and by Markov .
Lemma D.11. On and the event of Lemma D.10, for every ,
That is, Q is an 11ε-RCDA of P over .
Proof. On , Lemma D.6 gives for some , so it suffices to bound from (19) uniformly over . Bounding the first two terms of (19) by items (i) and (ii) of Lemma D.7, and the third by Lemma D.10 together with , we get, using ,
Proof of Theorem 1.5. By a union bound, and the event of Lemma D.10 occur simultaneously with probability at least . On we have , so combining Lemma D.11 with Theorem 2.3 gives the claim; we use the restricted-class version of Theorem 2.3, whose proof is identical after restricting every candidate center set appearing in it to . Conclude by rescaling .
D.7 Strong coreset
Fix . To obtain a strong coreset guarantee over we require the additional assumption of bounded kurtosis.
Definition D.12. has -bounded kurtosis if for every , .
Claim D.13. Under M-bounded kurtosis, .
Proof. , and gives .
We then bound the cost of the far points.
Claim D.14. OPT.
Proof. gives . Proof is concluded by applying Claim D.13 and (Lemma D.3).
Consider the event (E3): .
Claim D.15. Under M-bounded kurtosis, if then .
Proof. Using Chebyshev's inequality the probability of failure is at most
Augment with , then .
Corollary D.16. On , .
Proof. Using (14), . For the first direction, . For the second direction,
On we have OPT, so we instantiate (20) with , giving OPT / . Assume ; then , so and Claim D.5 and Lemmas D.6, D.7 and D.9 apply. We first bound the matched cost.
Lemma D.17. On , for every , .
Proof. Bound the four terms of (18): the first by Corollary D.16, the remaining three by items (i), (ii), (iii) of Lemma D.7. Together with this gives
the last step using .
We next bound the boundary-gain error.
Lemma D.18. Under M-bounded kurtosis and , for a sample of (sufficiently large) size , with probability ,
Proof. By Lemma D.9, . With OPT / , Claim D.14 and give OPT and hence , so
For the variance, by Claim D.5, for every , so replacing changes by at most uniformly in , and hence changes by at most the same amount. By Efron–Stein and Claim D.13,
Hence , and Markov gives .
Proof of Theorem 1.6. By a union bound, and the event of Lemma D.18 occur simultaneously with probability at least . By Lemma D.6, every equals for some , so applying the identity (17) together with Lemma D.17 and Lemma D.18,
The theorem statement is obtained by rescaling .
E Immediate Applications of Theorem 1.1
We derive immediate applications of Theorem 1.1 through the transfer-to-submetric property of stable coresets, we collect them here for potential future use.
Kernel Clustering. A kernel function is characterized by the existence of a Hilbert space and a feature map such that for all . In kernel 1-mean, the goal is to minimize over all .
Corollary E.1. Let be a finite set with kernel . Then for every and , a uniform sample of (sufficiently large) size from is, with probability at least , a stable -coreset for kernel 1-mean with respect to .
Clustering in for . For every and every , the metric space embeds isometrically into a Hilbert space, this follows from a classical theorem of Schoenberg (1938) (see also Bretagnolle et al. (1967) and Wells and Williams (1975, Theorem 4.10)). In addition to Corollary 1.2, taking yields the following.
Corollary E.2. Let and finite. Then for every and , a uniform sample of (sufficiently large) size from is, with probability at least , a stable -coreset for the cost
Approximation algorithms for k-median. A known framework reduces the design of approximation algorithms for k-median to obtaining weak coreset guarantees for the 1-median problem through uniform sampling (Kumar et al., 2004; Ackermann et al., 2010). This framework was recently instantiated by (Carmel and Krauthgamer, 2026) using stable coresets, yielding approximation algorithms for k-median in and every submetric of , including Hamming, Kendall–tau, Jaccard, and tree metrics (see Theorem 5.4 in (Carmel and Krauthgamer, 2026)). Since the running time of the framework depends exponentially on the coreset size, our improved stable coreset bounds translate directly into faster approximation algorithms.