Repository · Full text

Optimal uniform sampling for
stable geometric median coresets

Read PDF

HTML version 1 Added

Papers are listed without authors and are not intended for submission or formal publication.

Contents

Optimal uniform sampling for
stable geometric median coresets

Abstract

Uniform sampling need not approximate the cost of every candidate median, but it can preserve their relative quality throughout the candidate space. We prove that the worst-case sample complexity of constructing stable Euclidean geometric median coresets by unweighted uniform sampling without replacement is Θ⁡(ε−2). For every dataset, O⁡(ε−2) sampled points suffice in every dimension, with the whole dataset used if it is smaller. For each 0<ε<1/4, with probability at least 4/5, every (1+ε) sample-cost comparison implies a (1+17⁢ε) population-cost comparison, simultaneously for all candidate pairs. This removes the log⁡(1/ε) factor from the bound of Carmel, Krauthgamer, and Petruschka (APPROX/RANDOM 2026). The matching lower bound holds for the same sampling rule even for distinct points on the line. The proof represents distance as squared Hilbert distance, reducing all comparison errors to linear functionals of one empirical mean error. A finite-population variance bound controls this vector, and the triangle inequality converts the resulting error into a relative guarantee. The argument extends to negative-type metrics and gives the same optimal rate in ℓ1d, resolving the dimension-independence conjecture of Carmel and Krauthgamer (ICLR 2026).

Note. This paper was generated entirely by AI, including MiMo, using an automated research pipeline developed by Chenghua Liu and Hanyu Li.

1 Introduction

Uniform sampling offers a simple way to reduce the input to a median problem, but it cannot preserve every candidate cost. Consider a population consisting of n−1 points at the origin and one point at distance R. A sample of m points without replacement misses the outlier with probability 1−m/n. On that event, the origin has zero sample cost and positive population cost, irrespective of how large R is. Thus a relative approximation to the entire objective asks more of a uniform sample than it can provide.

Preserving only near-optimal centers is sufficient for unconstrained optimization, but need not suffice once the center is required to lie in a subset of the ambient space. The best feasible center may be far from the unconstrained optimum. Stable coresets, introduced by Carmel and Krauthgamer [2], retain the comparisons needed in this situation: whenever one center is approximately as good as another on the sample, the same comparison holds on the population with controlled loss. The guarantee applies to every pair at once. Consequently, a single sample supports all restrictions of the candidate domain, including restrictions chosen after the sample is drawn.

For 1-median in ℓ1d, Carmel and Krauthgamer [2, Theorem 1.4] obtained stable coresets of size O⁡(ε−2⁢log⁡d) by uniform sampling and conjectured that the dimension dependence could be removed. For the Euclidean geometric median, Carmel, Krauthgamer, and Petruschka [1, Theorem 1.1] removed that dependence and proved the bound O⁡(ε−2⁢log⁡(1/ε)). Their construction uses uniform sampling without replacement; embeddings and an iterative size-reduction argument enter only its analysis. We prove that O⁡(ε−2) samples suffice with the same stability parameters and success probability. A matching lower bound for the same sampling rule shows that the remaining logarithm is unnecessary, even though the guarantee ranges over an unbounded space of candidate centers.

Write FA for the average distance to a dataset A and OPT=minz⁡FP⁢(z). The relevant error is a difference of costs, rather than a cost itself. Subtracting two costs cancels terms that are common to the two centers, as formalized by the relative cost-difference framework of [2, Theorem 3.1] and its all-pairs version in [1, Section 3]. Yet centering alone does not yield an absolute error bound on the scale of the optimum: for a population of 2⁢m−1 zeroes and one distant point, missing the outlier gives comparison error 2⁢OPT at distant candidate centers on an event of probability 1/2 (Remark 2.5). In particular, a uniform bound of order OPT/m is false. The proof must retain the dependence on the candidate locations until the final relative normalization.

A squared-Hilbert representation of Euclidean distance does exactly this. If Φ is anchored at a population median and vA is the average feature vector of A, expansion of squared distances gives

[FP⁢(x)−FP⁢(y)]−[FQ⁢(x)−FQ⁢(y)]=2⁢⟨Φ⁡(x)−Φ⁡(y),vQ−vP⟩.

Every pair is controlled by the same empirical mean error. Its squared norm has expectation at most OPT/m, so the comparison error is of order ‖x−y‖2⁢OPT/m on one event of high probability. Both ‖x−y‖2 and 2⁢OPT are at most FP⁢(x)+FP⁢(y). This yields relative error O(m−1/2) without a union bound over centers. One additional first-moment estimate at the population median then converts relative cost differences into stable comparisons. The sample remains unweighted, and neither the median nor the feature map is computed.

