Introduction
Clustering is a fundamental task in geometry and data analysis, and it is commonly formulated as partitioning a dataset X X X of points into k k k groups, called clusters, so that points in the same group are similar to one another. We study min-sum k k k -clustering, where the cost of each cluster is computed directly from the pairwise distances between its points, in contrast to center-based clustering, like k k k -median and k k k -means, where the cost of each cluster is computed using a center point. This min-sum objective can model better clusters that are coherent but not well represented by centers; in particular, it does not impose a Voronoi (nearest-neighbor) structure on the partition. For instance, min-sum k k k -clustering has been used to recover a grouping of data from noisy pairwise similarity information, and to cluster large collections of protein sequences [43 , 44 ] .
Formally, in the min-sum k k k -clustering problem (also called k k k -min-sum), the input is an n n n -point metric space ( X , d i s t ) (X,\mathrm{dist}) ( X , dist ) and the goal is to find a k k k -partition P = { P 1 , … , P k } \mathcal{P}=\{P_1,\ldots,P_k\} P = { P 1 , … , P k } of X X X , that minimizes the objective
cost ( P ) = ∑ i = 1 k ∑ x , y ∈ P i dist ( x , y ) . (1) \operatorname{cost}(\mathcal{P}) = \sum_{i=1}^{k} \sum_{x,y \in P_i} \operatorname{dist}(x,y). \tag*{(1)} cost ( P ) = i = 1 ∑ k x , y ∈ P i ∑ dist ( x , y ) . (1)
To simplify notation, we sum over all ordered pairs, which includes every pair { x , y } ⊆ P i \{x,y\} \subseteq P_i { x , y } ⊆ P i twice. The input X X X can actually be a subset of points from a larger metric space, such as R d \mathbb{R}^d R d equipped with a distance function that is derived from an ℓ p \ell_p ℓ p norm or from a kernel function. A well-known example where the min-sum objective is highly effective consists of points spread evenly over two cocentric rings that form two natural clusters, even though each ring has no natural center point that is close to its own points and far from the other ring, as illustrated in Figure 1 . This effectiveness has led to increased interest in min-sum k k k -clustering, including algorithms in various models and metric spaces, and even in (non-metric) squared-Euclidean distance [42 , 5 , 12 , 9 , 39 , 2 , 32 ] .
Figure 1. A min-sum k k k -partition can differ significantly from a k k k -median or k k k -means partition. Here k = 2 k = 2 k = 2 in Euclidean R 2 \mathbb{R}^2 R 2 ; the outer ring has radius α > 1 \alpha> 1 α > 1 times that of the inner ring and contains 1 / α 1/\alpha 1/ α as many points. In the min-sum optimum, each ring is assigned its own cluster, whereas the center-based optimum is induced by two centers and cuts both rings.
Nevertheless, the known algorithmic tools for this objective are still lagging behind those for center-based objectives, which may explain why the min-sum objective is used much less in practice.
Notice that the total distance between all pairs of points in X X X is split into inter-cluster pairs and intra-cluster pairs, thus minimizing the objective (1) is equivalent to maximizing its complement, which is the (metric) Max-k k k -Cut problem and whose special case k = 2 k = 2 k = 2 is the famous Max-Cut problem. Note, however, that this equivalence does not extend to multiplicative approximation of the optimum.
A sketch is a small or simple representation of the input that approximately preserves some quantities of interest. Sketching is a fundamental technique in algorithm design, and is especially important for processing large datasets, where it can significantly improve the running time, storage, and/or communication costs, which strongly depend on the size of the input representation.
Many different sketching methods were developed, and they have found numerous applications, from geometric optimization and numerical linear algebra to streaming and distributed computation [38 , 45 , 41 ] . We study sketches for min-sum k k k -clustering and seek a for-all guarantee: the sketch preserves the cost of all k k k -partitions simultaneously. This would follow easily from the much stronger requirement that all pairwise distances are preserved (multiplicatively). We study two common sketching approaches: dimension reduction for inputs in Euclidean R d \mathbb{R}^{d} R d , which reduces the ambient dimension d d d , and coresets for metric inputs, which reduce the dataset size n n n . Both of them are defined via a map from the input metric to a more ”compact” metric, in which the sketch is evaluated. Via this map, every k k k -partition of X X X induces a k k k -partition of its image and vice versa, as follows. Let g : X → Y g:X\to Y g : X → Y be a map to a metric space ( Y , ρ ) (Y,\rho) ( Y , ρ ) . For a set A ⊆ X A\subseteq X A ⊆ X , let g ( A ) g(A) g ( A ) be the multiset { g ( x ) ∣ x ∈ A } \{g(x)\mid x\in A\} { g ( x ) ∣ x ∈ A } and for a k k k -partition P = { P 1 , … , P k } \mathcal{P}=\{P_1,\ldots,P_k\} P = { P 1 , … , P k } of X X X , let
g ( P ) = { g ( P 1 ) , … , g ( P k ) } . g(\mathcal{P})=\{g(P_1),\ldots,g(P_k)\}. g ( P ) = { g ( P 1 ) , … , g ( P k )} .
We view this as a k k k -partition of g ( X ) g(X) g ( X ) , even though the multisets g ( P i ) g(P_i) g ( P i ) and g ( P j ) g(P_j) g ( P j ) for i ≠ j i\ne j i = j might not be disjoint.
A useful way to measure the intrinsic geometry of a metric space X X X is its doubling dimension , denoted by ddim ( X ) \operatorname{ddim}(X) ddim ( X ) , defined as the smallest D ≥ 1 D\ge1 D ≥ 1 such that every metric ball can be covered by at most 2 D 2^D 2 D balls of half the radius [19 ] . This notion is effective even for inputs in Euclidean R d \mathbb{R}^{d} R d , as their doubling dimension is at most O ( d ) O(d) O ( d ) but can sometimes be significantly smaller than d d d . Another important parameter is the aspect ratio of a set S ⊆ X S\subseteq X S ⊆ X , defined as
Δ = diam ( S ) min x ≠ y ∈ S dist ( x , y ) . \Delta=\frac{\operatorname{diam}(S)}{\min_{x\ne y\in S}\operatorname{dist}(x,y)}. Δ = min x = y ∈ S dist ( x , y ) diam ( S ) .
where diam ( S ) = max x , y ∈ S dist ( x , y ) \operatorname{diam}(S)=\max_{x,y\in S}\operatorname{dist}(x,y) diam ( S ) = max x , y ∈ S dist ( x , y ) . Many sketching results in the literature depend on the doubling dimension or aspect ratio of the input X X X , and are thus particularly effective when they are low.
Dimension reduction. A standard sketching method is oblivious dimension reduction: When the input is a high-dimensional Euclidean point set, it is useful to project it to a low-dimensional space before running downstream applications like a clustering algorithm. This is a very powerful algorithmic tool, because the efficiency of many geometric algorithms depends heavily on the ambient dimension. The Johnson-Lindenstrauss (JL) Lemma [30 ] states that every n n n -point Euclidean metric can be mapped (embedded) into R t \mathbb{R}^{t} R t , for t = O ( ε − 2 log n ) t=O(\varepsilon^{-2}\log n) t = O ( ε − 2 log n ) , while preserving all pairwise distances within factor 1 ± ε 1\pm\varepsilon 1 ± ε . It is known that the above bound on the dimension t t t is tight in general for preserving all pairwise distances [34 ] .
A standard oblivious construction, which we use below, is to apply a random linear map f : R d → R t f:\mathbb{R}^{d}\to\mathbb{R}^{t} f : R d → R t , given by a matrix whose entries are independent Gaussian random variables with appropriate scaling, and this is known to succeed with high probability.
The JL guarantee on all pairwise distances clearly implies that also the min-sum cost of every partition is preserved up to the same factor. However, preserving all the pairwise distances might be an excessive requirement, and indeed dimension reduction tailored to clustering and related geometric optimization problems has been studied extensively. In particular, for center-based clustering such as k k k -means and k k k -median, it suffices to use dimension t t t that depends on k k k instead of n n n , namely, t = O ( ε − 2 log ( k / ε ) ) t=O(\varepsilon^{-2}\log(k/\varepsilon)) t = O ( ε − 2 log ( k / ε )) [6 , 10 , 3 , 36 ] .
The picture changes however when the center set is restricted: for k k k -median with discrete centers (medoids), the target dimension also depends on the doubling dimension and on a log log n \log\log n log log n term [29 ] . For min-sum k k k -clustering, no analogous dimension-reduction result was previously known, and it was open to obtain any guarantee beyond the JL bound. The main obstacle is the indirect dependence of the objective on cluster sizes, as each point x x x in cluster C C C contributes O ( ∣ C ∣ ) O(|C|) O ( ∣ C ∣ ) terms to the objective. In particular, placing x x x in a smaller cluster (that has the same average distance from x x x ) will decrease the contribution of x x x to the min-sum objective. This is very different from center-based objectives, where each point contributes only one term to the objective, its distance to its assigned center. Thus the known center-based arguments do not apply, at least not directly.
Coresets. Another standard sketching method is a coreset, where the input X X X is replaced by a smaller (but weighted) set. We propose the following definition, which guarantees correspondence between k k k -partitions of the input X X X and these of the coreset. Notice that it applies to a metric input (not necessarily Euclidean).
Definition 1.1 (Movement-Based Coreset). Let ( X , dist ) (X,\operatorname{dist}) ( X , dist ) be a finite metric space. A weighted set ( S , w ) (S,w) ( S , w ) , with S ⊆ X S \subseteq X S ⊆ X is a movement-based ε \varepsilon ε -coreset for min-sum k k k -clustering on X X X if there exists a map π : X → S \pi: X \to S π : X → S that is consistent with the weights, namely, w ( s ) = ∣ π − 1 ( s ) ∣ w(s) = |\pi^{-1}(s)| w ( s ) = ∣ π − 1 ( s ) ∣ for all s ∈ S s \in S s ∈ S , such that
∀ k -partition P of X , cost ( π ( P ) ) ∈ ( 1 ± ε ) cost ( P ) . \forall k\text{-partition }\mathcal{P}\text{ of }X,\qquad\operatorname{cost}(\pi(\mathcal{P})) \in(1 \pm\varepsilon)\operatorname{cost}(\mathcal{P}). ∀ k -partition P of X , cost ( π ( P )) ∈ ( 1 ± ε ) cost ( P ) . We call π \pi π a movement rule ; it need not be stored explicitly as part of the coreset, i.e., the size of the coreset is ∣ S ∣ |S| ∣ S ∣ . It is easy to see that a k k k -partition of S S S that splits the weight of a point s ∈ S s \in S s ∈ S among multiple parts can be replaced, without increasing the min-sum cost, by a k k k -partition that does not split the weight of s s s (i.e., its entire weight is assigned to a single part); see Claim 5.2 . Consequently, it suffices to solve the clustering problem on the small coreset ( S , w ) (S,w) ( S , w ) and pull back its solution through the movement rule, to a solution for the original input X X X . The drawback is that the coreset must be interpreted together with a movement rule, however, in our constructions this rule is simply the nearest-neighbor (in S S S ), and hence π − 1 ( s ) \pi^{-1}(s) π − 1 ( s ) can be computed from X X X and S S S , and need not be stored explicitly.
Definition 1.1 is analogous to the usual strong coreset guarantee for center-based clustering [22 , 17 , 7 ] , where a weighted set S S S represents the input X X X if it preserves the cost of every possible choice of centers. The key difference is that a solution for min-sum k k k -clustering is not a set of centers but rather a partition of X X X , and we thus need a movement rule that specifies a correspondence between partitions of X X X and partitions of the coreset. A downside of this movement-based definition is that it does not support sampling, reweighting, or similar modifications of the dataset. The same approach of a movement rule was used in previous coreset definitions, particularly for Max-Cut in [17 ] and for balanced k k k -median in [4 ] (called a ”mapping coreset”), although their accuracy requirements are different and not suitable for our min-sum objective.
Previously, Czumaj and Sohler [12 ] proposed a very different definition of a coreset for min-sum k k k -clustering. While it is also based on a movement rule from the input X X X to the coreset S S S , their coreset S S S is equipped with modified distances and thus need not be a submetric of X X X (for example, S S S might not be Euclidean even if X X X is). Moreover, they do not require that the min-sum cost of every partition is preserved, and in this sense their definition is weaker than ours. Altogether, the two definitions are incomparable.
Our Results
Our first two results are dimension-reduction bounds for min-sum k k k -clustering, one in terms of the doubling dimension of the input, and one in terms of its aspect ratio. No bounds were previously known for this problem. Throughout, a Gaussian JL map f : R d → R t f : \mathbb{R}^{d} \to\mathbb{R}^{t} f : R d → R t refers to a random linear map given by a matrix whose entries are independent N ( 0 , 1 / t ) N(0,1/t) N ( 0 , 1/ t ) random variables.
Theorem 1.2 (Euclidean Dimension Reduction for Doubling Sets). *Let X ⊆ R d X \subseteq\mathbb{R}^{d} X ⊆ R d be an instance of min-sum k k k -clustering in Euclidean space, and let 0 < ε < 1 / 4 0 < \varepsilon< 1/4 0 < ε < 1/4 . Let f : R d → R t f : \mathbb{R}^{d} \to\mathbb{R}^{t} f : R d → R t be a Gaussian JL
map, where t ≥ c ε − 2 ( ddim ( X ) log ( 1 / ε ) + log k + log log n ) t \ge c\varepsilon^{-2}(\operatorname{ddim}(X)\log(1/\varepsilon) + \log k + \log\log n) t ≥ c ε − 2 ( ddim ( X ) log ( 1/ ε ) + log k + log log n ) , for a sufficiently large constant c > 0 c > 0 c > 0 . Then, with probability at least 4 / 5 4/5 4/5 ,
∀ k -partition P of X , cost ( f ( P ) ) ∈ ( 1 ± ε ) cost ( P ) . \forall k\text{-partition } \mathcal{P}\text{ of }X,\qquad\operatorname{cost}(f(\mathcal{P})) \in(1 \pm\varepsilon)\operatorname{cost}(\mathcal{P}). ∀ k -partition P of X , cost ( f ( P )) ∈ ( 1 ± ε ) cost ( P ) .
It is interesting to identify other parameters that can be used to guarantee dimension reduction. Surprisingly, we find that the aspect ratio can serve as such a parameter, in contrast to some other clustering objectives where standard lower-bound examples have aspect ratio O ( 1 ) O(1) O ( 1 ) . The aspect ratio is a natural complement to the doubling dimension, since it limits the number of distance scales that the min-sum objective must handle, rather than the packing complexity at every single scale.
Theorem 1.3 (Euclidean Dimension Reduction for Bounded Aspect Ratio). Let X ⊆ R d X \subseteq\mathbb{R}^{d} X ⊆ R d be an instance of min-sum k k k -clustering in Euclidean space with aspect ratio at most Δ \Delta Δ , and let 0 < ε < 1 / 4 0 < \varepsilon< 1/4 0 < ε < 1/4 . Let f : R d → R t f : \mathbb{R}^{d} \to\mathbb{R}^{t} f : R d → R t be a Gaussian JL map, where t ≥ c ε − 2 ( log ( 1 / ε ) + log k + log Δ ) t \ge c\varepsilon^{-2}(\log(1/\varepsilon) + \log k + \log\Delta) t ≥ c ε − 2 ( log ( 1/ ε ) + log k + log Δ ) for a sufficiently large constant c > 0 c > 0 c > 0 . Then, with probability at least 4 / 5 4/5 4/5 ,
∀ k -partition P of X , cost ( f ( P ) ) ∈ ( 1 ± ε ) cost ( P ) . \forall k\text{-partition } \mathcal{P}\text{ of }X,\qquad\operatorname{cost}(f(\mathcal{P})) \in(1 \pm\varepsilon)\operatorname{cost}(\mathcal{P}). ∀ k -partition P of X , cost ( f ( P )) ∈ ( 1 ± ε ) cost ( P ) .
We remark that Theorems 1.2 and 1.3 immediately extend to objectives where pairwise distances are raised to power p ≥ 1 p \ge1 p ≥ 1 , i.e., ∥ x − y ∥ 2 p \lVert x-y\rVert_{2}^{p} ∥ x − y ∥ 2 p , with target dimension t = O ( p 2 ε − 2 ( ddim ( X ) log ( p / ε ) + log k + log log n + p ) ) t = O(p^{2}\varepsilon^{-2}(\operatorname{ddim}(X)\log(p/\varepsilon) + \log k + \log\log n + p)) t = O ( p 2 ε − 2 ( ddim ( X ) log ( p / ε ) + log k + log log n + p )) in the doubling-dimension bound, and t = O ( p 4 ε − 2 ( log ( p / ε ) + log k + p log ( Δ ) ) ) t = O(p^{4}\varepsilon^{-2}(\log(p/\varepsilon) + \log k + p\log(\Delta))) t = O ( p 4 ε − 2 ( log ( p / ε ) + log k + p log ( Δ ))) in the aspect-ratio bound; see § 3.4 . An immediate corollary is that Schulman’s ( 1 + ε ) (1+\varepsilon) ( 1 + ε ) -approximation algorithms for ℓ 2 2 \ell_{2}^{2} ℓ 2 2 -costs [42 ] , whose running time is exponential in the ambient dimension d d d , can use the reduced dimension t t t instead of d d d .
We further show that our bound on the target dimension in Theorem 1.2 is near-optimal (for Gaussian JL maps), namely, Ω ( ddim ( X ) ) \Omega(\operatorname{ddim}(X)) Ω ( ddim ( X )) is necessary even for min-sum 2-clustering, and our dependence on n n n , namely Ω ( ε − 2 log log n ) \Omega(\varepsilon^{-2}\log\log n) Ω ( ε − 2 log log n ) is needed even for constant doubling dimension; see Theorem 3.10 .
Our next result is a movement-based coreset for min-sum k k k -clustering in doubling metrics (not necessarily Euclidean), that has size ( 1 / ε ) O ( ddim ) k log n (1/\varepsilon)^{O(\operatorname{ddim})}k\log n ( 1/ ε ) O ( ddim ) k log n . We further provide a near-linear-time implementation, which uses internally yet another movement-based coreset that we design. These two coresets are constructed using different techniques, our main result is based on a density-adaptive method, and the internal coreset uses a simpler annular construction.
In comparison, the coreset of Czumaj and Sohler [12 ] achieves O ( 1 ) O(1) O ( 1 ) -approximation (whereas ours achieves 1 + ε 1+\varepsilon 1 + ε ), its size is poly ( k log n ) \operatorname{poly}(k\log n) poly ( k log n ) with no dependence on the doubling dimension, and its construction time is also near-linear in n n n .
But as mentioned earlier, their definition of a coreset is very different and incomparable to ours.
Theorem 1.4 (Density-adaptive coreset). Let ( X , dist ) (X,\operatorname{dist}) ( X , dist ) be an n n n -point metric space of doubling dimension at most ddim ≥ 1 \operatorname{ddim} \ge1 ddim ≥ 1 . Then for every 0 < ε < 1 2 0 < \varepsilon< \frac{1}{2} 0 < ε < 2 1 , there is a movement-based ε \varepsilon ε -coreset ( S , w ) (S,w) ( S , w ) of size
∣ S ∣ ≤ ( 1 ε ) O ( ddim ) k log n , |S| \le\left(\frac{1}{\varepsilon}\right)^{O(\operatorname{ddim})} k\log n, ∣ S ∣ ≤ ( ε 1 ) O ( ddim ) k log n , whose movement rule is the nearest-neighbor map. Moreover, such a coreset can be constructed in randomized near-linear time with high probability.
We further show that the logarithmic dependence on n n n in these bounds is necessary, as even for min-sum 2-clustering in R \mathbb{R} R (dimension one), every constant-factor movement-based coreset must have size Ω ( log n ) \Omega(\log n) Ω ( log n ) ; see Proposition 4.18 . To bypass this lower bound, one may follow the spirit of Theorem 1.3 and construct coresets according to our definition, whose size depends on other parameters, like the aspect ratio Δ \Delta Δ .
Finally, we use our coreset results to derive two streaming algorithms, one for insertion-only streams and one for dynamic streams. Our algorithms estimate the optimum value of min-sum k k k -clustering, denoted OPT ( X ) \operatorname{OPT}(X) OPT ( X ) , but since they essentially maintain a coreset of the input, they can also output a partition of the coreset. In fact, given further access to the original input X X X (as queries or another pass), they can even pull the clustering back to X X X , by applying the nearest-neighbor movement rule.
In the insertion-only streaming model, the input X X X is presented as a sequence of points in arbitrary order, and the algorithm has oracle access to the distance function between points.
Unfortunately, we cannot simply apply merge-and-reduce, which is a standard technique to devise a streaming algorithm from any coreset that has two properties called Merge and Reduce (see [22 , 41 ] ).
It is easy to see that movement-based coresets satisfy the following Reduce Property (summarized as “a coreset of a coreset is itself a coreset”): suppose S S S is a coreset for an input X X X , and T T T is a coreset for the coreset S S S ; then T T T is a coreset for the original input X X X , with the errors accumulating.
But unfortunately, movement-based coresets do not necessarily satisfy the following Merge Property (summarized as “the union of coresets is a coreset”): if each S i S_i S i is a coreset of X i X_i X i , say for i = 1 , 2 i=1,2 i = 1 , 2 , then ⋃ i S i \bigcup_i S_i ⋃ i S i is a coreset for ⋃ i X i \bigcup_i X_i ⋃ i X i .
Nevertheless, we can combine the two-pass streaming algorithm of Czumaj and Sohler [12 ] with our annular construction of a coreset to obtain a three-pass insertion-only streaming algorithm, as follows.
Corollary 1.5 (Algorithm for insertion-only streams). There is a randomized three-pass algorithm for insertion-only streams that, given as input an n n n -point metric space ( X , dist ) (X,\operatorname{dist}) ( X , dist ) of doubling dimension at most ddim ≥ 1 \operatorname{ddim} \ge1 ddim ≥ 1 and 0 < ε < 1 10 0 < \varepsilon< \frac{1}{10} 0 < ε < 10 1 , outputs with high probability an estimate OPT ^ ∈ ( 1 ± ε ) OPT ( X ) \widehat{\operatorname{OPT}} \in(1 \pm\varepsilon)\operatorname{OPT}(X) OPT ∈ ( 1 ± ε ) OPT ( X ) using ( k log n ) O ( 1 ) + ( k ε ) O ( ddim ) log n (k \log n)^{O(1)} + \left(\frac{k}{\varepsilon}\right)^{O(\operatorname{ddim})}\log n ( k log n ) O ( 1 ) + ( ε k ) O ( ddim ) log n space. 1 Moreover, with one additional pass, the algorithm can output a k k k -partition of X X X , whose cost is within 1 + ε 1+\varepsilon 1 + ε factor of the optimum.
In the dynamic streaming model, the input X X X is presented as a sequence of updates, i.e., point insertions and deletions. Our result for dynamic streams applies to inputs lying in a predetermined Euclidean space, such as a grid [ Δ ] d [\Delta]^d [ Δ ] d for Δ = poly ( n ) \Delta=\operatorname{poly}(n) Δ = poly ( n ) . For this setting, we use our dimension reduction (Theorem 1.2) together with annular coreset construction and obtain an O ( log n ) O(\log n) O ( log n ) -pass dynamic streaming algorithm, as follows.
Corollary 1.6 (Algorithm for dynamic Euclidean streams). There is a randomized multipass algorithm for dynamic streams that, given as input an n n n -point Euclidean set X ⊆ [ Δ ] d X \subseteq[\Delta]^d X ⊆ [ Δ ] d with Δ = poly ( n ) \Delta=\operatorname{poly}(n) Δ = poly ( n ) of doubling dimension at most ddim ≥ 1 \operatorname{ddim} \ge1 ddim ≥ 1 , and 0 < ε < 1 10 0 < \varepsilon< \frac{1}{10} 0 < ε < 10 1 , outputs with probability at least 3 / 4 3/4 3/4 an estimate OPT ^ ∈ ( 1 ± ε ) OPT ( X ) \widehat{\operatorname{OPT}} \in(1\pm\varepsilon)\operatorname{OPT}(X) OPT ∈ ( 1 ± ε ) OPT ( X ) , using O ( log n ) O(\log n) O ( log n ) passes and ( k t ε ) t log n + poly ( d , k , t , log log ( n Δ ) ) \left(\frac{kt}{\varepsilon}\right)^t \log n+\operatorname{poly}(d,k,t,\log\log(n\Delta)) ( ε k t ) t log n + poly ( d , k , t , log log ( n Δ )) space for t = O ( ε − 2 ( ddim log ( 1 / ε ) + log k + log log n ) ) t=O\left(\varepsilon^{-2}(\operatorname{ddim}\log(1/\varepsilon)+\log k+\log\log n)\right) t = O ( ε − 2 ( ddim log ( 1/ ε ) + log k + log log n ) ) . Moreover, with one additional pass, the algorithm can output a k k k -partition of X X X , whose cost is within 1 + ε 1+\varepsilon 1 + ε factor of the optimum.
Related Work
The min-sum k k k -clustering problem has been studied from algorithmic perspectives. The best polynomial-time approximation known for the problem is O ( log n ) O(\log n) O ( log n ) [8 ] , and there is also an O ( 1 ) O(1) O ( 1 ) bicriteria approximation algorithm [5 ] . Improved approximations are known for specific families of metric spaces, such as doubling metrics and planar graphs [39 ] , for small k k k , namely k = o ( log n / log log n ) k = o(\log n/\log\log n) k = o ( log n / log log n ) [12 ] , and also for combinations thereof [42 , 32 ] .
In [12 ] there are also other types of algorithms, including sublinear-time approximation algorithm (when the input n n n -point metric is represented explicitly and has size n 2 n^2 n 2 ), an algorithm for constructing a coreset, and a two-pass algorithm for insertion-only streams.
The Johnson–Lindenstrauss lemma [30 ] has motivated a line of research on dimension reduction for Euclidean clustering problems. For some problems, preserving all pairwise distances among the input points immediately implies that the clustering objective value is preserved (e.g., min-sum k k k -clustering), whereas for other problems, there is no immediate connection (e.g., k k k -median, because the pairwise guarantee does not include the centers). In both cases, one may hope to show a similar or even better dimension reduction result, and in many known dimension-reduction results the target dimension is indeed smaller, and often depends on parameters of the problem (e.g., k k k ) or the input (e.g., doubling dimension) rather than on n n n . The studied clustering problems include k k k -means and k k k -median [6 , 10 , 3 , 36 ] , discrete k k k -median (k k k -medoids) [29 ] , k k k -center [28 ] , facility location and minimum-weight spanning tree [40 , 21 ] , and more [33 , 27 , 24 , 13 GJK+25] .
Dimension reduction with additive-error guarantees has also been studied for Euclidean sets of bounded doubling dimension [26 , 1 ] . For applications of dimension reduction beyond clustering, see [15 ] .
Coresets and related streaming algorithms clustering problems have been studied extensively. Har-Peled and Mazumdar [22 ] gave one of the early coreset constructions for Euclidean k k k -median and k k k -means, and further used this coreset to obtain insertion-only streaming algorithms. Their coreset is based on moving the input points to nearby grid points, where the grid granularity depends on an approximate solution, and is actually a movement-based coreset. Bateni, Bhaskara, Lattanzi, and Mirrokni [4 ] gave a coreset construction for balanced k k k -center, k k k -median, and k k k -means, and used it to develop distributed algorithms. Their coreset too is movement-based, although they call it a mapping coreset. Importantly, the error of a coreset is defined in these works in a manner that is tailored for the k k k -median objective, but not useful for min-sum k k k -clustering.
Yet another method for constructing coresets, that is clearly not movement-based, relies on sampling points [11 , 16 ] , and extensive subsequent work has improved and refined these methods, producing fantastic coresets for these clustering problems and many other problems. While this literature is too vast to list explicitly, we point out that it includes streaming algorithms for high-dimensional k k k -median and k k k -means [7 , 25 ] .
Technical Overview
We first describe the dimension-reduction argument. Since a Gaussian JL map f f f need not preserve all the pairwise distances, we associate with f f f a graph on the n n n input points, whose edges are exactly the pairs whose distances are distorted by more than a 1 ± ε 1 \pm\varepsilon 1 ± ε factor. The sparse-subgraph theorem of Makarychev, Makarychev, and Razenshteyn [36 ] implies that inside any set of points (think of it as a possible cluster), one can find a small set of vertices to remove, such that the remaining subgraph has small maximum degree. This sparsity is enough for min-sum k k k -clustering because the distortion of any other edge inside such a graph can be bounded, using the triangle inequality, through (the average of) many good intermediate points in the same cluster.
The main difficulty is to bound pairs that involve removed points, as these are not controlled by the sparse-graph argument. The key idea is to fix a reference partition, and use it to replace the contribution of such pairs with quantities that are stable under the map f f f .
In the doubling-dimension theorem, this is implemented by fixing an optimal partition and considering the 1 1 1 -median centers of its k k k clusters as base points: we build nets at several scales around these centers, and for each pair involving at least one removed point, we orient the pair toward the endpoint whose reference cluster has larger cardinality. The endpoints of the pair are replaced by nearby net representatives, at scales determined by this oriented reference cluster, and the error from this replacement is charged either to the pair itself or to the cost of the reference partition. Our key new idea is to use an optimal clustering, and in particular its 1 1 1 -median centers, as a reference for bounding the approximation error, even though the min-sum objective itself does not involve centers.
For the aspect-ratio theorem, we use the same principle but now the reference partition is one whose clusters have roughly the same size, and the bounded aspect ratio is used (in the analysis) to find such a partition whose cost is not much bigger than the optimal cost. Each pair with a removed endpoint is now replaced by the average distance between the two corresponding reference clusters. Along the way, we use a known property of a Gaussian JL map f f f , that the sum of multiple pairwise distances (i.e., a fixed collection of pairs) is with high probability preserved by f f f and moreover has the same concentration bound as a single pair of points.
The two lower bounds are based on a common principle: If a Gaussian JL map f f f shortens even one important direction (pair of points), the min-sum objective can magnify the error by clustering one endpoint with many copies of the other. It follows that applying the map f f f produces an instance whose cost is much smaller than the original cost.
Now, for the Ω ( d d i m ) \Omega(\mathrm{ddim}) Ω ( ddim ) lower bound, we place many orthogonal directions around a single point of high multiplicity. For the Ω ( log log n ) \Omega(\log\log n) Ω ( log log n ) lower bound with constant doubling dimension, we place the same obstruction at exponentially separated scales, with increasing multiplicities across the scales.
We proceed to describe our two movement-based coresets. The annular construction runs in near-linear time, however its size is ( k / ε ) O ( d d i m ) log n (k/\varepsilon)^{O(\mathrm{ddim})}\log n ( k / ε ) O ( ddim ) log n , which has worse dependence on k k k , and we therefore use it as a fast preprocessing step to speed up our other construction.
This annular construction adapts the discretization approach that Har-Peled and Mazumdar [22 ] devised for a k k k -median coreset.
It first finds an O ( 1 ) O(1) O ( 1 ) -approximate k k k -partition, to be used as a reference, and then builds nets in geometrically decreasing balls around the “centers” of that reference partition. The movement rule maps every point to its nearest net point. We again analyze an arbitrary partition by orienting each pair toward the endpoint whose reference cluster is larger. The movement of the other endpoint can then be charged either to the pair itself or to the reference cluster cost. This argument bounds the movement-error, as required for a coreset, however it loses a factor k k k , and thus an ε \varepsilon ε -movement guarantee requires running the construction with accuracy parameter ε / k \varepsilon/k ε / k rather than ε \varepsilon ε , leading to the larger ( k / ε ) O ( d d i m ) log n (k/\varepsilon)^{O(\mathrm{ddim})}\log n ( k / ε ) O ( ddim ) log n size bound. A fast implementation requires computing the reference solution efficiently, and we show how to bootstrap the required reference solution by alternating coarse annular coresets with weighted bicriteria balanced k k k -median computations.
Our main coreset contribution is the density-adaptive construction that avoids the term k O ( d d i m ) k^{O(\mathrm{ddim})} k O ( ddim ) and achieves the size bound of Theorem 1.4. It does not require an approximate solution as reference, but rather only an estimate O P T ^ \widehat{\mathrm{OPT}} OPT for the optimal value, which is easier to obtain. Its key idea is to choose how far to move each point based on its local density, as follows.
For each point x ∈ X x \in X x ∈ X , define
ρ ( x ) = min 2 ≤ m ≤ n max { 1 m ∑ v ∈ Γ m ( x ) dist ( x , v ) , O P T ^ k m 2 } . \rho(x) = \min_{2 \le m \le n} \max\left\{ \frac{1}{m} \sum_{v \in\Gamma_m(x)} \operatorname{dist}(x,v), \frac{\widehat{\mathrm{OPT}}}{km^2} \right\}. ρ ( x ) = 2 ≤ m ≤ n min max ⎩ ⎨ ⎧ m 1 v ∈ Γ m ( x ) ∑ dist ( x , v ) , k m 2 OPT ⎭ ⎬ ⎫ .
where Γ m ( x ) \Gamma_m(x) Γ m ( x ) is the set of the m m m nearest points to x x x . The value ρ ( x ) \rho(x) ρ ( x ) is a density-adaptive movement scale. The nearest-neighbor term captures the amount of movement that can be charged to the local distances around x x x , while the additive term O P T ^ / ( k m 2 ) \widehat{\mathrm{OPT}}/(km^2) OPT / ( k m 2 ) is the largest movement scale that can be absorbed directly for clusters of size about m m m : moving m m m points by this amount affects m 2 m^2 m 2 pairwise terms and costs only O ( O P T ^ / k ) O(\widehat{\mathrm{OPT}}/k) O ( OPT / k ) .
Our coreset algorithm group points x ∈ X x \in X x ∈ X according to the magnitude of ρ ( x ) \rho(x) ρ ( x ) , and build a separate net for each group (at the corresponding scale). Points with small ρ ( x ) \rho(x) ρ ( x ) are represented more accurately, while points with larger ρ ( x ) \rho(x) ρ ( x ) can be moved farther without violating the movement bound.
Conclusions
Our dimension-reduction and coreset results preserve substantially more than the optimal clustering value. In particular, our movement-based coreset maps the points to representatives such that the costs of all k k k -partitions are preserved simultaneously. Our constructions in doubling metrics enforce an even stronger condition: every point moves only a small distance relative to an appropriate local scale. We use packing bounds in doubling metrics to control the number of representatives needed to satisfy these movement bounds which results in exponential dependence on the doubling dimension in our coreset size.
This motivates a weaker notion focused on preserving the optimum. We call a weighted subset ( S , w ) (S,w) ( S , w ) a weak ε \varepsilon ε -coreset for min-sum k k k -clustering of X X X , if
OPT ( S , w ) ∈ ( 1 ± ε ) OPT ( X ) , \operatorname{OPT}(S,w) \in(1 \pm\varepsilon)\operatorname{OPT}(X), OPT ( S , w ) ∈ ( 1 ± ε ) OPT ( X ) ,
and there exists a polynomial-time algorithm that converts every γ \gamma γ -approximate solution on ( S , w ) (S,w) ( S , w ) into a γ ( 1 + ε ) \gamma(1+\varepsilon) γ ( 1 + ε ) -approximate solution on X X X .
We don’t know whether this weaker notion admits smaller coresets, particularly with improved dependence on n n n or the doubling dimension. Since min-sum k k k -clustering and balanced k k k -median are equivalent up to factor two, coreset techniques for balanced k k k -median may help address this question.
Preliminaries
Nets and Doubling Metrics
Let ( X , dist ) (X,\operatorname{dist}) ( X , dist ) be a metric space. For x ∈ X x \in X x ∈ X and r > 0 r > 0 r > 0 , we write B X ( x , r ) = { y ∈ X : dist ( x , y ) ≤ r } B_X(x,r) = \{y \in X : \operatorname{dist}(x,y) \le r\} B X ( x , r ) = { y ∈ X : dist ( x , y ) ≤ r } , and omit the subscript when the ambient space X X X is clear.
Definition 2.1 (r r r -net). Let ( X , dist ) (X,\operatorname{dist}) ( X , dist ) be a metric space and let r > 0 r > 0 r > 0 . A subset N ⊆ X N \subseteq X N ⊆ X is called an r r r -packing if
∀ u ≠ v ∈ N , dist ( u , v ) > r . \forall u \ne v \in N,\qquad\operatorname{dist}(u,v) > r. ∀ u = v ∈ N , dist ( u , v ) > r . A subset N ⊆ X N \subseteq X N ⊆ X is called an r r r -covering of X X X if
∀ x ∈ X , ∃ u ∈ N , such that x ∈ B X ( u , r ) . \forall x \in X,\exists u \in N,\text{ such that }x \in B_X(u,r). ∀ x ∈ X , ∃ u ∈ N , such that x ∈ B X ( u , r ) . A subset N ⊆ X N \subseteq X N ⊆ X is called an r r r -net of X X X if it is both an r r r -packing and an r r r -covering of X X X .
Lemma 2.2 (Packing Property [19 Proposition 1.1] ). Let P P P be a metric space and let N ⊆ P N \subseteq P N ⊆ P be an r r r -packing. Then
∣ N ∣ ≤ ( diam ( P ) r ) O ( ddim ( P ) ) . |N| \le\left(\frac{\operatorname{diam}(P)}{r}\right)^{O(\operatorname{ddim}(P))}. ∣ N ∣ ≤ ( r diam ( P ) ) O ( ddim ( P )) .
Gaussian JL Maps
Definition 2.3 (Random Dimension Reduction). A random map f : R d → R t f:\mathbb{R}^{d} \to\mathbb{R}^{t} f : R d → R t is called an ( ε , δ ) (\varepsilon,\delta) ( ε , δ ) -random dimension reduction for X X X if
∀ A , B ⊆ X , Pr [ ∑ x ∈ A , y ∈ B ∥ f ( x ) − f ( y ) ∥ ∈ ( 1 ± ε ) ∑ x ∈ A , y ∈ B ∥ x − y ∥ ] ≥ 1 − δ . \forall A,B \subseteq X,\qquad\Pr\left[\sum_{x\in A,y\in B}\|f(x)-f(y)\| \in(1\pm\varepsilon)\sum_{x\in A,y\in B}\|x-y\|\right] \ge1-\delta. ∀ A , B ⊆ X , Pr x ∈ A , y ∈ B ∑ ∥ f ( x ) − f ( y ) ∥ ∈ ( 1 ± ε ) x ∈ A , y ∈ B ∑ ∥ x − y ∥ ≥ 1 − δ . It is called an ( ε , δ , ρ ) (\varepsilon,\delta,\rho) ( ε , δ , ρ ) -random dimension reduction for X X X if it additionally satisfies
∀ x , y ∈ X , E [ max { 0 , ∥ f ( x ) − f ( y ) ∥ − ( 1 + ε ) ∥ x − y ∥ } ] ≤ ρ ∥ x − y ∥ . \forall x,y\in X,\qquad\mathbb{E}\left[\max\{0,\|f(x)-f(y)\|-(1+\varepsilon)\|x-y\|\}\right]\le\rho\|x-y\|. ∀ x , y ∈ X , E [ max { 0 , ∥ f ( x ) − f ( y ) ∥ − ( 1 + ε ) ∥ x − y ∥ } ] ≤ ρ ∥ x − y ∥.
Definition 2.4 (Local Ball-Tail Property). Let f : R d → R t f:\mathbb{R}^{d}\to\mathbb{R}^{t} f : R d → R t be a random map. We say that f f f has the μ \mu μ -local ball-tail property for X X X if
∀ y ∈ X , r > 0 , Pr [ ∃ x ∈ X ∩ B ( y , r ) , ∥ f ( x ) − f ( y ) ∥ ≥ 10 r ] ≤ e − μ . \forall y\in X,\ r>0,\qquad\Pr\left[\exists x\in X\cap B(y,r),\ \|f(x)-f(y)\|\ge10r\right]\le e^{-\mu}. ∀ y ∈ X , r > 0 , Pr [ ∃ x ∈ X ∩ B ( y , r ) , ∥ f ( x ) − f ( y ) ∥ ≥ 10 r ] ≤ e − μ .
Lemma 2.5 (Gaussian Pair Tail [Mat08, Theorem 3.1]). There is a universal constant c > 0 c>0 c > 0 such that, for every 0 < ε , δ < 1 0<\varepsilon,\delta<1 0 < ε , δ < 1 the following holds. Let f : R d → R t f:\mathbb{R}^{d}\to\mathbb{R}^{t} f : R d → R t be a Gaussian JL map with t ≥ c ε − 2 log ( 1 / δ ) t\ge c\varepsilon^{-2}\log(1/\delta) t ≥ c ε − 2 log ( 1/ δ ) . Then for every fixed x , y ∈ R d x,y\in\mathbb{R}^{d} x , y ∈ R d ,
Pr [ ∥ f ( x ) − f ( y ) ∥ ∉ ( 1 ± ε ) ∥ x − y ∥ ] ≤ δ . \Pr[\|f(x)-f(y)\|\notin(1\pm\varepsilon)\|x-y\|]\le\delta. Pr [ ∥ f ( x ) − f ( y ) ∥ ∈ / ( 1 ± ε ) ∥ x − y ∥ ] ≤ δ .
Lemma 2.6 (Gaussian Set-Pair Preservation [Dan21, Subsection A.1]). There is a universal constant c > 0 c>0 c > 0 such that, for every 0 < ε , δ < 1 0<\varepsilon,\delta<1 0 < ε , δ < 1 the following holds. Let X ⊆ R d X\subseteq\mathbb{R}^{d} X ⊆ R d be finite, and let f : R d → R t f:\mathbb{R}^{d}\to\mathbb{R}^{t} f : R d → R t be a Gaussian JL map with t ≥ c ε − 2 ( log ( 1 / ε ) + log ( 1 / δ ) ) t\ge c\varepsilon^{-2}(\log(1/\varepsilon)+\log(1/\delta)) t ≥ c ε − 2 ( log ( 1/ ε ) + log ( 1/ δ )) . Then f f f is an ( ε , δ ) (\varepsilon,\delta) ( ε , δ ) -random dimension reduction for X X X .
Lemma 2.7 (Gaussian One-Sided Excess [36 Lemmas C.1 and C.2] ). There is a universal constant c > 0 c>0 c > 0 such that, for every 0 < ε , ρ < 1 0<\varepsilon,\rho<1 0 < ε , ρ < 1 the following holds. Let f : R d → R t f:\mathbb{R}^{d}\to\mathbb{R}^{t} f : R d → R t be a Gaussian JL map with t ≥ c ε − 2 ( log ( 1 / ε ) + log ( 1 / ρ ) ) t\ge c\varepsilon^{-2}(\log(1/\varepsilon)+\log(1/\rho)) t ≥ c ε − 2 ( log ( 1/ ε ) + log ( 1/ ρ )) . Then
∀ x , y ∈ R d , E [ max { 0 , ∥ f ( x ) − f ( y ) ∥ − ( 1 + ε ) ∥ x − y ∥ } ] ≤ ρ ∥ x − y ∥ . \forall x,y\in\mathbb{R}^{d},\qquad\mathbb{E}\left[\max\{0,\|f(x)-f(y)\|-(1+\varepsilon)\|x-y\|\}\right]\le\rho\|x-y\|. ∀ x , y ∈ R d , E [ max { 0 , ∥ f ( x ) − f ( y ) ∥ − ( 1 + ε ) ∥ x − y ∥ } ] ≤ ρ ∥ x − y ∥.
Lemma 2.8 (Gaussian Local Ball-Tail in Doubling Sets [26 ] ). There is a universal constant c > 0 c>0 c > 0 such that if X ⊆ R d X\subseteq\mathbb{R}^{d} X ⊆ R d has doubling dimension at most ddim ≥ 1 \operatorname{ddim}\ge1 ddim ≥ 1 , and f : R d → R t f:\mathbb{R}^{d}\to\mathbb{R}^{t} f : R d → R t is a Gaussian JL map with t ≥ c ( ddim + μ ) t\ge c(\operatorname{ddim}+\mu) t ≥ c ( ddim + μ ) , then f f f has the μ \mu μ -local ball-tail property for X X X .
Dimension Reduction for Min-Sum k k k -Clustering
In this section we prove two dimension-reduction theorems, stated below for convenience. The first depends on the doubling dimension of the data, and the second depends on the aspect ratio.
Theorem 1.2 (Euclidean Dimension Reduction for Doubling Sets). Let X ⊆ R d X \subseteq\mathbb{R}^{d} X ⊆ R d be an instance of min-sum k k k -clustering in Euclidean space, and let 0 < ε < 1 / 4 0 < \varepsilon< 1/4 0 < ε < 1/4 . Let f : R d → R t f : \mathbb{R}^{d} \to\mathbb{R}^{t} f : R d → R t be a Gaussian JL map, where t ≥ c ε − 2 ( ddim ( X ) log ( 1 / ε ) + log k + log log n ) t \ge c\varepsilon^{-2}\left(\operatorname{ddim}(X)\log(1/\varepsilon) + \log k + \log\log n\right) t ≥ c ε − 2 ( ddim ( X ) log ( 1/ ε ) + log k + log log n ) , for a sufficiently large constant c > 0 c > 0 c > 0 . Then, with probability at least 4 / 5 4/5 4/5 ,
∀ k -partition P of X , cost ( f ( P ) ) ∈ ( 1 ± ε ) cost ( P ) . \forall k\text{-partition } P \text{ of } X,\qquad\operatorname{cost}(f(P)) \in(1 \pm\varepsilon)\operatorname{cost}(P). ∀ k -partition P of X , cost ( f ( P )) ∈ ( 1 ± ε ) cost ( P ) .
Theorem 1.3 (Euclidean Dimension Reduction for Bounded Aspect Ratio). Let X ⊆ R d X \subseteq\mathbb{R}^{d} X ⊆ R d be an instance of min-sum k k k -clustering in Euclidean space with aspect ratio at most Δ \Delta Δ , and let 0 < ε < 1 / 4 0 < \varepsilon< 1/4 0 < ε < 1/4 . Let f : R d → R t f : \mathbb{R}^{d} \to\mathbb{R}^{t} f : R d → R t be a Gaussian JL map, where t ≥ c ε − 2 ( log ( 1 / ε ) + log k + log Δ ) t \ge c\varepsilon^{-2}\left(\log(1/\varepsilon) + \log k + \log\Delta\right) t ≥ c ε − 2 ( log ( 1/ ε ) + log k + log Δ ) for a sufficiently large constant c > 0 c > 0 c > 0 . Then, with probability at least 4 / 5 4/5 4/5 ,
∀ k -partition P of X , cost ( f ( P ) ) ∈ ( 1 ± ε ) cost ( P ) . \forall k\text{-partition } P \text{ of } X,\qquad\operatorname{cost}(f(P)) \in(1 \pm\varepsilon)\operatorname{cost}(P). ∀ k -partition P of X , cost ( f ( P )) ∈ ( 1 ± ε ) cost ( P ) .
Preliminaries: Distortion Graph and Related Tools
Both dimension-reduction upper bounds rely on an intermediate guarantee, which shows that even after the map f f f is revealed, every random subset C ⊆ X C \subseteq X C ⊆ X has its min-sum cost preserved up to a controlled additive term. The tools below implement this strategy: the distortion graph records the pairs distorted by f f f , and the sparsity of this graph lets us control their total contribution to the min-sum cost.
Definition 3.1 (Distortion graph). Given 0 < ε ≤ 1 / 2 0 < \varepsilon\le1/2 0 < ε ≤ 1/2 , the distortion graph G = ( X , E ) G = (X, E) G = ( X , E ) for a map f f f has vertex set X X X and an edge ( x , y ) ∈ E (x,y) \in E ( x , y ) ∈ E whenever
∥ f ( x ) − f ( y ) ∥ ∉ ( 1 ± ε ) ∥ x − y ∥ . \lVert f(x) - f(y) \rVert\notin(1 \pm\varepsilon)\lVert x-y\rVert. ∥ f ( x ) − f ( y )∥ ∈ / ( 1 ± ε ) ∥ x − y ∥ . Observe that when f f f is an ( ε , δ ) (\varepsilon,\delta) ( ε , δ ) -random dimension reduction for X X X ,
∀ x , y ∈ X , Pr [ ( x , y ) ∈ E ] ≤ δ . \forall x,y \in X,\qquad\Pr[(x,y) \in E] \le\delta. ∀ x , y ∈ X , Pr [( x , y ) ∈ E ] ≤ δ .
Definition 3.2 (Everywhere-sparse graph). A graph H = ( V , E ) H = (V, E) H = ( V , E ) is called θ \theta θ -everywhere sparse if
∀ u ∈ V , deg H ( u ) ≤ θ ∣ V ∣ . \forall u \in V,\qquad\deg_{H}(u) \le\theta|V|. ∀ u ∈ V , deg H ( u ) ≤ θ ∣ V ∣. Notice that this definition allows V V V to be empty.
Theorem 3.3 (Sparse Subgraph Theorem [36 Theorem 3.2] ). Consider a finite set X X X and a random graph H = ( V , E ) H = (V, E) H = ( V , E ) , where V V V is a random subset of X X X and E E E is a random set of edges between vertices in V V V . No independence assumptions are made. Let θ ∈ ( 0 , 1 / 2 ) \theta\in(0,1/2) θ ∈ ( 0 , 1/2 ) , and assume that
∀ x , y ∈ X , Pr [ ( x , y ) ∈ E ] ≤ δ , \forall x,y \in X,\qquad\Pr[(x,y) \in E] \le\delta, ∀ x , y ∈ X , Pr [( x , y ) ∈ E ] ≤ δ , where δ ≤ θ 7 / 600 \delta\le\theta^{7}/600 δ ≤ θ 7 /600 . Then there exists a random subset V ′ ⊆ V V' \subseteq V V ′ ⊆ V , defined on the same probability space, such that
H [ V ′ ] H[V'] H [ V ′ ] is θ \theta θ -everywhere sparse, and
Pr [ u ∈ V ∖ V ′ ] ≤ θ \Pr[u \in V \setminus V'] \le\theta Pr [ u ∈ V ∖ V ′ ] ≤ θ for all u ∈ X u \in X u ∈ X .
:::`
Lemma 3.4 (Sparse Graph Preservation). Let θ ≤ 1 / 10 \theta\le1/10 θ ≤ 1/10 , 0 < ε ≤ 1 / 2 0 < \varepsilon\le1/2 0 < ε ≤ 1/2 and let G = ( Y , E ) G = (Y,E) G = ( Y , E ) be the distortion graph of Y Y Y for a map f f f . If G G G is θ \theta θ -everywhere sparse, then
∑ x , y ∈ Y ∥ f ( x ) − f ( y ) ∥ ≤ ( 1 + 5 θ ) ( 1 + 2 ε ) ∑ x , y ∈ Y ∥ x − y ∥ . (2) \sum_{x,y\in Y} \lVert f(x)-f(y)\rVert\le(1+5\theta)(1+2\varepsilon)\sum_{x,y\in Y}\lVert x-y\rVert. \tag*{(2)} x , y ∈ Y ∑ ∥ f ( x ) − f ( y )∥ ≤ ( 1 + 5 θ ) ( 1 + 2 ε ) x , y ∈ Y ∑ ∥ x − y ∥ . (2) and
∑ x , y ∈ Y ∥ x − y ∥ ≤ ( 1 + 5 θ ) ( 1 + 2 ε ) ∑ x , y ∈ Y ∥ f ( x ) − f ( y ) ∥ . (3) \sum_{x,y\in Y}\lVert x-y\rVert\le(1+5\theta)(1+2\varepsilon)\sum_{x,y\in Y}\lVert f(x)-f(y)\rVert. \tag*{(3)} x , y ∈ Y ∑ ∥ x − y ∥ ≤ ( 1 + 5 θ ) ( 1 + 2 ε ) x , y ∈ Y ∑ ∥ f ( x ) − f ( y )∥ . (3) Proof. For each x ∈ Y x\in Y x ∈ Y , let I x = { y ∈ Y : ( x , y ) ∉ E } I_x=\{y\in Y:(x,y)\notin E\} I x = { y ∈ Y : ( x , y ) ∈ / E } . Since G G G is θ \theta θ -everywhere sparse, we have
∀ x , y ∈ Y , ∣ I x ∩ I y ∣ ≥ ( 1 − 2 θ ) ∣ Y ∣ . \forall x,y\in Y,\qquad|I_x\cap I_y|\ge(1-2\theta)|Y|. ∀ x , y ∈ Y , ∣ I x ∩ I y ∣ ≥ ( 1 − 2 θ ) ∣ Y ∣. Now fix x , y ∈ X x,y\in X x , y ∈ X . For every z ∈ I x ∩ I y z\in I_x\cap I_y z ∈ I x ∩ I y ,
∥ f ( x ) − f ( y ) ∥ ≤ ∥ f ( x ) − f ( z ) ∥ + ∥ f ( z ) − f ( y ) ∥ ≤ ( 1 + ε ) ( ∥ x − z ∥ + ∥ z − y ∥ ) , \lVert f(x)-f(y)\rVert\le\lVert f(x)-f(z)\rVert+\lVert f(z)-f(y)\rVert\le(1+\varepsilon)(\lVert x-z\rVert+\lVert z-y\rVert), ∥ f ( x ) − f ( y )∥ ≤ ∥ f ( x ) − f ( z )∥ + ∥ f ( z ) − f ( y )∥ ≤ ( 1 + ε ) (∥ x − z ∥ + ∥ z − y ∥) , and averaging this over all z ∈ I x ∩ I y z\in I_x\cap I_y z ∈ I x ∩ I y gives
∥ f ( x ) − f ( y ) ∥ ≤ 1 + ε ( 1 − 2 θ ) ∣ Y ∣ ∑ z ∈ I x ∩ I y ( ∥ x − z ∥ + ∥ z − y ∥ ) . \lVert f(x)-f(y)\rVert\le\frac{1+\varepsilon}{(1-2\theta)|Y|}\sum_{z\in I_x\cap I_y}(\lVert x-z\rVert+\lVert z-y\rVert). ∥ f ( x ) − f ( y )∥ ≤ ( 1 − 2 θ ) ∣ Y ∣ 1 + ε z ∈ I x ∩ I y ∑ (∥ x − z ∥ + ∥ z − y ∥) . Now split the sum ∑ x , y ∈ X ∥ f ( x ) − f ( y ) ∥ \sum_{x,y\in X}\lVert f(x)-f(y)\rVert ∑ x , y ∈ X ∥ f ( x ) − f ( y )∥ into undistorted and distorted pairs. The undistorted pairs contribute at most ( 1 + ε ) ∑ x , y ∈ Y ∥ x − y ∥ (1+\varepsilon)\sum_{x,y\in Y}\lVert x-y\rVert ( 1 + ε ) ∑ x , y ∈ Y ∥ x − y ∥ . For the distorted pairs, use the above averaging bound to charge each undistorted pair at most 4 θ ∣ Y ∣ 4\theta|Y| 4 θ ∣ Y ∣ times. Hence
∑ x , y ∈ Y , y ∉ I x ∥ f ( x ) − f ( y ) ∥ ≤ ( 1 + ε ) 4 θ 1 − 2 θ ∑ x , y ∈ Y , y ∈ I x ∥ x − y ∥ ≤ 5 θ ( 1 + ε ) ∑ x , y ∈ Y ∥ x − y ∥ . (4) \sum_{x,y\in Y,y\notin I_x}\lVert f(x)-f(y)\rVert\le(1+\varepsilon)\frac{4\theta}{1-2\theta}\sum_{x,y\in Y,y\in I_x}\lVert x-y\rVert\le5\theta(1+\varepsilon)\sum_{x,y\in Y}\lVert x-y\rVert. \tag*{(4)} x , y ∈ Y , y ∈ / I x ∑ ∥ f ( x ) − f ( y )∥ ≤ ( 1 + ε ) 1 − 2 θ 4 θ x , y ∈ Y , y ∈ I x ∑ ∥ x − y ∥ ≤ 5 θ ( 1 + ε ) x , y ∈ Y ∑ ∥ x − y ∥ . (4) where the second inequality follows from θ ≤ 1 / 10 \theta\le1/10 θ ≤ 1/10 . Inequality (4) together with the bound on the distorted pairs contribution proves (2) . Inequality (3) follows in the same way, using
z ∈ I x ∩ I y , ∥ x − y ∥ ≤ 1 1 − ε ( ∥ f ( x ) − f ( z ) ∥ + ∥ f ( z ) − f ( y ) ∥ ) , z\in I_x\cap I_y,\qquad\lVert x-y\rVert\le\frac{1}{1-\varepsilon}(\lVert f(x)-f(z)\rVert+\lVert f(z)-f(y)\rVert), z ∈ I x ∩ I y , ∥ x − y ∥ ≤ 1 − ε 1 (∥ f ( x ) − f ( z )∥ + ∥ f ( z ) − f ( y )∥) , and the conclusion follows from 1 / ( 1 − ε ) ≤ 1 + 2 ε 1/(1-\varepsilon)\le1+2\varepsilon 1/ ( 1 − ε ) ≤ 1 + 2 ε .
Lemma 3.5 (One-Median Charge). Let S ⊆ R d S\subseteq\mathbb{R}^d S ⊆ R d , and let c ∗ c^* c ∗ be an optimal center for S S S under the 1 1 1 -median objective. Then
∣ S ∣ ∑ y ∈ S ∥ y − c ∗ ∥ ≤ ∑ y , y ′ ∈ S ∥ y − y ′ ∥ . |S|\sum_{y\in S}\lVert y-c^*\rVert\le\sum_{y,y'\in S}\lVert y-y'\rVert. ∣ S ∣ y ∈ S ∑ ∥ y − c ∗ ∥ ≤ y , y ′ ∈ S ∑ ∥ y − y ′ ∥ . Proof. Since c ∗ c^* c ∗ is an optimal 1-median center for S S S ,
∀ y ′ ∈ S , ∑ y ∈ S ∥ y − c ∗ ∥ ≤ ∑ y ∈ S ∥ y − y ′ ∥ . \forall y'\in S,\qquad\sum_{y\in S}\lVert y-c^*\rVert\le\sum_{y\in S}\lVert y-y'\rVert. ∀ y ′ ∈ S , y ∈ S ∑ ∥ y − c ∗ ∥ ≤ y ∈ S ∑ ∥ y − y ′ ∥ . Summing over all y ′ ∈ S y'\in S y ′ ∈ S gives the lemma.
Upper Bound for Doubling Dimension
The next lemma is the core of the doubling-dimension argument. It shows that for every random subset C ⊆ X C \subseteq X C ⊆ X , even one chosen after seeing the embedding, the min-sum costs of C C C and f ( C ) f(C) f ( C ) are close up to a small additive term controlled by the optimal clustering. We first use Theorem 3.3 and Lemma 3.4 to obtain a subset C ′ ⊆ C C' \subseteq C C ′ ⊆ C whose cost is approximately preserved. For pairs involving points outside C ′ C' C ′ , we replace their endpoints by net points around the optimal cluster centers and orient each pair toward the endpoint whose optimal cluster is larger, allowing us to bound the resulting error in terms of cost ( C ) \operatorname{cost}(C) cost ( C ) and OPT \operatorname{OPT} OPT .
Lemma 3.6 (Preservation of a Random Cluster). Let X ⊆ R d X \subseteq\mathbb{R}^{d} X ⊆ R d be an instance of min-sum k k k -clustering of doubling dimension at most ddim ≥ 1 \operatorname{ddim} \ge1 ddim ≥ 1 , and let P ∗ = { P 1 ∗ , … , P k ∗ } P^{*} = \{P_{1}^{*}, \ldots, P_{k}^{*}\} P ∗ = { P 1 ∗ , … , P k ∗ } be an optimal partition of X X X with OPT = cost ( P ∗ ) \operatorname{OPT} = \operatorname{cost}(P^{*}) OPT = cost ( P ∗ ) . Assume 0 < ε ≤ 1 / 2 0 < \varepsilon\le1/2 0 < ε ≤ 1/2 and
θ ≤ 1 20 , δ ≤ min { θ 7 600 , ε α ddim 100 k 2 log 2 n } , μ ≥ β ( ddim log ( 1 / ε ) + log k + log log n ) . \theta\le\frac{1}{20}, \qquad\delta\le\min\left\{\frac{\theta^{7}}{600}, \frac{\varepsilon^{\alpha\operatorname{ddim}}}{100k^{2}\log^{2}n}\right\}, \qquad\mu\ge\beta\bigl(\operatorname{ddim}\log(1/\varepsilon)+\log k+\log\log n\bigr). θ ≤ 20 1 , δ ≤ min { 600 θ 7 , 100 k 2 log 2 n ε α ddim } , μ ≥ β ( ddim log ( 1/ ε ) + log k + log log n ) . for sufficiently large constants α , β > 0 \alpha,\beta> 0 α , β > 0 . Let f : R d → R t f : \mathbb{R}^{d} \to\mathbb{R}^{t} f : R d → R t be a random map such that
∀ x , y ∈ X , Pr [ ∥ f ( x ) − f ( y ) ∥ ∉ ( 1 ± ε ) ∥ x − y ∥ ] ≤ δ , \forall x,y \in X,\qquad\Pr[\lVert f(x)-f(y)\rVert\notin(1\pm\varepsilon)\lVert x-y\rVert]\le\delta, ∀ x , y ∈ X , Pr [∥ f ( x ) − f ( y )∥ ∈ / ( 1 ± ε ) ∥ x − y ∥] ≤ δ , and assume that f f f has the μ \mu μ -local ball-tail property for X X X . Then for every random subset C ⊆ X C \subseteq X C ⊆ X which may depend on f f f , with probability at least 4 / 5 4/5 4/5 ,
cost ( C ) ≤ A ( cost ( f ( C ) ) + O ( ε ( k θ + n − 8 ) OPT ) ) , (5) \operatorname{cost}(C)\le A\bigl(\operatorname{cost}(f(C))+O(\varepsilon(k\theta+n^{-8})\operatorname{OPT})\bigr), \tag*{(5)} cost ( C ) ≤ A ( cost ( f ( C )) + O ( ε ( k θ + n − 8 ) OPT ) ) , (5) cost ( f ( C ) ) ≤ A ( cost ( C ) + O ( ε ( k θ + n − 8 ) OPT ) ) , (6) \operatorname{cost}(f(C))\le A\bigl(\operatorname{cost}(C)+O(\varepsilon(k\theta+n^{-8})\operatorname{OPT})\bigr), \tag*{(6)} cost ( f ( C )) ≤ A ( cost ( C ) + O ( ε ( k θ + n − 8 ) OPT ) ) , (6) where A = ( 1 + 5 θ ) ( 1 + 2 ε ) A=(1+5\theta)(1+2\varepsilon) A = ( 1 + 5 θ ) ( 1 + 2 ε ) .
Proof. Let c j ∗ c_j^* c j ∗ be a 1-median center of P j ∗ P_j^* P j ∗ , and set r 0 = 20 OPT r_0=20\operatorname{OPT} r 0 = 20 OPT . Pick m 0 = O ( log n ) m_0=O(\log n) m 0 = O ( log n ) such that 2 m 0 = 40 n 10 2^{m_0}=40n^{10} 2 m 0 = 40 n 10 , and for i = 0 , … , m 0 i=0,\ldots,m_0 i = 0 , … , m 0 set r i = r 0 / 2 i r_i=r_0/2^i r i = r 0 / 2 i . Let N i j N_{ij} N ij be an ( ε r i / 100 ) (\varepsilon r_i/100) ( ε r i /100 ) -net of X ∩ B ( c j ∗ , r i ) X\cap B(c_j^*,r_i) X ∩ B ( c j ∗ , r i ) , and denote
N = ⋃ i = 0 m 0 ⋃ j = 1 k N i j . N=\bigcup_{i=0}^{m_0}\bigcup_{j=1}^{k}N_{ij}. N = i = 0 ⋃ m 0 j = 1 ⋃ k N ij .
By Lemma 2.2 , applied to each N i j N_{ij} N ij ,
∣ N ∣ ≤ k ε − O ( ddim ) log n . |N|\le k\varepsilon^{-O(\operatorname{ddim})}\log n. ∣ N ∣ ≤ k ε − O ( ddim ) log n .
Using the pairwise distortion assumption and taking a union bound over N × N N\times N N × N , we obtain
Pr [ ∃ u , v ∈ N , ∥ f ( u ) − f ( v ) ∥ ∉ ( 1 ± ε ) ∥ u − v ∥ ] ≤ δ ∣ N ∣ 2 ≤ 1 100 . (7) \Pr\left[\exists u,v\in N,\ \lVert f(u)-f(v)\rVert\notin(1\pm\varepsilon)\lVert u-v\rVert\right]\le\delta|N|^{2}\le\frac{1}{100}. \tag*{(7)} Pr [ ∃ u , v ∈ N , ∥ f ( u ) − f ( v )∥ ∈ / ( 1 ± ε ) ∥ u − v ∥ ] ≤ δ ∣ N ∣ 2 ≤ 100 1 . (7)
Additionally, since f f f has the μ \mu μ -local ball-tail property, for every i , j i,j i , j and every y ∈ N i j y\in N_{ij} y ∈ N ij ,
Pr [ ∃ x ∈ X ∩ B ( y , ε r i / 100 ) , ∥ f ( x ) − f ( y ) ∥ > ε r i / 10 ] ≤ e − μ . \Pr\left[\exists x\in X\cap B(y,\varepsilon r_i/100),\ \lVert f(x)-f(y)\rVert>\varepsilon r_i/10\right]\le e^{-\mu}. Pr [ ∃ x ∈ X ∩ B ( y , ε r i /100 ) , ∥ f ( x ) − f ( y )∥ > ε r i /10 ] ≤ e − μ .
For a sufficiently large constant β \beta β , another union bound gives
Pr [ ∃ i , j , y ∈ N i j , ∃ x ∈ X ∩ B ( y , ε r i / 100 ) , ∥ f ( x ) − f ( y ) ∥ > ε r i / 10 ] ≤ 1 100 . (8) \Pr\left[\exists i,j,y\in N_{ij},\ \exists x\in X\cap B(y,\varepsilon r_i/100),\ \lVert f(x)-f(y)\rVert>\varepsilon r_i/10\right]\le\frac{1}{100}. \tag*{(8)} Pr [ ∃ i , j , y ∈ N ij , ∃ x ∈ X ∩ B ( y , ε r i /100 ) , ∥ f ( x ) − f ( y )∥ > ε r i /10 ] ≤ 100 1 . (8)
Let Λ \Lambda Λ be the event that neither (7) nor (8) occurs. Then Pr ( Λ ) ≥ 9 / 10 \Pr(\Lambda) \ge9/10 Pr ( Λ ) ≥ 9/10 . Let C C C be a random subset of X X X , and let G [ C ] G[C] G [ C ] be the distortion graph of C C C . By Theorem 3.3 , there exists C ′ ⊆ C C' \subseteq C C ′ ⊆ C such that G [ C ′ ] G[C'] G [ C ′ ] is θ \theta θ -everywhere sparse and
∀ u ∈ X , Pr [ u ∈ C ∖ C ′ ] ≤ θ . \forall u \in X,\qquad\Pr[u \in C \setminus C'] \le\theta. ∀ u ∈ X , Pr [ u ∈ C ∖ C ′ ] ≤ θ .
Consider a pair x , y ∈ C x,y \in C x , y ∈ C . Assume without loss of generality that y ∈ P ℓ ∗ y \in P^*_\ell y ∈ P ℓ ∗ , x ∈ P j ∗ x \in P^*_j x ∈ P j ∗ , and ∣ P ℓ ∗ ∣ ≥ ∣ P j ∗ ∣ |P^*_\ell| \ge|P^*_j| ∣ P ℓ ∗ ∣ ≥ ∣ P j ∗ ∣ . We define r ( x , y ) > 0 r(x,y)>0 r ( x , y ) > 0 and u ( x , y ) ∈ N u(x,y) \in N u ( x , y ) ∈ N as follows. If ∥ x − y ∥ ≤ 2 OPT \|x-y\| \le2\operatorname{OPT} ∥ x − y ∥ ≤ 2 OPT , let r ( x , y ) r(x,y) r ( x , y ) be the smallest radius r i r_i r i such that
∥ x − c ℓ ∗ ∥ ≤ r i , \|x-c^*_\ell\| \le r_i, ∥ x − c ℓ ∗ ∥ ≤ r i ,
and let u ( x , y ) u(x,y) u ( x , y ) be the closest point to x x x in the corresponding net N i ℓ N_{i\ell} N i ℓ . Otherwise, let r ( x , y ) = r 0 r(x,y)=r_0 r ( x , y ) = r 0 and let u ( x , y ) u(x,y) u ( x , y ) be the nearest point to x x x in the coarsest net N 0 j N_{0j} N 0 j . In the far case ∥ x − y ∥ > 2 OPT \|x-y\|>2\operatorname{OPT} ∥ x − y ∥ > 2 OPT , while ∥ y − c ℓ ∗ ∥ ≤ OPT \|y-c^*_\ell\|\le\operatorname{OPT} ∥ y − c ℓ ∗ ∥ ≤ OPT , and hence ∥ x − c ℓ ∗ ∥ > OPT \|x-c^*_\ell\|>\operatorname{OPT} ∥ x − c ℓ ∗ ∥ > OPT . The quantities r ( y , x ) r(y,x) r ( y , x ) and u ( y , x ) u(y,x) u ( y , x ) are defined only from y y y and the same center c ℓ ∗ c^*_\ell c ℓ ∗ . Namely, r ( y , x ) r(y,x) r ( y , x ) is the smallest radius level such that ∥ y − c ℓ ∗ ∥ ≤ r i \|y-c^*_\ell\|\le r_i ∥ y − c ℓ ∗ ∥ ≤ r i , and u ( y , x ) u(y,x) u ( y , x ) is the closest point to y y y in the corresponding net. By construction,
r ( x , y ) ≤ max { 25 ∥ x − c ℓ ∗ ∥ , OPT 2 n 10 } , r ( y , x ) ≤ max { 2 ∥ y − c ℓ ∗ ∥ , OPT 2 n 10 } . (9) r(x,y) \le\max\left\{25\|x-c^*_\ell\|,\frac{\operatorname{OPT}}{2n^{10}}\right\},\qquad
r(y,x) \le\max\left\{2\|y-c^*_\ell\|,\frac{\operatorname{OPT}}{2n^{10}}\right\}. \tag*{(9)} r ( x , y ) ≤ max { 25∥ x − c ℓ ∗ ∥ , 2 n 10 OPT } , r ( y , x ) ≤ max { 2∥ y − c ℓ ∗ ∥ , 2 n 10 OPT } . (9)
Thus
r ( x , y ) + r ( y , x ) ≤ OPT n 10 + 25 ∥ x − c ℓ ∗ ∥ + 2 ∥ y − c ℓ ∗ ∥ ≤ OPT n 10 + 25 ∥ x − y ∥ + 30 ∥ y − c ℓ ∗ ∥ . (10) \begin{aligned}
r(x,y)+r(y,x)
&\le\frac{\operatorname{OPT}}{n^{10}}+25\|x-c^*_\ell\|+2\|y-c^*_\ell\| \\
&\le\frac{\operatorname{OPT}}{n^{10}}+25\|x-y\|+30\|y-c^*_\ell\|. \tag*{(10)}
\end{aligned} r ( x , y ) + r ( y , x ) ≤ n 10 OPT + 25∥ x − c ℓ ∗ ∥ + 2∥ y − c ℓ ∗ ∥ ≤ n 10 OPT + 25∥ x − y ∥ + 30∥ y − c ℓ ∗ ∥. (10)
Therefore
∣ ∥ x − y ∥ − ∥ u ( x , y ) − u ( y , x ) ∥ ∣ ≤ ∥ x − u ( x , y ) ∥ + ∥ y − u ( y , x ) ∥ ≤ ε 100 ( r ( x , y ) + r ( y , x ) ) ≤ ε ( OPT n 10 + ∥ x − y ∥ 4 + 3 ∥ y − c ℓ ∗ ∥ 10 ) . (11) \begin{aligned}
\left|\|x-y\|-\|u(x,y)-u(y,x)\|\right|
&\le\|x-u(x,y)\|+\|y-u(y,x)\| \\
&\le\frac{\varepsilon}{100}\left(r(x,y)+r(y,x)\right) \\
&\le\varepsilon\left(\frac{\operatorname{OPT}}{n^{10}}+\frac{\|x-y\|}{4}+\frac{3\|y-c^*_\ell\|}{10}\right). \tag*{(11)}
\end{aligned} ∣ ∥ x − y ∥ − ∥ u ( x , y ) − u ( y , x ) ∥ ∣ ≤ ∥ x − u ( x , y ) ∥ + ∥ y − u ( y , x ) ∥ ≤ 100 ε ( r ( x , y ) + r ( y , x ) ) ≤ ε ( n 10 OPT + 4 ∥ x − y ∥ + 10 3∥ y − c ℓ ∗ ∥ ) . (11)
If event Λ \Lambda Λ occurs, the failure event in (8) does not occur. Hence ∥ f ( x ) − f ( u ( x , y ) ) ∥ ≤ ε r ( x , y ) / 10 \|f(x)-f(u(x,y))\|\le\varepsilon r(x,y)/10 ∥ f ( x ) − f ( u ( x , y )) ∥ ≤ ε r ( x , y ) /10 and ∥ f ( y ) − f ( u ( y , x ) ) ∥ ≤ ε r ( y , x ) / 10 \|f(y)-f(u(y,x))\|\le\varepsilon r(y,x)/10 ∥ f ( y ) − f ( u ( y , x )) ∥ ≤ ε r ( y , x ) /10 . The triangle inequality and (10) therefore give:
∣ ∥ f ( x ) − f ( y ) ∥ − ∥ f ( u ( x , y ) ) − f ( u ( y , x ) ) ∥ ∣ ≤ ∥ f ( x ) − f ( u ( x , y ) ) ∥ + ∥ f ( y ) − f ( u ( y , x ) ) ∥ ≤ ε 10 ( r ( x , y ) + r ( y , x ) ) ≤ ε 10 ( OPT n 10 + 25 ∥ x − y ∥ + 30 ∥ y − c ℓ ∗ ∥ ) . (12) \begin{aligned}
\left|\|f(x)-f(y)\|-\|f(u(x,y))-f(u(y,x))\|\right|
&\le\|f(x)-f(u(x,y))\|+\|f(y)-f(u(y,x))\| \\
&\le\frac{\varepsilon}{10}\left(r(x,y)+r(y,x)\right) \\
&\le\frac{\varepsilon}{10}\left(\frac{\operatorname{OPT}}{n^{10}}+25\|x-y\|+30\|y-c^*_\ell\|\right). \tag*{(12)}
\end{aligned} ∣ ∥ f ( x ) − f ( y ) ∥ − ∥ f ( u ( x , y )) − f ( u ( y , x )) ∥ ∣ ≤ ∥ f ( x ) − f ( u ( x , y )) ∥ + ∥ f ( y ) − f ( u ( y , x )) ∥ ≤ 10 ε ( r ( x , y ) + r ( y , x ) ) ≤ 10 ε ( n 10 OPT + 25∥ x − y ∥ + 30∥ y − c ℓ ∗ ∥ ) . (12)
Define
g ( x , y ) = { x , x , y ∈ C ′ , u ( x , y ) , otherwise . g(x,y)=
\begin{cases}
x, & x,y\in C',\\
u(x,y), & \text{otherwise}.
\end{cases} g ( x , y ) = { x , u ( x , y ) , x , y ∈ C ′ , otherwise .
Then set
cost g ( C ) = ∑ x , y ∈ C ∥ g ( x , y ) − g ( y , x ) ∥ \operatorname{cost}_g(C)=\sum_{x,y\in C}\|g(x,y)-g(y,x)\| cost g ( C ) = x , y ∈ C ∑ ∥ g ( x , y ) − g ( y , x ) ∥
and
cost g ( f ( C ) ) = ∑ x , y ∈ C ∥ f ( g ( x , y ) ) − f ( g ( y , x ) ) ∥ . \operatorname{cost}_{g}(f(C))=\sum_{x,y\in C}\left\lVert f(g(x,y))-f(g(y,x))\right\rVert. cost g ( f ( C )) = x , y ∈ C ∑ ∥ f ( g ( x , y )) − f ( g ( y , x )) ∥ .
Let S = { ( x , y ) ∈ C × C : x ∉ C ′ or y ∉ C ′ } S=\{(x,y)\in C\times C:x\notin C' \text{ or } y\notin C'\} S = {( x , y ) ∈ C × C : x ∈ / C ′ or y ∈ / C ′ } . If event Λ \Lambda Λ occurs, using Lemma 3.4 on C ′ C' C ′ and the net preservation event on the rounded pairs,
cost g ( f ( C ) ) ≤ ( 1 + 5 θ ) ( 1 + 2 ε ) ∑ x , y ∈ C ′ ∥ x − y ∥ + ( 1 + ε ) ∑ ( x , y ) ∈ S ∥ u ( x , y ) − u ( y , x ) ∥ ≤ A cost g ( C ) , (13) \begin{aligned}
\operatorname{cost}_{g}(f(C))&\leq(1+5\theta)(1+2\varepsilon)\sum_{x,y\in C'}\lVert x-y\rVert+(1+\varepsilon)\sum_{(x,y)\in S}\lVert u(x,y)-u(y,x)\rVert\\
&\leq A\operatorname{cost}_{g}(C), \tag*{(13)}
\end{aligned} cost g ( f ( C )) ≤ ( 1 + 5 θ ) ( 1 + 2 ε ) x , y ∈ C ′ ∑ ∥ x − y ∥ + ( 1 + ε ) ( x , y ) ∈ S ∑ ∥ u ( x , y ) − u ( y , x )∥ ≤ A cost g ( C ) , (13)
and similarly
cost g ( C ) ≤ A cost g ( f ( C ) ) . (14) \operatorname{cost}_{g}(C)\leq A\operatorname{cost}_{g}(f(C)). \tag*{(14)} cost g ( C ) ≤ A cost g ( f ( C )) . (14)
By (11) and (12) ,
cost ( C ) ≤ cost g ( C ) + ε OPT n 8 + ε 4 cost ( C ) + 3 ε 10 ∑ ( x , y ) ∈ S ∥ y − c ∗ ( y ) ∥ . (15) \operatorname{cost}(C)\leq\operatorname{cost}_{g}(C)+\varepsilon\frac{\operatorname{OPT}}{n^{8}}+\frac{\varepsilon}{4}\operatorname{cost}(C)+\frac{3\varepsilon}{10}\sum_{(x,y)\in S}\lVert y-c^*(y)\rVert. \tag*{(15)} cost ( C ) ≤ cost g ( C ) + ε n 8 OPT + 4 ε cost ( C ) + 10 3 ε ( x , y ) ∈ S ∑ ∥ y − c ∗ ( y )∥ . (15)
cost g ( C ) ≤ cost ( C ) + ε OPT n 8 + ε 4 cost ( C ) + 3 ε 10 ∑ ( x , y ) ∈ S ∥ y − c ∗ ( y ) ∥ . (16) \operatorname{cost}_{g}(C)\leq\operatorname{cost}(C)+\varepsilon\frac{\operatorname{OPT}}{n^{8}}+\frac{\varepsilon}{4}\operatorname{cost}(C)+\frac{3\varepsilon}{10}\sum_{(x,y)\in S}\lVert y-c^*(y)\rVert. \tag*{(16)} cost g ( C ) ≤ cost ( C ) + ε n 8 OPT + 4 ε cost ( C ) + 10 3 ε ( x , y ) ∈ S ∑ ∥ y − c ∗ ( y )∥ . (16)
cost g ( f ( C ) ) ≤ cost ( f ( C ) ) + 10 ε OPT n 8 + 3 ε cost ( C ) + 3 ε ∑ ( x , y ) ∈ S ∥ y − c ∗ ( y ) ∥ . (17) \operatorname{cost}_{g}(f(C))\leq\operatorname{cost}(f(C))+10\varepsilon\frac{\operatorname{OPT}}{n^{8}}+3\varepsilon\operatorname{cost}(C)+3\varepsilon\sum_{(x,y)\in S}\lVert y-c^*(y)\rVert. \tag*{(17)} cost g ( f ( C )) ≤ cost ( f ( C )) + 10 ε n 8 OPT + 3 ε cost ( C ) + 3 ε ( x , y ) ∈ S ∑ ∥ y − c ∗ ( y )∥ . (17)
cost ( f ( C ) ) ≤ cost g ( f ( C ) ) + 10 ε OPT n 8 + 3 ε cost ( C ) + 3 ε ∑ ( x , y ) ∈ S ∥ y − c ∗ ( y ) ∥ . (18) \operatorname{cost}(f(C))\leq\operatorname{cost}_{g}(f(C))+10\varepsilon\frac{\operatorname{OPT}}{n^{8}}+3\varepsilon\operatorname{cost}(C)+3\varepsilon\sum_{(x,y)\in S}\lVert y-c^*(y)\rVert. \tag*{(18)} cost ( f ( C )) ≤ cost g ( f ( C )) + 10 ε n 8 OPT + 3 ε cost ( C ) + 3 ε ( x , y ) ∈ S ∑ ∥ y − c ∗ ( y )∥ . (18)
Here c ∗ ( y ) c^*(y) c ∗ ( y ) denotes the 1-median center of the optimal cluster containing y y y , and the term OPT / n 8 \operatorname{OPT}/n^8 OPT / n 8 comes from summing OPT / n 10 \operatorname{OPT}/n^{10} OPT / n 10 over at most n 2 n^2 n 2 ordered pairs.
It remains to bound ∑ ( x , y ) ∈ S ∥ y − c ∗ ( y ) ∥ \sum_{(x,y)\in S}\lVert y-c^*(y)\rVert ∑ ( x , y ) ∈ S ∥ y − c ∗ ( y )∥ in (15) –(18) . By the second conclusion of Theorem 3.3 , Pr [ u ∈ C ∖ C ′ ] ≤ θ \Pr[u\in C\setminus C']\leq\theta Pr [ u ∈ C ∖ C ′ ] ≤ θ for every u ∈ X u\in X u ∈ X . The definition of S S S and a union bound therefore give
∀ x , y ∈ X , Pr [ ( x , y ) ∈ S ] ≤ 2 θ . \forall x,y\in X,\qquad\Pr[(x,y)\in S]\leq2\theta. ∀ x , y ∈ X , Pr [( x , y ) ∈ S ] ≤ 2 θ .
Orient the pair so that y y y belongs to an optimal cluster at least as large as the optimal cluster of x x x . Then
E [ ∑ ( x , y ) ∈ S ∥ y − c ∗ ( y ) ∥ ] ≤ 2 θ ∑ x , y ∈ X ∣ P x ∗ ∣ ≤ ∣ P y ∗ ∣ ∥ y − c ∗ ( y ) ∥ ≤ 2 θ ∑ y ∈ X k ∣ P y ∗ ∣ ∥ y − c ∗ ( y ) ∥ ≤ 2 θ k ∑ i = 1 k ∑ u , v ∈ P i ∗ ∥ u − v ∥ = 2 θ k OPT , (19) \begin{aligned}
\mathbb{E}\left[\sum_{(x,y)\in S}\lVert y-c^*(y)\rVert\right]
&\leq2\theta\sum_{\substack{x,y\in X\\ |P_x^*|\leq|P_y^*|}}\lVert y-c^*(y)\rVert\\
&\leq2\theta\sum_{y\in X}k|P_y^*|\lVert y-c^*(y)\rVert\\
&\leq2\theta k\sum_{i=1}^{k}\sum_{u,v\in P_i^*}\lVert u-v\rVert=2\theta k\operatorname{OPT}, \tag*{(19)}
\end{aligned} E ( x , y ) ∈ S ∑ ∥ y − c ∗ ( y )∥ ≤ 2 θ x , y ∈ X ∣ P x ∗ ∣ ≤ ∣ P y ∗ ∣ ∑ ∥ y − c ∗ ( y )∥ ≤ 2 θ y ∈ X ∑ k ∣ P y ∗ ∣ ∥ y − c ∗ ( y )∥ ≤ 2 θ k i = 1 ∑ k u , v ∈ P i ∗ ∑ ∥ u − v ∥ = 2 θ k OPT , (19)
where the last inequality is Lemma 3.5 . By Markov’s inequality, with probability at least 9 / 10 9/10 9/10 ,
∑ ( x , y ) ∈ S ∥ y − c ∗ ( y ) ∥ ≤ 20 θ k OPT . \sum_{(x,y)\in S}\lVert y-c^*(y)\rVert\leq20\theta k\operatorname{OPT}. ( x , y ) ∈ S ∑ ∥ y − c ∗ ( y )∥ ≤ 20 θ k OPT .
Together with Λ \Lambda Λ , this event holds with probability at least 4 / 5 4/5 4/5 . Combining (13)–(18) and rescaling ε \varepsilon ε by a sufficiently small universal constant gives (5) and (6) . This concludes the proof of Lemma 3.6 .
Lemma 3.7 (From random clusters to all partitions). Suppose that for every random subset C ⊆ X C \subseteq X C ⊆ X which may depend on f f f , with probability at least 4 / 5 4/5 4/5 ,
cost ( C ) ≤ A ( cost ( f ( C ) ) + Γ ) and cost ( f ( C ) ) ≤ A ( cost ( C ) + Γ ) , \operatorname{cost}(C) \le A\bigl(\operatorname{cost}(f(C))+\Gamma\bigr) \qquad\text{and} \qquad\operatorname{cost}(f(C)) \le A\bigl(\operatorname{cost}(C)+\Gamma\bigr), cost ( C ) ≤ A ( cost ( f ( C )) + Γ ) and cost ( f ( C )) ≤ A ( cost ( C ) + Γ ) , where A ≤ ( 1 + ε ) 2 A \le(1+\varepsilon)^2 A ≤ ( 1 + ε ) 2 and A Γ ≤ ε 2 k OPT A\Gamma\le\frac{\varepsilon}{2k}\operatorname{OPT} A Γ ≤ 2 k ε OPT . Then, with probability at least 4 / 5 4/5 4/5 , for every partition P \mathcal{P} P of X X X ,
( 1 − ε ) cost ( P ) ≤ ( 1 + ε ) 2 cost ( f ( P ) ) , (1-\varepsilon)\operatorname{cost}(\mathcal{P}) \le(1+\varepsilon)^2\operatorname{cost}(f(\mathcal{P})), ( 1 − ε ) cost ( P ) ≤ ( 1 + ε ) 2 cost ( f ( P )) , cost ( f ( P ) ) ≤ ( 1 + ε ) 3 cost ( P ) . \operatorname{cost}(f(\mathcal{P})) \le(1+\varepsilon)^3\operatorname{cost}(\mathcal{P}). cost ( f ( P )) ≤ ( 1 + ε ) 3 cost ( P ) .
Proof. Denote the event in the statement by D D D . We define a random cluster C ⊆ X C \subseteq X C ⊆ X as follows. If D D D happens, set C = ∅ C=\varnothing C = ∅ . Otherwise, there is a partition P = { P 1 , … , P k } \mathcal{P}=\{P_1,\ldots,P_k\} P = { P 1 , … , P k } such that at least one of the following holds:
cost ( P ) > ( 1 + ε ) 2 cost ( f ( P ) ) + ε cost ( P ) ≥ A cost ( f ( P ) ) + ε cost ( P ) , \operatorname{cost}(\mathcal{P})>(1+\varepsilon)^2\operatorname{cost}(f(\mathcal{P}))+\varepsilon\operatorname{cost}(\mathcal{P}) \ge A\operatorname{cost}(f(\mathcal{P}))+\varepsilon\operatorname{cost}(\mathcal{P}), cost ( P ) > ( 1 + ε ) 2 cost ( f ( P )) + ε cost ( P ) ≥ A cost ( f ( P )) + ε cost ( P ) ,
cost ( f ( P ) ) > ( 1 + ε ) 3 cost ( P ) = ( 1 + ε ) 2 cost ( P ) + ε ( 1 + ε ) 2 cost ( P ) ≥ A cost ( P ) + ε cost ( P ) . \operatorname{cost}(f(\mathcal{P}))>(1+\varepsilon)^3\operatorname{cost}(\mathcal{P})=(1+\varepsilon)^2\operatorname{cost}(\mathcal{P})+\varepsilon(1+\varepsilon)^2\operatorname{cost}(\mathcal{P}) \ge A\operatorname{cost}(\mathcal{P})+\varepsilon\operatorname{cost}(\mathcal{P}). cost ( f ( P )) > ( 1 + ε ) 3 cost ( P ) = ( 1 + ε ) 2 cost ( P ) + ε ( 1 + ε ) 2 cost ( P ) ≥ A cost ( P ) + ε cost ( P ) .
Thus there is some i ∈ [ k ] i\in[k] i ∈ [ k ] such that one of the following holds:
cost ( P i ) > A cost ( f ( P i ) ) + ε k cost ( P ) , (20) \operatorname{cost}(P_i)>A\operatorname{cost}(f(P_i))+\frac{\varepsilon}{k}\operatorname{cost}(\mathcal{P}), \tag*{(20)} cost ( P i ) > A cost ( f ( P i )) + k ε cost ( P ) , (20)
cost ( f ( P i ) ) > A cost ( P i ) + ε k cost ( P ) . (21) \operatorname{cost}(f(P_i))>A\operatorname{cost}(P_i)+\frac{\varepsilon}{k}\operatorname{cost}(\mathcal{P}). \tag*{(21)} cost ( f ( P i )) > A cost ( P i ) + k ε cost ( P ) . (21)
Set C = P i C=P_i C = P i for such an index i i i .
If the random-subset preservation inequalities hold for this choice of C C C , then
cost ( P i ) ≤ A cost ( f ( P i ) ) + A Γ ≤ A cost ( f ( P i ) ) + ε 2 k cost ( P ) , \operatorname{cost}(P_i)\le A\operatorname{cost}(f(P_i))+A\Gamma\le A\operatorname{cost}(f(P_i))+\frac{\varepsilon}{2k}\operatorname{cost}(\mathcal{P}), cost ( P i ) ≤ A cost ( f ( P i )) + A Γ ≤ A cost ( f ( P i )) + 2 k ε cost ( P ) ,
and
cost ( f ( P i ) ) ≤ A cost ( P i ) + A Γ ≤ A cost ( P i ) + ε 2 k cost ( P ) , \operatorname{cost}(f(P_i))\le A\operatorname{cost}(P_i)+A\Gamma\le A\operatorname{cost}(P_i)+\frac{\varepsilon}{2k}\operatorname{cost}(\mathcal{P}), cost ( f ( P i )) ≤ A cost ( P i ) + A Γ ≤ A cost ( P i ) + 2 k ε cost ( P ) ,
because cost ( P ) ≥ OPT \operatorname{cost}(\mathcal{P})\ge\operatorname{OPT} cost ( P ) ≥ OPT . This contradicts (20) and (21) . Therefore, if event D D D fails, then the random-subset preservation lemma must fail for the random cluster C C C . Since this happens with probability at most 1 / 5 1/5 1/5 , the event D D D holds with probability at least 4 / 5 4/5 4/5 , proving the lemma.
Proof of Theorem 1.2. Let ε ′ = ( 1 + ε ) 1 / 3 − 1 = O ( ε ) \varepsilon'=(1+\varepsilon)^{1/3}-1=O(\varepsilon) ε ′ = ( 1 + ε ) 1/3 − 1 = O ( ε ) , and choose
θ = min { ( ε ′ ) 2 20 , 1 2 ( 1 + ε ′ ) 2 k 2 } . \theta=\min\left\{\frac{(\varepsilon')^2}{20},\frac{1}{2(1+\varepsilon')^2k^2}\right\}. θ = min { 20 ( ε ′ ) 2 , 2 ( 1 + ε ′ ) 2 k 2 1 } .
Let
δ ≤ min { θ 7 600 , ( ε ′ ) α d d i m 100 k 2 log 2 n } . \delta\le\min\left\{\frac{\theta^7}{600},\frac{(\varepsilon')^\alpha d_{\mathrm{dim}}}{100k^2\log^2 n}\right\}. δ ≤ min { 600 θ 7 , 100 k 2 log 2 n ( ε ′ ) α d dim } .
By Lemma 2.5 , for a sufficiently large constant c > 0 c>0 c > 0 , the Gaussian JL map in the theorem satisfies
∀ x , y ∈ X , Pr [ ∥ f ( x ) − f ( y ) ∥ ∉ ( 1 ± ε ′ ) ∥ x − y ∥ ] ≤ δ . \forall x,y\in X,\qquad\Pr\left[\lVert f(x)-f(y)\rVert\notin(1\pm\varepsilon')\lVert x-y\rVert\right]\le\delta. ∀ x , y ∈ X , Pr [ ∥ f ( x ) − f ( y )∥ ∈ / ( 1 ± ε ′ ) ∥ x − y ∥ ] ≤ δ .
By Lemma 2.8 , the same map has the μ \mu μ -local ball-tail property with
μ ≥ β ( ddim log ( 1 / ε ′ ) + log k + log log n ) . \mu\ge\beta\left(\operatorname{ddim}\log(1/\varepsilon')+\log k+\log\log n\right). μ ≥ β ( ddim log ( 1/ ε ′ ) + log k + log log n ) .
We can thus apply Lemma 3.6 . Given our choice of θ \theta θ above and after rescaling constants, we may choose Γ = ε ′ OPT / ( 2 k ( 1 + ε ′ ) 2 ) \Gamma=\varepsilon'\operatorname{OPT}/(2k(1+\varepsilon')^2) Γ = ε ′ OPT / ( 2 k ( 1 + ε ′ ) 2 ) . Since A ≤ ( 1 + ε ′ ) 2 A\le(1+\varepsilon')^2 A ≤ ( 1 + ε ′ ) 2 , this choice satisfies A Γ ≤ ε ′ OPT / ( 2 k ) A\Gamma\le\varepsilon'\operatorname{OPT}/(2k) A Γ ≤ ε ′ OPT / ( 2 k ) , as required by Lemma 3.7. Applying that lemma with ε ′ \varepsilon' ε ′ proves the theorem.
Upper Bound for Aspect Ratio
The proof has three steps. First, in Lemma 3.8 , we assume the existence of a λ \lambda λ -approximate reference partition in which every cluster contains at least n / ( 2 k ) n/(2k) n / ( 2 k ) points, and use the sparse-distortion graph and average distances within reference clusters to prove approximate preservation of the cost of a random cluster, up to an additive error. Second, in Lemma 3.9 , we use the bounded aspect ratio to supply such a partition with λ = 4 k 2 Δ \lambda=4k^2\Delta λ = 4 k 2 Δ . Finally, we use Lemma 3.7 again to obtain simultaneous preservation of the cost of every k k k -partition. It remains to set θ \theta θ so that the additive error in Lemma 3.8 satisfies the condition of Lemma 3.7, yielding the logarithmic dependence on Δ \Delta Δ .
Lemma 3.8 (Preservation of a Random Cluster). Let X ⊆ R d X\subseteq\mathbb{R}^d X ⊆ R d be an instance of min-sum k k k -clustering. Let f : R d → R t f:\mathbb{R}^d\to\mathbb{R}^t f : R d → R t be an ( ε , δ , ρ ) (\varepsilon,\delta,\rho) ( ε , δ , ρ ) -random dimension reduction for X X X , where 0 < ε ≤ 1 / 2 0<\varepsilon\le1/2 0 < ε ≤ 1/2 and
θ ≤ 1 20 , δ ≤ min { θ 7 600 , 1 10 k 3 } , ρ ≤ θ . \theta\le\frac{1}{20},\qquad\delta\le\min\left\{\frac{\theta^7}{600},\frac{1}{10k^3}\right\},\qquad\rho\le\theta. θ ≤ 20 1 , δ ≤ min { 600 θ 7 , 10 k 3 1 } , ρ ≤ θ . Assume that there is a λ \lambda λ -approximation partition P ∗ = { P 1 ∗ , … , P k ∗ } P^*=\{P_1^*,\ldots,P_k^*\} P ∗ = { P 1 ∗ , … , P k ∗ } such that min i ∈ [ k ] ∣ P i ∗ ∣ ≥ n / ( 2 k ) \min_{i\in[k]}|P_i^*|\ge n/(2k) min i ∈ [ k ] ∣ P i ∗ ∣ ≥ n / ( 2 k ) . Then for every random subset C ⊆ X C\subseteq X C ⊆ X which may depend on f f f , with probability at least 4 / 5 4/5 4/5 ,
cost ( C ) ≤ A ( cost ( f ( C ) ) + 400 ( 1 + ε ) λ θ k OPT ) (22) \operatorname{cost}(C)\le A\left(\operatorname{cost}(f(C))+400(1+\varepsilon)\lambda\theta k\operatorname{OPT}\right) \tag*{(22)} cost ( C ) ≤ A ( cost ( f ( C )) + 400 ( 1 + ε ) λ θ k OPT ) (22) cost ( f ( C ) ) ≤ A ( cost ( C ) + 400 ( 1 + ε ) λ θ k OPT ) (23) \operatorname{cost}(f(C))\le A\left(\operatorname{cost}(C)+400(1+\varepsilon)\lambda\theta k\operatorname{OPT}\right) \tag*{(23)} cost ( f ( C )) ≤ A ( cost ( C ) + 400 ( 1 + ε ) λ θ k OPT ) (23) where A = ( 1 + 5 θ ) ( 1 + 2 ε ) A=(1+5\theta)(1+2\varepsilon) A = ( 1 + 5 θ ) ( 1 + 2 ε ) .
Proof. Let OPT \operatorname{OPT} OPT denote the optimal cost. Since P ∗ P^* P ∗ is a λ \lambda λ -approximation, cost ( P ∗ ) ≤ λ ⋅ OPT \operatorname{cost}(P^*)\le\lambda\cdot\operatorname{OPT} cost ( P ∗ ) ≤ λ ⋅ OPT . Let Λ \Lambda Λ be the event that for all i , j ∈ [ k ] i,j\in[k] i , j ∈ [ k ] ,
( 1 − ε ) ∑ x ∈ P i ∗ , y ∈ P j ∗ ∥ x − y ∥ ≤ ∑ x ∈ P i ∗ , y ∈ P j ∗ ∥ f ( x ) − f ( y ) ∥ ≤ ( 1 + ε ) ∑ x ∈ P i ∗ , y ∈ P j ∗ ∥ x − y ∥ . (1-\varepsilon)\sum_{x\in P_i^*,y\in P_j^*}\lVert x-y\rVert
\le
\sum_{x\in P_i^*,y\in P_j^*}\lVert f(x)-f(y)\rVert
\le
(1+\varepsilon)\sum_{x\in P_i^*,y\in P_j^*}\lVert x-y\rVert. ( 1 − ε ) x ∈ P i ∗ , y ∈ P j ∗ ∑ ∥ x − y ∥ ≤ x ∈ P i ∗ , y ∈ P j ∗ ∑ ∥ f ( x ) − f ( y )∥ ≤ ( 1 + ε ) x ∈ P i ∗ , y ∈ P j ∗ ∑ ∥ x − y ∥ .
Since f f f is an ( ε , δ ) (\varepsilon,\delta) ( ε , δ ) -random dimension reduction,
Pr ( Λ ) ≥ 1 − k 2 δ ≥ 9 / 10. \Pr(\Lambda)\ge1-k^2\delta\ge9/10. Pr ( Λ ) ≥ 1 − k 2 δ ≥ 9/10.
Let C C C be a random subset of X X X , and let G [ C ] G[C] G [ C ] be the distortion graph of C C C . By Theorem 3.3 , there exists C ′ ⊆ C C'\subseteq C C ′ ⊆ C such that G [ C ′ ] G[C'] G [ C ′ ] is θ \theta θ -everywhere sparse and
∀ u ∈ X , Pr [ u ∈ C ∖ C ′ ] ≤ θ . \forall u\in X,\qquad\Pr[u\in C\setminus C']\le\theta. ∀ u ∈ X , Pr [ u ∈ C ∖ C ′ ] ≤ θ .
Let
S = { ( x , y ) ∈ C × C : x ∉ C ′ or y ∉ C ′ } . S=\{(x,y)\in C\times C:x\notin C'\text{ or }y\notin C'\}. S = {( x , y ) ∈ C × C : x ∈ / C ′ or y ∈ / C ′ } .
For x ∈ X x \in X x ∈ X , let P x ∗ P_x^* P x ∗ be the cluster of D ∗ D^* D ∗ containing x x x . Define
g ( x , y ) = { ∥ x − y ∥ , x , y ∈ C ′ , 1 ∣ P x ∗ ∣ ∣ P y ∗ ∣ ∑ x ′ ∈ P x ∗ , y ′ ∈ P y ∗ ∥ x ′ − y ′ ∥ , otherwise . g(x,y)=
\begin{cases}
\lVert x-y\rVert, & x,y\in C',\\
\frac{1}{|P_x^*||P_y^*|}\sum_{x'\in P_x^*,y'\in P_y^*}\lVert x'-y'\rVert, & \text{otherwise}.
\end{cases} g ( x , y ) = { ∥ x − y ∥ , ∣ P x ∗ ∣∣ P y ∗ ∣ 1 ∑ x ′ ∈ P x ∗ , y ′ ∈ P y ∗ ∥ x ′ − y ′ ∥ , x , y ∈ C ′ , otherwise .
and
g f ( x , y ) = { ∥ f ( x ) − f ( y ) ∥ , x , y ∈ C ′ , 1 ∣ P x ∗ ∣ ∣ P y ∗ ∣ ∑ x ′ ∈ P x ∗ , y ′ ∈ P y ∗ ∥ f ( x ′ ) − f ( y ′ ) ∥ , otherwise . g_f(x,y)=
\begin{cases}
\lVert f(x)-f(y)\rVert, & x,y\in C',\\
\frac{1}{|P_x^*||P_y^*|}\sum_{x'\in P_x^*,y'\in P_y^*}\lVert f(x')-f(y')\rVert, & \text{otherwise}.
\end{cases} g f ( x , y ) = { ∥ f ( x ) − f ( y )∥ , ∣ P x ∗ ∣∣ P y ∗ ∣ 1 ∑ x ′ ∈ P x ∗ , y ′ ∈ P y ∗ ∥ f ( x ′ ) − f ( y ′ )∥ , x , y ∈ C ′ , otherwise .
Let
cost g ( C ) = ∑ x , y ∈ C g ( x , y ) , cost g ( f ( C ) ) = ∑ x , y ∈ C g f ( x , y ) . \operatorname{cost}_g(C)=\sum_{x,y\in C}g(x,y), \qquad\operatorname{cost}_g(f(C))=\sum_{x,y\in C}g_f(x,y). cost g ( C ) = x , y ∈ C ∑ g ( x , y ) , cost g ( f ( C )) = x , y ∈ C ∑ g f ( x , y ) .
Using Lemma 3.4 for C ′ C' C ′ and conditioning on the event Λ \Lambda Λ , we obtain
cost g ( f ( C ) ) ≤ ( 1 + 5 θ ) ( 1 + 2 ε ) ∑ x , y ∈ C ′ ∥ x − y ∥ + ( 1 + ε ) ∑ ( x , y ) ∈ S 1 ∣ P x ∗ ∣ ∣ P y ∗ ∣ ∑ x ′ ∈ P x ∗ , y ′ ∈ P y ∗ ∥ x ′ − y ′ ∥ ≤ A cost g ( C ) , (24) \begin{aligned}
\operatorname{cost}_g(f(C)) &\le(1+5\theta)(1+2\varepsilon)\sum_{x,y\in C'}\lVert x-y\rVert\\
&\quad+(1+\varepsilon)\sum_{(x,y)\in S}\frac{1}{|P_x^*||P_y^*|}\sum_{x'\in P_x^*,y'\in P_y^*}\lVert x'-y'\rVert\\
&\le A\operatorname{cost}_g(C), \tag*{(24)}
\end{aligned} cost g ( f ( C )) ≤ ( 1 + 5 θ ) ( 1 + 2 ε ) x , y ∈ C ′ ∑ ∥ x − y ∥ + ( 1 + ε ) ( x , y ) ∈ S ∑ ∣ P x ∗ ∣∣ P y ∗ ∣ 1 x ′ ∈ P x ∗ , y ′ ∈ P y ∗ ∑ ∥ x ′ − y ′ ∥ ≤ A cost g ( C ) , (24)
and similarly
cost g ( C ) ≤ A cost g ( f ( C ) ) . (25) \operatorname{cost}_g(C)\le A\operatorname{cost}_g(f(C)). \tag*{(25)} cost g ( C ) ≤ A cost g ( f ( C )) . (25)
The triangle inequality gives
∣ ∥ x − y ∥ − 1 ∣ P x ∗ ∣ ∣ P y ∗ ∣ ∑ x ′ ∈ P x ∗ , y ′ ∈ P y ∗ ∥ x ′ − y ′ ∥ ∣ ≤ 1 ∣ P x ∗ ∣ ∑ x ′ ∈ P x ∗ ∥ x − x ′ ∥ + 1 ∣ P y ∗ ∣ ∑ y ′ ∈ P y ∗ ∥ y − y ′ ∥ . (26) \left\lvert\lVert x-y\rVert-\frac{1}{|P_x^*||P_y^*|}\sum_{x'\in P_x^*,y'\in P_y^*}\lVert x'-y'\rVert\right\rvert
\le\frac{1}{|P_x^*|}\sum_{x'\in P_x^*}\lVert x-x'\rVert+\frac{1}{|P_y^*|}\sum_{y'\in P_y^*}\lVert y-y'\rVert. \tag*{(26)} ∥ x − y ∥ − ∣ P x ∗ ∣∣ P y ∗ ∣ 1 x ′ ∈ P x ∗ , y ′ ∈ P y ∗ ∑ ∥ x ′ − y ′ ∥ ≤ ∣ P x ∗ ∣ 1 x ′ ∈ P x ∗ ∑ ∥ x − x ′ ∥ + ∣ P y ∗ ∣ 1 y ′ ∈ P y ∗ ∑ ∥ y − y ′ ∥ . (26)
The same inequality, with f ( x ) f(x) f ( x ) and f ( y ) f(y) f ( y ) in place of x x x and y y y , bounds ∣ ∥ f ( x ) − f ( y ) ∥ − g f ( x , y ) ∣ \left\lvert\lVert f(x)-f(y)\rVert-g_f(x,y)\right\rvert ∣ ∥ f ( x ) − f ( y )∥ − g f ( x , y ) ∣ similarly. Combining these inequalities gives
cost ( C ) ≤ A ( cost ( f ( C ) ) + D ) , cost ( f ( C ) ) ≤ A ( cost ( C ) + D ) , \operatorname{cost}(C)\le A\bigl(\operatorname{cost}(f(C))+\mathcal{D}\bigr), \qquad\operatorname{cost}(f(C))\le A\bigl(\operatorname{cost}(C)+\mathcal{D}\bigr), cost ( C ) ≤ A ( cost ( f ( C )) + D ) , cost ( f ( C )) ≤ A ( cost ( C ) + D ) ,
where
D = ∑ ( x , y ) ∈ S ( 1 ∣ P x ∗ ∣ ∑ x ′ ∈ P x ∗ ∥ x − x ′ ∥ + 1 ∣ P y ∗ ∣ ∑ y ′ ∈ P y ∗ ∥ y − y ′ ∥ + 1 ∣ P x ∗ ∣ ∑ x ′ ∈ P x ∗ ∥ f ( x ) − f ( x ′ ) ∥ + 1 ∣ P y ∗ ∣ ∑ y ′ ∈ P y ∗ ∥ f ( y ) − f ( y ′ ) ∥ ) . \mathcal{D}=\sum_{(x,y)\in S}\left(\frac{1}{|P_x^*|}\sum_{x'\in P_x^*}\lVert x-x'\rVert+\frac{1}{|P_y^*|}\sum_{y'\in P_y^*}\lVert y-y'\rVert+\frac{1}{|P_x^*|}\sum_{x'\in P_x^*}\lVert f(x)-f(x')\rVert+\frac{1}{|P_y^*|}\sum_{y'\in P_y^*}\lVert f(y)-f(y')\rVert\right). D = ( x , y ) ∈ S ∑ ∣ P x ∗ ∣ 1 x ′ ∈ P x ∗ ∑ ∥ x − x ′ ∥ + ∣ P y ∗ ∣ 1 y ′ ∈ P y ∗ ∑ ∥ y − y ′ ∥ + ∣ P x ∗ ∣ 1 x ′ ∈ P x ∗ ∑ ∥ f ( x ) − f ( x ′ )∥ + ∣ P y ∗ ∣ 1 y ′ ∈ P y ∗ ∑ ∥ f ( y ) − f ( y ′ )∥ .
It remains to show that D \mathcal{D} D cannot be too large. We have
∀ x , y ∈ X , Pr [ ( x , y ) ∈ S ] ≤ 2 θ . \forall x,y\in X,\qquad\Pr\bigl[(x,y)\in S\bigr]\le2\theta. ∀ x , y ∈ X , Pr [ ( x , y ) ∈ S ] ≤ 2 θ .
Hence
E [ ∑ ( x , y ) ∈ S 1 ∣ P x ∗ ∣ ∑ x ′ ∈ P x ∗ ∥ x − x ′ ∥ ] ≤ 2 θ ∑ x , y ∈ X 1 ∣ P x ∗ ∣ ∑ x ′ ∈ P x ∗ ∥ x − x ′ ∥ = 2 θ ∑ x ∈ X n ∣ P x ∗ ∣ ∑ x ′ ∈ P x ∗ ∥ x − x ′ ∥ ≤ 4 θ k ∑ x ∈ X ∑ x ′ ∈ P x ∗ ∥ x − x ′ ∥ ≤ 8 θ k λ ⋅ O P T . (27) \begin{aligned}
\mathbb{E}\left[\sum_{(x,y)\in S}\frac{1}{|P_x^*|}\sum_{x'\in P_x^*}\lVert x-x'\rVert\right]
&\le2\theta\sum_{x,y\in X}\frac{1}{|P_x^*|}\sum_{x'\in P_x^*}\lVert x-x'\rVert\\
&=2\theta\sum_{x\in X}\frac{n}{|P_x^*|}\sum_{x'\in P_x^*}\lVert x-x'\rVert\\
&\le4\theta k\sum_{x\in X}\sum_{x'\in P_x^*}\lVert x-x'\rVert\\
&\le8\theta k\lambda\cdot\mathrm{OPT}. \tag*{(27)}
\end{aligned} E ( x , y ) ∈ S ∑ ∣ P x ∗ ∣ 1 x ′ ∈ P x ∗ ∑ ∥ x − x ′ ∥ ≤ 2 θ x , y ∈ X ∑ ∣ P x ∗ ∣ 1 x ′ ∈ P x ∗ ∑ ∥ x − x ′ ∥ = 2 θ x ∈ X ∑ ∣ P x ∗ ∣ n x ′ ∈ P x ∗ ∑ ∥ x − x ′ ∥ ≤ 4 θ k x ∈ X ∑ x ′ ∈ P x ∗ ∑ ∥ x − x ′ ∥ ≤ 8 θ k λ ⋅ OPT . (27)
In addition, for every x , y ∈ X x,y\in X x , y ∈ X we have
E [ 1 ( x , y ) ∈ S 1 ∣ P x ∗ ∣ ∑ x ′ ∈ P x ∗ ∥ f ( x ) − f ( x ′ ) ∥ ] ≤ 1 ∣ P x ∗ ∣ ∑ x ′ ∈ P x ∗ E [ ( 1 + ε ) 1 ( x , y ) ∈ S ∥ x − x ′ ∥ ] + 1 ∣ P x ∗ ∣ ∑ x ′ ∈ P x ∗ E [ max { ∥ f ( x ) − f ( x ′ ) ∥ − ( 1 + ε ) ∥ x − x ′ ∥ , 0 } ] ≤ 3 ( 1 + ε ) θ 1 ∣ P x ∗ ∣ ∑ x ′ ∈ P x ∗ ∥ x − x ′ ∥ . (28) \begin{aligned}
\mathbb{E}\left[\mathbf{1}_{(x,y)\in S}\frac{1}{|P_x^*|}\sum_{x'\in P_x^*}\lVert f(x)-f(x')\rVert\right]
&\le\frac{1}{|P_x^*|}\sum_{x'\in P_x^*}\mathbb{E}\left[(1+\varepsilon)\mathbf{1}_{(x,y)\in S}\lVert x-x'\rVert\right]\\
&\quad+\frac{1}{|P_x^*|}\sum_{x'\in P_x^*}\mathbb{E}\left[\max\{\lVert f(x)-f(x')\rVert-(1+\varepsilon)\lVert x-x'\rVert,0\}\right]\\
&\le3(1+\varepsilon)\theta\frac{1}{|P_x^*|}\sum_{x'\in P_x^*}\lVert x-x'\rVert. \tag*{(28)}
\end{aligned} E 1 ( x , y ) ∈ S ∣ P x ∗ ∣ 1 x ′ ∈ P x ∗ ∑ ∥ f ( x ) − f ( x ′ )∥ ≤ ∣ P x ∗ ∣ 1 x ′ ∈ P x ∗ ∑ E [ ( 1 + ε ) 1 ( x , y ) ∈ S ∥ x − x ′ ∥ ] + ∣ P x ∗ ∣ 1 x ′ ∈ P x ∗ ∑ E [ max {∥ f ( x ) − f ( x ′ )∥ − ( 1 + ε ) ∥ x − x ′ ∥ , 0 } ] ≤ 3 ( 1 + ε ) θ ∣ P x ∗ ∣ 1 x ′ ∈ P x ∗ ∑ ∥ x − x ′ ∥ . (28)
Summing this over all x , y x,y x , y and using ∣ P x ∗ ∣ ≥ n / ( 2 k ) |P_x^*|\ge n/(2k) ∣ P x ∗ ∣ ≥ n / ( 2 k ) yields
E [ ∑ ( x , y ) ∈ S 1 ∣ P x ∗ ∣ ∑ x ′ ∈ P x ∗ ∥ f ( x ) − f ( x ′ ) ∥ ] ≤ 12 ( 1 + ε ) θ k λ ⋅ O P T . \mathbb{E}\left[\sum_{(x,y)\in S}\frac{1}{|P_x^*|}\sum_{x'\in P_x^*}\lVert f(x)-f(x')\rVert\right]\le12(1+\varepsilon)\theta k\lambda\cdot\mathrm{OPT}. E ( x , y ) ∈ S ∑ ∣ P x ∗ ∣ 1 x ′ ∈ P x ∗ ∑ ∥ f ( x ) − f ( x ′ )∥ ≤ 12 ( 1 + ε ) θ k λ ⋅ OPT .
The same bounds hold for the symmetric y y y -terms, and therefore
E [ D ] ≤ 40 ( 1 + ε ) θ k λ ⋅ O P T . \mathbb{E}[D]\le40(1+\varepsilon)\theta k\lambda\cdot\mathrm{OPT}. E [ D ] ≤ 40 ( 1 + ε ) θ k λ ⋅ OPT .
By Markov’s inequality, Pr [ D ≤ 400 ( 1 + ε ) θ k λ ⋅ O P T ] ≥ 9 / 10 \Pr[D\le400(1+\varepsilon)\theta k\lambda\cdot\mathrm{OPT}]\ge9/10 Pr [ D ≤ 400 ( 1 + ε ) θ k λ ⋅ OPT ] ≥ 9/10 . By a union bound, with probability at least 4 / 5 4/5 4/5 , Λ \Lambda Λ occurs and the above bound on D D D holds, proving the lemma.
Lemma 3.9 (Balanced Partition with Near-Optimal Cost). Let X X X be an instance of min-sum k k k -clustering with aspect ratio at most Δ \Delta Δ . Let P = { P 1 , … , P k } \mathcal{P}=\{P_1,\ldots,P_k\} P = { P 1 , … , P k } be a partition such that min i ∈ [ k ] ∣ P i ∣ ≥ n 2 k \min_{i\in[k]}|P_i|\ge\frac{n}{2k} min i ∈ [ k ] ∣ P i ∣ ≥ 2 k n .
Then
cost ( P ) ≤ 4 k 2 Δ O P T . \operatorname{cost}(\mathcal{P})\le4k^2\Delta\ \mathrm{OPT}. cost ( P ) ≤ 4 k 2 Δ OPT . Proof. Normalize the minimum positive distance in X X X to be 1. Then the maximum distance is at most Δ \Delta Δ . Let P o p t \mathcal{P}^{\mathrm{opt}} P opt be an optimal partition. Some cluster of P o p t \mathcal{P}^{\mathrm{opt}} P opt has size at least n / k n/k n / k , and therefore the optimum pays for at least
n k ( n k − 1 ) ≥ n 2 4 k 2 \frac{n}{k}\left(\frac{n}{k}-1\right)\ge\frac{n^2}{4k^2} k n ( k n − 1 ) ≥ 4 k 2 n 2 positive-distance pairs, assuming n ≥ 2 k n\ge2k n ≥ 2 k (the proof follows trivially otherwise). Thus
O P T ≥ n 2 4 k 2 . \mathrm{OPT}\ge\frac{n^2}{4k^2}. OPT ≥ 4 k 2 n 2 .
At the same time, every partition has at most n 2 n^2 n 2 ordered pairs inside its clusters, and each pair contributes at most Δ \Delta Δ . Hence cost ( P ) ≤ n 2 Δ ≤ 4 k 2 Δ OPT \operatorname{cost}(\mathcal{P}) \le n^2\Delta\le4k^2\Delta\operatorname{OPT} cost ( P ) ≤ n 2 Δ ≤ 4 k 2 Δ OPT .
Proof of Theorem 1.3. Let ε ′ = ( 1 + ε ) 1 / 3 − 1 = O ( ε ) \varepsilon'=(1+\varepsilon)^{1/3}-1=O(\varepsilon) ε ′ = ( 1 + ε ) 1/3 − 1 = O ( ε ) and λ = 4 k 2 Δ \lambda=4k^2\Delta λ = 4 k 2 Δ . Choose
θ = min { ( ε ′ ) 2 20 , ε ′ 800 ( 1 + ε ′ ) 3 λ k 2 } . \theta=\min\left\{\frac{(\varepsilon')^2}{20},\frac{\varepsilon'}{800(1+\varepsilon')^3\lambda k^2}\right\}. θ = min { 20 ( ε ′ ) 2 , 800 ( 1 + ε ′ ) 3 λ k 2 ε ′ } .
and let
δ ≤ min { θ 7 600 , 1 10 k 3 } , ρ ≤ θ . \delta\le\min\left\{\frac{\theta^7}{600},\frac{1}{10k^3}\right\},\qquad\rho\le\theta. δ ≤ min { 600 θ 7 , 10 k 3 1 } , ρ ≤ θ .
By Lemma 2.6 , there is a sufficiently large constant c > 0 c>0 c > 0 such that, a Gaussian JL map f : R d → R t f:\mathbb{R}^d\to\mathbb{R}^t f : R d → R t with t ≥ c ε − 2 ( log ( 1 / ε ) + log k + log Δ ) t\ge c\varepsilon^{-2}(\log(1/\varepsilon)+\log k+\log\Delta) t ≥ c ε − 2 ( log ( 1/ ε ) + log k + log Δ ) is an ( ε ′ , δ ) (\varepsilon',\delta) ( ε ′ , δ ) -random dimension reduction. Additionally, by Lemma 2.7 , f f f is an ( ε ′ , δ , ρ ) (\varepsilon',\delta,\rho) ( ε ′ , δ , ρ ) -random dimension reduction. Take any balanced partition P ∗ \mathcal{P}^* P ∗ satisfying min i ∣ P i ∗ ∣ ≥ n / ( 2 k ) \min_i|P_i^*|\ge n/(2k) min i ∣ P i ∗ ∣ ≥ n / ( 2 k ) . By Lemma 3.9 , it achieves λ \lambda λ -approximation. Apply Lemma 3.8 with ε ′ \varepsilon' ε ′ . With the above choice of θ \theta θ , setting Γ = 400 ( 1 + ε ′ ) θ k λ ⋅ OPT \Gamma=400(1+\varepsilon')\theta k\lambda\cdot\operatorname{OPT} Γ = 400 ( 1 + ε ′ ) θ k λ ⋅ OPT gives A Γ ≤ ε ′ OPT / ( 2 k ) A\Gamma\le\varepsilon'\operatorname{OPT}/(2k) A Γ ≤ ε ′ OPT / ( 2 k ) , as required by Lemma 3.7. Applying that lemma and rescaling constants proves the theorem.
Generalization to power z z z
We briefly record how the dimension-reduction argument extends from Euclidean distances to their z z z -th powers. Fix z ≥ 1 z\ge1 z ≥ 1 , and define
cost z ( P ) = ∑ i ∑ x , y ∈ P i ∥ x − y ∥ z . \operatorname{cost}_z(\mathcal{P})=\sum_i\sum_{x,y\in P_i}\lVert x-y\rVert^z. cost z ( P ) = i ∑ x , y ∈ P i ∑ ∥ x − y ∥ z .
Write OPT z \operatorname{OPT}_z OPT z for the optimal value under cost z \operatorname{cost}_z cost z . We shall use that for all a , b ≥ 0 a,b\ge0 a , b ≥ 0 and 0 < γ ≤ 1 0<\gamma\le1 0 < γ ≤ 1 ,
( a + b ) z ≤ ( 1 + γ ) a z + ( 2 z γ ) z − 1 b z , ( a + b ) z ≤ 2 z − 1 ( a z + b z ) . (29) (a+b)^z\le(1+\gamma)a^z+\left(\frac{2z}{\gamma}\right)^{z-1}b^z,\qquad(a+b)^z\le2^{z-1}(a^z+b^z). \tag*{(29)} ( a + b ) z ≤ ( 1 + γ ) a z + ( γ 2 z ) z − 1 b z , ( a + b ) z ≤ 2 z − 1 ( a z + b z ) . (29)
Doubling dimension. We extend Theorem 1.2 to preserve cost z ( P ) \operatorname{cost}_z(\mathcal{P}) cost z ( P ) within a factor of 1 ± ε 1\pm\varepsilon 1 ± ε , simultaneously for all k k k -partitions P \mathcal{P} P . In its proof, use ε ′ = Θ ( ε / z ) \varepsilon'=\Theta(\varepsilon/z) ε ′ = Θ ( ε / z ) as the distortion parameter. Apply Lemma 2.5 with this parameter in the derivation of (7) . Then ( 1 ± ε ′ ) z = 1 ± O ( ε ) (1\pm\varepsilon')^z=1\pm O(\varepsilon) ( 1 ± ε ′ ) z = 1 ± O ( ε ) . Choose each reference center c j ∗ c_j^* c j ∗ to minimize ∑ y ∈ P j ∗ ∥ y − c j ∗ ∥ z \sum_{y\in P_j^*}\lVert y-c_j^*\rVert^z ∑ y ∈ P j ∗ ∥ y − c j ∗ ∥ z , and replace OPT \operatorname{OPT} OPT by OPT z 1 / z \operatorname{OPT}_z^{1/z} OPT z 1/ z in the radii and in (9) –(10) . Use ( ε ′ r i / 100 ) (\varepsilon'r_i/100) ( ε ′ r i /100 ) -nets and apply Lemma 2.8 to balls of radius ε ′ r i / 100 \varepsilon'r_i/100 ε ′ r i /100 to obtain (8) with parameter ε ′ \varepsilon' ε ′ . Applying (29) to the inequalities in (11) and (12) gives the corresponding bounds for z z z -th powers. In particular,
∥ x − y ∥ z ≤ ( 1 + γ ) ∥ u ( x , y ) − u ( y , x ) ∥ z + ( 4 z γ ) z − 1 ( ∥ x − u ( x , y ) ∥ z + ∥ y − u ( y , x ) ∥ z ) . \lVert x-y\rVert^z\le(1+\gamma)\lVert u(x,y)-u(y,x)\rVert^z+\left(\frac{4z}{\gamma}\right)^{z-1}\left(\lVert x-u(x,y)\rVert^z+\lVert y-u(y,x)\rVert^z\right). ∥ x − y ∥ z ≤ ( 1 + γ ) ∥ u ( x , y ) − u ( y , x ) ∥ z + ( γ 4 z ) z − 1 ( ∥ x − u ( x , y ) ∥ z + ∥ y − u ( y , x ) ∥ z ) .
And also
∥ u ( x , y ) − u ( y , x ) ∥ z ≤ ( 1 + γ ) ∥ x − y ∥ z + ( 4 z γ ) z − 1 ( ∥ x − u ( x , y ) ∥ z + ∥ y − u ( y , x ) ∥ z ) . \lVert u(x,y)-u(y,x)\rVert^z\le(1+\gamma)\lVert x-y\rVert^z+\left(\frac{4z}{\gamma}\right)^{z-1}\left(\lVert x-u(x,y)\rVert^z+\lVert y-u(y,x)\rVert^z\right). ∥ u ( x , y ) − u ( y , x ) ∥ z ≤ ( 1 + γ ) ∥ x − y ∥ z + ( γ 4 z ) z − 1 ( ∥ x − u ( x , y ) ∥ z + ∥ y − u ( y , x ) ∥ z ) .
Take γ = ε / 10 \gamma= \varepsilon/10 γ = ε /10 and in the definitions of g g g and g f g_f g f in the proof of Lemma 3.6, raise each norm to its z z z -th power, including the norms inside the averages. Denote the resulting costs by cost g , z ( C ) \operatorname{cost}_{g,z}(C) cost g , z ( C ) and cost g , z ( f ( C ) ) \operatorname{cost}_{g,z}(f(C)) cost g , z ( f ( C )) .
Summing the above bounds over all pairs in C C C bounds cost z ( C ) \operatorname{cost}_z(C) cost z ( C ) in terms of cost g , z ( C ) \operatorname{cost}_{g,z}(C) cost g , z ( C ) and cost g , z ( C ) \operatorname{cost}_{g,z}(C) cost g , z ( C ) in terms of cost z ( C ) \operatorname{cost}_z(C) cost z ( C ) . The corresponding bounds hold for cost z ( f ( C ) ) \operatorname{cost}_z(f(C)) cost z ( f ( C )) and cost g , z ( f ( C ) ) \operatorname{cost}_{g,z}(f(C)) cost g , z ( f ( C )) . The inequality ( a + b ) z ≤ 2 z − 1 ( a z + b z ) (a+b)^z \le2^{z-1}(a^z+b^z) ( a + b ) z ≤ 2 z − 1 ( a z + b z ) introduces a factor 2 z − 1 2^{z-1} 2 z − 1 in (4) . Consequently, the analogues of (13) –(14) for cost g , z \operatorname{cost}_{g,z} cost g , z have multiplicative factor ( 1 + ε ) ( 1 + 2 z + 2 θ ) (1+\varepsilon)(1+2^{z+2}\theta) ( 1 + ε ) ( 1 + 2 z + 2 θ ) , after rescaling constants. We therefore add the condition θ ≤ ε / ( 100 ⋅ 2 z + 2 ) \theta\le\varepsilon/(100\cdot2^{z+2}) θ ≤ ε / ( 100 ⋅ 2 z + 2 ) to the choice of θ \theta θ in the proof of Theorem 1.2. The application of Theorem 3.3 is unchanged.
Combining the z z z -th power versions of (13) –(14) and (15) –(18) gives an upper bound on cost z ( C ) \operatorname{cost}_z(C) cost z ( C ) in terms of cost z ( f ( C ) ) \operatorname{cost}_z(f(C)) cost z ( f ( C )) and an upper bound on cost z ( f ( C ) ) \operatorname{cost}_z(f(C)) cost z ( f ( C )) in terms of cost z ( C ) \operatorname{cost}_z(C) cost z ( C ) , each with multiplicative factor 1 + O ( ε ) 1+O(\varepsilon) 1 + O ( ε ) and additive term O ( ε ∑ ( x , y ) ∈ S ∥ y − c ∗ ( y ) ∥ z + ε OPT z / n 8 ) O\left(\varepsilon\sum_{(x,y)\in S}\lVert y-c^*(y)\rVert^z+\varepsilon\operatorname{OPT}_z/n^8\right) O ( ε ∑ ( x , y ) ∈ S ∥ y − c ∗ ( y ) ∥ z + ε OPT z / n 8 ) . Applying Markov’s inequality to the z z z -th power version of (19) then gives (5) and (6) with cost z \operatorname{cost}_z cost z and OPT z \operatorname{OPT}_z OPT z , with probability at least 4 / 5 4/5 4/5 . Thus the hypotheses of Lemma 3.7 are satisfied, and its proof applies to cost z \operatorname{cost}_z cost z .
Since the pairwise distance estimates use ε ′ = Θ ( ε / z ) \varepsilon'=\Theta(\varepsilon/z) ε ′ = Θ ( ε / z ) , Lemma 2.5 gives the leading factor z 2 z^2 z 2 . The net size contributes ddim log ( z / ε ) \operatorname{ddim}\log(z/\varepsilon) ddim log ( z / ε ) , while the additional restriction on θ \theta θ contributes O ( z ) O(z) O ( z ) to log ( 1 / δ ) \log(1/\delta) log ( 1/ δ ) through δ ≤ θ 7 / 600 \delta\le\theta^7/600 δ ≤ θ 7 /600 . Together with Lemma 2.8, this gives the target dimension t = O ( z 2 ε − 2 ( ddim log ( z / ε ) + log k + log log n + z ) ) t=O\left(z^2\varepsilon^{-2}\left(\operatorname{ddim}\log(z/\varepsilon)+\log k+\log\log n+z\right)\right) t = O ( z 2 ε − 2 ( ddim log ( z / ε ) + log k + log log n + z ) ) .
We next consider Theorem 1.3, showing that its guarantees also extend to preserving cost z ( P ) \operatorname{cost}_z(\mathcal{P}) cost z ( P ) within a factor of 1 ± ε 1\pm\varepsilon 1 ± ε , simultaneously for all partitions P \mathcal{P} P of X X X into k k k clusters.
Aspect ratio. For the proof of Theorem 1.3, we require that, for every fixed A , B ⊆ X A,B\subseteq X A , B ⊆ X , with probability at least 1 − δ 1-\delta 1 − δ ,
∑ x ∈ A , y ∈ B ∥ f ( x ) − f ( y ) ∥ z ∈ ( 1 ± ε ) ∑ x ∈ A , y ∈ B ∥ x − y ∥ z \sum_{x\in A,y\in B}\lVert f(x)-f(y)\rVert^z \in(1\pm\varepsilon)\sum_{x\in A,y\in B}\lVert x-y\rVert^z x ∈ A , y ∈ B ∑ ∥ f ( x ) − f ( y ) ∥ z ∈ ( 1 ± ε ) x ∈ A , y ∈ B ∑ ∥ x − y ∥ z
To this end we apply [36 Theorem 3.5] with one cluster, distortion parameter ε ′ \varepsilon' ε ′ , and failure probability δ \delta δ , to the multiset Z A , B = { ± ( x − y ) : x ∈ A , y ∈ B } Z_{A,B}=\{\pm(x-y):x\in A,y\in B\} Z A , B = { ± ( x − y ) : x ∈ A , y ∈ B } . By symmetry and convexity, the origin is an optimal center both before and after applying f f f , so the one-cluster costs are twice the two sums above. Thus it suffices to take t = O ( z 2 ε − 2 ( log ( 1 / δ ) + z log ( z / ε ) + z 2 ) ) t=O\left(z^2\varepsilon^{-2}\left(\log(1/\delta)+z\log(z/\varepsilon)+z^2\right)\right) t = O ( z 2 ε − 2 ( log ( 1/ δ ) + z log ( z / ε ) + z 2 ) ) .
We also need that, for every x , y ∈ X x,y\in X x , y ∈ X ,
E [ max { ∥ f ( x ) − f ( y ) ∥ z − ( 1 + ε ) ∥ x − y ∥ z , 0 } ] ≤ ρ ∥ x − y ∥ z . (30) \mathbb{E}\left[\max\left\{\lVert f(x)-f(y)\rVert^z-(1+\varepsilon)\lVert x-y\rVert^z,0\right\}\right]\le\rho\lVert x-y\rVert^z. \tag*{(30)} E [ max { ∥ f ( x ) − f ( y ) ∥ z − ( 1 + ε ) ∥ x − y ∥ z , 0 } ] ≤ ρ ∥ x − y ∥ z . (30)
To this end, we apply [36 Definition 2.1, Lemma C.1, and Claim C.2] with parameter ε ′ \varepsilon' ε ′ and use ( 1 + ε ′ ) z ≤ 1 + ε (1+\varepsilon')^z\le1+\varepsilon ( 1 + ε ′ ) z ≤ 1 + ε , hence it suffices to take t = O ( z 2 ε − 2 ( z + log ( 1 / ρ ) ) ) t=O\left(z^2\varepsilon^{-2}\left(z+\log(1/\rho)\right)\right) t = O ( z 2 ε − 2 ( z + log ( 1/ ρ ) ) ) .
Use ε ′ \varepsilon' ε ′ in Definition 3.1 and apply Lemma 2.5 with this parameter. The proof of Lemma 3.9 applies to cost z \operatorname{cost}_z cost z with λ z = 4 k 2 Δ z \lambda_z=4k^2\Delta^z λ z = 4 k 2 Δ z .
The inequalities in (29) give the following z z z -th power version of (26) :
∥ ∥ x − y ∥ z − 1 ∣ P x ∗ ∣ ∣ P y ∗ ∣ ∑ x ′ ∈ P x ∗ , y ′ ∈ P y ∗ ∥ x ′ − y ′ ∥ z ∥ ≤ γ ∥ x − y ∥ z + ( 4 z γ ) z − 1 ( 1 ∣ P x ∗ ∣ ∑ x ′ ∈ P x ∗ ∥ x − x ′ ∥ z + 1 ∣ P y ∗ ∣ ∑ y ′ ∈ P y ∗ ∥ y − y ′ ∥ z ) . (31) \left\lVert\lVert x-y\rVert^z-\frac{1}{\lvert P_x^*\rvert\lvert P_y^*\rvert}\sum_{x'\in P_x^*,y'\in P_y^*}\lVert x'-y'\rVert^z\right\rVert
\le\gamma\lVert x-y\rVert^z+\left(\frac{4z}{\gamma}\right)^{z-1}\left(\frac{1}{\lvert P_x^*\rvert}\sum_{x'\in P_x^*}\lVert x-x'\rVert^z+\frac{1}{\lvert P_y^*\rvert}\sum_{y'\in P_y^*}\lVert y-y'\rVert^z\right). \tag*{(31)} ∥ x − y ∥ z − ∣ P x ∗ ∣ ∣ P y ∗ ∣ 1 x ′ ∈ P x ∗ , y ′ ∈ P y ∗ ∑ ∥ x ′ − y ′ ∥ z ≤ γ ∥ x − y ∥ z + ( γ 4 z ) z − 1 ∣ P x ∗ ∣ 1 x ′ ∈ P x ∗ ∑ ∥ x − x ′ ∥ z + ∣ P y ∗ ∣ 1 y ′ ∈ P y ∗ ∑ ∥ y − y ′ ∥ z . (31)
Define
D z = ∑ ( x , y ) ∈ S ( 1 ∣ P x ∗ ∣ ∑ x ′ ∈ P x ∗ ( ∥ x − x ′ ∥ z + ∥ f ( x ) − f ( x ′ ) ∥ z ) + 1 ∣ P y ∗ ∣ ∑ y ′ ∈ P y ∗ ( ∥ y − y ′ ∥ z + ∥ f ( y ) − f ( y ′ ) ∥ z ) ) . \begin{aligned}
D_z = \sum_{(x,y)\in S} \Biggl(&\frac{1}{|P_x^*|}\sum_{x'\in P_x^*}\left(\lVert x-x'\rVert^z+\lVert f(x)-f(x')\rVert^z\right)\\
&+\frac{1}{|P_y^*|}\sum_{y'\in P_y^*}\left(\lVert y-y'\rVert^z+\lVert f(y)-f(y')\rVert^z\right)\Biggr).
\end{aligned} D z = ( x , y ) ∈ S ∑ ( ∣ P x ∗ ∣ 1 x ′ ∈ P x ∗ ∑ ( ∥ x − x ′ ∥ z + ∥ f ( x ) − f ( x ′ ) ∥ z ) + ∣ P y ∗ ∣ 1 y ′ ∈ P y ∗ ∑ ( ∥ y − y ′ ∥ z + ∥ f ( y ) − f ( y ′ ) ∥ z ) ) .
Choosing the parameter ρ \rho ρ in (30) to satisfy ρ ≤ θ \rho\le\theta ρ ≤ θ , the z z z -th power calculations in (27) and (28) give
E [ D z ] ≤ 40 ( 1 + ε ) θ k λ z ⋅ O P T z . \mathbb{E}[D_z]\le40(1+\varepsilon)\theta k\lambda_z\cdot\mathrm{OPT}_z. E [ D z ] ≤ 40 ( 1 + ε ) θ k λ z ⋅ OPT z .
Hence, by Markov’s inequality, D z ≤ 400 ( 1 + ε ) θ k λ z ⋅ O P T z D_z\le400(1+\varepsilon)\theta k\lambda_z\cdot\mathrm{OPT}_z D z ≤ 400 ( 1 + ε ) θ k λ z ⋅ OPT z with probability at least 9 / 10 9/10 9/10 . The inequality ( a + b ) z ≤ 2 z − 1 ( a z + b z ) (a+b)^z\le2^{z-1}(a^z+b^z) ( a + b ) z ≤ 2 z − 1 ( a z + b z ) introduces a factor 2 z − 1 2^{z-1} 2 z − 1 in (4) . Consequently, the z z z -th power versions of (24) and (25) hold with multiplicative factor ( 1 + 2 z + 2 θ ) / ( 1 − ε ) (1+2^{z+2}\theta)/(1-\varepsilon) ( 1 + 2 z + 2 θ ) / ( 1 − ε ) . Summing (31) over S S S for the original points and their images under f f f , and using these versions of (24) and (25) , gives
cost z ( C ) ≤ A ( cost z ( f ( C ) ) + Γ ) , \operatorname{cost}_z(C)\le A\left(\operatorname{cost}_z(f(C))+\Gamma\right), cost z ( C ) ≤ A ( cost z ( f ( C )) + Γ ) ,
cost z ( f ( C ) ) ≤ A ( cost z ( C ) + Γ ) . \operatorname{cost}_z(f(C))\le A\left(\operatorname{cost}_z(C)+\Gamma\right). cost z ( f ( C )) ≤ A ( cost z ( C ) + Γ ) .
where
A = ( 1 + γ ) ( 1 + 2 z + 2 θ ) ( 1 − γ ) ( 1 − ε ) , Γ = 400 ( 1 + ε ) ( 4 z γ ) z − 1 λ z θ k O P T z . A=\frac{(1+\gamma)(1+2^{z+2}\theta)}{(1-\gamma)(1-\varepsilon)},\qquad
\Gamma=400(1+\varepsilon)\left(\frac{4z}{\gamma}\right)^{z-1}\lambda_z\theta k\mathrm{OPT}_z. A = ( 1 − γ ) ( 1 − ε ) ( 1 + γ ) ( 1 + 2 z + 2 θ ) , Γ = 400 ( 1 + ε ) ( γ 4 z ) z − 1 λ z θ k OPT z .
For every random C ⊆ X C\subseteq X C ⊆ X that may depend on f f f , these inequalities hold with probability at least 4 / 5 4/5 4/5 : the bound on D z D_z D z fails with probability at most 1 / 10 1/10 1/10 , and preservation of the k 2 k^2 k 2 reference-cluster sums fails with probability at most k 2 δ ≤ 1 / 10 k^2\delta\le1/10 k 2 δ ≤ 1/10 . Accordingly, in the proof of Theorem 1.3, choose
θ = min { ε 100 ⋅ 2 z + 2 , ε 800 ( 1 + ε ) 3 λ z k 2 ( γ 4 z ) z − 1 } , δ = min { θ 7 600 , 1 10 k 3 } , ρ = θ . \theta=\min\left\{\frac{\varepsilon}{100\cdot2^{z+2}},\frac{\varepsilon}{800(1+\varepsilon)^3\lambda_z k^2}\left(\frac{\gamma}{4z}\right)^{z-1}\right\},\qquad
\delta=\min\left\{\frac{\theta^7}{600},\frac{1}{10k^3}\right\},\qquad
\rho=\theta. θ = min { 100 ⋅ 2 z + 2 ε , 800 ( 1 + ε ) 3 λ z k 2 ε ( 4 z γ ) z − 1 } , δ = min { 600 θ 7 , 10 k 3 1 } , ρ = θ .
With γ = ε / 10 \gamma=\varepsilon/10 γ = ε /10 , these choices give A ≤ ( 1 + ε ) 2 A\le(1+\varepsilon)^2 A ≤ ( 1 + ε ) 2 and A Γ ≤ ε O P T z / ( 2 k ) A\Gamma\le\varepsilon\mathrm{OPT}_z/(2k) A Γ ≤ ε OPT z / ( 2 k ) . Thus Lemma 3.7 applies to cost z \operatorname{cost}_z cost z . These parameters satisfy log ( 1 / δ ) = O ( z log ( z / ε ) + log k + z log Δ ) \log(1/\delta)=O(z\log(z/\varepsilon)+\log k+z\log\Delta) log ( 1/ δ ) = O ( z log ( z / ε ) + log k + z log Δ ) . This gives the target dimension t = O ( z 4 ε − 2 ( log ( z / ε ) + log k + z log Δ ) ) t=O(z^4\varepsilon^{-2}(\log(z/\varepsilon)+\log k+z\log\Delta)) t = O ( z 4 ε − 2 ( log ( z / ε ) + log k + z log Δ )) .
Lower Bounds
We next prove lower bounds for the two parameters that appear in the dimension reduction theorems above. The first construction rules out a target dimension that is independent of ddim ( X ) \operatorname{ddim}(X) ddim ( X ) . The second construction rules out a constant target dimension when ddim ( X ) = O ( 1 ) \operatorname{ddim}(X)=O(1) ddim ( X ) = O ( 1 ) and the number of distance scales grows. We allow multisets for convenience, as multiplicities can be simulated by placing distinct points arbitrarily close together.
Theorem 3.10 (Lower Bounds for For-All Preservation). There is a universal constant c > 0 c>0 c > 0 such that the following hold.
For infinitely many n n n , there is a set X ⊆ R d X\subseteq\mathbb{R}^d X ⊆ R d of size n n n and doubling dimension ddim ( X ) = Θ ( log n ) \operatorname{ddim}(X)=\Theta(\log n) ddim ( X ) = Θ ( log n ) such that a Gaussian JL map with target dimension t ≤ c ε − 2 ddim ( X ) t\le c\varepsilon^{-2}\operatorname{ddim}(X) t ≤ c ε − 2 ddim ( X ) fails, with constant probability, to preserve the min-sum 2-clustering cost of all partitions of X X X .
For infinitely many n n n , there is a set X ⊆ R d X\subseteq\mathbb{R}^d X ⊆ R d of size n n n and constant doubling dimension such that a Gaussian JL map with target dimension t ≤ c ε − 2 log log n t\le c\varepsilon^{-2}\log\log n t ≤ c ε − 2 log log n fails, with constant probability, to preserve the min-sum 2-clustering cost of all partitions of X X X .
Proof. We first give the lower bound showing that a dependence on ddim ( X ) \operatorname{ddim}(X) ddim ( X ) is necessary. Let d d d be large and set k = 2 k = 2 k = 2 . Define the multiset
X = { 0 d } n ∪ { e 1 , … , e n } , X = \{0_d\}^{n} \cup\{e_1,\ldots,e_{\sqrt{n}}\}, X = { 0 d } n ∪ { e 1 , … , e n } ,
where { e i } \{e_i\} { e i } are standard basis vectors in R d \mathbb{R}^d R d . The distinct points of X X X have doubling dimension Θ ( log n ) \Theta(\log n) Θ ( log n ) : the n \sqrt{n} n basis vectors are a constant-scale packing inside a constant-radius ball, and the total number of distinct points is n + 1 \sqrt{n}+1 n + 1 .
Consider the partition
C 1 ∗ = { 0 d } n , C 2 ∗ = { e 1 , … , e n } . C_1^* = \{0_d\}^{n}, \qquad C_2^* = \{e_1,\ldots,e_{\sqrt{n}}\}. C 1 ∗ = { 0 d } n , C 2 ∗ = { e 1 , … , e n } .
The cost satisfies
cost ( C 2 ∗ ) = ∑ i ≠ j ∥ e i − e j ∥ = 2 n ( n − 1 ) ≤ 2 n , \operatorname{cost}(C_2^*) = \sum_{i\ne j}\lVert e_i-e_j\rVert= \sqrt{2}\sqrt{n}(\sqrt{n}-1) \le\sqrt{2}n, cost ( C 2 ∗ ) = i = j ∑ ∥ e i − e j ∥ = 2 n ( n − 1 ) ≤ 2 n ,
while cost ( C 1 ∗ ) = 0 \operatorname{cost}(C_1^*) = 0 cost ( C 1 ∗ ) = 0 . Suppose, toward a contradiction, that there is another optimal partition { C 1 , C 2 } \{C_1,C_2\} { C 1 , C 2 } . Then some e i e_i e i is clustered with at least one copy of 0 d 0_d 0 d . Without loss of generality, assume e i ∈ C 1 e_i \in C_1 e i ∈ C 1 and all zeros are in C 1 C_1 C 1 , since moving all zeros into C 1 C_1 C 1 only lowers the cost. If there is another e j ∈ C 1 e_j \in C_1 e j ∈ C 1 with j ≠ i j\ne i j = i , then cost ( C 1 ) ≥ 2 n \operatorname{cost}(C_1) \ge2n cost ( C 1 ) ≥ 2 n , contradicting optimality. Hence C 1 = { 0 d } n ∪ { e i } C_1 = \{0_d\}^{n} \cup\{e_i\} C 1 = { 0 d } n ∪ { e i } and C 2 = { e j : j ≠ i } C_2 = \{e_j:j\ne i\} C 2 = { e j : j = i } . But then
cost ( C 1 ) = 2 n , cost ( C 2 ) = 2 ( n − 1 ) ( n − 2 ) > n , \operatorname{cost}(C_1) = 2n, \qquad\operatorname{cost}(C_2) = \sqrt{2}(\sqrt{n}-1)(\sqrt{n}-2) > n, cost ( C 1 ) = 2 n , cost ( C 2 ) = 2 ( n − 1 ) ( n − 2 ) > n ,
so the total cost exceeds 2 n 2n 2 n , again a contradiction. Thus the displayed partition is the unique optimum.
Let π : R d → R t \pi:\mathbb{R}^d \to\mathbb{R}^t π : R d → R t be a JL projection with O ( ε − 2 log ( 1 / ε ) ) ≤ t ≤ c ε − 2 ddim ( X ) O(\varepsilon^{-2}\log(1/\varepsilon)) \le t \le c\varepsilon^{-2}\operatorname{ddim}(X) O ( ε − 2 log ( 1/ ε )) ≤ t ≤ c ε − 2 ddim ( X ) for a sufficiently small universal constant c > 0 c>0 c > 0 . Since ddim ( X ) = Θ ( log n ) \operatorname{ddim}(X)=\Theta(\log n) ddim ( X ) = Θ ( log n ) , the choice of c c c will make the lower-tail probability below large enough. Set η = 40 ε \eta=40\varepsilon η = 40 ε . By [29 Lemma 6.3] , for a χ t 2 \chi_t^2 χ t 2 random variable X t X_t X t ,
Pr [ X t < t 1 + η ] ≥ e − C 0 η 2 t t . \Pr\left[X_t < \frac{t}{1+\eta}\right] \ge\frac{e^{-C_0\eta^2t}}{t}. Pr [ X t < 1 + η t ] ≥ t e − C 0 η 2 t .
Choosing the universal constant c c c sufficiently small gives C 0 η 2 t ≤ 1 100 log n C_0\eta^2t \le\frac{1}{100}\log n C 0 η 2 t ≤ 100 1 log n . Taking n n n sufficiently large as a function of ε \varepsilon ε , the right-hand side is then at least 10 n \frac{10}{\sqrt{n}} n 10 . Since
1 1 + η ≤ 1 − 10 ε for 0 < ε < 1 / 40 , \sqrt{\frac{1}{1+\eta}} \le1-10\varepsilon\qquad\text{for }0<\varepsilon<1/40, 1 + η 1 ≤ 1 − 10 ε for 0 < ε < 1/40 ,
we obtain, for each i i i ,
Pr [ ∥ π e i ∥ ≤ 1 − 10 ε ] ≥ 10 n . \Pr\left[\lVert\pi e_i\rVert\le1-10\varepsilon\right] \ge\frac{10}{\sqrt{n}}. Pr [ ∥ π e i ∥ ≤ 1 − 10 ε ] ≥ n 10 .
By independence,
Pr [ ∀ i ∈ [ n ] , ∥ π e i ∥ > 1 − 10 ε ] ≤ 1 10 . \Pr\left[\forall i\in[\sqrt{n}],\ \lVert\pi e_i\rVert> 1-10\varepsilon\right] \le\frac{1}{10}. Pr [ ∀ i ∈ [ n ] , ∥ π e i ∥ > 1 − 10 ε ] ≤ 10 1 .
Thus, with probability at least 9 / 10 9/10 9/10 , there exists i ∗ i^* i ∗ such that
∥ π e i ∗ ∥ ≤ 1 − 10 ε . (32) \lVert\pi e_{i^*}\rVert\le1-10\varepsilon. \tag*{(32)} ∥ π e i ∗ ∥ ≤ 1 − 10 ε . (32)
Additionally, by [Dan21, Lemma 2.1.9], with probability at least 9 / 10 9/10 9/10 ,
∑ i ≠ j ∥ π ( e i ) − π ( e j ) ∥ ∈ ( 1 ± ε ) ∑ i ≠ j ∥ e i − e j ∥ . (33) \sum_{i\ne j}\lVert\pi(e_i)-\pi(e_j)\rVert\in(1\pm\varepsilon)\sum_{i\ne j}\lVert e_i-e_j\rVert. \tag*{(33)} i = j ∑ ∥ π ( e i ) − π ( e j )∥ ∈ ( 1 ± ε ) i = j ∑ ∥ e i − e j ∥ . (33)
By a union bound, both events occur with probability at least 8/10. Consider the partition
C 1 = { 0 d } n ∪ { e i ∗ } , C 2 = { e i : i ≠ i ∗ } . C_1 = \{0_d\}^{n} \cup\{e_{i^*}\}, \qquad C_2 = \{e_i : i \ne i^*\}. C 1 = { 0 d } n ∪ { e i ∗ } , C 2 = { e i : i = i ∗ } .
Its original cost is
cost ( C 1 , C 2 ) = ( 2 + 2 ) n − 3 2 n + O ( 1 ) . \operatorname{cost}(C_1,C_2) = (2+\sqrt{2})n - 3\sqrt{2}\sqrt{n} + O(1). cost ( C 1 , C 2 ) = ( 2 + 2 ) n − 3 2 n + O ( 1 ) .
After projection, using (32) and (33) ,
cost ( π ( C 1 ) , π ( C 2 ) ) ≤ 2 n ( 1 − 10 ε ) + ( 1 + ε ) 2 n ( n − 1 ) ≤ ( 2 + 2 ) n − 15 ε n − 4 2 n < ( 1 − ε ) cost ( C 1 , C 2 ) . \begin{aligned}
\operatorname{cost}(\pi(C_1),\pi(C_2)) &\le2n(1-10\varepsilon) + (1+\varepsilon)\sqrt{2}\sqrt{n}(\sqrt{n}-1) \\
&\le(2+\sqrt{2})n - 15\varepsilon n - 4\sqrt{2}\sqrt{n} \\
&< (1-\varepsilon)\operatorname{cost}(C_1,C_2).
\end{aligned} cost ( π ( C 1 ) , π ( C 2 )) ≤ 2 n ( 1 − 10 ε ) + ( 1 + ε ) 2 n ( n − 1 ) ≤ ( 2 + 2 ) n − 15 ε n − 4 2 n < ( 1 − ε ) cost ( C 1 , C 2 ) .
for ε ∈ ( 3 2 / n , 1 / 40 ) \varepsilon\in(3\sqrt{2}/\sqrt{n},1/40) ε ∈ ( 3 2 / n , 1/40 ) . Thus the clustering cost is not preserved.
For the constant-doubling lower bound, let m ≤ d m \le d m ≤ d and define
X = { 2 i e i : i ∈ [ m ] } ∪ { 0 d } m 3 2 m . X = \{2^i e_i : i \in[m]\} \cup\{0_d\}^{m^{3^2m}}. X = { 2 i e i : i ∈ [ m ]} ∪ { 0 d } m 3 2 m .
This set has constant doubling dimension and satisfies log m = Θ ( log log ∣ X ∣ ) \log m = \Theta(\log\log|X|) log m = Θ ( log log ∣ X ∣ ) . Indeed, the nonzero points lie on exponentially separated scales, and every ball is covered by a constant number of balls of half the radius; adding repeated copies of the origin does not change the doubling dimension. As before, applying the same tail estimate with η = 40 ε \eta= 40\varepsilon η = 40 ε , for
O ( ε − 2 log ( 1 / ε ) ) ≤ t ≤ c ε − 2 log m , O(\varepsilon^{-2}\log(1/\varepsilon)) \le t \le c\varepsilon^{-2}\log m, O ( ε − 2 log ( 1/ ε )) ≤ t ≤ c ε − 2 log m ,
where c > 0 c > 0 c > 0 is sufficiently small. Taking m m m sufficiently large as a function of ε \varepsilon ε , the lower-tail probability for each direction is at least 10 / m 10/m 10/ m , and therefore with probability at least 9 / 10 9/10 9/10 there exists i ∗ i^* i ∗ such that ∥ π e i ∗ ∥ ≤ 1 − 10 ε \|\pi e_{i^*}\| \le1-10\varepsilon ∥ π e i ∗ ∥ ≤ 1 − 10 ε , and with probability at least 9 / 10 9/10 9/10 ,
∑ i ≠ j ∥ π ( 2 i e i ) − π ( 2 j e j ) ∥ ∈ ( 1 ± ε ) ∑ i ≠ j ∥ 2 i e i − 2 j e j ∥ . \sum_{i\ne j}\|\pi(2^i e_i)-\pi(2^j e_j)\| \in(1\pm\varepsilon)\sum_{i\ne j}\|2^i e_i-2^j e_j\|. i = j ∑ ∥ π ( 2 i e i ) − π ( 2 j e j ) ∥ ∈ ( 1 ± ε ) i = j ∑ ∥ 2 i e i − 2 j e j ∥.
Consider the partition
C 1 = { 0 d } m 3 2 m ∪ { 2 i ∗ e i ∗ } , C 2 = { 2 i e i : i ≠ i ∗ } . C_1 = \{0_d\}^{m^{3^2m}} \cup\{2^{i^*}e_{i^*}\}, \qquad C_2 = \{2^i e_i : i \ne i^*\}. C 1 = { 0 d } m 3 2 m ∪ { 2 i ∗ e i ∗ } , C 2 = { 2 i e i : i = i ∗ } .
Let
A = m 3 2 m ⋅ 2 i ∗ , T = ∑ i , j ≠ i ∗ ∥ 2 i e i − 2 j e j ∥ . A = m^{3^2m}\cdot2^{i^*}, \qquad T = \sum_{i,j\ne i^*}\|2^i e_i-2^j e_j\|. A = m 3 2 m ⋅ 2 i ∗ , T = i , j = i ∗ ∑ ∥ 2 i e i − 2 j e j ∥.
Then cost ( C 1 , C 2 ) = 2 A + T \operatorname{cost}(C_1,C_2) = 2A+T cost ( C 1 , C 2 ) = 2 A + T . Moreover,
S : = ∑ i ≠ j ∥ 2 i e i − 2 j e j ∥ = O ( m 2 m ) . S := \sum_{i\ne j}\|2^i e_i-2^j e_j\| = O(m^{2m}). S := i = j ∑ ∥ 2 i e i − 2 j e j ∥ = O ( m 2 m ) .
Since A ≥ 2 m 3 2 m A \ge2m^{3^2m} A ≥ 2 m 3 2 m and ε > 1 / m \varepsilon> 1/m ε > 1/ m , for m m m sufficiently large we have S ≤ ε A S \le\varepsilon A S ≤ ε A . Thus the contribution of the cluster containing the origin dominates the cost of the second cluster. After projection,
cost ( π ( C 1 ) , π ( C 2 ) ) ≤ 2 ( 1 − 10 ε ) A + ( 1 + ε ) S ≤ 2 ( 1 − 8 ε ) A < ( 1 − ε ) ( 2 A + T ) = ( 1 − ε ) cost ( C 1 , C 2 ) . \begin{aligned}
\operatorname{cost}(\pi(C_1),\pi(C_2)) &\le2(1-10\varepsilon)A \\
&\quad+ (1+\varepsilon)S \\
&\le2(1-8\varepsilon)A \\
&< (1-\varepsilon)(2A+T) = (1-\varepsilon)\operatorname{cost}(C_1,C_2).
\end{aligned} cost ( π ( C 1 ) , π ( C 2 )) ≤ 2 ( 1 − 10 ε ) A + ( 1 + ε ) S ≤ 2 ( 1 − 8 ε ) A < ( 1 − ε ) ( 2 A + T ) = ( 1 − ε ) cost ( C 1 , C 2 ) .
for ε ∈ ( 1 / m , 1 / 40 ) \varepsilon\in(1/m,1/40) ε ∈ ( 1/ m , 1/40 ) . This proves the second item.
One may hope to bypass these lower bounds by preserving only a restricted family of solutions, for instance the O ( 1 ) O(1) O ( 1 ) -approximate partitions, while arguing that all other partitions remain too expensive after the projection (to not affect the projected optimum). This relaxation does not remove the obstruction: there are constant-doubling variants of the examples above in which, with constant probability, even an O ( 1 ) O(1) O ( 1 ) -approximate partition has its min-sum cost distorted by a 1 ± ε 1 \pm\varepsilon 1 ± ε factor. Thus the difficulty is not only that irrelevant high-cost partitions may become cheap after projection, but rather the family of near-optimal partitions might not be multiplicatively preserved. We omit the details.
Movement Coresets for Min-Sum k k k -Clustering
We prove a density-adaptive movement-coreset construction for doubling metrics. The proof first develops a fast annular construction, which is then used as an intermediate reduction before applying the density-adaptive movement scales.
Theorem 1.4 (Density-adaptive coreset). Let ( X , dist ) (X,\operatorname{dist}) ( X , dist ) be an n n n -point metric space of doubling dimension at most ddim ≥ 1 \operatorname{ddim} \ge1 ddim ≥ 1 . Then for every 0 < ε < 1 2 0 < \varepsilon< \frac{1}{2} 0 < ε < 2 1 , there is a movement-based ε \varepsilon ε -coreset ( S , w ) (S,w) ( S , w ) of size
∣ S ∣ ≤ ( 1 ε ) O ( ddim ) k log n , |S| \le\left(\frac{1}{\varepsilon}\right)^{O(\operatorname{ddim})} k \log n, ∣ S ∣ ≤ ( ε 1 ) O ( ddim ) k log n , whose movement rule is the nearest-neighbor map. Moreover, such a coreset can be constructed in randomized near-linear time with high probability.
We use the movement-coreset terminology from the introduction. Throughout this section, unless stated otherwise, once a representative set S S S is constructed, π \pi π denotes the nearest-neighbor movement rule induced by S S S , with ties broken by a fixed rule, and the weights are w ( s ) = ∣ π − 1 ( s ) ∣ w(s) = |\pi^{-1}(s)| w ( s ) = ∣ π − 1 ( s ) ∣ for every s ∈ S s \in S s ∈ S .
For a weighted set ( S , w ) (S,w) ( S , w ) and a partition Q \mathcal{Q} Q of S S S , define
cost S , w ( Q ) = ∑ Q ∈ Q ∑ s , t ∈ Q w ( s ) w ( t ) dist ( s , t ) , \operatorname{cost}_{S,w}(\mathcal{Q}) = \sum_{Q \in\mathcal{Q}} \sum_{s,t \in Q} w(s)w(t)\operatorname{dist}(s,t), cost S , w ( Q ) = Q ∈ Q ∑ s , t ∈ Q ∑ w ( s ) w ( t ) dist ( s , t ) ,
and, once a movement rule π : X → S \pi: X \to S π : X → S is fixed, lift Q \mathcal{Q} Q to X X X by assigning each x ∈ X x \in X x ∈ X to the part of Q \mathcal{Q} Q containing π ( x ) \pi(x) π ( x ) . For a weighted instance ( Y , w ) (Y,w) ( Y , w ) , let
OPT Y , w = min Q cost Y , w ( Q ) , \operatorname{OPT}_{Y,w} = \min_{\mathcal{Q}} \operatorname{cost}_{Y,w}(\mathcal{Q}), OPT Y , w = Q min cost Y , w ( Q ) ,
where the minimum is over all partitions of Y Y Y into at most k k k parts.
We will also use the balanced k k k -median view of min-sum. For a weighted cluster A A A with weights w x w_x w x , write
W ( A ) = ∑ x ∈ A w x W(A) = \sum_{x \in A} w_x W ( A ) = x ∈ A ∑ w x
and define its balanced k k k -median cost by
cost b k m , w ( A ) = W ( A ) min p ∈ A ∑ x ∈ A w x dist ( x , p ) . \operatorname{cost}_{\mathrm{bkm},w}(A) = W(A) \min_{p \in A} \sum_{x \in A} w_x \operatorname{dist}(x,p). cost bkm , w ( A ) = W ( A ) p ∈ A min x ∈ A ∑ w x dist ( x , p ) .
The unweighted case is defined by setting every weight equal to 1. For a partition, cost b k m , w \operatorname{cost}_{\mathrm{bkm},w} cost bkm , w denotes the sum of these cluster costs. This is equivalent, up to a factor 2, to the weighted min-sum cost
∑ x , y ∈ A w x w y dist ( x , y ) . \sum_{x,y \in A} w_x w_y \operatorname{dist}(x,y). x , y ∈ A ∑ w x w y dist ( x , y ) .
Indeed, by averaging over p ∈ A p \in A p ∈ A with probability w p / W ( A ) w_p/W(A) w p / W ( A ) ,
cost b k m , w ( A ) ≤ ∑ x , y ∈ A w x w y dist ( x , y ) . \operatorname{cost}_{\mathrm{bkm},w}(A) \le\sum_{x,y\in A} w_xw_y \operatorname{dist}(x,y). cost bkm , w ( A ) ≤ x , y ∈ A ∑ w x w y dist ( x , y ) .
and by the triangle inequality, for every p ∈ A p \in A p ∈ A ,
∑ x , y ∈ A w x w y dist ( x , y ) ≤ 2 W ( A ) ∑ x ∈ A w x dist ( x , p ) . \sum_{x,y\in A} w_xw_y \operatorname{dist}(x,y) \le2W(A)\sum_{x\in A}w_x\operatorname{dist}(x,p). x , y ∈ A ∑ w x w y dist ( x , y ) ≤ 2 W ( A ) x ∈ A ∑ w x dist ( x , p ) .
Thus, whenever we pass between min-sum and balanced k k k -median below, we use these two inequalities.
We will also use the following bicriteria convention throughout the section. Some of the approximation algorithms we invoke may return O ( k ) O(k) O ( k ) clusters rather than exactly k k k . This is sufficient for our purposes: replacing k k k by O ( k ) O(k) O ( k ) in the constructions and analyses only changes constant factors. To keep the notation simple, we continue to write the constructions using k k k parts or k k k centers.
A Fast Annular Coreset
We begin with an annular coreset construction, which will later be used to reduce the input size before applying the density-adaptive construction.
Lemma 4.1 (Fast annular coreset). Let ( X , dist ) (X,\operatorname{dist}) ( X , dist ) be an n n n -point metric space of doubling dimension at most d d i m \mathrm{ddim} ddim . For every 0 < ε < 1 10 0 < \varepsilon< \frac{1}{10} 0 < ε < 10 1 , one can construct an ε \varepsilon ε -movement coreset ( S , w ) (S,w) ( S , w ) with S ⊆ X S \subseteq X S ⊆ X and
∣ S ∣ ≤ ( k ε ) O ( d d i m ) log n . |S| \le\left(\frac{k}{\varepsilon}\right)^{O(\mathrm{ddim})}\log n. ∣ S ∣ ≤ ( ε k ) O ( ddim ) log n . The associated movement rule is the nearest-neighbor map. Moreover, the construction can be implemented in randomized near-linear time.
Construction
We start by showing the construction, assuming we have a c c c -approximate reference solution for the balanced k k k -median formulation. Let R = { R 1 , … , R k } \mathcal{R} = \{R_1,\ldots,R_k\} R = { R 1 , … , R k } be the partition induced by this solution, let c i c_i c i be the center serving R i R_i R i , and let
OPT ^ = ∑ i = 1 k ∣ R i ∣ ∑ x ∈ R i dist ( x , c i ) ≤ c OPT . \widehat{\operatorname{OPT}} = \sum_{i=1}^{k}|R_i|\sum_{x\in R_i}\operatorname{dist}(x,c_i) \le c\operatorname{OPT}. OPT = i = 1 ∑ k ∣ R i ∣ x ∈ R i ∑ dist ( x , c i ) ≤ c OPT .
Let
r 0 = 20 OPT ^ , r j = r 0 / 2 j , j = 0 , … , L , r_0 = 20\widehat{\operatorname{OPT}}, \qquad r_j = r_0/2^j,\qquad j=0,\ldots,L, r 0 = 20 OPT , r j = r 0 / 2 j , j = 0 , … , L ,
where L = ⌈ log 2 ( 40 n 10 ) ⌉ L=\lceil\log_2(40n^{10})\rceil L = ⌈ log 2 ( 40 n 10 )⌉ . Let η \eta η be a parameter to be chosen later. For every i ∈ [ k ] i\in[k] i ∈ [ k ] and every j j j , take a maximal η r j \eta r_j η r j -packing of
X ∩ B ( c i , r j ) . X\cap B(c_i,r_j). X ∩ B ( c i , r j ) .
Let S S S be the union of these packings.
Lemma 4.2 (Annular movement). For every x ∈ X x\in X x ∈ X ,
dist ( x , π ( x ) ) ≤ 2 η max { min i ∈ [ k ] dist ( x , c i ) , OPT ^ n 10 } . \operatorname{dist}(x,\pi(x)) \le2\eta\max\left\{\min_{i\in[k]}\operatorname{dist}(x,c_i),\frac{\widehat{\operatorname{OPT}}}{n^{10}}\right\}. dist ( x , π ( x )) ≤ 2 η max { i ∈ [ k ] min dist ( x , c i ) , n 10 OPT } .
Proof. Let i i i be such that x ∈ R i x \in R_i x ∈ R i . Since x ∈ R i x \in R_i x ∈ R i , the term ∣ R i ∣ dist ( x , c i ) |R_i|\operatorname{dist}(x,c_i) ∣ R i ∣ dist ( x , c i ) is part of the balanced k k k -median reference cost, thus
dist ( x , c i ) ≤ OPT ^ . \operatorname{dist}(x,c_i) \le\widehat{\operatorname{OPT}}. dist ( x , c i ) ≤ OPT .
Hence min i dist ( x , c i ) ≤ OPT ^ \min_i \operatorname{dist}(x,c_i) \le\widehat{\operatorname{OPT}} min i dist ( x , c i ) ≤ OPT for every x x x . If min i dist ( x , c i ) ≤ OPT ^ / n 10 \min_i \operatorname{dist}(x,c_i) \le\widehat{\operatorname{OPT}}/n^{10} min i dist ( x , c i ) ≤ OPT / n 10 , then x x x belongs to the finest ball around the nearest reference median, and maximality of the packing gives movement at most O ( η OPT ^ / n 10 ) O(\eta\widehat{\operatorname{OPT}}/n^{10}) O ( η OPT / n 10 ) . Otherwise choose j j j such that
r j + 1 < min i dist ( x , c i ) ≤ r j . r_{j+1} < \min_i \operatorname{dist}(x,c_i) \le r_j. r j + 1 < i min dist ( x , c i ) ≤ r j .
The packing at scale r j r_j r j around a nearest reference median contains a point within distance η r j ≤ 2 η min i dist ( x , c i ) \eta r_j \le2\eta\min_i \operatorname{dist}(x,c_i) η r j ≤ 2 η min i dist ( x , c i ) from x x x .
Lemma 4.3 (Annular preservation). Let X X X have doubling dimension at most d d i m \mathrm{ddim} ddim , and let R R R be a c c c -approximate partition. For every 0 < ε < 1 / 10 0 < \varepsilon< 1/10 0 < ε < 1/10 , the annular construction with a sufficiently small
η = Θ ( ε c k ) \eta= \Theta\left(\frac{\varepsilon}{ck}\right) η = Θ ( c k ε ) gives an ε \varepsilon ε -movement coreset.
Proof. Fix a partition P \mathcal{P} P . In each cluster, orient every unordered pair { x , y } \{x,y\} { x , y } toward the endpoint whose cluster in R R R is larger. Thus if the oriented pair is ( x , y ) (x,y) ( x , y ) and y ∈ R ℓ y \in R_\ell y ∈ R ℓ , then the cluster containing y y y has size at least the cluster containing x x x .
By lemma 4.2, for such a pair,
dist ( x , π ( x ) ) ≤ O ( η ) ( dist ( x , c ℓ ) + OPT ^ n 10 ) ≤ O ( η ) ( dist ( x , y ) + dist ( y , c ℓ ) + OPT ^ n 10 ) , \operatorname{dist}(x,\pi(x)) \le O(\eta)\left(\operatorname{dist}(x,c_\ell) + \frac{\widehat{\operatorname{OPT}}}{n^{10}}\right) \le O(\eta)\left(\operatorname{dist}(x,y) + \operatorname{dist}(y,c_\ell) + \frac{\widehat{\operatorname{OPT}}}{n^{10}}\right), dist ( x , π ( x )) ≤ O ( η ) ( dist ( x , c ℓ ) + n 10 OPT ) ≤ O ( η ) ( dist ( x , y ) + dist ( y , c ℓ ) + n 10 OPT ) ,
and
dist ( y , π ( y ) ) ≤ O ( η ) ( dist ( y , c ℓ ) + OPT ^ n 10 ) . \operatorname{dist}(y,\pi(y)) \le O(\eta)\left(\operatorname{dist}(y,c_\ell) + \frac{\widehat{\operatorname{OPT}}}{n^{10}}\right). dist ( y , π ( y )) ≤ O ( η ) ( dist ( y , c ℓ ) + n 10 OPT ) .
The triangle inequality therefore gives both
dist ( x , y ) ≤ ( 1 + O ( η ) ) dist ( π ( x ) , π ( y ) ) + O ( η ) dist ( y , c ℓ ) + O ( η OPT ^ n 10 ) , (34) \operatorname{dist}(x,y) \le(1+O(\eta))\operatorname{dist}(\pi(x),\pi(y)) + O(\eta)\operatorname{dist}(y,c_\ell) + O\left(\eta\frac{\widehat{\operatorname{OPT}}}{n^{10}}\right), \tag*{(34)} dist ( x , y ) ≤ ( 1 + O ( η )) dist ( π ( x ) , π ( y )) + O ( η ) dist ( y , c ℓ ) + O ( η n 10 OPT ) , (34)
dist ( π ( x ) , π ( y ) ) ≤ ( 1 + O ( η ) ) dist ( x , y ) + O ( η ) dist ( y , c ℓ ) + O ( η OPT ^ n 10 ) . (35) \operatorname{dist}(\pi(x),\pi(y)) \le(1+O(\eta))\operatorname{dist}(x,y) + O(\eta)\operatorname{dist}(y,c_\ell) + O\left(\eta\frac{\widehat{\operatorname{OPT}}}{n^{10}}\right). \tag*{(35)} dist ( π ( x ) , π ( y )) ≤ ( 1 + O ( η )) dist ( x , y ) + O ( η ) dist ( y , c ℓ ) + O ( η n 10 OPT ) . (35)
It remains to sum the reference-median charge. Fix y ∈ R ℓ y \in R_\ell y ∈ R ℓ . The point y y y can be charged only by points whose reference cluster has size at most ∣ R ℓ ∣ |R_\ell| ∣ R ℓ ∣ , and there are at most k ∣ R ℓ ∣ k|R_\ell| k ∣ R ℓ ∣ such points. Hence, over all oriented pairs in all clusters,
∑ dist ( y , c ℓ ) ≤ k ∑ ℓ = 1 k ∣ R ℓ ∣ ∑ y ∈ R ℓ dist ( y , c ℓ ) . \sum\operatorname{dist}(y,c_\ell) \le k\sum_{\ell=1}^{k}|R_\ell|\sum_{y\in R_\ell}\operatorname{dist}(y,c_\ell). ∑ dist ( y , c ℓ ) ≤ k ℓ = 1 ∑ k ∣ R ℓ ∣ y ∈ R ℓ ∑ dist ( y , c ℓ ) .
By the definition of the balanced k k k -median reference cost,
∑ ℓ = 1 k ∣ R ℓ ∣ ∑ y ∈ R ℓ dist ( y , c ℓ ) = OPT ^ . \sum_{\ell=1}^{k}|R_\ell|\sum_{y\in R_\ell}\operatorname{dist}(y,c_\ell) = \widehat{\operatorname{OPT}}. ℓ = 1 ∑ k ∣ R ℓ ∣ y ∈ R ℓ ∑ dist ( y , c ℓ ) = OPT .
Therefore the total charge is at most k O P T ^ k\widehat{\mathrm{OPT}} k OPT . The floor term contributes at most O ( η O P T ^ / n 8 ) O(\eta\widehat{\mathrm{OPT}}/n^8) O ( η OPT / n 8 ) after summing over all pairs.
Summing (34) and (35) over the oriented pairs and using
O P T ^ ≤ c O P T ≤ c cost ( P ) \widehat{\mathrm{OPT}} \le c\mathrm{OPT} \le c\operatorname{cost}(\mathcal{P}) OPT ≤ c OPT ≤ c cost ( P )
shows that the total error is at most
O ( η c k ) cost ( P ) . O(\eta ck)\operatorname{cost}(\mathcal{P}). O ( η c k ) cost ( P ) .
Choosing the hidden constant in η = Θ ( ε / ( c k ) ) \eta= \Theta(\varepsilon/(ck)) η = Θ ( ε / ( c k )) sufficiently small gives the desired ε \varepsilon ε -movement guarantee.
Lemma 4.4 (Annular movement-charge bound). Under the assumptions of Lemma 4.3, the annular movement rule π : X → S \pi:X\to S π : X → S can be made to satisfy, for every k k k -partition P \mathcal{P} P of X X X ,
∑ A ∈ P ∣ A ∣ ∑ x ∈ A dist ( x , π ( x ) ) ≤ ε cost ( P ) , \sum_{A\in\mathcal{P}} |A|\sum_{x\in A}\operatorname{dist}(x,\pi(x)) \le\varepsilon\operatorname{cost}(\mathcal{P}), A ∈ P ∑ ∣ A ∣ x ∈ A ∑ dist ( x , π ( x )) ≤ ε cost ( P ) , by choosing η = C 0 ε / ( c k ) \eta=C_0\varepsilon/(ck) η = C 0 ε / ( c k ) for small enough constant C 0 > 0 C_0>0 C 0 > 0 .
Proof. For every pair of points in a cluster, label the endpoints so that y ∈ R ℓ y\in R_\ell y ∈ R ℓ belongs to the larger reference cluster. By Lemma 4.2,
dist ( x , π ( x ) ) + dist ( y , π ( y ) ) ≤ O ( η ) ( dist ( x , y ) + dist ( y , c ℓ ) + O P T ^ n 10 ) . \operatorname{dist}(x,\pi(x))+\operatorname{dist}(y,\pi(y)) \le O(\eta)\left(\operatorname{dist}(x,y)+\operatorname{dist}(y,c_\ell)+\frac{\widehat{\mathrm{OPT}}}{n^{10}}\right). dist ( x , π ( x )) + dist ( y , π ( y )) ≤ O ( η ) ( dist ( x , y ) + dist ( y , c ℓ ) + n 10 OPT ) .
Summing over these pairs and using the charging argument from the proof of Lemma 4.3 gives
∑ A ∈ P ( ∣ A ∣ − 1 ) ∑ x ∈ A dist ( x , π ( x ) ) ≤ O ( η ) cost ( P ) + O ( η k O P T ^ ) . \sum_{A\in\mathcal{P}} (|A|-1)\sum_{x\in A}\operatorname{dist}(x,\pi(x)) \le O(\eta)\operatorname{cost}(\mathcal{P})+O(\eta k\widehat{\mathrm{OPT}}). A ∈ P ∑ ( ∣ A ∣ − 1 ) x ∈ A ∑ dist ( x , π ( x )) ≤ O ( η ) cost ( P ) + O ( η k OPT ) .
Moreover, Lemma 4.2 and the definition of O P T ^ \widehat{\mathrm{OPT}} OPT imply
∑ x ∈ X dist ( x , π ( x ) ) ≤ O ( η O P T ^ ) . \sum_{x\in X}\operatorname{dist}(x,\pi(x)) \le O(\eta\widehat{\mathrm{OPT}}). x ∈ X ∑ dist ( x , π ( x )) ≤ O ( η OPT ) .
Thus
∑ A ∈ P ∣ A ∣ ∑ x ∈ A dist ( x , π ( x ) ) ≤ O ( η ) cost ( P ) + O ( η k O P T ^ ) ≤ O ( η c k ) cost ( P ) , \sum_{A\in\mathcal{P}} |A|\sum_{x\in A}\operatorname{dist}(x,\pi(x)) \le O(\eta)\operatorname{cost}(\mathcal{P})+O(\eta k\widehat{\mathrm{OPT}}) \le O(\eta ck)\operatorname{cost}(\mathcal{P}), A ∈ P ∑ ∣ A ∣ x ∈ A ∑ dist ( x , π ( x )) ≤ O ( η ) cost ( P ) + O ( η k OPT ) ≤ O ( η c k ) cost ( P ) ,
Choosing η = C 0 ε / ( c k ) \eta=C_0\varepsilon/(ck) η = C 0 ε / ( c k ) for sufficiently small C 0 > 0 C_0>0 C 0 > 0 proves the claim.
We next bound the size of the annular coreset by applying Lemma 2.2 to each net.
Lemma 4.5 (Annular size). The annular construction satisfies
∣ S ∣ ≤ ( k / ε ) O ( ddim ) log n . |S|\le(k/\varepsilon)^{O(\operatorname{ddim})}\log n. ∣ S ∣ ≤ ( k / ε ) O ( ddim ) log n . Proof. Lemma 2.2 applied at each center and scale gives
∣ S ∣ ≤ k ( L + 1 ) η − O ( ddim ) = k η − O ( ddim ) log n . |S|\le k(L+1)\eta^{-O(\operatorname{ddim})}=k\eta^{-O(\operatorname{ddim})}\log n. ∣ S ∣ ≤ k ( L + 1 ) η − O ( ddim ) = k η − O ( ddim ) log n . using η \eta η from Lemma 4.3 gives the claim.
Obtaining a Constant Approximation Partition
We now explain how to obtain the constant-factor reference partition needed by the final coreset construction. The idea is to start from a poly ( n ) \operatorname{poly}(n) poly ( n ) -approximate solution and improve it iteratively: in each iteration we build a small weighted annular coreset around the current solution and run a weighted bicriteria balanced k k k -median algorithm on this coreset. The next remark explains the weighted bicriteria call used in each iteration; the following remark proves the improvement recurrence.
Applying this replacement to all clusters proves the constant-factor loss. Thus, if the weighted instance has point set Y Y Y , then the two sides of G ′ G' G ′ have sizes ∣ Y ∣ |Y| ∣ Y ∣ and O ( ∣ Y ∣ log n ) O(|Y|\log n) O ( ∣ Y ∣ log n ) .
parameter η \eta η . The proof of lemma 4.3, before the last step where OPT ^ ≤ c OPT \widehat{\operatorname{OPT}} \le c\operatorname{OPT} OPT ≤ c OPT is used, gives the following additive version: for every k k k -partition P \mathcal{P} P ,
∣ cost ( P ) − cost ( π ( P ) ) ∣ ≤ O ( η ) cost ( P ) + O ( η k OPT ^ t ) . \left|\operatorname{cost}(\mathcal{P})-\operatorname{cost}(\pi(\mathcal{P}))\right| \le O(\eta)\operatorname{cost}(\mathcal{P})+O(\eta k\widehat{\operatorname{OPT}}_t). ∣ cost ( P ) − cost ( π ( P )) ∣ ≤ O ( η ) cost ( P ) + O ( η k OPT t ) .
Both costs in this display are min-sum costs. Choosing η = 1 C ρ k \eta=\frac{1}{C\rho k} η = C ρ k 1 for a sufficiently large constant C C C yields
∣ cost ( P ) − cost ( π ( P ) ) ∣ ≤ 1 100 ρ cost ( P ) + 1 100 ρ OPT ^ t . (36) \left|\operatorname{cost}(\mathcal{P})-\operatorname{cost}(\pi(\mathcal{P}))\right| \le\frac{1}{100\rho}\operatorname{cost}(\mathcal{P})+\frac{1}{100\rho}\widehat{\operatorname{OPT}}_t. \tag*{(36)} ∣ cost ( P ) − cost ( π ( P )) ∣ ≤ 100 ρ 1 cost ( P ) + 100 ρ 1 OPT t . (36)
Denote the resulting coreset by ( S t , w t ) (S_t,w_t) ( S t , w t ) . Let Q ~ t \widetilde{Q}_t Q t be the possibly split ρ \rho ρ -approximate weighted balanced k k k -median solution on ( S t , w t ) (S_t,w_t) ( S t , w t ) . By Claim 5.2 , there is an unsplit partition Q t Q_t Q t such that
cost S t , w t ( Q t ) ≤ cost ( Q ~ t ) . \operatorname{cost}_{S_t,w_t}(Q_t)\le\operatorname{cost}(\widetilde{Q}_t). cost S t , w t ( Q t ) ≤ cost ( Q t ) .
Let P t + 1 P_{t+1} P t + 1 be the lift of Q t Q_t Q t to X X X . If P ⋆ P^\star P ⋆ is an optimum min-sum partition of X X X , then
cost ( π ( P t + 1 ) ) ≤ cost ( Q ~ t ) ≤ 2 cost b k m , w ( Q ~ t ) ≤ 2 ρ cost b k m , w ( π ( P ⋆ ) ) ≤ 2 ρ cost ( π ( P ⋆ ) ) . \begin{aligned}
\operatorname{cost}(\pi(P_{t+1})) &\le\operatorname{cost}(\widetilde{Q}_t)\\
&\le2\operatorname{cost}_{\mathrm{bkm},w}(\widetilde{Q}_t)\\
&\le2\rho\operatorname{cost}_{\mathrm{bkm},w}(\pi(P^\star))\\
&\le2\rho\operatorname{cost}(\pi(P^\star)).
\end{aligned} cost ( π ( P t + 1 )) ≤ cost ( Q t ) ≤ 2 cost bkm , w ( Q t ) ≤ 2 ρ cost bkm , w ( π ( P ⋆ )) ≤ 2 ρ cost ( π ( P ⋆ )) .
The first and last inequalities are the two directions of the balanced k k k -median/min-sum comparison, while the middle inequality is the guarantee of the weighted balanced k k k -median algorithm. Applying the additive bound in (36) first to P ⋆ P^\star P ⋆ and then to P t + 1 P_{t+1} P t + 1 therefore yields
cost ( P t + 1 ) ≤ O ( ρ ) OPT + 1 4 OPT ^ t . \operatorname{cost}(P_{t+1})\le O(\rho)\operatorname{OPT}+\frac{1}{4}\widehat{\operatorname{OPT}}_t. cost ( P t + 1 ) ≤ O ( ρ ) OPT + 4 1 OPT t .
For every part P t + 1 , i P_{t+1,i} P t + 1 , i , choose a point a t + 1 , i ∈ P t + 1 , i a_{t+1,i}\in P_{t+1,i} a t + 1 , i ∈ P t + 1 , i such that
∣ P t + 1 , i ∣ ∑ x ∈ P t + 1 , i dist ( x , a t + 1 , i ) ≤ 2 ∑ x , y ∈ P t + 1 , i dist ( x , y ) . |P_{t+1,i}|\sum_{x\in P_{t+1,i}}\operatorname{dist}(x,a_{t+1,i})\le2\sum_{x,y\in P_{t+1,i}}\operatorname{dist}(x,y). ∣ P t + 1 , i ∣ x ∈ P t + 1 , i ∑ dist ( x , a t + 1 , i ) ≤ 2 x , y ∈ P t + 1 , i ∑ dist ( x , y ) .
The left-hand side is the contribution of the chosen center to the balanced k k k -median reference value, whereas the sum on the right-hand side is the min-sum cost of the part. Such a point can be found with high probability by sampling O ( log n ) O(\log n) O ( log n ) points from the part and retaining the one with minimum total distance. Defining the next balanced k k k -median reference value OPT ^ t + 1 \widehat{\operatorname{OPT}}_{t+1} OPT t + 1 using these centers gives
OPT ^ t + 1 ≤ 2 cost ( P t + 1 ) ≤ O ( ρ ) OPT + 1 2 OPT ^ t , \widehat{\operatorname{OPT}}_{t+1}\le2\operatorname{cost}(P_{t+1})\le O(\rho)\operatorname{OPT}+\frac{1}{2}\widehat{\operatorname{OPT}}_t, OPT t + 1 ≤ 2 cost ( P t + 1 ) ≤ O ( ρ ) OPT + 2 1 OPT t ,
which proves the claimed recurrence.
Set T = ⌈ log 2 ( n 2 ) ⌉ T=\lceil\log_2(n^2)\rceil T = ⌈ log 2 ( n 2 )⌉ . Since n 2 / 2 T ≤ 1 n^2/2^T\le1 n 2 / 2 T ≤ 1 , iterating the recurrence gives OPT ^ T ≤ O ( ρ ) OPT \widehat{\operatorname{OPT}}_T\le O(\rho)\operatorname{OPT} OPT T ≤ O ( ρ ) OPT . This is a bound on the balanced k k k -median reference value. To obtain a min-sum guarantee for its partition, we use the other direction of the comparison:
cost ( P T ) ≤ 2 cost b k m ( P T ) ≤ 2 OPT ^ T ≤ O ( ρ ) OPT , \operatorname{cost}(P_T)\le2\operatorname{cost}_{\mathrm{bkm}}(P_T)\le2\widehat{\operatorname{OPT}}_T\le O(\rho)\operatorname{OPT}, cost ( P T ) ≤ 2 cost bkm ( P T ) ≤ 2 OPT T ≤ O ( ρ ) OPT ,
so P T P_T P T is also an O ( ρ ) O(\rho) O ( ρ ) -approximation for min-sum k k k -clustering. One final annular construction with η = Θ ( ε / ( ρ k ) ) \eta=\Theta(\varepsilon/(\rho k)) η = Θ ( ε / ( ρ k )) then gives the coreset in lemma 4.1. Each round still uses only O ( k log n ) O(k\log n) O ( k log n ) net constructions.
Running Time
A polynomial-factor starting solution is obtained in O ( k n ) O(kn) O ( k n ) time [20 ] [37 ] . In each improvement round, the annular construction is run with η = Θ ( 1 / ( ρ k ) ) \eta= \Theta(1/(\rho k)) η = Θ ( 1/ ( ρ k )) , so lemma 4.5 gives
∣ S t ∣ ≤ ( ρ k ) O ( d d i m ) log n . |S_t| \leq(\rho k)^{O(\mathrm{ddim})}\log n. ∣ S t ∣ ≤ ( ρ k ) O ( ddim ) log n .
The annular construction uses O ( k log n ) O(k\log n) O ( k log n ) net computations. Using randomized net constructions in doubling metrics [23 ] , each net can be computed in 2 O ( d d i m ) n log n 2^{O(\mathrm{ddim})}n\log n 2 O ( ddim ) n log n expected time. Hence the annular-construction part of one round takes 2 O ( d d i m ) k n log 2 n 2^{O(\mathrm{ddim})}kn\log^2 n 2 O ( ddim ) k n log 2 n expected time.
Selecting the new reference centers adds O ( n log n ) O(n\log n) O ( n log n ) time per round: for each part, we evaluate the total distance of O ( log n ) O(\log n) O ( log n ) sampled candidates to all points in that part. Over T = O ( log n ) T = O(\log n) T = O ( log n ) rounds this contributes O ( n log 2 n ) O(n\log^2 n) O ( n log 2 n ) time, which is dominated by the annular-construction term above.
We next account for the weighted bicriteria call on this coreset. By remark 4.6, the bipartite graph G ′ G' G ′ used in this call has ∣ S t ∣ |S_t| ∣ S t ∣ demand vertices and O ( ∣ S t ∣ log n ) O(|S_t|\log n) O ( ∣ S t ∣ log n ) center-copy vertices, and hence
∣ E ( G ′ ) ∣ = O ( ∣ S t ∣ 2 log n ) . |E(G')| = O(|S_t|^2\log n). ∣ E ( G ′ ) ∣ = O ( ∣ S t ∣ 2 log n ) .
The Bartal–Charikar–Raz construction then applies the uncapacitated facility-location algorithm of Jain and Vazirani, with modified edge costs. This algorithm runs in O ( ∣ E ( G ′ ) ∣ log ∣ E ( G ′ ) ∣ ) O(|E(G')|\log|E(G')|) O ( ∣ E ( G ′ ) ∣ log ∣ E ( G ′ ) ∣ ) time [31 ] , so one bicriteria call takes
O ~ ( ∣ S t ∣ 2 log n ) = O ~ ( ( ρ k ) O ( d d i m ) log 3 n ) . \widetilde{O}(|S_t|^2\log n) = \widetilde{O}\left((\rho k)^{O(\mathrm{ddim})}\log^3 n\right). O ( ∣ S t ∣ 2 log n ) = O ( ( ρ k ) O ( ddim ) log 3 n ) .
There are T = ⌈ log 2 ( n 2 ) ⌉ = O ( log n ) T = \lceil\log_2(n^2)\rceil= O(\log n) T = ⌈ log 2 ( n 2 )⌉ = O ( log n ) improvement rounds. The final annular coreset construction has the same net-computation cost and does not require another call to the weighted approximation algorithm. Therefore the total expected running time is
2 O ( d d i m ) k n log 3 n + O ~ ( ( ρ k ) O ( d d i m ) log 4 n ) . 2^{O(\mathrm{ddim})}kn\log^3 n + \widetilde{O}\left((\rho k)^{O(\mathrm{ddim})}\log^4 n\right). 2 O ( ddim ) k n log 3 n + O ( ( ρ k ) O ( ddim ) log 4 n ) .
Apart from the displayed dependence on k k k , ρ \rho ρ , and d d i m \mathrm{ddim} ddim , the dependence on the original input size n n n is near-linear.
Proof of the Annular Coreset Lemma
Lemma 4.1 (Fast annular coreset). Let ( X , dist ) (X,\operatorname{dist}) ( X , dist ) be an n n n -point metric space of doubling dimension at most d d i m \mathrm{ddim} ddim . For every 0 < ε < 1 10 0 < \varepsilon< \frac{1}{10} 0 < ε < 10 1 , one can construct an ε \varepsilon ε -movement coreset ( S , w ) (S,w) ( S , w ) with S ⊆ X S \subseteq X S ⊆ X and
∣ S ∣ ≤ ( k ε ) O ( d d i m ) log n . |S| \leq\left(\frac{k}{\varepsilon}\right)^{O(\mathrm{ddim})}\log n. ∣ S ∣ ≤ ( ε k ) O ( ddim ) log n . The associated movement rule is the nearest-neighbor map. Moreover, the construction can be implemented in randomized near-linear time.
Proof. Assume first that we have a c c c -approximate reference partition. Set
η = ε β ⋅ c ⋅ k . \eta= \frac{\varepsilon}{\beta\cdot c \cdot k}. η = β ⋅ c ⋅ k ε .
for a sufficiently large constant β > 0 \beta> 0 β > 0 . The movement guarantee follows from lemma 4.3, and the size bound follows from lemma 4.5. The required constant-factor reference partition and the running-time bound are obtained by the bootstrapping procedure analyzed above.
A Density-Adaptive Coreset
The density-adaptive coreset removes the factor k k k from the movement accuracy. We first describe the construction assuming that we are given a value O P T ^ \widehat{\mathrm{OPT}} OPT satisfying
O P T ≤ O P T ^ ≤ c O P T \mathrm{OPT} \le\widehat{\mathrm{OPT}} \le c\mathrm{OPT} OPT ≤ OPT ≤ c OPT
for a constant c c c . We later remove this assumption by trying geometrically decreasing estimates for O P T \mathrm{OPT} OPT .
For x ∈ X x \in X x ∈ X and 2 ≤ m ≤ n 2 \le m \le n 2 ≤ m ≤ n , let Γ m ( x ) \Gamma_m(x) Γ m ( x ) be the set of m m m points in X X X that are closest to x x x , including x x x itself, and define
γ m ( x ) = 1 m ∑ v ∈ Γ m ( x ) dist ( x , v ) . \gamma_m(x) = \frac{1}{m} \sum_{v \in\Gamma_m(x)} \operatorname{dist}(x,v). γ m ( x ) = m 1 v ∈ Γ m ( x ) ∑ dist ( x , v ) .
Set
ρ ( x ) = min 2 ≤ m ≤ n max { γ m ( x ) , O P T ^ k m 2 } . \rho(x) = \min_{2 \le m \le n} \max\left\{ \gamma_m(x), \frac{\widehat{\mathrm{OPT}}}{km^2} \right\}. ρ ( x ) = 2 ≤ m ≤ n min max { γ m ( x ) , k m 2 OPT } .
The value ρ ( x ) \rho(x) ρ ( x ) is the movement scale justified by the local density around x x x . The term γ m ( x ) \gamma_m(x) γ m ( x ) pays for moving x x x in a large cluster, while O P T ^ / ( k m 2 ) \widehat{\mathrm{OPT}}/(km^2) OPT / ( k m 2 ) prevents too many well-separated points from appearing at the same scale.
Construction and Preservation
Let
τ = ε 4 ( c + 1 ) , r min = O P T ^ k n 2 . \tau= \frac{\varepsilon}{4(c+1)}, \qquad r_{\min} = \frac{\widehat{\mathrm{OPT}}}{kn^2}. τ = 4 ( c + 1 ) ε , r m i n = k n 2 OPT .
Since the second term in ρ ( x ) \rho(x) ρ ( x ) is always at least r min r_{\min} r m i n , every point satisfies ρ ( x ) ≥ r min \rho(x) \ge r_{\min} ρ ( x ) ≥ r m i n . Define
H = { x ∈ X : ρ ( x ) > O P T ^ } . H = \{x \in X : \rho(x) > \widehat{\mathrm{OPT}}\}. H = { x ∈ X : ρ ( x ) > OPT } .
The points of H H H are kept exactly, i.e added to S S S . For all other points, let
J = ⌈ log 2 ( k n 2 ) ⌉ , r j = 2 j r min , J = \left\lceil\log_2(kn^2) \right\rceil, \qquad r_j = 2^j r_{\min}, J = ⌈ log 2 ( k n 2 ) ⌉ , r j = 2 j r m i n ,
and define the scale rings
R j = { x ∈ X ∖ H : r j ≤ ρ ( x ) < 2 r j } , 0 ≤ j ≤ J . R_j = \{x \in X \setminus H : r_j \le\rho(x) < 2r_j\}, \qquad0 \le j \le J. R j = { x ∈ X ∖ H : r j ≤ ρ ( x ) < 2 r j } , 0 ≤ j ≤ J .
For every nonempty ring R j R_j R j , choose a ( τ r j ) (\tau r_j) ( τ r j ) -net S j ⊆ R j S_j \subseteq R_j S j ⊆ R j . Set
S = H ∪ ⋃ j = 0 J S j . S = H \cup\bigcup_{j=0}^{J} S_j. S = H ∪ j = 0 ⋃ J S j .
By the convention above, π \pi π is the nearest-neighbor movement rule. Every point of H H H maps to itself. For every x ∈ R j x \in R_j x ∈ R j , the net S j S_j S j contains a point within distance τ r j \tau r_j τ r j from x x x , and therefore
dist ( x , π ( x ) ) < τ r j ≤ τ ρ ( x ) . \operatorname{dist}(x,\pi(x)) < \tau r_j \le\tau\rho(x). dist ( x , π ( x )) < τ r j ≤ τ ρ ( x ) .
We prove preservation in three steps. First, Lemma 4.8 bounds the total distance moved by the points of a cluster, multiplied by its cardinality. Next, Lemma 4.9 uses the triangle inequality to bound the resulting change in the cluster’s min-sum cost. The additive error per cluster is 2 τ O P T ^ / k 2\tau\widehat{\mathrm{OPT}}/k 2 τ OPT / k . Finally, summing over at most k k k clusters and using O P T ^ ≤ c O P T \widehat{\mathrm{OPT}} \le c\mathrm{OPT} OPT ≤ c OPT then gives the preservation guarantee in Lemma 4.10 .
Lemma 4.8 (Movement charge). Let A ⊆ X A \subseteq X A ⊆ X have size m ≥ 2 m \ge2 m ≥ 2 . Suppose
∀ x ∈ A , dist ( x , π ( x ) ) ≤ τ ρ ( x ) . \forall x \in A,\qquad\operatorname{dist}(x,\pi(x)) \le\tau\rho(x). ∀ x ∈ A , dist ( x , π ( x )) ≤ τ ρ ( x ) . Then
m ∑ x ∈ A dist ( x , π ( x ) ) ≤ τ cost ( A ) + O P T ^ k . m \sum_{x \in A} \operatorname{dist}(x,\pi(x)) \le\tau\operatorname{cost}(A) + \frac{\widehat{\mathrm{OPT}}}{k}. m x ∈ A ∑ dist ( x , π ( x )) ≤ τ cost ( A ) + k OPT . Proof. Fix x ∈ A x \in A x ∈ A . The m m m nearest points to x x x are no farther in total than the points of A A A , and hence
m γ m ( x ) = ∑ v ∈ V m ( x ) dist ( x , v ) ≤ ∑ y ∈ A dist ( x , y ) . m\gamma_m(x) = \sum_{v \in V_m(x)} \operatorname{dist}(x,v) \le\sum_{y \in A} \operatorname{dist}(x,y). m γ m ( x ) = v ∈ V m ( x ) ∑ dist ( x , v ) ≤ y ∈ A ∑ dist ( x , y ) . By definition of ρ ( x ) \rho(x) ρ ( x ) ,
ρ ( x ) ≤ γ m ( x ) + O P T ^ k m 2 . \rho(x) \le\gamma_m(x) + \frac{\widehat{\mathrm{OPT}}}{km^2}. ρ ( x ) ≤ γ m ( x ) + k m 2 OPT . Multiplying by m m m , summing over x ∈ A x \in A x ∈ A , and using dist ( x , π ( x ) ) ≤ τ ρ ( x ) \operatorname{dist}(x,\pi(x)) \le\tau\rho(x) dist ( x , π ( x )) ≤ τ ρ ( x ) proves the lemma.
Lemma 4.9 (One cluster). Let A ⊆ X A \subseteq X A ⊆ X have size m ≥ 2 m \ge2 m ≥ 2 . Then
∣ cost ( A ) − ∑ x , y ∈ A dist ( π ( x ) , π ( y ) ) ∣ ≤ 2 τ cost ( A ) + 2 τ O P T ^ k . \left|\operatorname{cost}(A) - \sum_{x,y \in A} \operatorname{dist}(\pi(x),\pi(y))\right| \le2\tau\operatorname{cost}(A) + \frac{2\tau\widehat{\mathrm{OPT}}}{k}. cost ( A ) − x , y ∈ A ∑ dist ( π ( x ) , π ( y )) ≤ 2 τ cost ( A ) + k 2 τ OPT . Proof. For every x , y ∈ A x,y \in A x , y ∈ A , the triangle inequality gives
∣ dist ( x , y ) − dist ( π ( x ) , π ( y ) ) ∣ ≤ dist ( x , π ( x ) ) + dist ( y , π ( y ) ) . \left|\operatorname{dist}(x,y) - \operatorname{dist}(\pi(x),\pi(y))\right| \le\operatorname{dist}(x,\pi(x)) + \operatorname{dist}(y,\pi(y)). ∣ dist ( x , y ) − dist ( π ( x ) , π ( y )) ∣ ≤ dist ( x , π ( x )) + dist ( y , π ( y )) . Summing over all ordered pairs x , y ∈ A x,y \in A x , y ∈ A , we get
∣ cost ( A ) − ∑ x , y ∈ A dist ( π ( x ) , π ( y ) ) ∣ ≤ 2 ∣ A ∣ ∑ x ∈ A dist ( x , π ( x ) ) . \left|\operatorname{cost}(A) - \sum_{x,y \in A} \operatorname{dist}(\pi(x),\pi(y))\right| \le2|A| \sum_{x \in A} \operatorname{dist}(x,\pi(x)). cost ( A ) − x , y ∈ A ∑ dist ( π ( x ) , π ( y )) ≤ 2∣ A ∣ x ∈ A ∑ dist ( x , π ( x )) . The claim now follows from lemma 4.8.
Lemma 4.10 (Density-adaptive preservation). Let ( X , dist ) (X,\operatorname{dist}) ( X , dist ) be a finite metric space of size n n n and doubling dimension at most dim \operatorname{dim} dim . Suppose
O P T ≤ O P T ^ ≤ c O P T . \mathrm{OPT} \le\widehat{\mathrm{OPT}} \le c\mathrm{OPT}. OPT ≤ OPT ≤ c OPT . For every 0 < ε < 1 2 0 < \varepsilon< \frac{1}{2} 0 < ε < 2 1 , the density-adaptive construction gives an ε \varepsilon ε -movement coreset.
Proof. Let P \mathcal{P} P be any partition into at most k k k parts. Parts of size one have zero cost and zero movement error. Summing lemma 4.9 over all parts of size at least two gives
∣ cost ( P ) − ∑ P ∈ P ∑ x , y ∈ P dist ( π ( x ) , π ( y ) ) ∣ ≤ 2 τ cost ( P ) + 2 τ O P T ^ . \left|\operatorname{cost}(\mathcal{P}) - \sum_{P \in\mathcal{P}}\sum_{x,y \in P} \operatorname{dist}(\pi(x),\pi(y))\right| \le2\tau\operatorname{cost}(\mathcal{P}) + 2\tau\widehat{\mathrm{OPT}}. cost ( P ) − P ∈ P ∑ x , y ∈ P ∑ dist ( π ( x ) , π ( y )) ≤ 2 τ cost ( P ) + 2 τ OPT . Since
O P T ^ ≤ c O P T ≤ c cost ( P ) , \widehat{\mathrm{OPT}} \le c\mathrm{OPT} \le c\operatorname{cost}(\mathcal{P}), OPT ≤ c OPT ≤ c cost ( P ) , the right-hand side is at most
2 τ ( c + 1 ) cost ( P ) . 2\tau(c+1)\operatorname{cost}(\mathcal{P}). 2 τ ( c + 1 ) cost ( P ) . With τ = ε / ( 4 ( c + 1 ) ) \tau= \varepsilon/(4(c+1)) τ = ε / ( 4 ( c + 1 )) , this is at most ε cost ( P ) \varepsilon\operatorname{cost}(\mathcal{P}) ε cost ( P ) .
The preceding argument gives more than preservation of the total cost: it also bounds the sum of the movement terms used in the triangle-inequality estimate.
Lemma 4.11 (Density-adaptive movement-charge bound). Under the assumptions of Lemma 4.10 , the density-adaptive movement rule π : X → S \pi: X \to S π : X → S satisfies, for every k k k -partition P \mathcal{P} P of X X X ,
∑ A ∈ P ∣ A ∣ ∑ x ∈ A dist ( x , π ( x ) ) ≤ ε cost ( P ) . \sum_{A \in\mathcal{P}} |A| \sum_{x \in A} \operatorname{dist}(x,\pi(x)) \le\varepsilon\operatorname{cost}(\mathcal{P}). A ∈ P ∑ ∣ A ∣ x ∈ A ∑ dist ( x , π ( x )) ≤ ε cost ( P ) .
Proof. Write d x = dist ( x , π ( x ) ) d_x = \operatorname{dist}(x,\pi(x)) d x = dist ( x , π ( x )) . When d x > 0 d_x > 0 d x > 0 , we have γ 2 ( x ) ≤ d x / 2 \gamma_2(x) \le d_x/2 γ 2 ( x ) ≤ d x /2 , so
d x ≤ τ ρ ( x ) ≤ τ ( d x 2 + O P T ^ 4 k ) . d_x \le\tau\rho(x) \le\tau\left(\frac{d_x}{2} + \frac{\widehat{\mathrm{OPT}}}{4k}\right). d x ≤ τ ρ ( x ) ≤ τ ( 2 d x + 4 k OPT ) .
This inequality also holds for d x = 0 d_x = 0 d x = 0 . Thus, for every x ∈ X x \in X x ∈ X , d x ≤ τ O P T ^ / ( 2 k ) d_x \le\tau\widehat{\mathrm{OPT}}/(2k) d x ≤ τ OPT / ( 2 k ) . Combining this with Lemma 4.8 and summing over P \mathcal{P} P yields
∑ A ∈ P ∣ A ∣ ∑ x ∈ A d x ≤ τ cost ( P ) + τ O P T ^ ≤ τ ( c + 1 ) cost ( P ) ≤ ε cost ( P ) . \sum_{A \in\mathcal{P}} |A| \sum_{x \in A} d_x \le\tau\operatorname{cost}(\mathcal{P}) + \tau\widehat{\mathrm{OPT}} \le\tau(c+1)\operatorname{cost}(\mathcal{P}) \le\varepsilon\operatorname{cost}(\mathcal{P}). A ∈ P ∑ ∣ A ∣ x ∈ A ∑ d x ≤ τ cost ( P ) + τ OPT ≤ τ ( c + 1 ) cost ( P ) ≤ ε cost ( P ) .
Size Bound
Lemma 4.12 (High-scale points). The set H H H has size at most k k k .
Proof. If x ∈ H x \in H x ∈ H , by definition of ρ ( x ) \rho(x) ρ ( x ) ,
O P T ^ < ρ ( x ) ≤ max { γ 2 ( x ) , O P T ^ 4 k } . \widehat{\mathrm{OPT}} < \rho(x) \le\max\left\{\gamma_2(x), \frac{\widehat{\mathrm{OPT}}}{4k}\right\}. OPT < ρ ( x ) ≤ max { γ 2 ( x ) , 4 k OPT } .
Hence γ 2 ( x ) > O P T ^ \gamma_2(x) > \widehat{\mathrm{OPT}} γ 2 ( x ) > OPT , so the nearest neighbor of x x x is farther than 2 O P T ^ 2\widehat{\mathrm{OPT}} 2 OPT . If ∣ H ∣ > k |H| > k ∣ H ∣ > k , then two points of H H H lie in the same optimal cluster. Their contribution to O P T \mathrm{OPT} OPT is larger 2 O P T ^ ≥ 2 O P T 2\widehat{\mathrm{OPT}} \ge2\mathrm{OPT} 2 OPT ≥ 2 OPT , contradicting optimality.
Lemma 4.13 (Single scale ring). For every scale ring R j R_j R j ,
∣ S j ∣ ≤ 3 k ( C τ ) d d i m |S_j| \le3k\left(\frac{C}{\tau}\right)^{\mathrm{ddim}} ∣ S j ∣ ≤ 3 k ( τ C ) ddim for a universal constant C > 0 C > 0 C > 0 .
Proof. Fix a ring R j R_j R j and write r = r j r = r_j r = r j and S r = S j S_r = S_j S r = S j . Let N r ⊆ S r N_r \subseteq S_r N r ⊆ S r be a ( 16 r ) (16r) ( 16 r ) -net of S r S_r S r . Assign each s ∈ S r s \in S_r s ∈ S r to its closest point in N r N_r N r , and let F v F_v F v be all the points assigned to v ∈ N r v \in N_r v ∈ N r . Then F v ⊆ B ( v , 16 r ) F_v \subseteq B(v,16r) F v ⊆ B ( v , 16 r ) . Since S r S_r S r is a ( τ r ) (\tau r) ( τ r ) -net, the points of F v F_v F v are τ r \tau r τ r -separated and by Lemma 2.2 ,
∣ F v ∣ ≤ ( C τ ) d d i m . |F_v| \le\left(\frac{C}{\tau}\right)^{\mathrm{ddim}}. ∣ F v ∣ ≤ ( τ C ) ddim .
Thus
∣ S r ∣ ≤ ∣ N r ∣ ( C τ ) d d i m . |S_r| \le|N_r|\left(\frac{C}{\tau}\right)^{\mathrm{ddim}}. ∣ S r ∣ ≤ ∣ N r ∣ ( τ C ) ddim .
It remains to prove ∣ N r ∣ < 3 k |N_r| < 3k ∣ N r ∣ < 3 k .
Let T = ∣ N r ∣ T = |N_r| T = ∣ N r ∣ . For each v ∈ N r v \in N_r v ∈ N r , since v ∈ R j v \in R_j v ∈ R j , we have ρ ( v ) < 2 r \rho(v) < 2r ρ ( v ) < 2 r . Let m v m_v m v be the value of m m m that attains the minimum defining ρ ( v ) \rho(v) ρ ( v ) . Then
γ m v ( v ) < 2 r , O P T ^ k m v 2 < 2 r . \gamma_{m_v}(v) < 2r, \qquad\frac{\widehat{\mathrm{OPT}}}{k m_v^2} < 2r. γ m v ( v ) < 2 r , k m v 2 OPT < 2 r .
The second inequality gives
m v > O P T ^ 2 k r , m_v > \sqrt{\frac{\widehat{\mathrm{OPT}}}{2kr}}, m v > 2 k r OPT ,
and the first implies that more than half of the points in Γ m v ( v ) \Gamma_{m_v}(v) Γ m v ( v ) lie inside B ( v , 4 r ) B(v,4r) B ( v , 4 r ) .
Define
h : = ⌊ O P T ^ 8 k r ⌋ . h := \left\lfloor\sqrt{\frac{\widehat{\mathrm{OPT}}}{8kr}} \right\rfloor. h := 8 k r OPT .
Since m v > 2 O P T ^ / ( 8 k r ) m_v > 2\sqrt{\widehat{\mathrm{OPT}}/(8kr)} m v > 2 OPT / ( 8 k r ) , the preceding observation implies that B ( v , 4 r ) B(v,4r) B ( v , 4 r ) contains at least h h h points. For every v ∈ N r v \in N_r v ∈ N r , choose a set
G v ⊆ B ( v , 4 r ) , ∣ G v ∣ = h . G_v \subseteq B(v,4r), \qquad|G_v| = h. G v ⊆ B ( v , 4 r ) , ∣ G v ∣ = h .
The choice of h h h gives
r h 2 ≥ O P T ^ 32 k ≥ O P T 32 k . rh^2 \ge\frac{\widehat{\mathrm{OPT}}}{32k} \ge\frac{\mathrm{OPT}}{32k}. r h 2 ≥ 32 k OPT ≥ 32 k OPT .
Distinct points of N r N_r N r are at distance at least 16 r 16r 16 r . Therefore if x ∈ G v x \in G_v x ∈ G v and y ∈ G v ′ y \in G_{v'} y ∈ G v ′ for v ≠ v ′ v \ne v' v = v ′ , then
dist ( x , y ) ≥ 16 r − 4 r − 4 r = 8 r . \operatorname{dist}(x,y) \ge16r - 4r - 4r = 8r. dist ( x , y ) ≥ 16 r − 4 r − 4 r = 8 r .
The sets G v G_v G v are disjoint.
Let O 1 , … , O k O_1,\ldots,O_k O 1 , … , O k be an optimal partition of X X X . For v ∈ N r v \in N_r v ∈ N r and a ∈ [ k ] a \in[k] a ∈ [ k ] , set
g v a = ∣ G v ∩ O a ∣ , M a = ∑ v ∈ N r g v a . g_{va} = |G_v \cap O_a|, \qquad M_a = \sum_{v\in N_r} g_{va}. g v a = ∣ G v ∩ O a ∣ , M a = v ∈ N r ∑ g v a .
The number Q Q Q of ordered pairs of selected points that lie in the same optimal cluster but in different groups G v G_v G v is
Q = ∑ a = 1 k M a 2 − ∑ v ∈ N r ∑ a = 1 k g v a 2 . Q = \sum_{a=1}^{k} M_a^2 - \sum_{v\in N_r}\sum_{a=1}^{k} g_{va}^2. Q = a = 1 ∑ k M a 2 − v ∈ N r ∑ a = 1 ∑ k g v a 2 .
Since ∑ a M a = ∑ v ∈ N r ∣ G v ∣ = T h \sum_a M_a = \sum_{v\in N_r}|G_v| = Th ∑ a M a = ∑ v ∈ N r ∣ G v ∣ = T h , Cauchy--Schwarz gives
∑ a = 1 k M a 2 ≥ ( T h ) 2 k , \sum_{a=1}^{k} M_a^2 \ge\frac{(Th)^2}{k}, a = 1 ∑ k M a 2 ≥ k ( T h ) 2 ,
and for every v v v ,
∑ a = 1 k g v a 2 ≤ h 2 . \sum_{a=1}^{k} g_{va}^2 \le h^2. a = 1 ∑ k g v a 2 ≤ h 2 .
Thus
Q ≥ h 2 ( T 2 k − T ) . Q \ge h^2\left(\frac{T^2}{k}-T\right). Q ≥ h 2 ( k T 2 − T ) .
Every pair counted by Q Q Q contributes at least 8 r 8r 8 r to the optimal cost, so
O P T ≥ 8 r h 2 ( T 2 k − T ) . \mathrm{OPT} \ge8rh^2\left(\frac{T^2}{k}-T\right). OPT ≥ 8 r h 2 ( k T 2 − T ) .
If T ≤ k T \le k T ≤ k , we are done. Otherwise, using r h 2 ≥ O P T / ( 32 k ) rh^2 \ge\mathrm{OPT}/(32k) r h 2 ≥ OPT / ( 32 k ) ,
T 2 k − T ≤ 4 k . \frac{T^2}{k}-T \le4k. k T 2 − T ≤ 4 k .
Hence T 2 − k T − 4 k 2 ≤ 0 T^2-kT-4k^2 \le0 T 2 − k T − 4 k 2 ≤ 0 , and therefore
T ≤ 1 + 17 2 k < 3 k . T \le\frac{1+\sqrt{17}}{2}k < 3k. T ≤ 2 1 + 17 k < 3 k .
This proves the lemma.
Lemma 4.14 (Total size). The set S S S satisfies
∣ S ∣ ≤ k ( c + 1 ε ) O ( d d i m ) log ( 2 n ) . |S| \le k\left(\frac{c+1}{\varepsilon}\right)^{O(\mathrm{ddim})}\log(2n). ∣ S ∣ ≤ k ( ε c + 1 ) O ( ddim ) log ( 2 n ) .
Proof. By lemma 4.12, ∣ H ∣ ≤ k |H| \le k ∣ H ∣ ≤ k . By lemma 4.13, every scale ring contributes at most
3 k ( C τ ) d d i m 3k\left(\frac{C}{\tau}\right)^{\mathrm{ddim}} 3 k ( τ C ) ddim
representatives. There are
J + 1 ≤ 2 + log 2 ( k n 2 ) = O ( log n ) J+1 \le2+\log_2(kn^2)=O(\log n) J + 1 ≤ 2 + log 2 ( k n 2 ) = O ( log n )
rings. Substituting τ = ε / ( 4 ( c + 1 ) ) \tau=\varepsilon/(4(c+1)) τ = ε / ( 4 ( c + 1 )) proves the claim.
Weighted Implementation and Composition
We use the density-adaptive construction on weighted instances only when the weights are integer multiplicities. For a weighted support ( Y , w ) (Y,w) ( Y , w ) , let Y ( w ) Y^{(w)} Y ( w ) be the multiset containing w ( y ) w(y) w ( y ) copies of each y ∈ Y y\in Y y ∈ Y , and let
N = ∑ y ∈ Y w ( y ) . N=\sum_{y\in Y}w(y). N = y ∈ Y ∑ w ( y ) .
The quantities Γ m ( y ) \Gamma_m(y) Γ m ( y ) , γ m ( y ) \gamma_m(y) γ m ( y ) , and ρ ( y ) \rho(y) ρ ( y ) are those obtained by applying the ordinary density-adaptive construction to Y ( w ) Y^{(w)} Y ( w ) : nearest-neighbor sums are taken over copies, with 2 ≤ m ≤ N 2\le m\le N 2 ≤ m ≤ N , while the representative set is stored only on the support Y Y Y .
Lemma 4.15 (Weighted density-adaptive construction). Let ( Y , w ) (Y,w) ( Y , w ) be a weighted metric instance with integer multiplicity weights of total weight N N N and doubling dimension at most d d i m \mathrm{ddim} ddim . Suppose that
O P T Y , w ≤ O P T ^ ≤ c O P T Y , w . \mathrm{OPT}_{Y,w}\le\widehat{\mathrm{OPT}}\le c\mathrm{OPT}_{Y,w}. OPT Y , w ≤ OPT ≤ c OPT Y , w .
Then the weighted density-adaptive construction gives an ε \varepsilon ε -movement coreset of ( Y , w ) (Y,w) ( Y , w ) of size
k ( c + 1 ε ) O ( ddim ) log ( 2 N ) . k\left(\frac{c+1}{\varepsilon}\right)^{O(\operatorname{ddim})}\log(2N). k ( ε c + 1 ) O ( ddim ) log ( 2 N ) .
Moreover, its movement rule satisfies the movement-charge bound of Lemma 4.11 , with Y ( w ) Y^{(w)} Y ( w ) in place of X X X .
Proof. Apply the unweighted density-adaptive construction to the multiset Y ( w ) Y^{(w)} Y ( w ) . Multiplicities do not change the doubling dimension after coincident copies are identified. By Claim 5.2 , an optimal partition of Y ( w ) Y^{(w)} Y ( w ) can be chosen without splitting coincident copies. Hence its optimum value is exactly OPT Y , w \operatorname{OPT}_{Y,w} OPT Y , w . Therefore Lemma 4.10 , Lemma 4.11 , and Lemma 4.14 , applied with input size N N N , give the preservation, movement-charge, and size guarantees for Y ( w ) Y^{(w)} Y ( w ) .
It remains only to write the result in weighted form. Since coincident copies have distance zero, the nets in the construction may be chosen with at most one representative at each support point. We store these support representatives and give each representative the total multiplicity of the copies mapped to it. With this compressed notation, the moved multiset cost is exactly the weighted cost. Thus the same guarantees hold for the weighted instance ( Y , w ) (Y,w) ( Y , w ) .
Lemma 4.16 (Computing weighted densities). Let M = ∣ Y ∣ M=|Y| M = ∣ Y ∣ . All values ρ ( y ) \rho(y) ρ ( y ) for the weighted instance ( Y , w ) (Y,w) ( Y , w ) can be computed from the support in time
O ( M 2 ( log M + log N ) ) . O\left(M^2(\log M+\log N)\right). O ( M 2 ( log M + log N ) ) .
Proof. Fix y ∈ Y y\in Y y ∈ Y , and sort the support points as y 1 , … , y M y_1,\ldots,y_M y 1 , … , y M by increasing distance from y y y . Let
P q = ∑ i ≤ q w ( y i ) , D q = ∑ i ≤ q w ( y i ) dist ( y , y i ) . P_q=\sum_{i\le q}w(y_i),\qquad D_q=\sum_{i\le q}w(y_i)\operatorname{dist}(y,y_i). P q = i ≤ q ∑ w ( y i ) , D q = i ≤ q ∑ w ( y i ) dist ( y , y i ) .
If P q − 1 < m ≤ P q P_{q-1}<m\le P_q P q − 1 < m ≤ P q , then the m m m nearest copies to y y y consist of all copies of y 1 , … , y q − 1 y_1,\ldots,y_{q-1} y 1 , … , y q − 1 , together with m − P q − 1 m-P_{q-1} m − P q − 1 copies of y q y_q y q . Therefore
γ m ( y ) = D q − 1 + ( m − P q − 1 ) dist ( y , y q ) m . \gamma_m(y)=\frac{D_{q-1}+(m-P_{q-1})\operatorname{dist}(y,y_q)}{m}. γ m ( y ) = m D q − 1 + ( m − P q − 1 ) dist ( y , y q ) .
Because the support points are sorted by distance from y y y , D q − 1 ≤ P q − 1 dist ( y , y q ) D_{q-1}\le P_{q-1}\operatorname{dist}(y,y_q) D q − 1 ≤ P q − 1 dist ( y , y q ) , and the displayed expression is nondecreasing in m m m . The term OPT ^ / ( k m 2 ) \widehat{\operatorname{OPT}}/(km^2) OPT / ( k m 2 ) is decreasing in m m m . Hence the minimum of their maximum over the interval is attained at an endpoint or at an integer nearest their crossing point, which can be found by binary search in O ( log N ) O(\log N) O ( log N ) time. There are M M M intervals for this y y y . Sorting for all y y y 's and scanning all intervals gives the claimed running time.
Corollary 4.17 (Density-adaptive coreset after annular reduction). Let ( Y , w ) (Y,w) ( Y , w ) be the ( ε / 10 ) (\varepsilon/10) ( ε /10 ) -movement coreset obtained from the annular construction applied to X X X , and suppose that
OPT Y , w ≤ OPT ^ ≤ c OPT Y , w . \operatorname{OPT}_{Y,w}\le\widehat{\operatorname{OPT}}\le c\operatorname{OPT}_{Y,w}. OPT Y , w ≤ OPT ≤ c OPT Y , w . for a universal constant c c c . Run the weighted density-adaptive construction on ( Y , w ) (Y,w) ( Y , w ) with estimate OPT ^ \widehat{\operatorname{OPT}} OPT and accuracy ε / 10 \varepsilon/10 ε /10 . If T T T is the resulting representative set, and the final weights are recounted according to the nearest-neighbor rule ν : X → T \nu:X\to T ν : X → T , then the resulting weighted set is an ε \varepsilon ε -movement coreset of X X X under ν \nu ν , and has size
k ( 1 ε ) O ( ddim ) log n . k\left(\frac{1}{\varepsilon}\right)^{O(\operatorname{ddim})}\log n. k ( ε 1 ) O ( ddim ) log n . If M = ∣ Y ∣ M=|Y| M = ∣ Y ∣ , the additional time after ( Y , w ) (Y,w) ( Y , w ) is available is
O ( M 2 ( log M + log n ) ) . O\left(M^2(\log M+\log n)\right). O ( M 2 ( log M + log n ) ) .
Proof. Let π : X → Y \pi: X \to Y π : X → Y be the annular movement rule. The annular construction has the movement-charge bound of Lemma 4.4. Applying Lemma 4.15 to ( Y , w ) (Y,w) ( Y , w ) gives a weighted set ( T , u ′ ) (T,u') ( T , u ′ ) with movement rule σ : Y → T \sigma: Y \to T σ : Y → T , and gives the corresponding movement-charge bound for σ \sigma σ . Let ϕ = σ ∘ π : X → T \phi= \sigma\circ\pi: X \to T ϕ = σ ∘ π : X → T . By Lemma 5.10, the movement-charge coefficient of ϕ \phi ϕ is at most
ε 10 + ( 1 + ε 10 ) ε 10 < ε . \frac{\varepsilon}{10}+\left(1+\frac{\varepsilon}{10}\right)\frac{\varepsilon}{10}<\varepsilon. 10 ε + ( 1 + 10 ε ) 10 ε < ε .
Thus ϕ \phi ϕ satisfies the hypothesis of Lemma 5.11.
Since T ⊆ Y ⊆ X T \subseteq Y \subseteq X T ⊆ Y ⊆ X , let ν : X → T \nu: X \to T ν : X → T be the nearest-neighbor map with fixed tie-breaking, and set u ( t ) = ∣ ν − 1 ( t ) ∣ u(t)=|\nu^{-1}(t)| u ( t ) = ∣ ν − 1 ( t ) ∣ . Since ϕ ( x ) ∈ T \phi(x)\in T ϕ ( x ) ∈ T , for every x ∈ X x\in X x ∈ X ,
dist ( x , ν ( x ) ) ≤ dist ( x , ϕ ( x ) ) . \operatorname{dist}(x,\nu(x))\leq\operatorname{dist}(x,\phi(x)). dist ( x , ν ( x )) ≤ dist ( x , ϕ ( x )) .
Hence, by Lemma 5.11, ( T , u ) (T,u) ( T , u ) is an ε \varepsilon ε -movement coreset of X X X under ν \nu ν . The size bound follows from Lemma 4.15, because the total weight of ( Y , w ) (Y,w) ( Y , w ) is n n n . Finally, Lemma 4.16 gives the displayed additional running time. □
Running Time
The direct density-adaptive implementation computes all pairwise distances and therefore takes O ( n 2 log n ) O(n^2\log n) O ( n 2 log n ) time. The near-linear implementation in Theorem 1.4 avoids this by first applying the annular construction and then running the weighted density-adaptive construction only on the resulting small weighted instance.
Let M = ∣ Y ∣ M=|Y| M = ∣ Y ∣ be the size of the annular coreset. By Lemma 4.1, M ≤ ( k ε ) O ( d d i m ) log n M\leq\left(\frac{k}{\varepsilon}\right)^{O(\mathrm{ddim})}\log n M ≤ ( ε k ) O ( ddim ) log n .
Lemma 4.16 computes the weighted density values in O ( M 2 ( log M + log n ) ) O(M^2(\log M+\log n)) O ( M 2 ( log M + log n )) time, and the net construction on the support takes no more, thus the total time after the annular construction is ( k ε ) O ( d d i m ) polylog n \left(\frac{k}{\varepsilon}\right)^{O(\mathrm{ddim})}\operatorname{polylog} n ( ε k ) O ( ddim ) polylog n .
Together with the near-linear annular construction and the Czumaj–Sohler polylogarithmic-factor approximation algorithm, this gives a randomized near-linear-time implementation in the original input size n n n .
Proof of the Density-Adaptive Coreset Theorem
Theorem 1.4 (Density-adaptive coreset). Let ( X , dist ) (X,\operatorname{dist}) ( X , dist ) be an n n n -point metric space of doubling dimension at most d d i m ≥ 1 \mathrm{ddim}\geq1 ddim ≥ 1 . Then for every 0 < ε < 1 2 0<\varepsilon<\frac{1}{2} 0 < ε < 2 1 , there is a movement-based ε \varepsilon ε -coreset ( S , w ) (S,w) ( S , w ) of size
∣ S ∣ ≤ ( 1 ε ) O ( d d i m ) k log n , |S|\leq\left(\frac{1}{\varepsilon}\right)^{O(\mathrm{ddim})}k\log n, ∣ S ∣ ≤ ( ε 1 ) O ( ddim ) k log n , whose movement rule is the nearest-neighbor map. Moreover, such a coreset can be constructed in randomized near-linear time with high probability.
Proof. The existential statement follows from the density-adaptive construction analyzed above, using any value O P T \mathrm{OPT} OPT satisfying O P T ≤ O P T ^ ≤ O ( O P T ) \mathrm{OPT}\leq\widehat{\mathrm{OPT}}\leq O(\mathrm{OPT}) OPT ≤ OPT ≤ O ( OPT ) . Lemma 4.10 and Lemma 4.14 give an ε \varepsilon ε -movement coreset of size
k ( 1 ε ) O ( d d i m ) log n . k\left(\frac{1}{\varepsilon}\right)^{O(\mathrm{ddim})}\log n. k ( ε 1 ) O ( ddim ) log n .
For the randomized implementation, run the polylogarithmic-factor approximation algorithm of Czumaj and Sohler [12 ] , and let A A A be twice the cost of the partition it returns. With high probability, 2 OPT ≤ A ≤ 2 L OPT 2\operatorname{OPT} \le A \le2L\operatorname{OPT} 2 OPT ≤ A ≤ 2 L OPT , where L = ( log n ) O ( 1 ) L = (\log n)^{O(1)} L = ( log n ) O ( 1 ) . Condition on this event. First construct an ( ε / 20 ) (\varepsilon/20) ( ε /20 ) -movement annular coreset ( Y , w ) (Y,w) ( Y , w ) of X X X using Lemma 4.1. Since ( Y , w ) (Y,w) ( Y , w ) is an ( ε / 20 ) (\varepsilon/20) ( ε /20 ) -movement coreset and ε < 1 / 2 \varepsilon< 1/2 ε < 1/2 ,
OPT Y , w ≤ A ≤ 4 OPT Y , w . \operatorname{OPT}_{Y,w} \le A \le4\operatorname{OPT}_{Y,w}. OPT Y , w ≤ A ≤ 4 OPT Y , w .
For i = 0 , … , ⌈ log 2 ( 4 L ) ⌉ i = 0,\ldots,\lceil\log_2(4L)\rceil i = 0 , … , ⌈ log 2 ( 4 L )⌉ , set A i = A / 2 i A_i = A/2^i A i = A / 2 i . On the same weighted instance ( Y , w ) (Y,w) ( Y , w ) , run the weighted density-adaptive construction with estimate A i A_i A i and accuracy ε / 20 \varepsilon/20 ε /20 , aborting and discarding this run if its number of representatives exceeds the bound of Lemma 4.15 for a universal constant c c c . Let T T T be the representative set of the last run that meets the size bound, with index j j j . Some i ⋆ i^\star i ⋆ satisfies OPT Y , w ≤ A i ⋆ < 2 OPT Y , w \operatorname{OPT}_{Y,w} \le A_{i^\star} < 2\operatorname{OPT}_{Y,w} OPT Y , w ≤ A i ⋆ < 2 OPT Y , w . By Lemma 4.15 , this run meets the size bound and is therefore not discarded. Hence j ≥ i ⋆ j \ge i^\star j ≥ i ⋆ and A j < 2 OPT Y , w A_j < 2\operatorname{OPT}_{Y,w} A j < 2 OPT Y , w . The proof of Lemma 4.11 uses only this upper bound, so its bound also holds for the selected run. The lower bound on the estimate is needed only for Lemma 4.14 ; here, the size bound holds by the choice of T T T . Applying Lemma 5.10 and Lemma 5.11 gives, after reweighting, an ε \varepsilon ε -movement coreset of X X X of the claimed size. The annular construction is near-linear in n n n , and the weighted density computations are performed only on the annular coreset, whose size is ( k / ε ) O ( d d i m ) log n (k/\varepsilon)^{O(\mathrm{ddim})}\log n ( k / ε ) O ( ddim ) log n . By Lemma 4.16, the O ( log L ) O(\log L) O ( log L ) weighted calls add only ( k / ε ) O ( d d i m ) polylog n (k/\varepsilon)^{O(\mathrm{ddim})}\operatorname{polylog} n ( k / ε ) O ( ddim ) polylog n time. Thus the implementation is near-linear in the original input size n n n .
A Lower Bound for Movement Coresets
We next show that the logarithmic dependence on n n n in the above movement-coreset bounds is unavoidable, already on the line and for k = 2 k = 2 k = 2 . This logarithmic dependence is perhaps surprising in light of the fact that analogous coresets for k k k -median in Euclidean metrics can have size independent of n n n [7 ] .
Proposition 4.18 (A logarithmic lower bound for movement coresets). There are one-dimensional Euclidean instances of constant doubling dimension for which every 1 / 100 1/100 1/100 -movement coreset for min-sum 2 2 2 -clustering has size Ω ( log n ) \Omega(\log n) Ω ( log n ) , where n n n is the input size.
Proof. Let M M M be large, let
L = ⌊ 1 2 log 2 M ⌋ , r i = 2 − i , L = \left\lfloor\frac{1}{2}\log_2 M \right\rfloor,\qquad r_i = 2^{-i}, L = ⌊ 2 1 log 2 M ⌋ , r i = 2 − i ,
and consider the multiset
X = { 0 d } M ∪ { x i = r i e 1 : i ∈ [ L ] } . X = \{0_d\}^{M} \cup\{x_i = r_i e_1 : i \in[L]\}. X = { 0 d } M ∪ { x i = r i e 1 : i ∈ [ L ]} .
This instance lies on a line, hence has constant doubling dimension, and its size is M + L = Θ ( M ) M + L = \Theta(M) M + L = Θ ( M ) . We prove that no movement coreset ( S , w ) (S,w) ( S , w ) with ∣ S ∣ < L |S| < L ∣ S ∣ < L can preserve all 2 2 2 -partitions within a small constant factor. Fix any movement rule π \pi π for such a coreset.
First, all copies of 0 d 0_d 0 d must be mapped to the same representative. Otherwise, the partition separating the zero copies from the nonzero points has original zero cost on the zero cluster, but after applying π \pi π that cluster has positive cost. The cost of the other cluster is at most L 2 L^2 L 2 , whereas the represented zero-cluster cost is at least 2 ( M − 1 ) 2 − L 2(M-1)2^{-L} 2 ( M − 1 ) 2 − L , so for large M M M this already violates the movement guarantee. Let z ∈ S z \in S z ∈ S be the common representative of the zero copies.
We now look at the distance from each representative π ( x i ) \pi(x_i) π ( x i ) to z z z . We claim that for some i i i , this distance differs from the original distance dist ( x i , 0 d ) = r i \operatorname{dist}(x_i,0_d) = r_i dist ( x i , 0 d ) = r i by more than r i / 4 r_i/4 r i /4 . Indeed, suppose otherwise. Then for every i i i ,
dist ( π ( x i ) , z ) ∈ [ 3 4 r i , 5 4 r i ] . \operatorname{dist}(\pi(x_i),z) \in\left[\frac{3}{4}r_i,\frac{5}{4}r_i\right]. dist ( π ( x i ) , z ) ∈ [ 4 3 r i , 4 5 r i ] .
These intervals are disjoint: for consecutive radii, 5 4 r i + 1 = 5 8 r i < 3 4 r i \frac{5}{4}r_{i+1}=\frac{5}{8}r_i<\frac{3}{4}r_i 4 5 r i + 1 = 8 5 r i < 4 3 r i . Hence the L L L numbers dist ( π ( x i ) , z ) \operatorname{dist}(\pi(x_i),z) dist ( π ( x i ) , z ) are all distinct, and therefore the representatives π ( x i ) \pi(x_i) π ( x i ) are L L L distinct points of S S S . This contradicts ∣ S ∣ < L |S|<L ∣ S ∣ < L . Thus there is some i ∈ [ L ] i\in[L] i ∈ [ L ] such that
∣ dist ( π ( x i ) , z ) − r i ∣ > 1 4 r i . \left|\operatorname{dist}(\pi(x_i),z)-r_i\right|>\frac{1}{4}r_i. ∣ dist ( π ( x i ) , z ) − r i ∣ > 4 1 r i .
Consider the 2-partition P i = { A i , B i } P_i=\{A_i,B_i\} P i = { A i , B i } , where
A i = { 0 d } M ∪ { x i } , B i = X ∖ A i . A_i=\{0_d\}^{M}\cup\{x_i\},\qquad B_i=X\setminus A_i. A i = { 0 d } M ∪ { x i } , B i = X ∖ A i .
The contribution of A i A_i A i to the original cost is 2 M r i 2Mr_i 2 M r i , while its contribution after applying π \pi π is 2 M dist ( π ( x i ) , z ) 2M\operatorname{dist}(\pi(x_i),z) 2 M dist ( π ( x i ) , z ) . Therefore the error from this part alone is larger than M r i / 2 Mr_i/2 M r i /2 . Both the original and the projected costs of B i B_i B i are at most L 2 L^2 L 2 , since B i B_i B i has at most L L L points and diameter at most 1. Hence
∣ cost ( P i ) − cost ( π ( P i ) ) ∣ ≥ 1 2 M r i − 2 L 2 . \left|\operatorname{cost}(P_i)-\operatorname{cost}(\pi(P_i))\right|\ge\frac{1}{2}Mr_i-2L^2. ∣ cost ( P i ) − cost ( π ( P i )) ∣ ≥ 2 1 M r i − 2 L 2 .
As i ≤ L i\le L i ≤ L , we have M r i ≥ M 2 − L ≥ M Mr_i\ge M2^{-L}\ge\sqrt{M} M r i ≥ M 2 − L ≥ M , and thus for large enough M M M the right-hand side is at least M r i / 4 Mr_i/4 M r i /4 . On the other hand,
cost ( P i ) ≤ 2 M r i + L 2 ≤ 3 M r i . \operatorname{cost}(P_i)\le2Mr_i+L^2\le3Mr_i. cost ( P i ) ≤ 2 M r i + L 2 ≤ 3 M r i .
The relative error is therefore at least 1 / 12 1/12 1/12 , contradicting the 1 / 100 1/100 1/100 -movement guarantee. Since L = Θ ( log ∣ X ∣ ) L=\Theta(\log|X|) L = Θ ( log ∣ X ∣ ) , the claimed lower bound follows.
Streaming Applications
The coreset constructions also imply two streaming applications. For insertion-only streams, we combine the two-pass streaming algorithm of Czumaj and Sohler [12 ] with the annular construction. The annular construction also gives a multipass dynamic streaming algorithm by repeatedly improving a coarse reference solution and then building the final coreset.
Corollary 1.5 (Algorithm for insertion-only streams). There is a randomized three-pass algorithm for insertion-only streams that, given as input an n n n -point metric space ( X , dist ) (X,\operatorname{dist}) ( X , dist ) of doubling dimension at most ddim ≥ 1 \operatorname{ddim}\ge1 ddim ≥ 1 and 0 < ε < 1 10 0<\varepsilon<\frac{1}{10} 0 < ε < 10 1 , outputs with high probability an estimate OPT ^ ∈ ( 1 ± ε ) OPT ( X ) \widehat{\operatorname{OPT}}\in(1\pm\varepsilon)\operatorname{OPT}(X) OPT ∈ ( 1 ± ε ) OPT ( X ) using ( k log n ) O ( 1 ) + ( k ε ) O ( ddim ) log n (k\log n)^{O(1)}+\left(\frac{k}{\varepsilon}\right)^{O(\operatorname{ddim})}\log n ( k log n ) O ( 1 ) + ( ε k ) O ( ddim ) log n space. 2 Moreover, with one additional pass, the algorithm can output a k k k -partition of X X X , whose cost is within 1 + ε 1+\varepsilon 1 + ε factor of the optimum.
Proof. Run the two-pass streaming algorithm of Czumaj and Sohler [12 ] . It returns a constant-factor solution for balanced k k k -median, and hence, by the equivalence between balanced k k k -median and min-sum used above, a constant-factor reference solution for min-sum. Let c 1 , … , c k c_1,\ldots,c_k c 1 , … , c k be the corresponding centers. The cost of this reference solution is at most c OPT c\operatorname{OPT} c OPT , for a universal constant c > 0 c>0 c > 0 .
In a third pass, run the annular construction with this reference solution, using the cost of the reference solution as the reference cost, and using the same radius sequence, terminal level, and accuracy parameter, with c c c as the approximation constant in Lemma 4.3 . The representatives and weights are maintained online; the induced online movement rule is used only in the analysis of the value estimate. For every center c i c_i c i and annular level j j j , maintain the corresponding η r j \eta r_j η r j -packing N i , j ⊆ X ∩ B ( c i , r j ) N_{i,j} \subseteq X \cap B(c_i,r_j) N i , j ⊆ X ∩ B ( c i , r j ) , together with weights on the representatives. When a point x x x arrives, consider the centers c i c_i c i whose outer ball contains x x x , and let ℓ i ( x ) \ell_i(x) ℓ i ( x ) be the annular level of x x x around such a center. Scan the nets N i , ℓ i ( x ) N_{i,\ell_i(x)} N i , ℓ i ( x ) . If for some scanned net x x x is not covered at its scale, add x x x to the first such net in a fixed order, initialize its weight to 1 1 1 . If all scanned nets cover x x x , increase the weight of a nearest representative s s s in their union. Let S S S be the union of all maintained nets, and denote these online weights by w ′ w' w ′ .
For the analysis, let π ′ : X → S \pi': X \to S π ′ : X → S be the implicit movement rule induced by these updates: a point that creates a representative is mapped to that representative, and a point whose arrival increases the weight of s s s is mapped to s s s . This map is not stored by the algorithm. By construction,
∀ s ∈ S w ′ ( s ) = ∣ ( π ′ ) − 1 ( s ) ∣ . \forall s \in S \qquad w'(s) = \left|(\pi')^{-1}(s)\right|. ∀ s ∈ S w ′ ( s ) = ( π ′ ) − 1 ( s ) .
Under this implicit rule, a point that creates a representative incurs zero movement, and every other point is sent to a representative that covers it at the annular level of a closest reference center. Hence the movement bound of Lemma 4.2 holds for π ′ \pi' π ′ , and the proof of Lemma 4.3 applies unchanged. Thus ( S , w ′ ) (S,w') ( S , w ′ ) , with movement rule π ′ \pi' π ′ , is an ε \varepsilon ε -movement coreset.
The algorithm then computes the optimal weighted min-sum value on ( S , w ′ ) (S,w') ( S , w ′ ) and outputs this value as O P T ^ \widehat{\mathrm{OPT}} OPT . We now show that this is a ( 1 ± ε ) (1 \pm\varepsilon) ( 1 ± ε ) -estimate of the original optimum. By Corollary 5.3 , there is a partition of S S S whose weighted cost is at most ( 1 + ε ) O P T (1+\varepsilon)\mathrm{OPT} ( 1 + ε ) OPT , and therefore
O P T ^ ≤ ( 1 + ε ) O P T . \widehat{\mathrm{OPT}} \le(1+\varepsilon)\mathrm{OPT}. OPT ≤ ( 1 + ε ) OPT .
Conversely, let Q Q Q be an optimal partition of ( S , w ′ ) (S,w') ( S , w ′ ) , and lift it to a partition P P P of X X X using π ′ \pi' π ′ . Then cost S , w ′ ( Q ) = cost ( π ′ ( P ) ) \operatorname{cost}_{S,w'}(Q)=\operatorname{cost}(\pi'(P)) cost S , w ′ ( Q ) = cost ( π ′ ( P )) , and the movement-coreset guarantee gives
O P T ^ = cost S , w ′ ( Q ) ≥ ( 1 − ε ) cost ( P ) ≥ ( 1 − ε ) O P T . \widehat{\mathrm{OPT}}=\operatorname{cost}_{S,w'}(Q)\ge(1-\varepsilon)\operatorname{cost}(P)\ge(1-\varepsilon)\mathrm{OPT}. OPT = cost S , w ′ ( Q ) ≥ ( 1 − ε ) cost ( P ) ≥ ( 1 − ε ) OPT .
With one additional pass over the stream, keep the same representative set S S S and recount the weights according to the final nearest-neighbor movement rule π : X → S \pi:X\to S π : X → S , namely set w ( s ) = ∣ π − 1 ( s ) ∣ w(s)=|\pi^{-1}(s)| w ( s ) = ∣ π − 1 ( s ) ∣ . Since π ( x ) \pi(x) π ( x ) is a nearest representative in the final set S S S , while π ′ ( x ) ∈ S \pi'(x)\in S π ′ ( x ) ∈ S , we have dist ( x , π ( x ) ) ≤ dist ( x , π ′ ( x ) ) \operatorname{dist}(x,\pi(x))\le\operatorname{dist}(x,\pi'(x)) dist ( x , π ( x )) ≤ dist ( x , π ′ ( x )) for every x ∈ X x\in X x ∈ X . Therefore the annular movement bound also holds for π \pi π , and by Lemma 5.11 , the bound in Lemma 4.3 applies to the recounted weighted set ( S , w ) (S,w) ( S , w ) . This proves the stated coreset guarantee after the additional pass.
Since each N i , j N_{i,j} N i , j is still an η r j \eta r_j η r j -packing in B ( c i , r j ) B(c_i,r_j) B ( c i , r j ) , Lemma 4.5 gives
∣ S ∣ ≤ ( k ε ) O ( ddim ) log n . |S| \le\left(\frac{k}{\varepsilon}\right)^{O(\operatorname{ddim})}\log n. ∣ S ∣ ≤ ( ε k ) O ( ddim ) log n .
Adding the poly ( k , log n ) \operatorname{poly}(k,\log n) poly ( k , log n ) space used by the Czumaj–Sohler streaming algorithm gives the claimed space bound. The guarantees above are conditioned on the success event of the Czumaj–Sohler primitive, which holds with high probability; conditional on this event, the remaining steps are deterministic.
Grid version of the annular construction. For the dynamic and Euclidean setting we use the same annular construction, but replace the nets by fixed grids. This makes the set of possible representatives independent of the active point set, which is necessary when points may later be deleted.
Let
R = { R 1 , … , R k } \mathcal{R}=\{R_1,\ldots,R_k\} R = { R 1 , … , R k }
be a reference partition with centers c 1 , … , c k c_1,\ldots,c_k c 1 , … , c k , and let O P T ^ = cost ( R ) \widehat{\mathrm{OPT}}=\operatorname{cost}(\mathcal{R}) OPT = cost ( R ) . As before, set
r 0 = 20 O P T ^ , r j = r 0 2 j , j = 0 , … , L , r_0=20\widehat{\mathrm{OPT}},\qquad r_j=\frac{r_0}{2^j},\qquad j=0,\ldots,L, r 0 = 20 OPT , r j = 2 j r 0 , j = 0 , … , L ,
where L = ⌈ log 2 ( 40 n 10 ) ⌉ L=\lceil\log_2(40n^{10})\rceil L = ⌈ log 2 ( 40 n 10 )⌉ . For each i ∈ [ k ] i\in[k] i ∈ [ k ] and level j j j , take a grid around c i c_i c i with side length
ℓ j = ε r j d . \ell_j=\frac{\varepsilon r_j}{\sqrt{d}}. ℓ j = d ε r j .
Let S S S contain all grid points whose cells intersect B ( c i , r j ) B(c_i,r_j) B ( c i , r j ) , over all i i i and j j j . Let π : X → S \pi:X\to S π : X → S be the nearest-grid movement rule, which maps each point x ∈ X x\in X x ∈ X to the closest grid point π ( x ) ∈ S \pi(x)\in S π ( x ) ∈ S .
The same movement bound as in the annular construction holds. Consequently, all pairwise movement estimates from the annular proof remain unchanged. The only difference is the size bound. At each level and for each center, the number of grid points is at most
( C k d ε ) d \left(\frac{Ck\sqrt{d}}{\varepsilon}\right)^d ( ε C k d ) d
for a universal constant C C C . Therefore,
∣ S ∣ ≤ k ( C k d ε ) d log n . |S|\leq k\left(\frac{Ck\sqrt{d}}{\varepsilon}\right)^d\log n. ∣ S ∣ ≤ k ( ε C k d ) d log n .
The advantage of this grid version is that insertions and deletions only change the weights of fixed representatives: an insertion increases the weight of π ( x ) \pi(x) π ( x ) , and a deletion decreases the weight of the same representative.
Corollary 1.6 (Algorithm for dynamic Euclidean streams). There is a randomized multipass algorithm for dynamic streams that, given as input an n n n -point Euclidean set X ⊆ [ Δ ] d X\subseteq[\Delta]^d X ⊆ [ Δ ] d with Δ = poly ( n ) \Delta=\operatorname{poly}(n) Δ = poly ( n ) of doubling dimension at most ddim ≥ 1 \operatorname{ddim}\geq1 ddim ≥ 1 , and 0 < ε < 1 10 0<\varepsilon<\frac{1}{10} 0 < ε < 10 1 , outputs with probability at least 3 / 4 3/4 3/4 an estimate O P T ^ ∈ ( 1 ± ε ) OPT ( X ) \widehat{\mathrm{OPT}}\in(1\pm\varepsilon)\operatorname{OPT}(X) OPT ∈ ( 1 ± ε ) OPT ( X ) , using O ( log n ) O(\log n) O ( log n ) passes and ( k t / ε ) d log n + poly ( d , k , t , log log ( n Δ ) ) (kt/\varepsilon)^d\log n+\operatorname{poly}(d,k,t,\log\log(n\Delta)) ( k t / ε ) d log n + poly ( d , k , t , log log ( n Δ )) space for t = O ( ε − 2 ( ddim log ( 1 / ε ) + log k + log log n ) ) t=O(\varepsilon^{-2}(\operatorname{ddim}\log(1/\varepsilon)+\log k+\log\log n)) t = O ( ε − 2 ( ddim log ( 1/ ε ) + log k + log log n )) .
Moreover, with one additional pass, the algorithm can output a k k k -partition of X X X , whose cost is within 1 + ε 1+\varepsilon 1 + ε factor of the optimum.
Proof. We first apply the dynamic k k k -median coreset construction of [7 ] to the original stream on [ Δ ] d [\Delta]^d [ Δ ] d , with constant accuracy. We compute a constant-factor k k k -median solution C = { c 1 , … , c k } C=\{c_1,\ldots,c_k\} C = { c 1 , … , c k } from the resulting coreset. If D D D is its k k k -median cost on X X X , then D ≤ O ( 1 ) OPT m e d ≤ O ( 1 ) OPT D\leq O(1)\operatorname{OPT}_{\mathrm{med}}\leq O(1)\operatorname{OPT} D ≤ O ( 1 ) OPT med ≤ O ( 1 ) OPT .
We now choose the Gaussian map f f f with target dimension
t = O ( ε − 2 ( ddim log ( 1 / ε ) + log k + log log n ) ) . t=O\left(\varepsilon^{-2}(\operatorname{ddim}\log(1/\varepsilon)+\log k+\log\log n)\right). t = O ( ε − 2 ( ddim log ( 1/ ε ) + log k + log log n ) ) .
For each x ∈ X x\in X x ∈ X , let σ ( x ) ∈ C \sigma(x)\in C σ ( x ) ∈ C be the closest center to x x x in the original metric. Since C C C and σ \sigma σ are fixed before f f f is sampled, a standard fixed-solution JL estimate gives, with high probability,
∑ x ∈ X ∥ f ( x ) − f ( σ ( x ) ) ∥ ≤ O ( 1 ) ∑ x ∈ X ∥ x − σ ( x ) ∥ ≤ O ( n D ) . \sum_{x\in X}\|f(x)-f(\sigma(x))\|\leq O(1)\sum_{x\in X}\|x-\sigma(x)\|\leq O(nD). x ∈ X ∑ ∥ f ( x ) − f ( σ ( x )) ∥ ≤ O ( 1 ) x ∈ X ∑ ∥ x − σ ( x ) ∥ ≤ O ( n D ) .
Thus the projected centers f ( C ) f(C) f ( C ) have k k k -median cost O ( n D ) O(nD) O ( n D ) for the embedded instance. If P 0 \mathcal{P}_0 P 0 is the partition of f ( X ) f(X) f ( X ) induced by the nearest center in f ( C ) f(C) f ( C ) , then by the triangle inequality,
cost ( P 0 ) ≤ 2 n ∑ x ∈ X dist ( f ( x ) , f ( C ) ) ≤ O ( n 2 D ) ≤ O ( n 2 ) OPT . \operatorname{cost}(\mathcal{P}_0)\leq2n\sum_{x\in X}\operatorname{dist}(f(x),f(C))\leq O(n^2D)\leq O(n^2)\operatorname{OPT}. cost ( P 0 ) ≤ 2 n x ∈ X ∑ dist ( f ( x ) , f ( C )) ≤ O ( n 2 D ) ≤ O ( n 2 ) OPT .
By Theorem 1.2, the optimum min-sum cost in the embedded instance is within a constant factor of OPT. Hence f ( C ) f(C) f ( C ) gives a sufficiently coarse reference solution for the embedded instance. We now run the grid-based annular construction on the embedded instance in R t \mathbb{R}^{t} R t . The embedded points are not necessarily contained in a finite integer grid, but this causes no problem: the dynamic k k k -median algorithm was used only before the projection, on the original universe [ Δ ] d [\Delta]^{d} [ Δ ] d . Once the reference centers are fixed, the grid construction defines a finite set of representatives in R t \mathbb{R}^{t} R t , and subsequent passes over the original stream only update the weights of these fixed representatives.
The movement inequalities imply an improvement recurrence of the form
cost ( P r + 1 ) ≤ O ( 1 ) OPT + 1 2 cost ( P r ) . \operatorname{cost}(\mathcal{P}_{r+1}) \le O(1)\operatorname{OPT} + \frac{1}{2}\operatorname{cost}(\mathcal{P}_{r}). cost ( P r + 1 ) ≤ O ( 1 ) OPT + 2 1 cost ( P r ) .
After O ( log n ) O(\log n) O ( log n ) passes, this gives a constant-factor approximate reference partition.
In one additional pass, run the same grid construction with movement parameter
η = Θ ( ε k ) . \eta= \Theta\left(\frac{\varepsilon}{k}\right). η = Θ ( k ε ) .
The movement guarantee then gives, for every partition P \mathcal{P} P of the final active set X X X into at most k k k parts,
∣ cost ( P ) − cost ( π ( P ) ) ∣ ≤ ε cost ( P ) . \left|\operatorname{cost}(\mathcal{P})-\operatorname{cost}(\pi(\mathcal{P}))\right| \le\varepsilon\operatorname{cost}(\mathcal{P}). ∣ cost ( P ) − cost ( π ( P )) ∣ ≤ ε cost ( P ) .
Since the grid construction is now applied in dimension t t t , it uses at most
( C k t ε ) t \left(\frac{Ck\sqrt{t}}{\varepsilon}\right)^{t} ( ε C k t ) t
representatives per center and per level. There are k k k centers and O ( log n ) O(\log n) O ( log n ) levels, giving total space
k ( C k t ε ) t log n . k\left(\frac{Ck\sqrt{t}}{\varepsilon}\right)^{t}\log n. k ( ε C k t ) t log n .
After adjusting the constant hidden in the definition of t t t , this is bounded by
( k t ε ) t log n . \left(\frac{kt}{\varepsilon}\right)^{t}\log n. ( ε k t ) t log n .
Together with the initial constant-factor k k k -median computation, the total number of passes is O ( log n ) O(\log n) O ( log n ) , and the space is
poly ( d , k , log ( n ) ) + ( k t ε ) t log n . \operatorname{poly}(d,k,\log(n))+\left(\frac{kt}{\varepsilon}\right)^{t}\log n. poly ( d , k , log ( n )) + ( ε k t ) t log n .
As in the insertion-only case, solving the final weighted instance gives a value OPT ^ ∈ ( 1 ± ε ) OPT \widehat{\operatorname{OPT}}\in(1\pm\varepsilon)\operatorname{OPT} OPT ∈ ( 1 ± ε ) OPT . Lifting an optimal weighted partition back to X X X through π \pi π gives a k k k -partition P ^ \widehat{\mathcal{P}} P with cost ( P ^ ) ≤ ( 1 + O ( ε ) ) OPT \operatorname{cost}(\widehat{\mathcal{P}})\le(1+O(\varepsilon))\operatorname{OPT} cost ( P ) ≤ ( 1 + O ( ε )) OPT , and rescaling ε \varepsilon ε gives the stated bound.
Coreset Properties
Movement coresets compress the input while approximately preserving the cost of every partition. This raises several questions beyond their construction: whether optimization can be performed directly on the weighted instance, whether the same constructions extend to related objectives, and whether the guarantees remain valid when coresets or movement rules are combined. The results in this section demonstrate that movement-coresets support substantially more than partition-cost preservation.
Our results in this section rely on two different coreset guarantees. Some use only the fact that the cost of every partition is preserved, whereas others require explicit control of the movement (distances between input points and their representatives). Since a point x x x in a part A A A participates in ∣ A ∣ − 1 |A|-1 ∣ A ∣ − 1 pairwise distances, the effect of moving it is naturally controlled by the quantity ∣ A ∣ ∑ x ∈ A dist ( x , π ( x ) ) \lvert A\rvert\sum_{x\in A}\operatorname{dist}(x,\pi(x)) ∣ A ∣ ∑ x ∈ A dist ( x , π ( x )) . This motivates the notion of a ϵ \epsilon ϵ -bounded-movement coreset, defined below. Our coreset constructions satisfy this bounded-movement guarantee. The triangle inequality converts this guarantee into the usual movement-coreset guarantee, while the explicit control of the movements is useful for several additional applications. We then show that this stronger guarantee remains useful across related clustering settings and under natural coreset operations. We show that optimization does not require splitting representative weights (Claim 5.2 and Corollary 5.3 ), extend the constructions to related objectives (Lemma 5.4 and Proposition 5.6 ), and determine when coresets can be combined or reweighted without losing their guarantees (Lemma 5.8 , Lemma 5.9 and Lemma 5.11 ).
Definition 5.1 (Bounded-movement coreset). A weighted set ( S , w ) (S,w) ( S , w ) , with S ⊂ X S\subset X S ⊂ X , is a ϵ \epsilon ϵ -bounded-movement coreset if there is a map π : X → S \pi:X\to S π : X → S , consistent with the weights, such that every k k k -partition P \mathcal{P} P of X X X satisfies
∑ A ∈ P ∣ A ∣ ∑ x ∈ A dist ( x , π ( x ) ) ≤ ϵ ⋅ cost ( P ) . (37) \sum_{A\in\mathcal{P}} |A|\sum_{x\in A}\operatorname{dist}(x,\pi(x)) \le\epsilon\cdot\operatorname{cost}(\mathcal{P}). \tag*{(37)} A ∈ P ∑ ∣ A ∣ x ∈ A ∑ dist ( x , π ( x )) ≤ ϵ ⋅ cost ( P ) . (37)
It is sometimes useful to restrict this requirement to a specified set of feasible partitions.
This bound controls, for every partition, the distances between the input points and their representatives relative to the cost of the partition. By the triangle inequality, every ϵ \epsilon ϵ -bounded-movement coreset is a 2 ϵ 2\epsilon 2 ϵ -movement coreset.
Unsplitting and Optimization
A k k k -partition of the multiset represented by ( S , w ) (S,w) ( S , w ) may assign different copies of the same representative to different clusters. We call a partition consistent if all copies of each s ∈ S s\in S s ∈ S belong to the same part. Such a partition can be identified with a partition of S S S . The next claim shows that consistency can be imposed without increasing the min-sum cost.
Claim 5.2 (Unsplitting representatives). Let ( S , w ) (S,w) ( S , w ) be a weighted set with integer weights. Suppose we partition the multiset represented by ( S , w ) (S,w) ( S , w ) into at most k k k parts, possibly splitting copies of the same s ∈ S s\in S s ∈ S between different parts. Then there is a consistent partition into at most k k k parts, of no larger cost.
Proof. If the copies of some s ∈ S s\in S s ∈ S are split between several parts, move all of them to the part that minimizes their contribution to the cost. Since copies of s s s are at distance zero from one another, this minimization is based on the interaction of s s s with (copies of) other points in S S S . Repeating this for every split representative gives the claim.
Consequently, optimizing over consistent partitions of ( S , w ) (S,w) ( S , w ) yields a partition of X X X whose cost is comparable to the optimal min-sum k k k -clustering cost of X X X .
Corollary 5.3 (Optimization on a movement coreset). Let ( S , w ) (S,w) ( S , w ) be an ϵ \epsilon ϵ -movement coreset with movement rule π : X → S \pi:X\to S π : X → S . There exists a partition Q ∗ Q^* Q ∗ of S S S into at most k k k parts such that
cost S , w ( Q ∗ ) ≤ ( 1 + ϵ ) OPT . \operatorname{cost}_{S,w}(Q^*)\le(1+\epsilon)\operatorname{OPT}. cost S , w ( Q ∗ ) ≤ ( 1 + ϵ ) OPT .
Proof. Let P ∗ \mathcal{P}^* P ∗ be an optimal partition of X X X . The partition π ( P ∗ ) \pi(\mathcal{P}^*) π ( P ∗ ) assigns the copies of each representative in S S S to at most k k k parts, and by the movement guarantee the cost of π ( P ∗ ) \pi(\mathcal{P}^*) π ( P ∗ ) is at most ( 1 + ε ) O P T (1+\varepsilon)\mathrm{OPT} ( 1 + ε ) OPT . By Claim 5.2 , we may consolidate the copies of every representative without increasing the cost, which gives the desired weighted partition of S S S .
Costs with Powers of Distances
Fix a constant z ≥ 1 z \ge1 z ≥ 1 . For a set A ⊆ X A \subseteq X A ⊆ X and a partition P \mathcal{P} P of X X X , define
cost z ( A ) = ∑ x , y ∈ A dist ( x , y ) z , cost z ( P ) = ∑ A ∈ P cost z ( A ) , O P T z = min P cost z ( P ) . \operatorname{cost}_z(A)=\sum_{x,y\in A}\operatorname{dist}(x,y)^z,\qquad\operatorname{cost}_z(\mathcal{P})=\sum_{A\in\mathcal{P}}\operatorname{cost}_z(A),\qquad\mathrm{OPT}_z=\min_{\mathcal{P}}\operatorname{cost}_z(\mathcal{P}). cost z ( A ) = x , y ∈ A ∑ dist ( x , y ) z , cost z ( P ) = A ∈ P ∑ cost z ( A ) , OPT z = P min cost z ( P ) .
In this subsection, we use the power-z z z analogue of Definition 5.1 which is obtained by raising each movement distance to power z z z and replacing cost by cost z \operatorname{cost}_z cost z .
Lemma 5.4 (Density-adaptive coresets for distance powers). For every z ≥ 1 z \ge1 z ≥ 1 and 0 < ε < 1 / 2 0 < \varepsilon< 1/2 0 < ε < 1/2 , an adaptation of our density-adaptive construction produces a coreset of size
k ( z ε ) O ( ddim ) log n k\left(\frac{z}{\varepsilon}\right)^{O(\operatorname{ddim})}\log n k ( ε z ) O ( ddim ) log n whose movement rule π \pi π satisfies, for every k k k -partition P \mathcal{P} P ,
∑ A ∈ P ∣ A ∣ ∑ x ∈ A dist ( x , π ( x ) ) z ≤ ( ε 16 z ) z cost z ( P ) . \sum_{A\in\mathcal{P}}|A|\sum_{x\in A}\operatorname{dist}(x,\pi(x))^z\le\left(\frac{\varepsilon}{16z}\right)^z\operatorname{cost}_z(\mathcal{P}). A ∈ P ∑ ∣ A ∣ x ∈ A ∑ dist ( x , π ( x ) ) z ≤ ( 16 z ε ) z cost z ( P ) . Thus, the resulting coreset satisfies the power-z z z analogue of Definition 5.1 with ε ′ = ( ε / ( 16 z ) ) z \varepsilon'=(\varepsilon/(16z))^z ε ′ = ( ε / ( 16 z ) ) z . Consequently, it preserves cost z \operatorname{cost}_z cost z within a factor 1 ± ε 1\pm\varepsilon 1 ± ε for every k k k -partition.
Proof. In the density-adaptive construction, replace the movement scale by
r ( x ) = min 2 ≤ m ≤ n max { ( 1 m ∑ w ∈ Γ m ( x ) dist ( x , w ) z ) 1 / z , ( O P T ^ z k m 2 ) 1 / z } . r(x)=\min_{2\le m\le n}\max\left\{\left(\frac{1}{m}\sum_{w\in\Gamma_m(x)}\operatorname{dist}(x,w)^z\right)^{1/z},\left(\frac{\widehat{\mathrm{OPT}}_z}{km^2}\right)^{1/z}\right\}. r ( x ) = 2 ≤ m ≤ n min max ⎩ ⎨ ⎧ m 1 w ∈ Γ m ( x ) ∑ dist ( x , w ) z 1/ z , ( k m 2 OPT z ) 1/ z ⎭ ⎬ ⎫ .
where O P T z ≤ O P T ^ z ≤ C ⋅ O P T z \mathrm{OPT}_z\le\widehat{\mathrm{OPT}}_z\le C\cdot\mathrm{OPT}_z OPT z ≤ OPT z ≤ C ⋅ OPT z for a constant C ≥ 1 C\ge1 C ≥ 1 . Construct the same rings and nets at distance scale η r ( x ) \eta r(x) η r ( x ) , where η = ε / ( 32 C z ) \eta=\varepsilon/(32Cz) η = ε / ( 32 C z ) . As before, let S r S_r S r denote the representatives chosen for the ring { x ∈ X : r ≤ r ( x ) < 2 r } \{x\in X:r\le r(x)<2r\} { x ∈ X : r ≤ r ( x ) < 2 r } , and let S S S be the union of these representative sets. If ∣ A ∣ = m |A|=m ∣ A ∣ = m , the definition of r ( x ) r(x) r ( x ) gives
∣ A ∣ ∑ x ∈ A dist ( x , π ( x ) ) z ≤ η z cost z ( A ) + η z O P T ^ z k . |A|\sum_{x\in A}\operatorname{dist}(x,\pi(x))^z\le\eta^z\operatorname{cost}_z(A)+\frac{\eta^z\widehat{\mathrm{OPT}}_z}{k}. ∣ A ∣ x ∈ A ∑ dist ( x , π ( x ) ) z ≤ η z cost z ( A ) + k η z OPT z .
Summing over the at most k k k parts of P \mathcal{P} P , and using O P T ^ z ≤ C ⋅ O P T z ≤ C ⋅ cost z ( P ) \widehat{\mathrm{OPT}}_z\le C\cdot\mathrm{OPT}_z\le C\cdot\operatorname{cost}_z(\mathcal{P}) OPT z ≤ C ⋅ OPT z ≤ C ⋅ cost z ( P ) , gives
∑ A ∈ P ∣ A ∣ ∑ x ∈ A dist ( x , π ( x ) ) z ≤ ( 1 + C ) η z cost z ( P ) ≤ ( ε 16 z ) z cost z ( P ) . \sum_{A\in\mathcal{P}}|A|\sum_{x\in A}\operatorname{dist}(x,\pi(x))^z\le(1+C)\eta^z\operatorname{cost}_z(\mathcal{P})\le\left(\frac{\varepsilon}{16z}\right)^z\operatorname{cost}_z(\mathcal{P}). A ∈ P ∑ ∣ A ∣ x ∈ A ∑ dist ( x , π ( x ) ) z ≤ ( 1 + C ) η z cost z ( P ) ≤ ( 16 z ε ) z cost z ( P ) .
This proves the displayed movement bound.
For all a , b ≥ 0 a,b\ge0 a , b ≥ 0 , by convexity we have
( a + b ) z ≤ ( 1 + ε 2 ) a z + ( 1 + 4 z ε ) z − 1 b z . (38) (a+b)^z\le\left(1+\frac{\varepsilon}{2}\right)a^z+\left(1+\frac{4z}{\varepsilon}\right)^{z-1}b^z. \tag*{(38)} ( a + b ) z ≤ ( 1 + 2 ε ) a z + ( 1 + ε 4 z ) z − 1 b z . (38)
For every part A ∈ P A \in\mathcal{P} A ∈ P and every pair points x , y ∈ A x,y \in A x , y ∈ A , let
b x , y = dist ( x , π ( x ) ) + dist ( y , π ( y ) ) . b_{x,y}=\operatorname{dist}(x,\pi(x))+\operatorname{dist}(y,\pi(y)). b x , y = dist ( x , π ( x )) + dist ( y , π ( y )) .
By the triangle inequality
∣ dist ( π ( x ) , π ( y ) ) − dist ( x , y ) ∣ ≤ b x , y . \left|\operatorname{dist}(\pi(x),\pi(y))-\operatorname{dist}(x,y)\right|\le b_{x,y}. ∣ dist ( π ( x ) , π ( y )) − dist ( x , y ) ∣ ≤ b x , y .
Applying (38) gives
dist ( π ( x ) , π ( y ) ) z ≤ ( 1 + ε 2 ) dist ( x , y ) z + ( 1 + 4 z ε ) z − 1 b x , y z . (39) \operatorname{dist}(\pi(x),\pi(y))^{z}\le\left(1+\frac{\varepsilon}{2}\right)\operatorname{dist}(x,y)^{z}+\left(1+\frac{4z}{\varepsilon}\right)^{z-1}b_{x,y}^{z}. \tag*{(39)} dist ( π ( x ) , π ( y ) ) z ≤ ( 1 + 2 ε ) dist ( x , y ) z + ( 1 + ε 4 z ) z − 1 b x , y z . (39)
dist ( x , y ) z ≤ ( 1 + ε 2 ) dist ( π ( x ) , π ( y ) ) z + ( 1 + 4 z ε ) z − 1 b x , y z . (40) \operatorname{dist}(x,y)^{z}\le\left(1+\frac{\varepsilon}{2}\right)\operatorname{dist}(\pi(x),\pi(y))^{z}+\left(1+\frac{4z}{\varepsilon}\right)^{z-1}b_{x,y}^{z}. \tag*{(40)} dist ( x , y ) z ≤ ( 1 + 2 ε ) dist ( π ( x ) , π ( y ) ) z + ( 1 + ε 4 z ) z − 1 b x , y z . (40)
We next bound the second term in these inequalities. Since
b x , y z ≤ 2 z − 1 ( dist ( x , π ( x ) ) z + dist ( y , π ( y ) ) z ) , b_{x,y}^{z}\le2^{z-1}\left(\operatorname{dist}(x,\pi(x))^{z}+\operatorname{dist}(y,\pi(y))^{z}\right), b x , y z ≤ 2 z − 1 ( dist ( x , π ( x ) ) z + dist ( y , π ( y ) ) z ) ,
summing over all pairs of points in all parts and rearranging gives
∑ A ∈ P ∑ x , y ∈ A b x , y z ≤ 2 z ∑ A ∈ P ∣ A ∣ ∑ x ∈ A dist ( x , π ( x ) ) z , \sum_{A\in\mathcal{P}}\sum_{x,y\in A}b_{x,y}^{z}\le2^{z}\sum_{A\in\mathcal{P}}|A|\sum_{x\in A}\operatorname{dist}(x,\pi(x))^{z}, A ∈ P ∑ x , y ∈ A ∑ b x , y z ≤ 2 z A ∈ P ∑ ∣ A ∣ x ∈ A ∑ dist ( x , π ( x ) ) z ,
and since 1 + 4 z / ε ≤ 5 z / ε 1+4z/\varepsilon\le5z/\varepsilon 1 + 4 z / ε ≤ 5 z / ε , we get
( 1 + 4 z ε ) z − 1 ∑ A ∈ P ∑ x , y ∈ A b x , y z ≤ 2 z ( 5 z ε ) z − 1 ( ε 16 z ) z cost z ( P ) ≤ ε 8 cost z ( P ) . \left(1+\frac{4z}{\varepsilon}\right)^{z-1}\sum_{A\in\mathcal{P}}\sum_{x,y\in A}b_{x,y}^{z}\le2^{z}\left(\frac{5z}{\varepsilon}\right)^{z-1}\left(\frac{\varepsilon}{16z}\right)^{z}\operatorname{cost}_{z}(\mathcal{P})\le\frac{\varepsilon}{8}\operatorname{cost}_{z}(\mathcal{P}). ( 1 + ε 4 z ) z − 1 A ∈ P ∑ x , y ∈ A ∑ b x , y z ≤ 2 z ( ε 5 z ) z − 1 ( 16 z ε ) z cost z ( P ) ≤ 8 ε cost z ( P ) .
Summing (39) over all pairs gives
cost z ( π ( P ) ) ≤ ( 1 + ε 2 + ε 8 ) cost z ( P ) ≤ ( 1 + ε ) cost z ( P ) . \operatorname{cost}_{z}(\pi(\mathcal{P}))\le\left(1+\frac{\varepsilon}{2}+\frac{\varepsilon}{8}\right)\operatorname{cost}_{z}(\mathcal{P})\le(1+\varepsilon)\operatorname{cost}_{z}(\mathcal{P}). cost z ( π ( P )) ≤ ( 1 + 2 ε + 8 ε ) cost z ( P ) ≤ ( 1 + ε ) cost z ( P ) .
Summing (40) over all pairs gives
cost z ( π ( P ) ) ≥ 1 − ε / 8 1 + ε / 2 cost z ( P ) ≥ ( 1 − ε ) cost z ( P ) . \operatorname{cost}_{z}(\pi(\mathcal{P}))\ge\frac{1-\varepsilon/8}{1+\varepsilon/2}\operatorname{cost}_{z}(\mathcal{P})\ge(1-\varepsilon)\operatorname{cost}_{z}(\mathcal{P}). cost z ( π ( P )) ≥ 1 + ε /2 1 − ε /8 cost z ( P ) ≥ ( 1 − ε ) cost z ( P ) .
It remains to bound the size of S S S . Fix a radius r r r , and let N r N_r N r be a ( 16 r ) (16r) ( 16 r ) -net of S r S_r S r . The proof of Lemma 4.13 applies with power-z z z distances: for every v ∈ N r v\in N_r v ∈ N r , more than half of the m v m_v m v nearest points lie in B ( v , 4 r ) B(v,4r) B ( v , 4 r ) , and m v > OPT ^ z / ( 2 z k r z ) m_v>\sqrt{\widehat{\operatorname{OPT}}_z/(2^zkr^z)} m v > OPT z / ( 2 z k r z ) . Taking h = ⌈ OPT ^ z / ( 2 z + 2 k r z ) ⌉ h=\left\lceil\sqrt{\widehat{\operatorname{OPT}}_z/(2^{z+2}kr^z)}\right\rceil h = ⌈ OPT z / ( 2 z + 2 k r z ) ⌉ , the same pair count across distinct groups G v G_v G v , now with every distance raised to the z z z -th power, gives ∣ N r ∣ < 3 k |N_r|<3k ∣ N r ∣ < 3 k . Each region contains at most ( C z / ε ) O ( d d i m ) (Cz/\varepsilon)^{O(\mathrm{ddim})} ( C z / ε ) O ( ddim ) representatives by packing. As in Lemma 4.12, the set H H H has size at most k k k , and there are O ( log n ) O(\log n) O ( log n ) scales. This proves the stated size of the coreset. □
Lemma 5.5 (Annular coresets for power-z z z distances). For every z ≥ 1 z\ge1 z ≥ 1 and 0 < ε < 1 / 2 0<\varepsilon<1/2 0 < ε < 1/2 , an adaption of our annular construction has size
( k z ε ) O ( d d i m ) log n \left(\frac{kz}{\varepsilon}\right)^{O(\mathrm{ddim})}\log n ( ε k z ) O ( ddim ) log n
and satisfies, for every k k k -partition P \mathcal{P} P ,
∑ A ∈ P ∣ A ∣ ∑ x ∈ A dist ( x , π ( x ) ) z ≤ ( ε 16 z ) z cost z ( P ) . \sum_{A\in\mathcal{P}} |A|\sum_{x\in A} \operatorname{dist}(x,\pi(x))^{z} \le\left(\frac{\varepsilon}{16z}\right)^{z}\operatorname{cost}_{z}(\mathcal{P}). A ∈ P ∑ ∣ A ∣ x ∈ A ∑ dist ( x , π ( x ) ) z ≤ ( 16 z ε ) z cost z ( P ) .
Thus it satisfies the power-z z z analogue of Definition 5.1 with ε ′ = ( ε / ( 16 z ) ) z \varepsilon'=(\varepsilon/(16z))^{z} ε ′ = ( ε / ( 16 z ) ) z . Consequently, it preserves cost z \operatorname{cost}_{z} cost z within factor 1 ± ε 1\pm\varepsilon 1 ± ε for every k k k -partition.
Proof. Run the annular construction with movement parameter η = ε / ( 16 C 0 z k ) \eta=\varepsilon/(16C_{0}zk) η = ε / ( 16 C 0 z k ) , where C 0 > 0 C_{0}>0 C 0 > 0 is a sufficiently large absolute constant. The charging argument of Lemma 4.4 , with every distance raised to the z z z -th power, bounds the power-z z z movement cost by
∑ A ∈ P ∣ A ∣ ∑ x ∈ A dist ( x , π ( x ) ) z ≤ ( C 0 k η ) z cost z ( P ) = ( ε 16 z ) z cost z ( P ) . \sum_{A\in\mathcal{P}} |A|\sum_{x\in A} \operatorname{dist}(x,\pi(x))^{z} \le(C_{0}k\eta)^{z}\operatorname{cost}_{z}(\mathcal{P})=\left(\frac{\varepsilon}{16z}\right)^{z}\operatorname{cost}_{z}(\mathcal{P}). A ∈ P ∑ ∣ A ∣ x ∈ A ∑ dist ( x , π ( x ) ) z ≤ ( C 0 k η ) z cost z ( P ) = ( 16 z ε ) z cost z ( P ) .
As shown in the proof of Lemma 5.4 , this movement bound is sufficient to preserve cost z \operatorname{cost}_{z} cost z within factor 1 ± ε 1\pm\varepsilon 1 ± ε .
Balanced Euclidean k k k -Means
The case z = 2 z=2 z = 2 of the preceding subsection yields a guarantee also for balanced Euclidean k k k -means which holds for every possible choice of centers. To formulate this extension, we need to define how a movement rule acts on the centers associated with a partition.
For a k k k -partition P \mathcal{P} P of a Euclidean set X X X and corresponding centers C = ( c A ) A ∈ P C=(c_{A})_{A\in\mathcal{P}} C = ( c A ) A ∈ P , define the balanced k k k -means cost by
cost b k m e a n s ( P , C ) = ∑ A ∈ P ∣ A ∣ ∑ x ∈ A dist ( x , c A ) 2 . \operatorname{cost}_{\mathrm{bkmeans}}(\mathcal{P},C)=\sum_{A\in\mathcal{P}} |A|\sum_{x\in A}\operatorname{dist}(x,c_{A})^{2}. cost bkmeans ( P , C ) = A ∈ P ∑ ∣ A ∣ x ∈ A ∑ dist ( x , c A ) 2 .
For a set B ⊆ R d B\subseteq\mathbb{R}^{d} B ⊆ R d , define its centroid by
x ˉ B : = 1 ∣ B ∣ ∑ x ∈ B x . \bar{x}_{B}:=\frac{1}{|B|}\sum_{x\in B}x. x ˉ B := ∣ B ∣ 1 x ∈ B ∑ x .
Let π : X → S \pi:X\to S π : X → S be a movement rule. For a partition P \mathcal{P} P and corresponding centers C = ( c A ) A ∈ P C=(c_{A})_{A\in\mathcal{P}} C = ( c A ) A ∈ P , define the movement of the centers under π \pi π by
π ( C ) : = ( c A + x ˉ π ( A ) − x ˉ A ) A ∈ P . \pi(C):=\left(c_{A}+\bar{x}_{\pi(A)}-\bar{x}_{A}\right)_{A\in\mathcal{P}}. π ( C ) := ( c A + x ˉ π ( A ) − x ˉ A ) A ∈ P .
We call ( S , w ) (S,w) ( S , w ) an ε \varepsilon ε -movement coreset for balanced k k k -means if, for every k k k -partition P \mathcal{P} P and corresponding centers C = ( c A ) A ∈ P C=(c_{A})_{A\in\mathcal{P}} C = ( c A ) A ∈ P ,
cost b k m e a n s ( π ( P ) , π ( C ) ) ∈ ( 1 ± ε ) cost b k m e a n s ( P , C ) . \operatorname{cost}_{\mathrm{bkmeans}}(\pi(\mathcal{P}),\pi(C))\in(1\pm\varepsilon)\operatorname{cost}_{\mathrm{bkmeans}}(\mathcal{P},C). cost bkmeans ( π ( P ) , π ( C )) ∈ ( 1 ± ε ) cost bkmeans ( P , C ) .
Proposition 5.6 (Preservation under shifted centers). Let X ⊆ R d X\subseteq\mathbb{R}^{d} X ⊆ R d , let 0 < ε ≤ 1 0<\varepsilon\le1 0 < ε ≤ 1 , and let ( S , w ) (S,w) ( S , w ) be an ε \varepsilon ε -movement coreset for cost 2 \operatorname{cost}_{2} cost 2 , with movement rule π : X → S \pi:X\to S π : X → S . Then ( S , w ) (S,w) ( S , w ) is also an ε \varepsilon ε -movement coreset for balanced k k k -means.
Proof. For every A ∈ P A \in\mathcal{P} A ∈ P , the Euclidean variance identity gives
∣ A ∣ ∑ x ∈ A dist ( x , c A ) 2 = 1 2 ∑ x , y ∈ A dist ( x , y ) 2 + ∣ A ∣ 2 dist ( x ˉ A , c A ) 2 . |A|\sum_{x\in A}\operatorname{dist}(x,c_A)^2=\frac{1}{2}\sum_{x,y\in A}\operatorname{dist}(x,y)^2+|A|^2\operatorname{dist}(\bar{x}_A,c_A)^2. ∣ A ∣ x ∈ A ∑ dist ( x , c A ) 2 = 2 1 x , y ∈ A ∑ dist ( x , y ) 2 + ∣ A ∣ 2 dist ( x ˉ A , c A ) 2 .
and similarly, for the moved multiset π ( A ) \pi(A) π ( A ) ,
∣ A ∣ ∑ x ∈ A dist ( π ( x ) , c A + x ˉ π ( A ) − x ˉ A ) 2 = 1 2 ∑ x , y ∈ A dist ( π ( x ) , π ( y ) ) 2 + ∣ A ∣ 2 dist ( x ˉ π ( A ) , c A + x ˉ π ( A ) − x ˉ A ) 2 . |A|\sum_{x\in A}\operatorname{dist}\left(\pi(x),c_A+\bar{x}_{\pi(A)}-\bar{x}_A\right)^2=\frac{1}{2}\sum_{x,y\in A}\operatorname{dist}(\pi(x),\pi(y))^2+|A|^2\operatorname{dist}\left(\bar{x}_{\pi(A)},c_A+\bar{x}_{\pi(A)}-\bar{x}_A\right)^2. ∣ A ∣ x ∈ A ∑ dist ( π ( x ) , c A + x ˉ π ( A ) − x ˉ A ) 2 = 2 1 x , y ∈ A ∑ dist ( π ( x ) , π ( y ) ) 2 + ∣ A ∣ 2 dist ( x ˉ π ( A ) , c A + x ˉ π ( A ) − x ˉ A ) 2 .
Obviously,
x ˉ π ( A ) − ( c A + x ˉ π ( A ) − x ˉ A ) = x ˉ A − c A , \bar{x}_{\pi(A)}-\left(c_A+\bar{x}_{\pi(A)}-\bar{x}_A\right)=\bar{x}_A-c_A, x ˉ π ( A ) − ( c A + x ˉ π ( A ) − x ˉ A ) = x ˉ A − c A ,
and thus the last term in the two variance decompositions above has the same value. The proposition follows by summing over the parts and applying the movement-coreset guarantee for cost 2 \operatorname{cost}_2 cost 2 .
Corollary 5.7. (Density-adaptive coreset for balanced k k k -means). For every Euclidean input X X X , there is a density-adaptive ε \varepsilon ε -movement coreset for balanced Euclidean k k k -means. For every partition P \mathcal{P} P and every corresponding set of centers C C C , it preserves cost b k m e a n s ( P , C ) \operatorname{cost}_{\mathrm{bkmeans}}(\mathcal{P},C) cost bkmeans ( P , C ) within 1 ± ε 1\pm\varepsilon 1 ± ε after shifting the centers as in Proposition 5.6 , using k ( 1 ε ) O ( ddim ) log n k\left(\frac{1}{\varepsilon}\right)^{O(\operatorname{ddim})}\log n k ( ε 1 ) O ( ddim ) log n representatives.
Proof. The density-adaptive construction and analysis of Lemma 5.4 give the displayed movement guarantee and the stated size for balanced k k k -means. Apply Proposition 5.6 .
Color-Balanced Mergeability
A coreset construction is mergeable if coresets constructed independently for two sets can be combined into a coreset for their union. In general, movement coresets are not mergeable, because moving points from one set affects their distances to possibly many points from the other set. We show that merging is possible when every cluster contains the same number of points from the two sets. We call the points of the two sets red and blue and refer to such partitions as color-balanced.
Let R R R and B B B be two disjoint sets of equal size, and let X X X be their union. We restrict attention to k k k -partitions of X X X in which every part contains the same number of red and blue points.
Lemma 5.8. (Color-balanced mergeability). For each C ∈ { R , B } C \in\{R,B\} C ∈ { R , B } , let ( S C , w C ) (S_C,w_C) ( S C , w C ) be an ε \varepsilon ε -bounded-movement coreset for C C C , and let π C : C → S C \pi_C:C\to S_C π C : C → S C be the movement rule. Consider their weighted union ( S , w ) (S,w) ( S , w ) , where w = w R + w B w=w_R+w_B w = w R + w B . Define π : X → S \pi:X\to S π : X → S by π ∣ C = π C \pi|_C=\pi_C π ∣ C = π C for each C ∈ { R , B } C\in\{R,B\} C ∈ { R , B } . Then, for every k k k -partition P \mathcal{P} P of X X X satisfying for all A ∈ P A\in\mathcal{P} A ∈ P ∣ A ∩ R ∣ = ∣ A ∩ B ∣ |A\cap R|=|A\cap B| ∣ A ∩ R ∣ = ∣ A ∩ B ∣ it holds that
∑ A ∈ P ∣ A ∣ ∑ x ∈ A dist ( x , π ( x ) ) ≤ 2 ε cost ( P ) . \sum_{A\in\mathcal{P}} |A|\sum_{x\in A}\operatorname{dist}(x,\pi(x))\leq2\varepsilon\operatorname{cost}(\mathcal{P}). A ∈ P ∑ ∣ A ∣ x ∈ A ∑ dist ( x , π ( x )) ≤ 2 ε cost ( P ) .
Proof. Let P \mathcal{P} P be a k k k -partition of X X X satisfying
∀ A ∈ P ∣ A ∩ R ∣ = ∣ A ∩ B ∣ . \forall A\in\mathcal{P}\qquad|A\cap R|=|A\cap B|. ∀ A ∈ P ∣ A ∩ R ∣ = ∣ A ∩ B ∣.
For each A ∈ P A\in\mathcal{P} A ∈ P , write
A R = A ∩ R , A B = A ∩ B . A_R=A\cap R,\qquad A_B=A\cap B. A R = A ∩ R , A B = A ∩ B .
Color balance gives ∣ A ∣ = 2 ∣ A R ∣ = 2 ∣ A B ∣ |A|=2|A_R|=2|A_B| ∣ A ∣ = 2∣ A R ∣ = 2∣ A B ∣ . Let P R = { A R ∣ A ∈ P } \mathcal{P}_R=\{A_R\mid A\in\mathcal{P}\} P R = { A R ∣ A ∈ P } and P B = { A B ∣ A ∈ P } \mathcal{P}_B=\{A_B\mid A\in\mathcal{P}\} P B = { A B ∣ A ∈ P } be the induced partitions on each color. For every A ∈ P A\in\mathcal{P} A ∈ P ,
cost ( A R ) + cost ( A B ) ≤ cost ( A ) \operatorname{cost}(A_R)+\operatorname{cost}(A_B)\leq\operatorname{cost}(A) cost ( A R ) + cost ( A B ) ≤ cost ( A )
Consequently,
cost ( P R ) + cost ( P B ) ≤ cost ( P ) . \operatorname{cost}(\mathcal{P}_R) + \operatorname{cost}(\mathcal{P}_B) \le\operatorname{cost}(\mathcal{P}). cost ( P R ) + cost ( P B ) ≤ cost ( P ) .
Thus
∑ A ∈ P ∣ A ∣ ∑ x ∈ A dist ( x , π ( x ) ) = 2 ∑ A ∈ P ( ∣ A R ∣ ∑ x ∈ A R dist ( x , π R ( x ) ) + ∣ A B ∣ ∑ x ∈ A B dist ( x , π B ( x ) ) ) \sum_{A\in\mathcal{P}} |A| \sum_{x\in A} \operatorname{dist}(x,\pi(x)) = 2 \sum_{A\in\mathcal{P}} \left( |A_R| \sum_{x\in A_R} \operatorname{dist}(x,\pi_R(x)) + |A_B| \sum_{x\in A_B} \operatorname{dist}(x,\pi_B(x)) \right) A ∈ P ∑ ∣ A ∣ x ∈ A ∑ dist ( x , π ( x )) = 2 A ∈ P ∑ ( ∣ A R ∣ x ∈ A R ∑ dist ( x , π R ( x )) + ∣ A B ∣ x ∈ A B ∑ dist ( x , π B ( x )) )
≤ 2 ε ( cost ( P R ) + cost ( P B ) ) \le2\varepsilon\left(\operatorname{cost}(\mathcal{P}_R) + \operatorname{cost}(\mathcal{P}_B)\right) ≤ 2 ε ( cost ( P R ) + cost ( P B ) )
≤ 2 ε cost ( P ) . \le2\varepsilon\operatorname{cost}(\mathcal{P}). ≤ 2 ε cost ( P ) .
Composition
Movement coresets may be applied repeatedly: a coreset of a coreset is also a coreset of the original input, under the composed movement rule. The errors accumulate additively, as the next lemma makes precise.
Lemma 5.9 (Composition of movement coresets). Let ( S , w ) (S,w) ( S , w ) be an ε 1 \varepsilon_1 ε 1 -movement coreset of X X X , with movement rule π 1 : X → S \pi_1:X\to S π 1 : X → S . Let ( T , u ) (T,u) ( T , u ) be an ε 2 \varepsilon_2 ε 2 -movement coreset of the weighted instance ( S , w ) (S,w) ( S , w ) , interpreted as a multiset, with movement rule π 2 : S → T \pi_2:S\to T π 2 : S → T and weights
u ( t ) = ∑ s : π 2 ( s ) = t w ( s ) . u(t)=\sum_{s:\pi_2(s)=t}w(s). u ( t ) = s : π 2 ( s ) = t ∑ w ( s ) . Then ( T , u ) (T,u) ( T , u ) is an ( ε 1 + ε 2 + ε 1 ε 2 ) (\varepsilon_1+\varepsilon_2+\varepsilon_1\varepsilon_2) ( ε 1 + ε 2 + ε 1 ε 2 ) -movement coreset of X X X under the composed movement rule π 2 ∘ π 1 : X → T \pi_2\circ\pi_1:X\to T π 2 ∘ π 1 : X → T .
Proof. The weights are consistent with the composed rule because
u ( t ) = ∑ s : π 2 ( s ) = t w ( s ) = ∣ ( π 2 ∘ π 1 ) − 1 ( t ) ∣ . u(t)=\sum_{s:\pi_2(s)=t}w(s)=\left|(\pi_2\circ\pi_1)^{-1}(t)\right|. u ( t ) = s : π 2 ( s ) = t ∑ w ( s ) = ( π 2 ∘ π 1 ) − 1 ( t ) .
Fix a k k k -partition P \mathcal{P} P of X X X , and let Q = π 1 ( P ) \mathcal{Q}=\pi_1(\mathcal{P}) Q = π 1 ( P ) be the corresponding partition of the multiset represented by ( S , w ) (S,w) ( S , w ) . The first coreset guarantee gives
cost S , w ( Q ) ∈ ( 1 ± ε 1 ) cost ( P ) . \operatorname{cost}_{S,w}(\mathcal{Q})\in(1\pm\varepsilon_1)\operatorname{cost}(\mathcal{P}). cost S , w ( Q ) ∈ ( 1 ± ε 1 ) cost ( P ) .
Since Q \mathcal{Q} Q is a partition of this multiset, applying the second coreset guarantee gives
cost T , u ( π 2 ( Q ) ) ∈ ( 1 ± ε 2 ) cost S , w ( Q ) . \operatorname{cost}_{T,u}(\pi_2(\mathcal{Q}))\in(1\pm\varepsilon_2)\operatorname{cost}_{S,w}(\mathcal{Q}). cost T , u ( π 2 ( Q )) ∈ ( 1 ± ε 2 ) cost S , w ( Q ) .
Since π 2 ( Q ) = ( π 2 ∘ π 1 ) ( P ) \pi_2(\mathcal{Q})=(\pi_2\circ\pi_1)(\mathcal{P}) π 2 ( Q ) = ( π 2 ∘ π 1 ) ( P ) , the upper bound is at most
( 1 + ε 2 ) ( 1 + ε 1 ) cost ( P ) = ( 1 + ε 1 + ε 2 + ε 1 ε 2 ) cost ( P ) , (1+\varepsilon_2)(1+\varepsilon_1)\operatorname{cost}(\mathcal{P})=(1+\varepsilon_1+\varepsilon_2+\varepsilon_1\varepsilon_2)\operatorname{cost}(\mathcal{P}), ( 1 + ε 2 ) ( 1 + ε 1 ) cost ( P ) = ( 1 + ε 1 + ε 2 + ε 1 ε 2 ) cost ( P ) ,
and the lower bound is at least
( 1 − ε 2 ) ( 1 − ε 1 ) cost ( P ) ≥ ( 1 − ε 1 − ε 2 ) cost ( P ) . (1-\varepsilon_2)(1-\varepsilon_1)\operatorname{cost}(\mathcal{P})\ge(1-\varepsilon_1-\varepsilon_2)\operatorname{cost}(\mathcal{P}). ( 1 − ε 2 ) ( 1 − ε 1 ) cost ( P ) ≥ ( 1 − ε 1 − ε 2 ) cost ( P ) .
This is stronger than the claimed symmetric error.
The following lemma gives the corresponding composition result for bounded-movement coresets.
Lemma 5.10 (Composition of bounded-movement coresets). Let ( S , w ) (S,w) ( S , w ) be both an ε 1 \varepsilon_1 ε 1 -movement coreset and a δ 1 \delta_1 δ 1 -bounded-movement coreset of X X X under the movement rule π 1 : X → S \pi_1:X\to S π 1 : X → S . Let ( T , u ) (T,u) ( T , u ) be a δ 2 \delta_2 δ 2 -bounded-movement coreset of the weighted instance ( S , w ) (S,w) ( S , w ) , interpreted as a multiset, under the movement rule π 2 : S → T \pi_2:S\to T π 2 : S → T , where
u ( t ) = ∑ s : π 2 ( s ) = t w ( s ) . u(t)=\sum_{s:\pi_2(s)=t}w(s). u ( t ) = s : π 2 ( s ) = t ∑ w ( s ) . Then ( T , u ) (T,u) ( T , u ) is a ( δ 1 + ( 1 + ε 1 ) δ 2 ) (\delta_1+(1+\varepsilon_1)\delta_2) ( δ 1 + ( 1 + ε 1 ) δ 2 ) -bounded-movement coreset of X X X under the composed movement rule π 2 ∘ π 1 : X → T \pi_2\circ\pi_1:X\to T π 2 ∘ π 1 : X → T .
Proof. Fix a k k k -partition P \mathcal{P} P of X X X , and let Q = π 1 ( P ) \mathcal{Q}=\pi_1(\mathcal{P}) Q = π 1 ( P ) be the corresponding partition of the multiset represented by ( S , w ) (S,w) ( S , w ) . By the triangle inequality,
dist ( x , π 2 ( π 1 ( x ) ) ) ≤ dist ( x , π 1 ( x ) ) + dist ( π 1 ( x ) , π 2 ( π 1 ( x ) ) ) . \operatorname{dist}(x,\pi_2(\pi_1(x)))\leq\operatorname{dist}(x,\pi_1(x))+\operatorname{dist}(\pi_1(x),\pi_2(\pi_1(x))). dist ( x , π 2 ( π 1 ( x ))) ≤ dist ( x , π 1 ( x )) + dist ( π 1 ( x ) , π 2 ( π 1 ( x ))) .
The first term is bounded by the assumed bound in (37) for π 1 \pi_1 π 1 . For the second term, each cluster of Q \mathcal{Q} Q has exactly the same number of copies as the corresponding cluster of P \mathcal{P} P , so the assumed movement-charge bound for π 2 \pi_2 π 2 gives
∑ A ∈ P ∣ A ∣ ∑ x ∈ A dist ( π 1 ( x ) , π 2 ( π 1 ( x ) ) ) ≤ δ 2 cost S , w ( Q ) ≤ δ 2 ( 1 + ε 1 ) cost ( P ) . \sum_{A\in\mathcal{P}}|A|\sum_{x\in A}\operatorname{dist}(\pi_1(x),\pi_2(\pi_1(x)))\leq\delta_2\operatorname{cost}_{S,w}(\mathcal{Q})\leq\delta_2(1+\varepsilon_1)\operatorname{cost}(\mathcal{P}). A ∈ P ∑ ∣ A ∣ x ∈ A ∑ dist ( π 1 ( x ) , π 2 ( π 1 ( x ))) ≤ δ 2 cost S , w ( Q ) ≤ δ 2 ( 1 + ε 1 ) cost ( P ) .
Combining the two bounds proves the claim.
Movement Costs and Nearest-Neighbor Reweighting
The constructions above sometimes analyze a convenient intermediate movement rule before reweighting according to nearest neighbors. Since this reweighting can only decrease the movement distance of each input point, the bounded-movement guarantee is preserved, as formalized by the next lemma.
Lemma 5.11 (Nearest-neighbor reweighting). Let S ⊆ X S\subseteq X S ⊆ X , and let ( S , w 1 ) (S,w_1) ( S , w 1 ) be an ε \varepsilon ε -bounded-movement coreset under a movement rule π 1 : X → S \pi_1:X\to S π 1 : X → S . Let π 2 : X → S \pi_2:X\to S π 2 : X → S be the nearest-neighbor movement rule with fixed tie-breaking, and let w 2 w_2 w 2 be the corresponding weights. Then ( S , w 2 ) (S,w_2) ( S , w 2 ) is an ε \varepsilon ε -bounded-movement coreset under π 2 \pi_2 π 2 .
Proof. For every x ∈ X x\in X x ∈ X , the nearest-neighbor property gives
dist ( x , π 2 ( x ) ) ≤ dist ( x , π 1 ( x ) ) . \operatorname{dist}(x,\pi_2(x))\leq\operatorname{dist}(x,\pi_1(x)). dist ( x , π 2 ( x )) ≤ dist ( x , π 1 ( x )) .
Therefore, for every k k k -partition P \mathcal{P} P of X X X ,
∑ A ∈ P ∣ A ∣ ∑ x ∈ A dist ( x , π 2 ( x ) ) ≤ ∑ A ∈ P ∣ A ∣ ∑ x ∈ A dist ( x , π 1 ( x ) ) ≤ ε cost ( P ) . \sum_{A\in\mathcal{P}}|A|\sum_{x\in A}\operatorname{dist}(x,\pi_2(x))\leq\sum_{A\in\mathcal{P}}|A|\sum_{x\in A}\operatorname{dist}(x,\pi_1(x))\leq\varepsilon\operatorname{cost}(\mathcal{P}). A ∈ P ∑ ∣ A ∣ x ∈ A ∑ dist ( x , π 2 ( x )) ≤ A ∈ P ∑ ∣ A ∣ x ∈ A ∑ dist ( x , π 1 ( x )) ≤ ε cost ( P ) .
Since the new weights are defined according to π 2 \pi_2 π 2 , they are consistent with this movement rule. Thus the reweighted set is an ε \varepsilon ε -bounded-movement coreset.
AI Disclosure
The authors used ChatGPT (OpenAI) as a writing and research-development aid, both to improve the clarity of author-written text and to write up proof details from author-provided ideas, proof sketches, and mathematical guidance. All results, definitions, and proof strategies originate with the authors, who verified all AI-assisted content and are fully responsible for the integrity, accuracy, and originality of the entire paper.