Towards Tight Robust Coresets for -Medians Clustering
Abstract
This paper considers coresets for the robust -medians problem with outliers, and new constructions in various metric spaces are obtained. Specifically, for metric spaces with a bounded VC or doubling dimension , the coreset size is , which is optimal up to logarithmic factors. For Euclidean spaces, the coreset size is , improving upon a recent result by Jiang and Lou (ICALP 2025). These results also extend to robust -clustering, yielding, for VC and doubling dimension, a coreset size of with the optimal linear dependence on . This extended result improves upon the earlier work of Huang et al. (SODA 2025). The techniques introduce novel dataset decompositions, enabling chaining arguments to be applied jointly across multiple components.
Keywords and phrases:
robust coresets, clustering, -mediansCategory:
Track A: Algorithms, Complexity and GamesFunding:
Lingxiao Huang: Supported in part by Fundamental and Interdisciplinary Disciplines Breakthrough Plan of the Ministry of Education of China (No. JYB2025XDXM118), NSFC Grant No. 625707396.Copyright and License:
2012 ACM Subject Classification:
Theory of computation Facility location and clusteringEditors:
Sayan Bhattacharya, Danupon Nanongkai, Michael Benedikt, and Gabriele PuppisSeries and Publisher:
Leibniz International Proceedings in Informatics, Schloss Dagstuhl β Leibniz-Zentrum fΓΌr Informatik
1 Introduction
Let be a metric space and let denote the dataset. The -Clustering problem asks to solve the following optimization problem
and denotes the set of all -element subsets of . The special case , known as the -Medians problem, is one of the most extensively studied clustering problems and the main focus of this paper. Accordingly, we omit the subscript in and simply write .
In practice, the presence of outliers poses a significant challenge to the optimization problem above. For example, a small number of adversarially inserted outliers can drastically bias the solution by forcing the algorithm to designate them as centers, thus failing to find the true underlying clusters of the dataset. To address this issue, we consider the following robust version of -Medians, proposed by [9], which seeks to find a minimizer that tolerates (at most) outliers:
| (1) |
Solving robust -Medians is considerably more challenging than solving its vanilla counterpart (i.e., without outliers). Existing constant-factor approximation algorithms [10, 34, 24] have a high-order polynomial running time. Moreover, while fixed-parameter tractable (FPT) algorithms for -approximations are known [22, 1], their running times remain far from near-linear in the dataset size. Hence, designing scalable algorithms for robust -Medians continues to be an active area of research.
Among the various approaches, coresets have emerged as a powerful technique for scalable clustering. An -coreset is a small weighted subset of the dataset that approximates the -Medians cost within a relative error of for every set of centers. By constructing such a coreset, one can solve robust -Medians more efficiently, as the runtime depends on the coreset size rather than on the size of the full dataset. Over the last two decades, extensive research has yielded nearly optimal coresets for various metric spaces [25, 11, 35, 19, 18, 16, 15, 30, 4, 14]. For metric spaces with a finite VC dimension111For brevity, we say a metric space has VC dimension when the VC dimension of its ball family is . , the best known -coreset for -Medians has a size of222Throughout this paper, . [14]. Similarly, for metric spaces with a finite doubling dimension , the coreset size is ) [18]. Both of these bounds are known to be tight up to logarithmic factors [16]. However, the coreset size need not always depend on the dimension. In Euclidean space, a dimension-independent coreset of size can be achieved [16, 15], and this bound is near-tight for that is not too small [30].
The success of vanilla coresets does not carry over to the robust setting, and our understanding of robust coresets lags significantly behind. For over a decade, the best-known coreset constructions for robust -Medians with outliers (see Definition 4) either had size exponential in [21] or achieved only bi-criteria guarantees [19, 26]. A recent breakthrough by Braverman et al. [6] introduced a general framework for clustering with constraints, which led to substantial progress on this problem. In particular, the first polynomial-size coreset for robust -Medians in Euclidean space had size [27]. Subsequent work [29] improved this bound to and extended the construction to metric spaces with finite VC or doubling dimension, yielding coreset sizes of and , respectively. While these results achieve near-linear dependence on the number of outliers , their dependence remains substantially worse than the optimal vanilla coreset size .
Another recent work [33] adopts an alternative approach to construct robust coresets in Euclidean space, achieving a size of . This approach can be generalized to metric spaces with finite VC or doubling dimension, resulting in the same robust coreset size but with now denoting the vanilla coreset size specific to the respective metric space. While this result matches the vanilla coreset size in its term, the other βoutlier termβ is much worse than near-linear in due to additional multiplicative factors.
On the other hand, we know that any robust -Medians coreset must have size at least (see the full version for a proof). This leads to the following question.
In which family of metric spaces can an -coreset for -Medians with outliers be constructed with size , where denotes the current optimal size of vanilla -coreset in the same metric space?
Tight vanilla coreset sizes are often achieved through chaining arguments [4, 14]. In contrast, all the robust coreset results discussed so far do not use chaining arguments and rely on geometric decomposition techniques, which partition the dataset into significantly more pieces with desirable properties than are needed for vanilla coresets. This methodological gap exists because applying vanilla geometric decomposition and chaining to the robust setting faces a fundamental difficulty: even a minor perturbation to the center set can drastically change the outliers. Such instability can either invalidate the correctness of the chaining argument or, if addressed with a simple fix, lead to an ineffective, large coreset size.
In this paper, we address this difficulty by introducing a new form of dataset decomposition which allows for a careful adaptation of the chaining arguments. As a result, we obtain robust -Medians coresets whose sizes nearly match the best known vanilla bounds for metric spaces with finite VC or doubling dimension. Moreover, for Euclidean space, where vanilla coresets admit dimension-independent size bounds, we obtain a coreset of size .
1.1 Our results
| Metric space | Prior results | Our results | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| VC |
|
|
||||||||
| Doubling |
|
|
||||||||
| Euclidean |
|
|
We now present our results in detail, focusing on robust -Medians. The extension to general robust -Clustering, defined similarly to (1) but using in place of , is provided in the full version. A summary of our results can be found in Table 1.
Throughout this paper, we assume the availability of a distance oracle that returns in constant time for any queried pair .
First, we have the following theorem for coresets in metric spaces with a finite VC dimension.
Theorem 1 (Finite VC dimension).
Let be a metric space with VC dimension . There exists an algorithm that, given a dataset of size , constructs an -robust coreset of for robust -Medians with size in time.
In the special case where , this coreset size matches that of the vanilla -median coreset [14], which is worst-case optimal. This follows from the fact that in a metric space with points and VC dimension , the tight coreset size for vanilla -median is precisely [18, 16]. Moreover, the factor aligns with the coreset lower bound established in [27]. Thus, we obtain the first tight VC-dimension-based coreset for robust -median.
Next, we give the coreset result in doubling spaces.
Theorem 2 (Finite doubling dimension).
Let be a metric space with doubling dimension . There exists an algorithm that, given a dataset of size , constructs an -robust coreset of for robust -Medians with size in time.
Similarly to the VC-dimension case, this doubling-dimension-based result extends the vanilla result from [14] by introducing an additive term. This size is optimal, as it matches the lower bound of the coreset size, , established in [27, 16].
Finally, we consider Euclidean spaces. Since the Euclidean metric has doubling dimension at most , Theorem 2 and its generalization imply the existence of a Euclidean coreset of size . By applying the standard iterative size reduction and terminal embedding technique from [8, 41], which reduces the ambient dimension to , this coreset size can be further reduced to . This already improves upon the prior bound of from [29], achieving an improvement by a factor of . However, when , this size exceeds the vanilla coreset bound from [18, 15, 30]. This constrasts with the VC and the doubling cases, in which our results extend the previous vanilla results. This difference stems from the special geometric structure of Euclidean metrics, which enables further reductions in coreset size but also complicates obtaining tight bounds. Indeed, even for the vanilla setting, the optimal coreset size in Euclidean space remains partially open [30]. To address the added complexity of robustness, we develop a new algorithm specifically tailored for robust Euclidean -Medians, yielding the following theorem.
Theorem 3 (Euclidean spaces).
Let . There exists an algorithm that, given a dataset of size , constructs an -robust coreset of for the robust -Medians with size in time.
This Euclidean coreset size extends the vanilla result from [18, 15, 30] by introducing an additive term. An interesting open question is whether this additional term can be further improved to , matching the lower bound [27]. Moreover, Theorem 3 improves the recent bound from [33] by replacing the term with a smaller .
Extension to general .
We further extend our results to general robust -clustering under various metrics. Details can be found in the full version. For metric spaces with a finite VC or doubling dimension, the coreset size is . Compared to the previous bound of from [29], our result significantly reduces the dependence on from to . Notably, our coreset achieves a linear dependence on , which is optimal.
1.2 Other related work
Coresets for constrained -Medians.
Recently, there has been significant interest in developing coresets for constrained variants of the -Medians problem. For capacitated -Medians, where centers have capacity constraints, a coreset of size was first constructed for instances in Euclidean space [17]. Subsequent research yielded improvements, first to a size of [6], which notably is independent of both the dataset size and dimension, and more recently to [29]. A closely related variant is the fair -Medians problem. The first coreset developed for this variant had a size of [42]. This was followed by coresets of size [28] and [3]. These bounds were later improved to [6] and eventually to [29]. Other variants of constraints have also been studied, including coresets for clustering with missing values [7] and fault-tolerant coresets [29]. All these results can be extended to general -Clustering.
Coresets for other problems.
Beyond clustering, coresets have been applied to a variety of optimization and machine learning problems, including low-rank approximation [13], principal component analysis [20] and mixture models [31, 38] and various regression tasks [12, 40, 44, 39, 2, 23, 37]. Coresets have also been used for other robust optimization problems. For example, Wang et al. [43] proposed a framework to compute robust local coresets for continuous-and-bounded learning, and Huang et al. [32] introduced a unified framework to construct a coreset for general Wasserstein distributionally robust optimization problem.
2 Preliminaries
Throughout this paper, let denote a metric space. For notational convenience, for a set , we denote by the set of all -element subsets of a set . For a set , the diameter of is denoted by , and the distance from a point to is defined as .
Ball range space and VC dimension.
For a point and a radius , let denote the ball centered at with radius . The ball range space of is the collection of all balls, denoted by . For a -point set , let . The - range space of is denoted by .
A finite set is said to be shattered by if , where . The VC dimension of is the maximum size of a subset of that can be shattered by , or if no such maximum exists.
Doubling dimension.
We say that a metric space has doubling dimension at most , if for any ball , there exists a set with so that the ball , i.e., any ball can be covered by at most balls of half radius.
Robust -clustering.
For a dataset , the vanilla -Clustering problem aims to compute a -center set that minimizes
This problem captures several variants, including vanilla -Medians () and vanilla -Means (). A well-known variant, called -Clustering with outliers, or the robust-Clustering problem, is to find that minimizes
Namely, aggregates all but the largest distances to . Similar to the vanilla case, we call the problem robust -median when and robust -means when .
Weighted Set.
Let be a weighted set where each point has a weight . We use to denote if the weighted set is clear in the context. Moreover, for a weighted set , we denote by the number of points in and by the total weight of . The -median objective on is defined as
Weighted Outlier.
Let and be two weighted sets. We call a valid -weighted outlier of if (i) , (ii) for all , and (iii) . Also denote by the weighted set .
For a weighted set , we use to denote the set of all valid -weighted outliers of . The robust -clustering objective on is defined as
Definition 4 (Robust coresets).
A weighted subset of is an -robust coreset of for robust -clustering if for every , and every , it holds that
An -robust coreset is also called an -robust coreset.
This robust coreset preserves the clustering cost for every outlier budget (rather than only for ), which yields the following mergeability property.
Fact 5 (Mergeability of Robust Coresets [27]).
Suppose that . If is an -robust coreset for and is an -robust coreset for , then their union forms an -robust coreset for .
Given a real number , we define . We shall repeatedly use a basic fact about the maximum of Gaussian variables.
Fact 6 (Maximum of Gaussians [36, p79]).
Let be mean-zero Gaussian variables (which are not necessarily independent), then .
3 Technical overview
Our approach is built upon a key conceptual idea: the -instance (Definition 7), a structure consisting of balls all having the same radius . This uniform-radius constraint is, to the best of our knowledge, a new contribution to the coreset literature, serving as an architectural foundation for the following three major methodological innovations.
- (i)
-
(ii)
A robust coreset algorithm (Algorithm 1) for an -instance, accompanied by a novel analysis that achieves the following two advances simultaneously.
-
(iii)
Two algorithms (Algorithms 2 and 3) for -instances with small radii, which employ new reductions to the vanilla coreset framework. Specifically in Euclidean spaces, our joint reduction across all components of an -instance yields improved coreset sizes compared to the component-wise vanilla reduction used in [33] .
Below, we begin by presenting these novelties in the context of Theorem 1 for metric spaces with a finite VC dimension . We then discuss how to adapt these results to doubling metrics, highlight the additional technical novelty required for Euclidean metrics, and extend the techniques to general robust -Clustering.
Review of prior results.
We begin by reviewing the techniques of [27], which obtains the first polynomial-sized robust coresets. Given a dataset, the authors first find a constant-factor approximation for robust -Medians and explicitly add the outliers from this solution to the coreset. Then they apply the ring-decomposition framework of [6], which builds upon [11], to reduce the remaining data points (called inliers) to rings, where points in each ring are approximately equidistant from the center. A robust coreset is then constructed for each ring using uniform sampling, and the mergeability of robust coresets (Fact 5) implies a robust coreset for the whole dataset. Given a ring of radius , the analysis of uniform sampling relies on the following integral representation of the cost function:
Suppose that is a uniform sample (reweighted by ) from , one immediately obtains
| (2) |
Now, if the sample size on each ring is , it follows from the classical VC theory that approximates up to an additive error for every and , i.e., is an -range space approximation of . Since is a ring of diameter , the integrand of (2) vanishes outside an interval of length and, consequently, is an -robust coreset of . Applying this to rings results in a robust coreset of size , as concluded in [27]. A subsequent work [29] essentially reduces the number of βeffective ringsβ to by adaptively selecting the sample size for each ring, achieving a smaller coreset size of .
Our goal is to further reduce the coreset size to , where denotes the size of a vanilla -coreset. The state-of-the-art result is [14], improving on [27] by a factor of . This improvement is achieved by grouping the rings into collections, each containing at most rings, and performing uniform sampling at the group level rather than for individual rings. A straightforward idea would be to apply the vanilla coreset construction directly to the union of all rings, i.e. the set of all inliers. However, this fails to guarantee a robust coreset, since points within the rings can become outliers with respect to center sets different from . Therefore, new technical ideas are required.
Grouping rings: -instances.
A natural strategy is to leverage the core principle of vanilla coreset construction: perform uniform sampling across multiple rings and analyse the total error collectively, rather than summing the errors from individual rings. However, a key obstacle is that the error induced by outliers depends on the chosen center set and can vary by orders of magnitude across different rings, making it difficult to control the total error uniformly over the entire space of center sets. Addressing this motivates the key definition of an -instance (see Definition 7), which is essentially a set of points that can be covered by balls of equal radius (i.e. contained in for some -point set ). The idea of grouping rings has been instrumental in recent advances towards constructing near-optimal vanilla coresets [18, 16, 15, 30, 14]. These approaches typically group rings of varying radii from different clusters, whereas in our -instance, all rings must have a uniform radius . While such uniformity is unnecessary for vanilla coreset constructions, it is crucial for robust coresets, as it ensures βcomparableβ outlier-induced errors across rings within the same group.
Now we provide a high-level overview of our algorithm, which decomposes the input dataset into a collection of -instances (see Lemma 13 and Figure 5 for illustration). First, we add points farthest from to the coreset. Adding these additional points guarantees that all remaining points in are within a distance of from . Then we collect all points within distance from , forming an -instance. Now, all remaining points have distances to within the interval , allowing them to be decomposed into layers of -instances with geometrically increasing radii . We then construct a robust coreset for each of these -instances (with carefully chosen error guarantees) and merge them into a final robust coreset of using Fact 5. The main technical challenge is to construct robust coresets of size for these -instances, i.e., the layers and the inner instance; we illustrate the key ideas for each scenario below.
Handling a layer of -instance.
Consider a layer of -instance , where each for some . We develop Algorithm 1 to construct an -robust coreset for ; roughly speaking, we take uniform samples from (Theorem 9). Without loss of generality, assume that all have equal cost . This type of instance is also referred to as an -regular instance (Definition 4); we show in Lemma 10 how to remove this assumption and in Figure 2 for illustration.
A natural idea is to extend the single-ring analysis (shown in (2)) to an -instance. With points in , we can still guarantee that for every and . However, applying this bound directly would yield an additive error of (arising from integrating over intervals of length , one for each of clusters), which is a -factor larger than our target error of . Hence, additional technical insights are needed for a tighter control of the error.
Chaining argument.
The first idea is to borrow insights from the vanilla coreset construction, where the chaining argument is central. An essential step there is bounding the net size by , which counts the number of distinct distance vectors for all possible choices of , under a certain level of discretization. In the robust setting, however, a small perturbation to can drastically change the set of outliers and thus the distance vectors. A natural idea is to fix the set of outliers, which then requires taking a union bound over all possible sets of outliers, causing an additional factor in the net size. This results in a net size far exceeding the desired , which will blow up the error bound we aim to control.
To address this issue, we apply the chaining argument exclusively to those clusters whose points are all inliers with respect to . Specifically, we partition both and into the same three collections of clusters with respect to : (clusters of inliers), (clusters of outliers), and (clusters whose distances to lie within an interval of length ). Such a decomposition is possible because every cluster in an -instance has the same radius, and an additional realignment procedure (Lines 4β6 in Algorithm 1) ensures that each cluster has a total sample weight of . Notably, the realignment procedure ensures that the sample set has the same partition as , a property absent in vanilla coreset constructions. We then apply the chaining argument solely to , obtaining an indexed-subset cost approximation that bounds the error introduced by . Since is a union of clusters and there are at most such unions, the net size only increases by a factor of , which remains manageable .
Range space argument.
Since contains only outliers, we may safely ignore it. It remains to control the error contributed by . Since the distances of all points in from lie within an interval of length , we anticipate extending the single-ring analysis in (2) to and obtaining an additive error of . A key challenge is that varies with the choice of , increasing the number of relevant ranges to consider. To mitigate this, we extend the notion of range space approximation to encompass all possible sets of . While this extension increases the number of ranges by a factor of , we can safely ignore this factor because the original number of ranges is already on the order of . Consequently, the range space approximation guarantee of the sample set remains valid, meaning induces at most an error for each of these ranges. Now, the integral in (2) is effectively over the distance interval for , which has length , and the overall error for is thus within .
Handling inner -instance.
Consider the inner -instance , where each . We shall construct an -robust coreset for , where the additive error is at most , which is acceptable.
We propose Algorithm 2 to achieve this goal. For each , we first select an arbitrary subset of points and move these points to the center . The coreset then consists of two components: a weighted point to represent the collection , and a vanilla coreset of the remaining points . See also Figure 3 for illustration. The algorithmβs correctness follows from the fact that the total moving distance between and is at most , which ensures the same level of additive error.
Interestingly, this robust coreset construction for the inner -instance also leads to another coreset of size for the full dataset (rather than just for the inner instance). The algorithm maintains this robust coreset along with all points outside the inner -instance. Since each outside point satisfies , there can be at most such points, yielding the stated coreset size. We note that this matches the size obtained in a recent paper [33], although we use different reductions to the vanilla setting. Unlike our requirement that each ball in the inner -instance has a small radius, their approach requires every ball to be dense, containing at least points.
This concludes our proof overview for the VC case. A structural diagram is shown in Figure 1.
Adapting to doubling metrics.
The analysis for the doubling metric in Theorem 2 is almost identical to that for the VC case. We employ the same point set decomposition into -instances (Lemma 13) and the same algorithms (Algorithms 1 and 2) for constructing robust coresets, with the only difference being the substitution of for in the coreset size. The key difference is that, in a doubling space, the VC dimension of the set of balls can be unbounded [26], preventing a direct application of the same range space argument used in the VC case. To overcome this, we adopt the technique from [26], which shows that by (randomly) distorting the distance function slightly , one can bound a βprobabilisticβ version of the VC dimension by . This property enables a distorted variant of the range space argument , and we further show that the resulting error for under this distortion remains well-controlled (Lemma .
Euclidean spaces.
As discussed above, our algorithm for the inner -instance (Algorithm 2) also produces a Euclidean coreset of size , where now denotes the size of the vanilla -coreset in Euclidean space. Note that the total number of moved points in Algorithm 2 is , while the number of outliers is only , wasting a factor. This observation motivates Algorithm 3, which further reduces the Euclidean coreset size to . The key idea is to increase the radius threshold from to . See Figure 6 for illustration.
In the analysis of this algorithm, a major challenge arises when the inner -instance contains points that are outliers with respect to some center set . As noted earlier, a naΓ―ve adaptation of the vanilla chaining argument can blow up the net size by a factor of . To address this, we propose a novel decomposition of the robust clustering cost by strategically reassigning outliers across clusters, ensuring that only one cluster contains both inliers and outliers, while all other clusters contain exclusively inliers or exclusively outliers . This decomposition relies on the uniform radius assumption, which guarantees that moving each outlier introduces only a small additive error to the overall clustering cost. Consequently, the net size in the chaining argument grows by at most a factor of , which remains manageable as before.
4 Three Coreset Constructions for -Instances
A common approach to constructing a robust coreset for a point set is to decompose the set into distinct parts with useful geometric properties and then construct a coreset for each part separately. This paper follows this strategy by introducing the notion of -instances and -regular instances.
Definition 7 (-instance).
A dataset is called an -instance if for some .
Intuitively, an -instance consists of clusters, each contained within a ball of radius . As a result, we have . We further define a specific subclass of -instances below.
Definition 8 (-regular instance).
A point set is called an -regular instance if
-
(i)
, , ;
-
(ii)
, for some center ;
-
(iii)
, .
An -regular instance further imposes the condition that the number of points in each cluster is of the same order. Specifically, we have for all . We note that the prior work [18, 14] introduced a similar structure called a group, which also consists of clusters. The key distinction between our structure and a group is that we enforce strict alignment on the radius of different clusters, which is crucial for our analysis.
In the three subsections below, we shall give three different coreset constructions for -instances.
4.1 First coreset construction
The first coreset construction applies to both VC-dimension-based and doubling-dimension-based instances. As a preliminary step, we present a robust coreset construction for -regular instances () in Algorithm 1, with its theoretical guarantee stated in Theorem 9. Algorithm 1 takes a uniform sample from (Line 2) and then constructs a coreset by assigning weights to points in (Lines 3-7).
Theorem 9 (VC and doubling -regular instances).
Let be a metric space with VC dimension and doubling dimension . Let . Assume that is an -regular instance with . With probability , Algorithm 1 returns an -robust coreset of for robust -Medians with size .
Theorem 9 is a major technical result and its proof can be found in the full version. Based on the theorem, we can now prove our first robust coreset construction for -instances by splitting an -instance into regular instances. An illustration is given in Figure 2.
Lemma 10 (VC and doubling -instances).
Let be a metric space with VC dimension and doubling dimension . Let . There is a randomized algorithm which, given an -instance , computes with probability at least an -robust coreset with size of for robust -Medians.
Proof.
Let be an -instance where for some , and suppose that . We let and for . Observe that βs form a partition of .
Let for each .
Now we construct our coreset . Observe that is an -regular instance for each . Applying Theorem 9 to yields an -robust coreset for robust -Medians with probability at least , with . We include all these coresets in .
Next, we handle . For each , select an arbitrary point and define . By the triangle inequality, we know that is an -coreset of . We add to .
By the mergeability of robust coresets, we conclude that is an -robust coreset of for robust -Medians. Furthermore, the size of is
The overall failure probability is at most . Rescaling completes the proof.
4.2 Second coreset construction
Suppose that is an -instance and for some . Let , where ties in are broken arbitrarily. We present in Algorithm 2 our second coreset construction, which includes sufficient many points as possible outlier surrogates (Lines 1β6) and a vanilla -coreset on the remaining points (Lines 7β8). An illustration is given in Figure 3.
Lemma 11 (Reduction from vanilla coreset to robust coreset).
Suppose there exists a randomized algorithm that on every -Medians instance, with probability at least , computes a vanilla -coreset with size . Given an -instance , with probability at least , Algorithm 2 computes an -robust coreset with size of for robust -Medians.
Proof.
Let denote the set of weighted points added into in the for loop. We prove that is an -robust coreset of .
Let denote the set of the outlier points in . For each , let . We then have . Define as the set of outlier points in . Since , it must hold that . Now, let . Noting that , we obtain
Since , we can find a subset such that for all . Define . Note that for all . Similarly, define , where is chosen such that . Thus, we have . It follows that
We shall bound the first two terms separately.
For the first term, by the triangle inequality,
where the last inequality uses the fact that, by the construction of , .
4.3 Third coreset construction
Let be an -instance in and . Let and , where the ties are broken arbitrarily, so . For each , define to be the unique index such that . For each , let denote the average cost of .
Our third coreset construction is for Euclidean spaces, given in Algorithm 3. It is a modification of an importance sampling algorithm proposed by [4]. The only change occurs in Line 10, where we scale the weights to ensure capacity-respecting, namely, for every . The following lemma reduces the use of a vanilla coreset to a robust coreset for Euclidean instances. Its proof is highly technical and can be found in the full version.
Lemma 12 (Euclidean -instances).
Given an -instance in such that with , Algorithm 3 computes in time, with probability at least , an -robust coreset of , with size .
5 Proofs of Main Theorems: Point Set Decompositions
5.1 Proof of Theorems 1 and 2: VC instances and doubling instances
Let be a metric space with VC dimension and doubling dimension . Let . The following lemma provides a decomposition of a dataset , which is essential for coreset construction. An illustration is given in Figure 5.
Lemma 13 (First point set decomposition).
There is an time algorithm that, given any constant-factor approximation for robust -median on , decomposes as , where
-
is a finite subset of with ,
-
is the union with , each being an -instance satisfying ,
-
is an -instance, where .
Proof.
Let be the set of the furthest points to in and define . Let denote the average cost of . For each , let denote the set of inliers whose closest center is , where ties in are broken arbitrarily. Thus, form a partition of .
Balls around are defined as . We then define the rings such that and for , where is the largest integer such that . This implies that and form a partition of .
We are ready to define the decomposition. Specifically, we let
-
;
-
for ;
-
.
We have by definition. For each , is contained in the ball . So is an -instance with . So we have,
It remains to prove that is an -instance. Let for each . βs are disjoint since βs are disjoint. It suffices to prove for each .
Recall that and , meaning that aggregates at least points outside the ball . This implies that
Hence, for each ,
Proof of Theorems 1 and 2.
We first find a constant-factor approximation of , i.e.,.333To improve the runtime, we can instead construct a tri-criteria approximation solution in near-linear time [5], which relaxes the outlier and center number constraints by constant factors. This construction only affects the coreset size by a constant factor, and hence, we usually assume to be a constant-factor approximation for simplicity. A more detailed discussion can be found in, e.g., Appendix A in [29]. Apply Lemma 13 to decompose into , where for and each is an -instance, and is an -instance. We construct our coreset as follows.
We first bound the size of . Note that . We have by Lemma 13, by Lemma 10, and . By applying the state-of-the-art vanilla coreset [14], we have . Thus we have .444Here we use the fact that for .
Now we claim is an -coreset of and the proof will be complete by rescaling . Recall that , where is an -robust coreset for , each is an -robust coreset for and is an -robust coreset for . Since , the mergeability of robust coresets (Fact 5) implies that is an -robust coreset of . Recall that for every . Therefore, is also an -robust coreset of .
By a union bound, we see that the failure probability is at most a constant.
5.2 Proof of Theorem 3: Euclidean instances
For preparation, we have the following decomposition for every Euclidean instance. An illustration is given in Figure 6.
Lemma 14 (Second point set decomposition).
Suppose that and let be an -approximation for robust -median on . Then, can be decomposed in time as , where and is an -instance with for .
Proof.
Define . We argue that . To see this, we note that except for outliers and at most inliers, each point satisfies . Otherwise, the total cost over would exceed . Hence, letting , we have that is an -instance and .
We are now ready to prove Theorem 3.
Proof of Theorem 3.
Our coreset is constructed as follows. First, we use Lemma 14 to compute a decomposition and add identically to . Then we use Lemma 12 to compute an -robust coreset of and add into . By mergeability of robust coresets, we know that is an -robust coreset of . But is an -approximation of for -robust -median, hence is an -robust coreset of . Rescaling completes the proof.
References
- [1] Akanksha Agrawal, Tanmay Inamdar, Saket Saurabh, and Jie Xue. Clustering what matters: Optimal approximation for clustering with outliers. Journal of Artificial Intelligence Research, 78:143β166, 2023. doi:10.1613/JAIR.1.14883.
- [2] Meysam Alishahi and Jeff M. Phillips. No dimensional sampling coresets for classification. In Proceedings of the 41st International Conference on Machine Learning, ICMLβ24. JMLR.org, 2024.
- [3] Sayan Bandyapadhyay, Fedor V. Fomin, and Kirill Simonov. On coresets for fair clustering in metric and Euclidean spaces and their applications. In ICALP, volume 198 of LIPIcs, pages 23:1β23:15. Schloss Dagstuhl β Leibniz-Zentrum fΓΌr Informatik, 2021. doi:10.4230/LIPIcs.ICALP.2021.23.
- [4] Nikhil Bansal, Vincent Cohen-Addad, Milind Prabhu, David Saulpic, and Chris Schwiegelshohn. Sensitivity sampling for -means: Worst case and stability optimal coreset bounds. In 2024 IEEE 65th Annual Symposium on Foundations of Computer Science (FOCS), pages 1707β1723. IEEE, 2024. doi:10.1109/FOCS61266.2024.00106.
- [5] Aditya Bhaskara, Sharvaree Vadgama, and Hong Xu. Greedy sampling for approximate clustering in the presence of outliers. In Advances in Neural Information Processing Systems 32: Annual Conference on Neural Information Processing Systems 2019, NeurIPS 2019, December 8-14, 2019, Vancouver, BC, Canada, pages 11146β11155, 2019. URL: https://proceedings.neurips.cc/paper/2019/hash/73983c01982794632e0270cd0006d407-Abstract.html.
- [6] Vladimir Braverman, Vincent Cohen-Addad, Shaofeng Jiang, Robert Krauthgamer, Chris Schwiegelshohn, Mads Bech Toftrup, and Xuan Wu. The power of uniform sampling for coresets. In 62nd IEEE Annual Symposium on Foundations of Computer Science, FOCS 2022. IEEE Computer Society, 2022.
- [7] Vladimir Braverman, Shaofeng Jiang, Robert Krauthgamer, and Xuan Wu. Coresets for clustering with missing values. In M. Ranzato, A. Beygelzimer, Y. Dauphin, P.S. Liang, and J. Wortman Vaughan, editors, Advances in Neural Information Processing Systems, volume 34, pages 17360β17372. Curran Associates, Inc., 2021. URL: https://proceedings.neurips.cc/paper/2021/file/90fd4f88f588ae64038134f1eeaa023f-Paper.pdf.
- [8] Vladimir Braverman, Shaofeng H.-C. Jiang, Robert Krauthgamer, and Xuan Wu. Coresets for clustering in excluded-minor graphs and beyond. In Proceedings of the 2021 ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 2679β2696. SIAM, 2021. doi:10.1137/1.9781611976465.159.
- [9] Moses Charikar, Samir Khuller, David M Mount, and Giri Narasimhan. Algorithms for facility location problems with outliers. In SODA, volume 1, pages 642β651. Citeseer, 2001. URL: http://dl.acm.org/citation.cfm?id=365411.365555.
- [10] Ke Chen. A constant factor approximation algorithm for -median clustering with outliers. In Proceedings of the nineteenth annual ACM-SIAM symposium on Discrete algorithms, pages 826β835, 2008. URL: http://dl.acm.org/citation.cfm?id=1347082.1347173.
- [11] Ke Chen. On coresets for -median and -means clustering in metric and Euclidean spaces and their applications. SIAM Journal on Computing, 39(3):923β947, 2009. doi:10.1137/070699007.
- [12] Rachit Chhaya, Anirban Dasgupta, and Supratim Shit. On coresets for regularized regression. In International conference on machine learning, pages 1866β1876. PMLR, 2020. URL: http://proceedings.mlr.press/v119/chhaya20b.html.
- [13] Michael B Cohen, Cameron Musco, and Christopher Musco. Input sparsity time low-rank approximation via ridge leverage score sampling. In Proceedings of the Twenty-Eighth Annual ACM-SIAM Symposium on Discrete Algorithms, pages 1758β1777. SIAM, 2017. doi:10.1137/1.9781611974782.115.
- [14] Vincent Cohen-Addad, Andrew Draganov, Matteo Russo, and David Saulpic. A tight VC-dimension analysis of clustering coresets with applications. In Proceedings of 36th SODA. ACM/SIAM, 2025.
- [15] Vincent Cohen-Addad, Kasper Green Larsen, David Saulpic, Chris Schwiegelshohn, and Omar Ali Sheikh-Omar. Improved coresets for Euclidean -means. Advances in Neural Information Processing Systems, 35:2679β2694, 2022.
- [16] Vincent Cohen-Addad, Kasper Green Larsen, David Saulpic, and Chris Schwiegelshohn. Towards optimal lower bounds for -median and -means coresets. In STOC, pages 1038β1051. ACM, 2022. doi:10.1145/3519935.3519946.
- [17] Vincent Cohen-Addad and Jason Li. On the fixed-parameter tractability of capacitated clustering. In Christel Baier, Ioannis Chatzigiannakis, Paola Flocchini, and Stefano Leonardi, editors, 46th International Colloquium on Automata, Languages, and Programming (ICALP 2019), volume 132 of Leibniz International Proceedings in Informatics (LIPIcs), pages 41:1β41:14, Dagstuhl, Germany, 2019. Schloss Dagstuhl β Leibniz-Zentrum fΓΌr Informatik. doi:10.4230/LIPIcs.ICALP.2019.41.
- [18] Vincent Cohen-Addad, David Saulpic, and Chris Schwiegelshohn. A new coreset framework for clustering. In STOC, pages 169β182. ACM, 2021. doi:10.1145/3406325.3451022.
- [19] Dan Feldman and Michael Langberg. A unified framework for approximating and clustering data. In STOC, pages 569β578. ACM, 2011. arXiv:1106.1379.
- [20] Dan Feldman, Melanie Schmidt, and Christian Sohler. Turning big data into tiny data: Constant-size coresets for -means, pca, and projective clustering. SIAM Journal on Computing, 49(3):601β657, 2020. doi:10.1137/18M1209854.
- [21] Dan Feldman and Leonard J Schulman. Data reduction for weighted and outlier-resistant clustering. In Proceedings of the twenty-third annual ACM-SIAM symposium on Discrete Algorithms, pages 1343β1354. SIAM, 2012. doi:10.1137/1.9781611973099.106.
- [22] Qilong Feng, Zhen Zhang, Ziyun Huang, Jinhui Xu, and Jianxin Wang. Improved algorithms for clustering with outliers. In Proc. 30th International symposium on algorithms and computation (ISAAC 2019), 2019.
- [23] Aarshvi Gajjar, Wai Ming Tai, Xu Xingyu, Chinmay Hegde, Christopher Musco, and Yi Li. Agnostic active learning of single index models with linear sample complexity. In Shipra Agrawal and Aaron Roth, editors, Proceedings of Thirty Seventh Conference on Learning Theory, volume 247 of Proceedings of Machine Learning Research, pages 1715β1754. PMLR, 30 Juneβ03 July 2024. URL: https://proceedings.mlr.press/v247/gajjar24a.html.
- [24] Anupam Gupta, Benjamin Moseley, and Rudy Zhou. Structural iterative rounding for generalized -median problems. Mathematical Programming, pages 1β54, 2024.
- [25] Sariel Har-Peled and Akash Kushal. Smaller coresets for -median and -means clustering. Discret. Comput. Geom., 37(1):3β19, 2007. doi:10.1007/S00454-006-1271-X.
- [26] Lingxiao Huang, Shaofeng H.-C. Jiang, Jian Li, and Xuan Wu. Epsilon-coresets for clustering (with outliers) in doubling metrics. In 2018 IEEE 59th Annual Symposium on Foundations of Computer Science (FOCS), pages 814β825. IEEE Computer Society, 2018. doi:10.1109/FOCS.2018.00082.
- [27] Lingxiao Huang, Shaofeng H.-C. Jiang, Jianing Lou, and Xuan Wu. Near-optimal coresets for robust clustering. In Proceedings of ICLR 2023, 2023.
- [28] Lingxiao Huang, Shaofeng H.-C. Jiang, and Nisheeth K. Vishnoi. Coresets for clustering with fairness constraints. In NeurIPS, pages 7587β7598, 2019. URL: https://proceedings.neurips.cc/paper/2019/hash/810dfbbebb17302018ae903e9cb7a483-Abstract.html.
- [29] Lingxiao Huang, Jian Li, Pinyan Lu, and Xuan Wu. Coresets for constrained clustering: General assignment constraints and improved size bounds. In Proceedings of the 2025 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 4732β4782. SIAM, 2025. doi:10.1137/1.9781611978322.161.
- [30] Lingxiao Huang, Jian Li, and Xuan Wu. On optimal coreset construction for Euclidean -clustering. In Proceedings of the 56th Annual ACM Symposium on Theory of Computing, pages 1594β1604, 2024. doi:10.1145/3618260.3649707.
- [31] 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.
- [32] Ruomin Huang, Jiawei Huang, Wenjie Liu, and Hu Ding. Coresets for wasserstein distributionally robust optimization problems. Advances in Neural Information Processing Systems, 35:26375β26388, 2022.
- [33] Shaofeng H.-C. Jiang and Jianing Lou. Coresets for robust clustering via black-box reductions to vanilla case. In ICALP, volume 334 of LIPIcs, pages 101:1β101:18. Schloss Dagstuhl β Leibniz-Zentrum fΓΌr Informatik, 2025. doi:10.4230/LIPIcs.ICALP.2025.101.
- [34] Ravishankar Krishnaswamy, Shi Li, and Sai Sandeep. Constant approximation for -median and -means with outliers via iterative rounding. In Proceedings of the 50th annual ACM SIGACT symposium on theory of computing, pages 646β659, 2018. doi:10.1145/3188745.3188882.
- [35] Michael Langberg and Leonard J. Schulman. Universal epsilon-approximators for integrals. In SODA, pages 598β607. SIAM, 2010. doi:10.1137/1.9781611973075.50.
- [36] Michel Ledoux and Michel Talagrand. Probability in Banach spaces. Springer-Verlag, Berlin, 1991.
- [37] Yi Li and Wai Ming Tai. Near-optimal active regression of single-index models. In The Thirteenth International Conference on Learning Representations (ICLR 2025), 2025.
- [38] Mario Lucic, Matthew Faulkner, Andreas Krause, and Dan Feldman. Training gaussian mixture models at scale via coresets. Journal of Machine Learning Research, 18(160):1β25, 2018. URL: https://jmlr.org/papers/v18/15-506.html.
- [39] Alexander Munteanu and Simon Omlor. Optimal bounds for sensitivity sampling via augmentation. In Proceedings of the 41st International Conference on Machine Learning, ICMLβ24. JMLR.org, 2024.
- [40] Cameron Musco, Christopher Musco, David P Woodruff, and Taisuke Yasuda. Active linear regression for norms and beyond. In Proceedings of the 63rd IEEE Annual Symposium on Foundations of Computer Science, pages 744β753. IEEE, 2022.
- [41] Shyam Narayanan and Jelani Nelson. Optimal terminal dimensionality reduction in Euclidean space. In STOC, pages 1064β1069. ACM, 2019. doi:10.1145/3313276.3316307.
- [42] Melanie Schmidt, Chris Schwiegelshohn, and Christian Sohler. Fair coresets and streaming algorithms for fair -means. In WAOA, volume 11926 of Lecture Notes in Computer Science, pages 232β251. Springer, 2019. doi:10.1007/978-3-030-39479-0_16.
- [43] Zixiu Wang, Yiwen Guo, and Hu Ding. Robust and fully-dynamic coreset for continuous-and-bounded learning (with outliers) problems. Advances in Neural Information Processing Systems, 34:14319β14331, 2021. URL: https://proceedings.neurips.cc/paper/2021/hash/7806689d934e610d660caf5536fea0b2-Abstract.html.
- [44] David P. Woodruff and Taisuke Yasuda. Sharper bounds for sensitivity sampling. In Proceedings of the 40th International Conference on Machine Learning, ICMLβ23. JMLR.org, 2023.