The representation itself is classical [3]. Its connection to coreset construction is discussed in [2, Section 1.4]; related empirical-mean identities appear in energy distance [4, Proposition 14 and Theorem 22] and in integration bounds for support points [5, Theorem 4]. The estimate above uses the metric triangle inequality to make that mean control relative to the two candidate costs. The same argument therefore applies in negative-type metric spaces. In ℓ1d, it gives the optimal Θ⁡(ε−2) rate and settles the conjecture in [2, Section 1.2].

1.1 Model and main result

We treat a dataset P=(p1,…,pn)∈(Rd)n as indexed, with d,n≥1. Thus repeated locations are allowed, but the sample indices are distinct. For every nonempty finite indexed dataset A, define

FA⁢(z):=1|A|⁢∑p∈A‖z−p‖2,z∈Rd,(1)

where sums count multiplicities. A uniform sample of size m, 1≤m≤n, means

I∼Unif⁡([n]m),Q=(pi)i∈I,[n]:={1,…,n}.

All sampled points have equal weight. Normalizing costs by dataset size does not change any comparison within a dataset.

Definition 1.1 (Stable coreset).

For ε,η≥0, a nonempty indexed subdataset Q of P is a stable (ε,η)-coreset if, simultaneously for all x,y∈Rd,

FQ⁢(x)≤(1+ε)⁢FQ⁢(y)⟹FP⁢(x)≤(1+η)⁢FP⁢(y).(2)

For 0<ε<1/4, let m2⁢(ε) be the least positive integer M such that, for every dimension d, every indexed dataset P of size n, and every integer M≤m≤n, a uniform sample of size m is a stable (ε,17⁢ε)-coreset with probability at least 4/5. This is a threshold guarantee for all larger sample sizes, not a claim that stability is monotone under adding points to a particular sample. When n<M, returning Q=P satisfies the desired implication deterministically.

Theorem 1.2 (Optimal uniform sample complexity).
  1. (i)

    Let 0<ε<1/4 and ⌈20⁢ε−2⌉≤m≤n. For every d≥1 and every indexed dataset P∈(Rd)n, a uniform sample Q of size m is a stable (ε,17⁢ε)-coreset with probability at least 4/5.

  2. (ii)

    Let 0<ε≤1/100. For every integer 1≤m≤ε−2/24200, there exist n≥m and a set P⊂R of n distinct points such that a uniform sample of size m fails to be a stable (ε,17⁢ε)-coreset with probability at least 2/5.

Consequently,

m2⁢(ε)=Θ⁡(ε−2)(ε→0).

The lower bound concerns the sample returned by uniform sampling, without reweighting or postprocessing; arbitrary weighted coresets are outside its scope. Its obstruction is already one-dimensional: two nearly balanced clusters have a population preference of order ε, while a sample smaller than order ε−2 has a constant probability of reversing that preference. The proof in Section 3 makes the clusters consist of distinct points and controls the without-replacement distribution directly.

Section 2 proves the upper bound. In Section 4, the negative-type extension separates the case of an attained population median from the case of an approximate reference point. The latter permits arbitrarily small constant-factor sample overhead when the infimum is not attained. An alternative Euclidean proof in Appendix A averages one-dimensional empirical-distribution errors over Gaussian projections.

2 Uniform comparison and the stable-coreset bound

Fix a geometric median μ of P, and put

OPT:=FP⁢(μ)=minz∈Rd⁡FP⁢(z).

A median exists: FP is continuous, and FP⁢(z)≥‖z‖2−n−1⁢∑i‖pi‖2 tends to infinity as ‖z‖2→∞. We use μ only to set the variance scale. The feature map below is defined on the entire candidate domain, which is needed to compare arbitrary centers after the sample has been drawn.

Lemma 2.1 (Squared-Hilbert representation).

Let γd be standard Gaussian measure on Rd, let λ be Lebesgue measure on R, and let H=L2⁢(Rd×R,γd⊗λ) be the real Hilbert space. For x∈Rd, define

Φ(x)(g,t):=(π2)1/4(1{t≤⟨g,x⟩}−1{t≤⟨g,μ⟩}).

Then Φ⁡(x)∈H, Φ⁡(μ)=0, and

‖Φ⁡(x)−Φ⁡(y)‖H2=‖x−y‖2(x,y∈Rd).(3)

In particular, ‖Φ⁡(p)‖H2=‖p−μ‖2.

Proof.

For a,b∈R,

∫R|1{t≤a}−1{t≤b}|2dt=|a−b|.

For g∼γd and z∈Rd, ⟨g,z⟩ is a centered Gaussian of variance ‖z‖22, so Eg⁢|⟨g,z⟩|=2/π⁢‖z‖2. Tonelli’s theorem therefore gives

‖Φ⁡(x)−Φ⁡(y)‖H2=π2⁢Eg⁢|⟨g,x−y⟩|=‖x−y‖2.

Taking y=μ proves square integrability and the anchored norm identity. ∎

The subtraction of the indicator at μ has two roles: it makes the features square-integrable, and it identifies their average squared norm with OPT. No bound on an individual feature norm is required.

For any nonempty finite indexed dataset A, define

vA:=1|A|⁢∑p∈AΦ⁡(p),bA:=1|A|⁢∑p∈A‖Φ⁡(p)‖H2=FA⁢(μ).

We write the pairwise comparison error as

ΔP,Q⁢(x,y):=[FP⁢(x)−FP⁢(y)]−[FQ⁢(x)−FQ⁢(y)].(4)
Lemma 2.2 (Cost-difference identity).

For every z∈Rd,

FA⁢(z)=‖Φ⁡(z)‖H2−2⁢⟨Φ⁡(z),vA⟩+bA.(5)

Consequently, for every x,y∈Rd,

ΔP,Q⁢(x,y)=2⁢⟨Φ⁡(x)−Φ⁡(y),vQ−vP⟩.(6)
Proof.

By (3),

FA⁢(z)=1|A|⁢∑p∈A‖Φ⁡(z)−Φ⁡(p)‖H2.

Expanding each square gives (5). Subtract the formulas for x and y, and then subtract the resulting identities for P and Q. The squared-norm terms and the constants bA cancel, yielding (6). ∎

The identity isolates the only random quantity needed for every comparison: vQ−vP. Although the features need not be bounded by a common diameter, their population second moment is OPT. The exact variance formula below also accounts for the dependence between sampled indices.

Lemma 2.3 (Finite-population variance).

Let h1,…,hn belong to a real Hilbert space H, and let I be a uniformly random m-element subset of [n], where 1≤m≤n. Set

h¯:=1n⁢∑i=1nhi,h¯I:=1m⁢∑i∈Ihi.

If n>1, then

E⁢‖h¯I−h¯‖H2=n−mm⁡(n−1)⁢1n⁢∑i=1n‖hi−h¯‖H2.(7)

For hi=Φ⁡(pi), this implies

E⁢‖vQ−vP‖H2≤OPTm.(8)

The inequality also holds for n=1.

Proof.

Suppose n>1. Put wi=hi−h¯ and Ji=1{i∈I}. Since ∑iwi=0,

∑i≠j⟨wi,wj⟩=−∑i‖wi‖H2.

Using E⁢Ji=m/n and E⁢Ji⁢Jj=m⁡(m−1)/(n⁡(n−1)) for i≠j, we obtain

E⁢‖h¯I−h¯‖H2=1m2⁢[mn⁢∑i‖wi‖H2+m⁡(m−1)n⁡(n−1)⁢∑i≠j⟨wi,wj⟩]
=n−mm⁢n⁢(n−1)⁢∑i‖wi‖H2.

This proves (7). For the feature vectors,

1n⁢∑i‖Φ⁡(pi)−vP‖H2=1n⁢∑i‖Φ⁡(pi)‖H2−‖vP‖H2≤OPT.

Together with (n−m)/(n−1)≤1, this gives (8). If n=1, then Q=P and the mean error is zero. ∎

The remaining geometric factor in (6) is ‖Φ⁡(x)−Φ⁡(y)‖H=‖x−y‖2. It can grow with the centers, but the sum of their population costs grows enough to absorb it. This is the point at which the metric structure enters the proof.

Proposition 2.4 (Simultaneous relative comparison).

For 1≤m≤n, with probability at least 9/10, a uniform sample Q satisfies

|ΔP,Q⁢(x,y)|≤20m⁢[FP⁢(x)+FP⁢(y)]for all ⁢x,y∈Rd.(9)
Proof.

If OPT=0, all data points coincide with μ, so FQ=FP. Assume OPT>0. By (8) and Markov’s inequality, the event

‖vQ−vP‖H2≤10⁢O⁢P⁢Tm(10)

has probability at least 9/10. For all x,y∈Rd, the triangle inequality averaged over the population and the optimality of μ give

‖x−y‖2≤FP⁢(x)+FP⁢(y),2⁢OPT≤FP⁢(x)+FP⁢(y).(11)

Fix a sample satisfying (10). By (3), (6), and Cauchy–Schwarz,

|ΔP,Q⁢(x,y)|≤2⁢‖x−y‖2⁢‖vQ−vP‖H
≤2⁢10⁢‖x−y‖2⁢OPTm
≤20m⁢[FP⁢(x)+FP⁢(y)].

Since the event (10) does not depend on x,y, the conclusion holds simultaneously for every pair. ∎

Remark 2.5 (Why the error must depend on the center).

A uniform absolute bound of order OPT/m for supz|ΔP,Q⁢(z,μ)| cannot hold with success probability greater than 1/2 for all populations. To see this, let m≥2, choose R>0, and take an indexed population of 2⁢m−1 zeroes and one point at R. Then μ=0, OPT=R/(2⁢m), and a uniform sample of size m misses R with probability exactly 1/2. On that event, every z≥R satisfies

|ΔP,Q⁢(z,0)|=Rm=2⁢OPT.

For any fixed constant C, this exceeds C⁢OPT/m when m>C2/4. The valid estimate in the preceding proof instead has scale ‖z−μ‖2⁢OPT/m. Inequalities (11) convert this location-dependent scale into the relative comparison bound without imposing a diameter restriction.

Relative control of cost differences does not yet bound the term ε⁢FQ⁢(y) in an approximate sample comparison. To do so, it is enough to bound the sample cost at a single reference point. The next lemma recovers one-sided cost domination from that bound and the comparison estimate, then applies the relative cost-difference framework of [2, Theorem 3.1]. This requires no two-sided approximation to individual costs.

Lemma 2.6 (Stability from relative comparison).

Let 0<ε<1/4. Suppose that

|ΔP,Q⁢(x,y)|≤ε⁡[FP⁢(x)+FP⁢(y)]for all ⁢x,y∈Rd,(12)

and that

FQ⁢(μ)≤10⁢OPT.(13)

Then Q is a stable (ε,17⁢ε)-coreset of P.

Proof.

We first compare each sample cost with its population counterpart. Applying (12) to z,μ gives

FQ⁢(z)≤FP⁢(z)−OPT+FQ⁢(μ)+ε⁡[FP⁢(z)+OPT]
≤(1+ε)⁢FP⁢(z)+(9+ε)⁢OPT
≤(10+2⁢ε)⁢FP⁢(z),(14)

where the last step uses OPT≤FP⁢(z). This one-sided estimate controls the slack in an approximate comparison. If FQ⁢(x)≤(1+ε)⁢FQ⁢(y), then

FP⁢(x)−FP⁢(y)≤FQ⁢(x)−FQ⁢(y)+ε⁡[FP⁢(x)+FP⁢(y)]
≤ε⁢FQ⁢(y)+ε⁡[FP⁢(x)+FP⁢(y)]
≤ε⁡(10+2⁢ε)⁢FP⁢(y)+ε⁡[FP⁢(x)+FP⁢(y)].

Hence

(1−ε)⁢FP⁢(x)≤(1+11⁢ε+2⁢ε2)⁢FP⁢(y).(15)

Since

(1+17⁢ε)⁢(1−ε)−(1+11⁢ε+2⁢ε2)=ε⁡(5−19⁢ε)>0,

(15) implies FP⁢(x)≤(1+17⁢ε)⁢FP⁢(y). No division by a cost is needed. ∎

Proof of Theorem 1.2(i).

If m=n or OPT=0, then FQ=FP, and stability holds deterministically. Otherwise, Proposition 2.4 and m≥20⁢ε−2 give (12) with probability at least 9/10. Uniform sampling also gives

E⁢FQ⁢(μ)=FP⁢(μ)=OPT.

Thus (13) holds with probability at least 9/10 by Markov’s inequality. A union bound shows that both events hold with probability at least 4/5, without requiring independence. Lemma 2.6 completes the proof. ∎

3 Optimality for uniform sampling

Put two clusters near 0 and 1, with a population imbalance of order ε. The population then favors one endpoint by more than the permitted stability loss. A sample with a majority from the other cluster reverses that comparison. We show that this happens with constant probability when m⁢ε2 is small: choose the population large enough to approximate the hypergeometric law by a binomial law, then compare that binomial law with the unbiased one. Small perturbations of size O⁡(ε2) make every point distinct without changing either cost comparison. This refines the two-location construction in [1, Appendix A] for the stated without-replacement guarantee.

Proof of Theorem 1.2(ii).

Fix 0<ε≤1/100 and an integer 1≤m≤ε−2/24200. Put

ρ:=ε2100,n≥max⁡{2ε, 10⁢m⁢(m−1),m},

where n is an integer. Set

nA:=⌊(1−10⁢ε)⁢n2⌋,nB:=n−nA.

Choose nA distinct points in [−ρ,ρ] and nB distinct points in [1−ρ,1+ρ], obtaining disjoint sets A and B. Both cardinalities are positive. Let P=A⊔B, and write

θ:=1−2⁢nAn,pA:=nAn=1−θ2,pB:=nBn=1+θ2.

The rounding error satisfies

10⁢ε≤θ<10⁢ε+2n≤11⁢ε.(16)

We first compare the population costs at 0 and 1. The locations of the two clusters give

FP⁢(0)≥pB⁢(1−ρ),FP⁢(1)≤pA+ρ.

Moreover,

pB−(1+17⁢ε)⁢pA=θ−17⁢ε2⁢(1−θ)
≥32⁢ε+85⁢ε2.

Since θ≤11/100 and ε≤1/100, we have pB+1+17⁢ε<2. Therefore

FP⁢(0)−(1+17⁢ε)⁢FP⁢(1)≥pB−(1+17⁢ε)⁢pA−ρ⁡(pB+1+17⁢ε)
>32⁢ε+85⁢ε2−2⁢ρ>0.

In particular,

FP⁢(0)>(1+17⁢ε)⁢FP⁢(1).(17)

Now let S=|Q∩A| and s=S/m. On the event S≥⌈m/2⌉,

FQ⁢(0)≤1−s+ρ≤12+ρ,FQ⁢(1)≥s⁡(1−ρ)≥12⁢(1−ρ).

Our choice of ρ gives ρ⁡(3+ε)≤ε, which is equivalent to

12+ρ≤(1+ε)⁢12⁢(1−ρ).

Thus this event implies FQ⁢(0)≤(1+ε)⁢FQ⁢(1), contradicting stability by (17).

The cost inequalities reduce failure of stability to a single counting event. Its probability can be estimated without a central limit theorem. The variable S is hypergeometric with population size n, number of marked indices nA, and sample size m. Let

Zθ∼Bin⁡(m,1−θ2),Z0∼Bin⁡(m,12).

For probability laws U,V on a common finite set, write dTV⁢(U,V)=12⁢∑a|U⁡(a)−V⁡(a)|, and let L⁡(W) denote the law of a random variable W.

Draw m independent uniform indices from [n]. Conditional on no collision, the ordered tuple is uniform over injective tuples. If a collision occurs, replace the tuple by an independent uniform injective tuple. The resulting tuple has the without-replacement law, and the two cluster counts agree whenever there was no collision. Hence

dTV⁢(L⁡(S),L⁡(Zθ))≤m⁡(m−1)2⁢n≤120.(18)

The remaining discrepancy is the bias of the binomial law. We control it through the affinity of the underlying product measures, so the relevant quantity is m⁢θ2, rather than m⁢θ. For laws U,V, define a⁡(U,V):=∑wU⁡(w)⁢V⁢(w). Cauchy–Schwarz gives

dTV⁢(U,V)=12⁢∑w|U⁡(w)−V⁡(w)|⁢(U⁡(w)+V⁡(w))
≤12⁢(2−2⁢a⁢(U,V))⁢(2+2⁢a⁢(U,V))=1−a⁢(U,V)2.

For the product laws

Uθ=Ber⁡(1−θ2)⊗m,U0=Ber⁡(12)⊗m,

the sum defining a factors across coordinates, so

a⁢(Uθ,U0)2=(1+1−θ22)m.

Taking the sum of the Bernoulli coordinates cannot increase total variation, by the triangle inequality on each fiber of the summation map. Using 1−um≤m⁡(1−u) for 0≤u≤1, and 1−1−θ2≤θ2, we obtain

dTV⁢(L⁡(Zθ),L⁡(Z0))≤1−(1+1−θ22)m≤m⁢θ22.(19)

By (16) and the bound on m, m⁢θ2≤121/24200=1/200, so the last expression is at most 1/20. Symmetry gives P[Z0≥⌈m/2⌉]≥1/2. Combining this with (18) and (19) yields

P[S≥⌈m2⌉]≥12−120−120=25.

This proves part (ii). In particular, for all sufficiently small ε, every positive integer at most ⌊ε−2/24200⌋ fails to be a valid threshold in the definition of m2⁢(ε). Together with part (i), this proves m2⁢(ε)=Θ⁡(ε−2). ∎

4 Extensions to negative-type metrics

The Euclidean argument used a squared-Hilbert representation to linearize costs and the triangle inequality to normalize the resulting error. These are separate requirements: the representation alone would not justify the relative comparison step. Both are available in a negative-type metric space. We use the squared-Hilbert characterization: a metric space (X,d) is of negative type if there exist a real Hilbert space H and a map Ψ:X→H such that

d⁡(a,b)=‖Ψ⁡(a)−Ψ⁡(b)‖H2(a,b∈X).(20)

This is equivalent to the usual condition ∑i,jci⁢cj⁢d⁢(xi,xj)≤0 for every finite choice of points and real coefficients satisfying ∑ici=0 [3, 4]. In this section, costs and stability are defined on X by

FA⁢(z):=1|A|⁢∑p∈Ad⁡(z,p),z∈X,

with the implication in Definition 1.1 required for all x,y∈X.

Corollary 4.1 (Attained medians in negative-type metrics).

Let (X,d) satisfy (20), and let P be a nonempty finite indexed dataset whose population 1-median is attained in X. For 0<ε<1/4 and ⌈20⁢ε−2⌉≤m≤|P|, a uniform sample of size m is a stable (ε,17⁢ε)-coreset with probability at least 4/5.

Proof.

Let μ attain OPT=minz∈X⁡FP⁢(z), and set Φ⁡(z)=Ψ⁡(z)−Ψ⁡(μ). Then ‖Φ⁡(p)‖H2=d⁡(p,μ). The cost-difference identity and finite-population variance calculation in Lemmas 2.2 and 2.3 apply to this map. Also,

d⁡(x,y)≤FP⁢(x)+FP⁢(y),2⁢OPT≤FP⁢(x)+FP⁢(y).

The first inequality is the metric triangle inequality averaged over P; the second follows from optimality. These give the comparison estimate (9) by exactly the three inequalities in the proof of Proposition 2.4. Finally, E⁢FQ⁢(μ)=OPT, and the scalar calculation in Lemma 2.6 gives stability on the intersection of the same two 9/10-probability events. If OPT=0, all points coincide and the conclusion is deterministic. ∎

For ℓ1d, the required representation is coordinatewise and a median is attained in every coordinate. Thus the extension removes the dimension factor without passing through a finite-dimensional Euclidean embedding.

Corollary 4.2 (The ℓ1 metric).

Let m1⁢(ε) be the threshold defined as m2⁢(ε), with ℓ1 costs in place of Euclidean costs. Then m1⁢(ε)=Θ⁡(ε−2). The upper bound and the one-dimensional lower bound have the constants of Theorem 1.2.

Proof.

For a∈R, define

ψ(a)(t):=1{t≤a}−1{t≤0}in L2(R,λ).

Then ‖ψ⁡(a)−ψ⁡(b)‖22=|a−b|. The direct-sum map Ψ⁡(x)=(ψ⁡(x1),…,ψ⁡(xd)) therefore satisfies

‖Ψ⁡(x)−Ψ⁡(y)‖H2=∑j=1d|xj−yj|=‖x−y‖1.

Choosing a median in each coordinate gives an attained population 1-median. Corollary 4.1 proves the upper bound. On the line, the ℓ1 and Euclidean distances agree, so Section 3 proves the lower bound. ∎

Attainment was used to choose an anchor whose cost equals the lower bound on all candidate costs. An anchor within a factor 1+δ of the infimum changes the variance bound by this factor and introduces one additional term in the scalar stability calculation. Tracking these two changes gives the following version, which also covers metric spaces without an attained median.

Proposition 4.3 (Approximate reference points).

Let (X,d) satisfy (20), and let P be a nonempty finite indexed dataset in X. Suppose that, for some μ∈X and δ≥0,

α:=infz∈XFP⁢(z),T:=FP⁢(μ)≤(1+δ)⁢α.

If

0<ε<14,δ<5−19⁢ε9+ε,⌈20⁢(1+δ)⁢ε−2⌉≤m≤|P|,

then a uniform sample of size m is a stable (ε,17⁢ε)-coreset with probability at least 4/5. Consequently, the conclusion of Corollary 4.1 holds without attainment after an arbitrarily small constant-factor increase in the sample-size bound.

Proof.

If T=0, all data points coincide with μ, and FQ=FP. Assume T>0, and anchor Ψ at μ. The resulting feature means satisfy

E⁢‖vQ−vP‖H2≤Tm≤(1+δ)⁢αm.

Markov’s inequality gives ‖vQ−vP‖H2≤10⁢T/m with probability at least 9/10. On this event, the cost-difference identity and the inequalities

d⁡(x,y)≤FP⁢(x)+FP⁢(y),2⁢α≤FP⁢(x)+FP⁢(y)

give, simultaneously for all x,y∈X,

|ΔP,Q⁢(x,y)|≤2⁢10⁢d⁢(x,y)⁢Tm
≤20⁢(1+δ)m⁢[FP⁢(x)+FP⁢(y)]
≤ε⁡[FP⁢(x)+FP⁢(y)].

Here ΔP,Q is defined by (4) using d-costs. Separately, E⁢FQ⁢(μ)=T, so FQ⁢(μ)≤10⁢T with probability at least 9/10. Both events hold with probability at least 4/5.

On their intersection, for every z∈X,

FQ⁢(z)≤FP⁢(z)−T+FQ⁢(μ)+ε⁡[FP⁢(z)+T]
≤(1+ε)⁢FP⁢(z)+(9+ε)⁢T
≤[10+2⁢ε+(9+ε)⁢δ]⁢FP⁢(z),

where T≤(1+δ)⁢α≤(1+δ)⁢FP⁢(z). Thus any comparison FQ⁢(x)≤(1+ε)⁢FQ⁢(y) implies

(1−ε)⁢FP⁢(x)≤[1+11⁢ε+2⁢ε2+ε⁡(9+ε)⁢δ]⁢FP⁢(y).

The difference between (1+17⁢ε)⁢(1−ε) and the bracketed coefficient is

ε⁡[5−19⁢ε−(9+ε)⁢δ]>0.

This proves stability.

Finally, if α=0, then for every pair of data indices i,j and every z∈X,

d⁡(pi,pj)≤d⁡(pi,z)+d⁡(pj,z)≤2⁢|P|⁢FP⁢(z).

Taking the infimum over z shows that all data points coincide, so their common point attains the minimum. Therefore nonattainment implies α>0. For every δ>0, the definition of the infimum then provides a point μ with FP⁢(μ)≤(1+δ)⁢α. For each 0<ε<1/4, the permitted upper bound on δ is positive, so δ can be chosen arbitrarily small. More uniformly, since (5−19⁢ε)/(9+ε)>1/37 on this interval, any 0<δ<1/37 works for every 0<ε<1/4. As before, if the requested sample size exceeds |P|, one returns P. ∎

Appendix A An alternative proof by projected distribution functions

There is a second way to obtain the Euclidean comparison bound without covering the candidate space. In one dimension, a cost difference is an integral over the interval between the two candidates, so its error is bounded by the largest empirical-distribution discrepancy. Averaging the square of this discrepancy over Gaussian projections yields one random quantity that controls every pair of centers. The proof below implements this route directly under sampling without replacement; its larger constant does not affect the ε−2 rate.

Proposition A.1 (Projection-based comparison).

Let P∈(Rd)n be indexed, and let Q be a uniform sample of size 1≤m≤n. With probability at least 9/10,

|ΔP,Q⁢(x,y)|≤320⁢πm⁢[FP⁢(x)+FP⁢(y)]for all ⁢x,y∈Rd.(21)

Consequently, for 0<ε<1/4 and ⌈320⁢π⁢ε−2⌉≤m≤n, the sample is a stable (ε,17⁢ε)-coreset with probability at least 4/5.

Proof.

If m=n, then FQ=FP. Suppose m<n, so n≥2. Fix g∈Rd, order the values ⟨g,pi⟩, and break ties by index. Let Sk count sampled indices among the first k positions, and put

Dk:=Skm−kn,0≤k≤n.

Write

GA,g(t):=1|A|∑p∈A1{⟨g,p⟩≤t},Kg:=supt∈R|GQ,g(t)−GP,g(t)|.

The distribution functions change only at projected data values; ties restrict the eligible prefix endpoints. Hence

Kg≤max0≤k≤n⁡|Dk|.(22)

For a fixed sample, Kg is measurable in g: the supremum can be taken over the finitely many thresholds ⟨g,pi⟩, and all resulting comparisons are measurable.

We first control all prefixes in the projected ordering. Sampling without replacement gives a finite-population bridge; dividing its centered count by the number of unrevealed positions produces a martingale. Forward and reverse orderings let us use it away from its singular endpoint. Specifically, for every fixed g,

EQ⁢Kg2≤16m.(23)

For 0≤k<n, define

Mk:=Sk−k⁢m/nn−k.

Let Fk reveal the sample membership of the first k ordered indices. Conditional on Fk, the remaining m−Sk sampled indices are uniform among n−k positions. Thus

E⁡[Sk+1∣Fk]=Sk+m−Skn−k,

and substitution gives E⁡[Mk+1∣Fk]=Mk for 0≤k<n−1.

Let r=⌊n/2⌋. The sample membership indicators have variance (m/n)⁢(1−m/n) and pairwise covariance −(m/n)(1−m/n)/(n−1). Summing over the first r positions yields

Var⁡(Sr)=r⁢mn⁢(1−mn)⁢n−rn−1,

so

E⁢Mr2=r⁢(m/n)⁢(1−m/n)(n−1)⁢(n−r)≤mn⁡(n−1).

Since Dk=(n−k)⁢Mk/m, Doob’s L2 maximal inequality gives

E⁢max0≤k≤r⁢|Dk|2≤n2m2⁢ 4⁢E⁢Mr2≤4⁢nm⁡(n−1)≤8m.

For the reversed ordering, the discrepancy of a prefix of length n−k is −Dk. Applying the same estimate in that ordering bounds the expected squared maximum over ⌈n/2⌉≤k≤n by 8/m. These two ranges cover all integer indices from 0 to n. The square of their combined maximum is at most the sum of the two squared maxima, proving (23).

For a,b∈R, let ha,b⁢(t)=|a−t|−|b−t|, and let νg be the difference between the normalized empirical measures of Q and P after projection onto g. The derivative ha,b′ vanishes outside the interval between a and b and has absolute value 2 inside it. The signed measure νg has total mass zero. Integrating ha,b⁢(t)=a−b+∫−∞tha,b′⁢(u)⁢du against this finite signed measure therefore gives

|∫ha,b⁢(t)⁢d⁢νg⁢(t)|=|∫Rha,b′⁢(t)⁢[GQ,g⁢(t)−GP,g⁢(t)]⁢dt|
≤2⁢|a−b|⁢Kg.(24)

Values at the finitely many atoms do not affect the Lebesgue integral.

For g∼γd, the identity ‖z‖2=π/2⁢Eg⁢|⟨g,z⟩| and (24) imply, for every fixed sample Q,

|ΔP,Q⁢(x,y)|≤2⁢π2⁢Eg⁢[|⟨g,x−y⟩|⁢Kg]
≤2⁢π2⁢‖x−y‖2⁢(Eg⁢Kg2)1/2.

All integrals are finite because Kg≤1 and Gaussian linear functionals have finite first and second moments. By Tonelli’s theorem and (23),

EQ⁢Eg⁢Kg2≤16m.

Markov’s inequality gives Eg⁢Kg2≤160/m with probability at least 9/10. On this one event, the preceding bound and ‖x−y‖2≤FP⁢(x)+FP⁢(y) prove (21) for all x,y simultaneously.

When m≥320⁢π⁢ε−2, this gives (12). Combining it with the event FQ⁢(μ)≤10⁢OPT and Lemma 2.6 proves the stability assertion by the same union bound as in Section 2. The zero-optimum case is deterministic. ∎

References

  • [1] Amir Carmel, Robert Krauthgamer, and Nir Petruschka. Optimal stable coresets for geometric median via uniform sampling. In Approximation, Randomization, and Combinatorial Optimization. Algorithms and Techniques (APPROX/RANDOM 2026), volume 392 of Leibniz International Proceedings in Informatics, pages 30:1–30:14, 2026. https://doi.org/10.4230/LIPIcs.APPROX/RANDOM.2026.30.
  • [2] Amir Carmel and Robert Krauthgamer. Stable coresets: Unleashing the power of uniform sampling. In 14th International Conference on Learning Representations (ICLR 2026), 2026. https://openreview.net/forum?id=sOpAa8iR0A.
  • [3] I. J. Schoenberg. Metric spaces and positive definite functions. Transactions of the American Mathematical Society, 44(3):522–536, 1938. https://doi.org/10.1090/S0002-9947-1938-1501980-0.
  • [4] Dino Sejdinovic, Bharath Sriperumbudur, Arthur Gretton, and Kenji Fukumizu. Equivalence of distance-based and RKHS-based statistics in hypothesis testing. The Annals of Statistics, 41(5):2263–2291, 2013. https://doi.org/10.1214/13-AOS1140.
  • [5] Simon Mak and V. Roshan Joseph. Support points. The Annals of Statistics, 46(6A):2562–2592, 2018. https://doi.org/10.1214/17-AOS1629.