betaFeedback

WorksComputer Science

Sliced Wasserstein Sketches with Error Certificates

Abstract

Compact representations that support geometrically meaningful comparisons are valuable for learning from probability distributions. We study optimal, free-weight MM-atom quantization of one-dimensional probability measures in quadratic Wasserstein distance and extend it to higher dimensions via slicing. Using LL shared projections yields a sketch with O(LM)O(LM) comparison time. Our main result is an exact decomposition of squared distance error into residual and partition-mismatch terms, yielding computable certificates for arbitrary centroid sketches. For optimal sketches, a finite (2+δ)(2+δ) moment for some δ>0δ>0 guarantees O(M−1)O(M^{-1}) error in the finite-direction sliced distance, while equal-mass sketches can converge more slowly. Each slice preserves its mean, while storing residual energies enables covariance recovery from sufficiently many generic directions. Experiments on document, point-cloud, and flow-cytometry benchmarks show that optimal sketches substantially reduce storage while preserving the classification performance of uncompressed sliced distances. They also improve generalization from few labelled subjects and support end-to-end learning as compact pooling layers.

Introduction

A document represented by word embeddings and a shape represented by a point cloud are naturally compared as probability distributions. In retrieval, clustering, and other tasks involving many such objects, repeatedly computing transport distances on the original samples can dominate the cost. A useful summary should therefore be built once, occupy little memory, support many cheap comparisons, and quantify how far those comparisons can deviate from the true distances.

Sliced Wasserstein distances, introduced by Rabin et al. [51], compare distributions by averaging one-dimensional transport costs over projection directions. In one dimension, quadratic Wasserstein distance is the L2L^2 distance between quantile functions. This representation underlies sketches based on quantile grids [28, 40, 37, 10], streaming rank summaries [43], and parametric fits [42, 34]. A fixed grid of quantile levels is particularly convenient because comparison reduces to a Euclidean distance. However, its allocation of resolution is less flexible because cells of equal probability can cover very different spatial scales, and tail cells or cells crossing gaps in the support can dominate the approximation error.

In this work, we instead summarize each projection by the measure supported on at most MM atoms that minimizes its quadratic Wasserstein error. Both atom locations and weights are free to adapt to the projected distribution. For a weighted point measure, this is exactly one-dimensional weighted kk-means, which admits a globally optimal dynamic program [57, 23]. Applying it on LL shared directions gives a reusable sketch with O(LM)O(LM) storage and comparison time. The construction also returns the quantization error of every slice, and it is exact on any projection with at most MM distinct values. Figure 1 illustrates the construction and comparison.

Figure 1. Sketch construction. Top: two bags in R2\mathbb{R}^{2} (one weighted) and two shared directions. Middle: projected atoms, M=4M=4 optimal contiguous cells (dotted), and weighted centroids per direction; marker area is proportional to cell mass, and cells differ between bags. Bottom: sketch step quantiles over mass uu, with original quantiles in the background and shading marking coupled pairs at each mass level. This monotone coupling has quadratic cost W22(μ^ℓ,ν^ℓ)W_{2}^{2}(\hat{\mu}_{\ell},\hat{\nu}_{\ell}); the squared sketch distance DΘ,M2D_{\Theta,M}^{2} averages these costs over directions.

The central question is how these individually optimal summaries affect the distance between two distributions. With a shared partition of the quantile domain, replacing each quantile by its cell means is an orthogonal projection and contracts W2W_{2}. Adaptive quantizers generally choose different partitions, so this contraction argument no longer applies. The triangle inequality still bounds distance error by the sum of the two quantization errors, but does not describe the effect of the mismatched cells. We resolve this gap with an exact identity for arbitrary centroid sketches: summaries whose atoms are the means of their quantile cells. The identity isolates the boundary terms that can expand distances and yields sketch-computable certificates.

Our contributions are:

  • Distance certificates for adaptive partitions. The partition-mismatch identity (Theorem 2) yields two-sided bounds, shared-partition contraction, and O(M−2)O(M^{-2}) squared-distance error when quantiles are Lipschitz and cell masses are O(M−1)O(M^{-1}) (Theorems 3 and 7). An explicit family shows that a larger M−3/2M^{-3/2} error is possible for general centroid sketches (Theorem 10).

  • Sliced approximation rates. Combining the certificates with classical quantization bounds gives O(M−1)O(M^{-1}) error in the finite-direction sliced distance under a finite (2+δ)(2+\delta) moment for some δ>0\delta>0 (Theorems 4 and 5). Gaussian projections and projections of uniform balls in dimensions d≥3d\ge3 exhibit slower equal-mass rates, illustrating the benefit of adaptive weights (Theorem 11).

  • Moment recovery. Classical centroid identities give exact directional means and a second-moment deficit equal to the residual energy. We use these identities to recover means and covariances from finitely many directions, and to bound higher-moment tensor errors, with a per-cell correction that improves the rate (Theorem 6).

  • Compression at matched accuracy. On document, point-cloud, and flow-cytometry benchmarks the sketch reproduces the accuracy of the uncompressed sliced distance with 1.5 to more than 3000 times fewer stored numbers, and learned slices make the sketched distance competitive with full-dimensional transport (§ 5). We also report where equal-mass cells are the better centroid sketch (Section D.1).

The exact solver and underlying quantization and moment identities are established results. Our analysis concerns their use in distribution sketches and, particularly, the effect of mismatched partitions on pairwise distances. The target is the sliced distance on the chosen directions; approximation of population sliced Wasserstein and comparison with W2W_2 are separate questions ([41] (Bonnotte 2013)).

Related Work

Exact one-dimensional quantization. Free-weight MM-atom W2W_2 quantization of a weighted point measure is equivalent to one-dimensional weighted kk-means with contiguous clusters. An early dynamic program for scalar quantization is due to Bruce [9]; Wu [57] obtained O(MN)O(MN) time after sorting using matrix searching ([1]). Grønlund et al. [23] show how to achieve O(MN)O(MN) time after sorting using only O(N)O(N) space, and also describe a divide-and-conquer alternative with O(MNlog⁡N)O(MN \log N) running time. Lloyd–Max iterations provide an alternative to dynamic programming by repeatedly updating cell boundaries and centroids ([39, 36]). Whether they recover a global optimum depends on the distribution. Fleischer [16] studied sufficient conditions for optimality, and subsequent work showed that log-concave densities admit a unique optimal quantizer to which the iterations converge ([56, 27]). For more general distributions, however, cell boundaries and centroids can stabilize at a suboptimal partition.

Quantization theory. Classical centroid stationarity ([39, 36]) yields the numerical-integration bound

12∥f′′∥∞εμ2\frac{1}{2}\lVert f''\rVert_{\infty}\varepsilon_\mu^2

for residual energy εμ2\varepsilon_\mu^2 ([47, 48]), with extensions by Lemaire et al. [32]. We use Zador’s asymptotic formula ([60, 61]) in its general formulation ([22]) and the extended Pierce bound ([50, 38]). Separate theories address equal-mass rates ([18, 59, 4]) and empirical-quantizer consistency and stability ([3, 35] (Levrard 2015)). Gauss quadrature matches polynomial moments ((NIST, n.d., Section 3.5(v))), with nodes and weights computable by an eigenvalue algorithm ([20]).

Sliced transport and compressed comparisons. Sliced transport ([51]) led to sliced and Radon barycenters ([7]), analytic comparisons with full-dimensional Wasserstein distances ((Bonnotte, 2013)), and statistical and projection-sampling guarantees ([41, 44, 55] (Nierte et al. 2022)). Closest to our analysis are Gaussian projection summaries ([42]), transport between kk-means summaries ([5]), common-codebook quantization ([17]), and Voronoi and other structured approximations of individual measures ([24]). These approaches control individual approximation errors, yielding pairwise-distance bounds through the triangle inequality. Our identity instead resolves residual and boundary contributions for centroid sketches with different mass partitions.

Distribution sketches and embeddings. Stream-SW ([43]) combines shared directions, KLL rank sketches ([26]), and exact one-dimensional transport, supporting streaming updates with probabilistic bounds involving the support diameter. We instead solve offline quantization and record its distortion. Sliced Wasserstein kernels and continuous feature maps ([29]) precede finite quantile-grid embeddings with Euclidean comparison ([40, 37, 10]); the cumulative distribution transform uses transport maps relative to a reference. [49]. Equal-mass cell means minimize quadratic transport error under prescribed equal weights [59, 4]. Related summaries include midpoint grids and smooth piecewise-linear reconstruction for federated statistics [11], geometric coresets using one-dimensional clustering [25], and full-dimensional uniform-weight Wasserstein coresets [12]. Directional moment reconstruction is polynomial recovery [6], combined with GMM summaries and least squares by Liu et al. [34]; it differs from identifying an entire law through projections [13, 14].

W2-Optimal Sketches

Notation. Let P2(Rd)\mathcal{P}_2(\mathbb{R}^d) denote probability measures with finite second moment. For μ∈P2(R)\mu\in\mathcal{P}_2(\mathbb{R}) let FμF_\mu be its distribution function and Qμ(t)=inf⁡{x:Fμ(x)≥t}Q_\mu(t) = \inf\{x : F_\mu(x) \ge t\}, t∈(0,1)t \in(0,1), its quantile function, so that Qμ∈L2(0,1)Q_\mu\in L^2(0,1) is nondecreasing and, for μ,ν∈P2(R)\mu,\nu\in\mathcal{P}_2(\mathbb{R}),

W22(μ,ν)=∫01(Qμ(t)−Qν(t))2 dt=∥Qμ−Qν∥2,(1)W_2^2(\mu,\nu) = \int_0^1 (Q_\mu(t)-Q_\nu(t))^2\,dt = \lVert Q_\mu-Q_\nu\rVert^2, \tag*{(1)}

where ∥⋅∥\lVert\cdot\rVert and ⟨⋅,⋅⟩\langle\cdot,\cdot\rangle denote the L2(0,1)L^2(0,1) norm and inner product. This is the classical monotone-coupling formula [15]; see Santambrogio [52] for a modern treatment.

One-dimensional building block

For μ∈P2(R)\mu\in\mathcal{P}_2(\mathbb{R}) and M≥1M \ge1, we denote an optimal MM-atom quantizer by CM(μ)C_M(\mu), with optimal error εM∗(μ)\varepsilon_M^*(\mu):

CM(μ)∈arg min⁡{W22(μ,η):∣supp⁡η∣≤M},(2)C_M(\mu) \in\operatorname*{arg\,min}\{W_2^2(\mu,\eta):|\operatorname{supp}\eta|\le M\}, \tag*{(2)}
εM∗(μ)=W22(μ,CM(μ)).\varepsilon_M^*(\mu)=W_2^2(\mu,C_M(\mu)).

Write CM(μ)=∑j=1KqjδbjC_M(\mu)=\sum_{j=1}^K q_j\delta_{b_j}, where K≤MK\le M, qj>0q_j>0, and b1<⋯<bKb_1<\cdots<b_K. Nearest-neighbor cells are intervals, separated by midpoints of adjacent atoms; a consistent assignment handles ties. Their preimages under QμQ_\mu are consecutive mass intervals Ij=(sj−1,sj]I_j=(s_{j-1},s_j]. Optimality gives the centroid condition

bj=1qj∫IjQμ(x) dx,qj=sj−sj−1.b_j=\frac{1}{q_j}\int_{I_j}Q_\mu(x)\,dx,\qquad q_j=s_j-s_{j-1}.

For weighted input μ=∑i=1Nwiδxi\mu=\sum_{i=1}^Nw_i\delta_{x_i}, the problem is exactly weighted kk-means on R\mathbb{R} after sorting and merging duplicate locations. Exact dynamic programming takes O(MN)O(MN) time after sorting using SMAWK to exploit the Monge cost structure [57, 23, 54]. Our implementation uses the simpler O(MNlog⁡N)O(MN\log N) divide-and-conquer variant, retaining O(MN)O(MN) traceback storage per slice, and includes an O(MN2)O(MN^2) oracle for verification (Section B). This gives a global optimum of the discrete objective, whereas Lloyd–Max iterations need additional assumptions for such a guarantee [16, 56, 27]. Figure 2 compares prescribed and optimized cell masses on a real projection.

Equal-mass and optimal cells for one AML cytometry subject’s side-scatter channel

Figure 2. Equal-mass and optimal cells (M=2M = 2) for one AML cytometry subject’s side-scatter channel (10410^4 cells; § 5). Atoms are cell means of QμQ_\mu; the shaded residual has energy ε2\varepsilon^2. At the equal-mass boundary, QμQ_\mu differs from the atom midpoint, so the cells are not nearest-neighbour cells. The optimal boundary s∗=0.32s_* = 0.32 satisfies the midpoint condition and lowers energy by 63%.

Centroid sketches

The distance analysis uses only the centroid condition, covering summaries with prescribed mass partitions.

Definition 1 (centroid sketch). A centroid sketch of μ∈P2(R)\mu\in\mathcal{P}_2(\mathbb{R}) with MM cells is a partition 0=s0<s1<⋯<sM=10 = s_0 < s_1 < \cdots< s_M = 1 of (0,1)(0,1) into intervals Ij=(sj−1,sj]I_j = (s_{j-1},s_j] together with the cell means bj=qj−1∫IjQμb_j = q_j^{-1}\int_{I_j} Q_\mu, qj=sj−sj−1q_j = s_j-s_{j-1}. Its step quantile is Q^μ=∑jbj1Ij\widehat{Q}_\mu= \sum_j b_j\mathbf{1}_{I_j}, its measure is μ^=∑jqjδbj\widehat{\mu} = \sum_j q_j\delta_{b_j}, its residual is rμ=Qμ−Q^μr_\mu= Q_\mu-\widehat{Q}_\mu, its quantization error is εμ=∥rμ∥=W2(μ,μ^)\varepsilon_\mu= \lVert r_\mu\rVert= W_2(\mu,\widehat{\mu}), and its residual energy is εμ2\varepsilon_\mu^2.

Since QμQ_\mu is nondecreasing, so is Q^μ\widehat{Q}_\mu, and moreover Q^μ=Qμ^\widehat{Q}_\mu= Q_{\widehat{\mu}}. The monotone coupling gives W2(μ,μ^)=∥rμ∥W_2(\mu,\widehat{\mu}) = \lVert r_\mu\rVert, and the residual integrates to zero on every cell. We use εμ\varepsilon_\mu to denote the chosen sketch, suppressing its dependence on the partition and cell count. Every MM-cell sketch satisfies εμ≥εM∗(μ)\varepsilon_\mu\ge\varepsilon_M^*(\mu). Equality holds for the optimal quantizer CM(μ)C_M(\mu), whose cells are optimal clusters. The equal-mass sketch sj=j/Ms_j = j/M (the optimal equal-weight approximation; [59, 4]) and all Lloyd fixed points are centroid sketches.

Sliced sketch and comparison

For μ∈P2(Rd)\mu\in\mathcal{P}_2(\mathbb{R}^d) and a fixed set of shared directions Θ=(θ1,…,θL)⊂Sd−1\boldsymbol{\Theta} = (\theta_1,\ldots,\theta_L) \subset\mathbb{S}^{d-1}, write μℓ=(θℓT)#μ\mu_\ell= (\theta_\ell^\mathsf{T})_\#\mu and define

SΘ,M(μ)=(CM(μ1),…,CM(μL)),\mathcal{S}_{\boldsymbol{\Theta},M}(\mu) = \left(C_M(\mu_1),\ldots,C_M(\mu_L)\right),
DΘ,M2(μ,ν)=1L∑ℓ=1LW22(CM(μℓ),CM(νℓ)).(3)D^2_{\boldsymbol{\Theta},M}(\mu,\nu) = \frac{1}{L}\sum_{\ell=1}^{L}W_2^2\left(C_M(\mu_\ell),C_M(\nu_\ell)\right). \tag*{(3)}

With MM atoms per slice, the sketch stores L(2M−1)L(2M-1) scalars: atom locations and all but one weight per slice, in addition to the shared directions. Recording one residual energy per slice increases this to 2LM2LM scalars; recording all per-cell energies instead requires L(3M−1)L(3M-1). Each projection is quantized independently, and comparisons use the resulting one-dimensional summaries directly, making it ideal for parallel computing.

Each summand in (3) compares sorted weighted atoms. Its monotone coupling has at most 2M−12M-1 nonzero flows and is computed by a two-pointer sweep in O(M)O(M) time, giving O(LM)O(LM) per query. For NN input points, construction using the SMAWK-based exact solver takes O(LNd+LNlog⁡N+LMN)O(LNd + LN\log N + LMN) time, with the three terms accounting for projection, sorting, and quantization, respectively ([57, 23]). We note that the divide-and-conquer implementation in Grønlund et al. [23] takes O(LMNlog⁡N)O(LMN\log N) for the quantization step.

The reference distance uses the same directions:

SW⁡2,Θ2(μ,ν)=1L∑ℓ=1LW22(μℓ,νℓ).\operatorname{SW}_{2,\Theta}^{2}(\mu,\nu)=\frac{1}{L}\sum_{\ell=1}^{L}W_{2}^{2}(\mu_{\ell},\nu_{\ell}).

§ 4 bounds its discrepancy from DΘ,MD_{\Theta,M}. This separates sketching error from the approximation incurred by using finitely many directions [41].

Choice of slices. The distance analysis of § 4 is carried out slice by slice and uses no property of the maps x↦θℓTxx \mapsto\theta_{\ell}^{\mathsf{T}}x beyond their being shared by all measures. The identity, the certificates, and Theorem 4 therefore hold unchanged when the directions are learned from data, or when the linear maps are replaced by shared measurable maps gℓ:Rd→Rg_{\ell}:\mathbb{R}^{d}\to\mathbb{R} with gℓ#μ∈P2(R)g_{\ell\#}\mu\in\mathcal{P}_{2}(\mathbb{R}); the reference is then the sliced distance on those slices. Theorem 5 holds for learned unit directions. The moment recovery of Theorem 6 requires linear slices in general position.

Theory

Throughout, μ,ν∈P2(R)\mu,\nu\in\mathcal{P}_{2}(\mathbb{R}) have centroid sketches μ^,ν^\hat{\mu},\hat{\nu} with cells Ij=(sj−1,sj]I_j=(s_{j-1},s_j], atoms bjb_j (for μ^\hat{\mu}) and Jk=(tk−1,tk]J_k=(t_{k-1},t_k], atoms ckc_k (for ν^\hat{\nu}), written with MM cells each to simplify notation. For unequal cell counts, each sum runs over the boundaries of its own sketch. Let D2=W22(μ^,ν^)=∥Q^μ−Q^ν∥2D^{2}=W_{2}^{2}(\hat{\mu},\hat{\nu})=\lVert\hat{Q}_{\mu}-\hat{Q}_{\nu}\rVert^{2} be the squared sketch distance and

φμ(s)=∫0srμ(x) dx,φν(t)=∫0trν(x) dx.(4)\varphi_{\mu}(s)=\int_{0}^{s}r_{\mu}(x)\,\mathrm{d}x,\qquad\varphi_{\nu}(t)=\int_{0}^{t}r_{\nu}(x)\,\mathrm{d}x. \tag*{(4)}

Because each residual has zero mean on each of its own cells, φμ\varphi_{\mu} vanishes at every sjs_j and φν\varphi_{\nu} at every tkt_k; for s∈Jks\in J_k one has φν(s)=∫tk−1srν=−∫stkrν\varphi_{\nu}(s)=\int_{t_{k-1}}^{s}r_{\nu}=-\int_{s}^{t_k}r_{\nu}.

Exact sketch distance identity

Theorem 2 (partition-mismatch identity). *For any two centroid sketches of μ,ν∈P2(R)\mu,\nu\in\mathcal{P}_{2}(\mathbb{R}),

W22(μ,ν)−D2=∥rμ−rν∥2+2∑j=1M−1(bj+1−bj)φν(sj)+2∑k=1M−1(ck+1−ck)φμ(tk).(5)W_{2}^{2}(\mu,\nu)-D^{2}=\lVert r_{\mu}-r_{\nu}\rVert^{2}+2\sum_{j=1}^{M-1}(b_{j+1}-b_j)\varphi_{\nu}(s_j) +2\sum_{k=1}^{M-1}(c_{k+1}-c_k)\varphi_{\mu}(t_k). \tag*{(5)}

Proof. By (1), W22(μ,ν)=∥(Q^μ−Q^ν)+(rμ−rν)∥2=D2+∥rμ−rν∥2+2⟨Q^μ−Q^ν,rμ−rν⟩W_{2}^{2}(\mu,\nu)=\lVert(\hat{Q}_{\mu}-\hat{Q}_{\nu})+(r_{\mu}-r_{\nu})\rVert^{2}=D^{2}+\lVert r_{\mu}-r_{\nu}\rVert^{2}+2\langle\hat{Q}_{\mu}-\hat{Q}_{\nu},r_{\mu}-r_{\nu}\rangle. Since Q^μ\hat{Q}_{\mu} is constant on each IjI_j and rμr_{\mu} integrates to zero there, ⟨Q^μ,rμ⟩=0\langle\hat{Q}_{\mu},r_{\mu}\rangle=0; likewise ⟨Q^ν,rν⟩=0\langle\hat{Q}_{\nu},r_{\nu}\rangle=0. Hence the cross term is −2⟨Q^μ,rν⟩−2⟨Q^ν,rμ⟩-2\langle\hat{Q}_{\mu},r_{\nu}\rangle-2\langle\hat{Q}_{\nu},r_{\mu}\rangle. Abel summation with φν(0)=0=φν(1)\varphi_{\nu}(0)=0=\varphi_{\nu}(1) gives ⟨Q^μ,rν⟩=∑j=1Mbj(φν(sj)−φν(sj−1))=−∑j=1M−1(bj+1−bj)φν(sj)\langle\hat{Q}_{\mu},r_{\nu}\rangle=\sum_{j=1}^{M}b_j(\varphi_{\nu}(s_j)-\varphi_{\nu}(s_{j-1}))=-\sum_{j=1}^{M-1}(b_{j+1}-b_j)\varphi_{\nu}(s_j), and symmetrically for ⟨Q^ν,rμ⟩\langle\hat{Q}_{\nu},r_{\mu}\rangle.

Figure 3 illustrates the identity. The residual term is nonnegative and at most (ϵμ+ϵν)2(\epsilon_{\mu}+\epsilon_{\nu})^{2}. The boundary terms have the opposite sign since monotonicity of each quantile implies φμ,φν≤0\varphi_{\mu},\varphi_{\nu}\leq0, while the atom increments are nonnegative. These terms vanish on a shared partition and account for possible expansion of the sketch distance when partitions differ. Unlike a triangle-inequality bound [5, 42], the identity (5) distinguishes underestimation from overestimation.

Figure 3. Partition-mismatch identity (5) for forward-scatter projections of a normal and a leukaemia subject in the AML cytometry data (10410^4 cells each; § 5), with optimal M=3M = 3 sketches. Top and middle: quantiles, step quantiles, and shaded residuals; sketch cells differ. Bottom: residual primitives (4), each zero at its own cell boundaries. Dots pair each sketch’s jumps with the other’s primitive at the same boundary. Here W22−D2=−0.0127W_2^2 - D^2 = -0.0127, comprising ∥rμ−rν∥2=0.0085\lVert r_\mu- r_\nu\rVert^2 = 0.0085 and boundary terms −0.0124-0.0124 and −0.0088-0.0088.

Corollary 3 (computable distance certificates). Write S=εμ+ενS = \varepsilon_\mu+ \varepsilon_\nu, Δμ=bM−b1\Delta_\mu= b_M - b_1, Δν=cM−c1\Delta_\nu= c_M - c_1, and let qmax⁡μ,qmax⁡νq^\mu_{\max}, q^\nu_{\max} be the largest cell masses. Define

H0=Δμqmax⁡ν εν+Δνqmax⁡μ εμ.(6)H_0 = \Delta_\mu\sqrt{q^\nu_{\max}}\,\varepsilon_\nu+ \Delta_\nu\sqrt{q^\mu_{\max}}\,\varepsilon_\mu. \tag*{(6)}

If per-cell energies εν,k2=∫Jkrν2 dv\varepsilon_{\nu,k}^2 = \int_{J_k} r_\nu^2\,\mathrm{d}v are stored, define, for s∈Jk=(tk−1,tk]s \in J_k = (t_{k-1}, t_k],

ων(s)=(s−tk−1)(tk−s)tk−tk−1 εν,k,\omega_\nu(s) = \sqrt{\frac{(s-t_{k-1})(t_k-s)}{t_k-t_{k-1}}}\,\varepsilon_{\nu,k},

with value zero at cell boundaries, and define ωμ\omega_\mu analogously. The refined boundary budget is

Hcell=2∑j=1M−1((bj+1−bj)ων(sj)+(cj+1−cj)ωμ(tj))≤H0.(7)H_{\mathrm{cell}} = 2\sum_{j=1}^{M-1}\left((b_{j+1}-b_j)\omega_\nu(s_j) + (c_{j+1}-c_j)\omega_\mu(t_j)\right) \le H_0. \tag*{(7)}

For H=H0H = H_0, or H=HcellH = H_{\mathrm{cell}} when available,

−H≤W22(μ,ν)−D2≤S2,(8)-H \le W_2^2(\mu,\nu) - D^2 \le S^2, \tag*{(8)}

and, writing x+=max⁡{x,0}x_+ = \max\{x,0\},

max⁡{D−S,(D2−H)+}≤W2(μ,ν)≤D2+S2.(9)\max\left\{D-S,\sqrt{(D^2-H)_+}\right\} \le W_2(\mu,\nu) \le\sqrt{D^2+S^2}. \tag*{(9)}

For unequal cell counts, each sum runs over the interior boundaries of its own sketch.

The general budget uses one residual energy per slice; the refinement uses per-cell energies and a linear sweep of both mass partitions. Per-cell energies also support higher-moment correction (Theorem 6). Lipschitz quantiles with maximum cell mass O(M−1)O(M^{-1}) yield O(M−2)O(M^{-2}) squared-distance error. Section A.2 gives explicit bounds and verifies these conditions for optimal quantizers of densities bounded above and away from zero on compact intervals. The proof is in Section A.1.

The boundary budget is not generally O(S2)O(S^2): Theorem 10 (Section A.3) attains the M−3/2M^{-3/2} scale allowed by H0H_0 when qmax⁡,εμ,εν≍M−1q_{\max}, \varepsilon_\mu, \varepsilon_\nu\asymp M^{-1}.

Sliced certificates

Theorem 4 (sliced certificate). Let Θ\Theta be shared, and equip each μℓ,νℓ\mu_\ell,\nu_\ell with centroid sketches having residual errors εμ,ℓ,εν,ℓ\varepsilon_{\mu,\ell},\varepsilon_{\nu,\ell}. Write DΘ,MD_{\Theta,M} for their comparison and let HℓH_\ell be any corresponding boundary budget from Theorem 3 or Theorem 7. With Eμ2=L−1∑ℓεμ,ℓ2E_\mu^2=L^{-1}\sum_\ell\varepsilon_{\mu,\ell}^2 and EνE_\nu defined analogously,

−1L∑ℓ=1LHℓ≤SW2,Θ2(μ,ν)−DΘ,M2(μ,ν)≤(Eμ+Eν)2,-\frac{1}{L}\sum_{\ell=1}^{L} H_\ell\le\mathrm{SW}_{2,\Theta}^{2}(\mu,\nu)-D_{\Theta,M}^{2}(\mu,\nu)\le(E_\mu+E_\nu)^2,
∣SW2,Θ(μ,ν)−DΘ,M(μ,ν)∣≤Eμ+Eν.(10)\left|\mathrm{SW}_{2,\Theta}(\mu,\nu)-D_{\Theta,M}(\mu,\nu)\right|\le E_\mu+E_\nu. \tag*{(10)}

The squared bounds follow by averaging the per-slice certificates and applying Minkowski’s inequality. The unsquared bound is the triangle inequality in the product of the slice spaces, as in Nadjahi et al. [42].

Sampling and direction error. If the inputs are empirical measures μn,νn\mu^n,\nu^n, the sketches are built from them, and their comparison DΘ,M(μn,νn)D_{\Theta,M}(\mu^n,\nu^n) differs from the population distance SW2,Θ(μ,ν)\mathrm{SW}_{2,\Theta}(\mu,\nu) for two reasons: the quantization of the empirical slices, and the sampling error of the slices themselves. Let Eμn,EνnE_\mu^n,E_\nu^n be the residual errors of the sketches of μn,νn\mu^n,\nu^n, and let

Sμn=(1L∑ℓ=1LW22(μℓn,μℓ))1/2S_\mu^n=\left(\frac{1}{L}\sum_{\ell=1}^{L}W_2^2(\mu_\ell^n,\mu_\ell)\right)^{1/2}

be the sliced distance between the empirical and population projections of μ\mu, with SνnS_\nu^n defined similarly. Theorem 4, applied to the empirical inputs, bounds the quantization error by Eμn+EνnE_\mu^n+E_\nu^n, and the triangle inequality for SW2,Θ\mathrm{SW}_{2,\Theta} bounds the sampling error by Sμn+SνnS_\mu^n+S_\nu^n:

∣DΘ,M(μn,νn)−SW2,Θ(μ,ν)∣≤Eμn+Eνn+Sμn+Sνn.\left|D_{\Theta,M}(\mu^n,\nu^n)-\mathrm{SW}_{2,\Theta}(\mu,\nu)\right|\le E_\mu^n+E_\nu^n+S_\mu^n+S_\nu^n.

The first two terms are read off the sketches; the last two are not observable and depend on the sample sizes and the data. This deterministic decomposition therefore leaves sampling rates to the assumptions on the data (Nadjahi et al. [41]; Nietert et al. [45]). For independent uniformly sampled directions, put Z(θ)=W22(θ#μ,θ#ν)Z(\theta)=W_2^2(\theta_{\#}\mu,\theta_{\#}\nu). The Monte Carlo estimate satisfies (Nadjahi et al. [41])

EΘ∣SW2,Θ2−SW22∣≤Var⁡θ(Z)/L.\mathbb{E}_{\Theta}\left|\mathrm{SW}_{2,\Theta}^{2}-\mathrm{SW}_{2}^{2}\right|\le\sqrt{\operatorname{Var}_{\theta}(Z)/L}.

Finite second moments suffice here because ZZ is bounded uniformly in θ\theta. The corresponding expected unsquared error is also O(L−1/2)O(L^{-1/2}), with a moment-dependent constant; details are in Section A.

Rates: free weights vs. equal-mass cells

Theorem 5 (sliced quantization complexity). If X∼μX\sim\mu satisfies E∥X∥2+δ<∞\mathbb{E}\lVert X\rVert^{2+\delta}<\infty for some δ>0\delta>0, then for the optimal-quantizer sketch

sup⁡θ∈Sd−1εM⋆(θ#μ)≤Cδ(E∥X∥2+δ)1/(2+δ)M,(11)\sup_{\theta\in\mathbb{S}^{d-1}}\varepsilon_M^\star(\theta_{\#}\mu)\le\frac{C_\delta\left(\mathbb{E}\lVert X\rVert^{2+\delta}\right)^{1/(2+\delta)}}{M}, \tag*{(11)}

hence Eμ≤Cδ(E∥X∥2+δ)1/(2+δ)/ME_\mu\le C_\delta\left(\mathbb{E}\lVert X\rVert^{2+\delta}\right)^{1/(2+\delta)}/M for every Θ\Theta, for a universal constant CδC_\delta.

See Theorem 11 in Section A.6 for more details.

Moments

A sketch is also a summary of each projected distribution, so a natural question is how well its directional moments, and the moment tensors of XX assembled from them across directions, match those of the input. The next proposition shows that the mean of every slice is exact, that the second-moment deficit equals the stored residual energy, and that the error in higher moments is controlled by that energy, with a sharper bound when per-cell energies are stored; combining the slices by least squares then bounds the error of the recovered moment tensors.

Proposition 6 (moment recovery). Let X∼μ∈P2(Rd)X \sim\mu\in\mathcal{P}_2(\mathbb{R}^d) and, for a unit direction θ\theta, couple Xθ=θ⊤XX_\theta= \theta^\top X in law with its centroid sketch X^θ\hat{X}_\theta through their quantiles. Write εμ,θ2=E(Xθ−X^θ)2\varepsilon^2_{\mu,\theta} = \mathbb{E}(X_\theta- \hat{X}_\theta)^2; on the chosen directions, εμ,θ=εμ,ℓ\varepsilon_{\mu,\theta} = \varepsilon_{\mu,\ell} as in Theorem 4. Then

EX^θ=EXθ,EXθ2=EX^θ2+εμ,θ2,(12)\mathbb{E}\hat{X}_\theta= \mathbb{E}X_\theta,\qquad\mathbb{E}X_\theta^2 = \mathbb{E}\hat{X}_\theta^2 + \varepsilon^2_{\mu,\theta}, \tag*{(12)}

and ∣Ef(Xθ)−Ef(X^θ)∣≤12∥f′′∥∞εμ,θ2|\mathbb{E}f(X_\theta) - \mathbb{E}f(\hat{X}_\theta)| \le\frac{1}{2}\|f^{\prime\prime}\|_\infty\varepsilon^2_{\mu,\theta} for f∈C2(R)f \in C^2(\mathbb{R}) with bounded second derivative. If ∥X∥≤R\|X\| \le R almost surely, with R>0R > 0, then for every integer r≥2r \ge2, writing mr,θ=EXθrm_{r,\theta} = \mathbb{E}X_\theta^r and m^r,θ=EX^θr\hat{m}_{r,\theta} = \mathbb{E}\hat{X}_\theta^r,

∣mr,θ−m^r,θ∣≤(r2)Rr−2εμ,θ2,(13)|m_{r,\theta} - \hat{m}_{r,\theta}| \le{r \choose2}R^{r-2}\varepsilon^2_{\mu,\theta}, \tag*{(13)}

with mr,θ≥m^r,θm_{r,\theta} \ge\hat{m}_{r,\theta} for even rr. For quantile cells Iθ,jI_{\theta,j} with centroids bθ,jb_{\theta,j}, let

eθ,j=∫Iθ,j(Qθ#μ(x)−bθ,j)2 dx.e_{\theta,j} = \int_{I_{\theta,j}}(Q_{\theta\#\mu}(x) - b_{\theta,j})^2\,\mathrm{d}x.

If these per-cell energies are stored, define

m~r,θ=m^r,θ+(r2)∑jbθ,jr−2eθ,j.(14)\tilde{m}_{r,\theta} = \hat{m}_{r,\theta} + {r \choose2}\sum_j b_{\theta,j}^{r-2}e_{\theta,j}. \tag*{(14)}

Then m~2,θ=m2,θ\tilde{m}_{2,\theta} = m_{2,\theta} and, whenever ∣Xθ−X^θ∣≤hθ|X_\theta- \hat{X}_\theta| \le h_\theta almost surely, for r≥3r \ge3,

∣mr,θ−m~r,θ∣≤(r3)Rr−3hθεμ,θ2.(15)|m_{r,\theta} - \tilde{m}_{r,\theta}| \le{r \choose3}R^{r-3}h_\theta\varepsilon^2_{\mu,\theta}. \tag*{(15)}

For Tr=EX⊗rT_r = \mathbb{E}X^{\otimes r}, let ArT=((⟨T,θℓ⊗r⟩)ℓ=1LA_rT = ((\langle T,\theta_\ell^{\otimes r}\rangle)_{\ell=1}^L on symmetric rr-tensors. If ArA_r has full column rank, the least-squares reconstructions from the uncorrected and corrected moment vectors satisfy

∥T^r−Tr∥F≤(r2)Rr−2∥Ar†∥2→F∥(εμ,ℓ2)ℓ∥2,r≥2,(16)\|\hat{T}_r - T_r\|_F \le{r \choose2}R^{r-2}\|A_r^\dagger\|_{2\to F}\|(\varepsilon^2_{\mu,\ell})_\ell\|_2,\qquad r \ge2, \tag*{(16)}
∥T~r−Tr∥F≤(r3)Rr−3∥Ar†∥2→F∥(hθℓεμ,ℓ2)ℓ∥2,r≥3.(17)\|\tilde{T}_r - T_r\|_F \le{r \choose3}R^{r-3}\|A_r^\dagger\|_{2\to F}\|(h_{\theta_\ell}\varepsilon^2_{\mu,\ell})_\ell\|_2,\qquad r \ge3. \tag*{(17)}

Full rank holds for L≥(d+r−1r)L \ge{d+r-1 \choose r} generic directions [6]. Without bounded support, the mean is still recovered exactly from dd spanning directions, and storing one total residual energy per slice recovers the covariance exactly from (d+12){d+1 \choose2} slices.

The centroid identities and the C2C^2 weak-error bound are classical [48, 32]. For every fixed order, εμ,θ=O(M−1)\varepsilon_{\mu,\theta} = O(M^{-1}) gives O(M−2)O(M^{-2}) moment error; the correction improves this if also hθ=O(M−1)h_\theta= O(M^{-1}), as under the bounded-density hypotheses of Theorem 8. Per-cell energies are the metadata used in Theorem 3; no higher residual moments are required. Combining the identities with least squares gives a deterministic error bound for the sliced-moment construction also used by Liu et al. [34]. Exactness concerns the measure being sketched, hence empirical moments for empirical inputs.

Experiments

Classification. We evaluate distribution classification on five document datasets [30, 53], AML patient samples [2 ) represented by cell measurements, and ModelNet40 {citep}][58] point clouds (Table 1). All sliced methods use the same L=16L = 16 linear projections, learned and then frozen. We compare the uncompressed sliced distance, optimal sketches, and equal-mass sketches with the same number of atoms MM. Equal-mass sketches use MM quantile intervals of fixed mass 1/M1/M, while ours adapt the interval masses to minimize quantization error. Classification uses nearest neighbours on each distance. For each benchmark, we select the smallest MM for which the optimal sketch is within 0.5 percentage points of the uncompressed validation accuracy. Optimal and equal-mass sketches store L(2M−1)L(2M - 1) and LMLM values, respectively, compared with LNLN for uncompressed projections. We also report exact optimal transport with Euclidean ground cost (Word Mover’s Distance for documents) and the Bures–Wasserstein distance (BW) between Gaussian approximations defined by each distribution’s mean and covariance. These baselines are unsupervised, whereas our projections use training labels. We provide implementation details for all experiments in Section B, and ablations in Section D.1.

benchmark(N,M)(N, M)BWExact OTunc. SW2,Θ\mathrm{SW}_{2,\Theta}equal-massourserror ratio
\multicolumn{8}{c}{test error (↓\downarrow)}
BBCSport(117,4)(117, 4)6.2±1.96.2 \pm1.95.1±1.25.1 \pm1.21.1±0.81.1 \pm0.81.9±1.11.9 \pm1.11.1±0.81.1 \pm0.81.81.8
Twitter(10,4)(10, 4)28.7±1.428.7 \pm1.429.7±1.529.7 \pm1.527.0±1.427.0 \pm1.427.0±0.927.0 \pm0.926.7±0.226.7 \pm0.24.04.0
Classic(39,4)(39, 4)3.2±0.53.2 \pm0.52.9±0.42.9 \pm0.43.1±0.33.1 \pm0.33.8±0.43.8 \pm0.43.3±0.3∗3.3 \pm0.3^{*}1.81.8
Recipe(48,8)(48, 8)43.2±1.043.2 \pm1.042.9±0.842.9 \pm0.837.4±0.937.4 \pm0.938.7±0.738.7 \pm0.737.4±1.0∗37.4 \pm1.0^{*}4.14.1
Reuters(36,2)(36, 2)4.74.73.93.92.92.93.43.42.82.81.21.2
\multicolumn{8}{c}{accuracy (↑\uparrow)}
AML(104,2)(10^{4}, 2)97.5±1.497.5 \pm1.497.4±1.297.4 \pm1.298.1±1.598.1 \pm1.597.7±1.797.7 \pm1.798.2±1.5∗98.2 \pm1.5^{*}1.31.3
ModelNet40(1024,8)(1024, 8)62.462.483.283.280.180.179.079.080.3∗80.3^{*}1.31.3

Table 1. Classification with L=16L = 16 shared learned slices. NN: points per distribution (mean distinct words for documents); MM: smallest optimal-sketch size matching uncompressed validation accuracy within 0.5 percentage points, also used for equal mass sketches. Scores are percentages. Bold marks the best method, and * a significant paired difference between ours and equal-mass. Error ratio: median equal mass/optimal quantization energy. (error ratio >1> 1 shows that equal-mass results in larger error compared to ours.)

Optimal sketches store only 48–240 values per distribution while remaining within 0.3 percentage points of the uncompressed test score on all seven benchmarks. This corresponds to storage reductions of 1.5–18× for documents, 68× for point clouds, and over 3000× for AML samples. At the same MM, optimal sketches outperform equal-mass sketches on all seven benchmarks, with statistically significant differences on Classic, Recipe, AML, and ModelNet40. Optimal sketches also outperform the exact transport baselines on five benchmarks. Sketches are also more accurate than BW on six benchmarks.

Learning from few subjects. Sketch embeddings also support classification when labelled distributions are scarce. On AML, each subject is represented on L=32L = 32 random slices of its N=104N = 10^{4} cells, either by the LN=320,000LN = 320{,}000 uncompressed sorted projections or by a sketch: the MM atoms and M−1M - 1 masses of every slice for the optimal sketch, and 2M−12M - 1 cell means, the same number, for equal-mass cells. We report results for M=2M = 2 and M=8M = 8, resulting in stored values 96 and 480, respectively. As a baseline, we concatenate each subject’s empirical mean and the unique entries of its covariance matrix in the original d=7d = 7 cell-feature space. Inside each of the 25 training folds of Table 1 we draw 2, 4, 8 or 16 AML subjects with normal subjects in the ratio of the dataset, ten times, and fit class-balanced ℓ2\ell_2-regularized logistic regression. Table 2 reports the test AUC, and a linear SVM leads to the same conclusions (Section D.2). Every representation reaches a training AUC of 1, while their test AUCs reveal differences in generalization to held-out subjects.

summarystored values24816all
AML subjects in training
uncompressed320,00092.7±0.692.7 \pm0.695.4±0.495.4 \pm0.497.1±0.497.1 \pm0.498.1±0.498.1 \pm0.498.6±0.498.6 \pm0.4
mean, covariance3592.4±0.892.4 \pm0.896.2±0.596.2 \pm0.597.1±0.697.1 \pm0.697.9±0.597.9 \pm0.598.1±0.598.1 \pm0.5
equal-mass9692.4±0.692.4 \pm0.695.1±0.595.1 \pm0.596.7±0.596.7 \pm0.597.6±0.497.6 \pm0.497.9±0.597.9 \pm0.5
ours9696.8±0.496.8 \pm0.498.1±0.298.1 \pm0.298.8±0.298.8 \pm0.299.3±0.299.3 \pm0.299.6±0.199.6 \pm0.1
equal-mass48092.9±0.692.9 \pm0.695.6±0.595.6 \pm0.597.3±0.497.3 \pm0.498.2±0.498.2 \pm0.498.5±0.498.5 \pm0.4
ours48096.6±0.496.6 \pm0.497.9±0.397.9 \pm0.398.6±0.398.6 \pm0.399.1±0.399.1 \pm0.399.2±0.399.2 \pm0.3

Table 2. AML, logistic regression from few labelled subjects. Test AUC (%), mean ±\pm standard error over the 25 folds, with ten draws of the training subjects per fold. L=32L = 32 random slices (seed 0), N=104N = 10^4 cells. Normal subjects are added in the ratio of the dataset; “all” is the whole training fold, about 34 AML subjects. Stored values: number of values stored per subject. Linear SVM in Table 5.

The optimal sketch has a higher test AUC than the uncompressed representation at every training size, demonstrating an advantage when labelled subjects are scarce. The sketch provides a compact, adaptive representation that generalizes better with the same linear classifier. The improvement is not explained by feature count alone. Equal-mass cells at matched storage remain within 1.2 points of the uncompressed representation, and mean and covariance features do not consistently improve on it. These results suggest that the adaptive representation contributes to the observed generalization gains beyond dimensionality reduction alone.

Sketches as a pooling layer. The sketch can also serve as the pooling layer of a network trained end to end. We follow the ModelNet40 protocol and official code of Naderializadeh et al. [40]. We use a per-point MLP, or no backbone (Identity)([62]), LL learned linear slices of its output, a pooling layer, and a linear classifier. Their PSWE layer is an equal-mass summary at full resolution (1024 cells per slice) followed by learned rank weights that reduce each slice to one number. We apply the same layer, with the same reference and rank weights, to a sketch with 4 cells per slice, either equal-mass cells or the optimal sketch, so the two sketches differ only in their partition. For M=NM = N both sketches reproduce PSWE. We therefore only compare the two sketches at M=4M = 4. The optimal sketch is computed exactly in every forward pass; gradients flow through its atoms, which are cell means, while the partition is held fixed.

Without a backbone the slices act on the raw coordinates, and the optimal sketch is more accurate than equal-mass cells at every LL, by 1.7 to 4.6 points (Figure 4). With the MLP backbone it is more accurate for L≥16L \ge16, by 0.4 to 1.5 points, and less accurate at L=4L = 4, where it varies most across seeds. With the MLP backbone, the optimal sketch comes within 2.5 points of PMA and 1.8 points of FSPool [63] at L=256L = 256, against 4.0 and 3.4 points for equal-mass cells, while representing each projected distribution with four cells. Without a backbone, these layers output only three numbers per cloud and reach at most 34%, while the optimal sketch reaches 80% at L=256L = 256.

ModelNet40 test accuracy for Identity and MLP backbones

Figure 4. ModelNet40, following [40]: no backbone (top), and MLP backbone (bottom). Test accuracy (%), mean and standard deviation (error bars) over 3 seeds. Equal-mass and ours: sketches with M=4M = 4 cells per slice; the number above each pair is ours minus equal-mass. Lines: GAP, PMA and FSPool, which use no slices, with ±\pm one standard deviation shaded.

Conclusion

We studied compact sliced-Wasserstein sketches via optimal one-dimensional quantization. Our partition-mismatch identity characterizes how independently chosen cells affect pairwise distances and yields error certificates for centroid sketches. Experiments show that optimal sketches can preserve uncompressed sliced-distance classification performance under substantial compression. Minimizing quantization error does not guarantee the best distance approximation or downstream performance, and adaptive sketches require more storage than equal-mass sketches at the same atom count. Future work targets faster construction and sharper distance-error guarantees for optimal quantizers.

Acknowledgments

This work was supported in part by NSF CAREER Award No. 233989 and NSF DMS Award No. 2603773. The authors also gratefully acknowledge the computing resources provided by the NVIDIA Academic Grant Program.

Proofs

Proof of cor:certificates

Write the boundary term of (5) as

B=2∑j(bj+1−bj)φν(sj)+2∑k(ck+1−ck)φμ(tk),B = 2\sum_j (b_{j+1}-b_j)\varphi_\nu(s_j) + 2\sum_k (c_{k+1}-c_k)\varphi_\mu(t_k),

so that W22(μ,ν)−D2=∥rμ−rν∥2+BW_2^2(\mu,\nu)-D^2=\lVert r_\mu-r_\nu\rVert^2+B. For a cell Jk=(a,b]J_k=(a,b] with centroid ckc_k, the zero-cell-mean condition gives φν(s)=∫as(Qν(x)−ck) dx\varphi_\nu(s)=\int_a^s(Q_\nu(x)-c_k)\,\mathrm{d}x for s∈[a,b]s\in[a,b]. For s∈(a,b)s\in(a,b), the average of a nondecreasing function over (a,s](a,s] is no larger than its average over (a,b](a,b], so φν(s)≤0\varphi_\nu(s)\le0; the primitive is zero at both endpoints. The same holds for φμ\varphi_\mu. Since all atom increments are nonnegative, B≤0B\le0.

Using ∫abrν=0\int_a^b r_\nu=0, write

φν(s)=∫abrν(x)(1(a,s](x)−s−ab−a) dx.\varphi_\nu(s)=\int_a^b r_\nu(x)\left(\mathbf{1}_{(a,s]}(x)-\frac{s-a}{b-a}\right)\,\mathrm{d}x.

The squared L2(a,b)L^2(a,b) norm of the function in parentheses is (s−a)(b−s)/(b−a)(s-a)(b-s)/(b-a). Cauchy–Schwarz therefore gives

∣φν(s)∣≤(s−a)(b−s)b−a εν,k=ων(s)≤12qmax⁡ν εν,\lvert\varphi_\nu(s)\rvert\le\sqrt{\frac{(s-a)(b-s)}{b-a}}\,\varepsilon_{\nu,k}=\omega_\nu(s)\le\frac{1}{2}\sqrt{q_{\max}^\nu}\,\varepsilon_\nu,

and the analogous bounds hold for μ\mu. Summing against the nonnegative atom increments, whose sums are Δμ\Delta_\mu and Δν\Delta_\nu, yields −Hcell≤B≤0-H_{\mathrm{cell}}\le B\le0 and Hcell≤H0H_{\mathrm{cell}}\le H_0. Together with 0≤∥rμ−rν∥2≤S20\le\lVert r_\mu-r_\nu\rVert^2\le S^2, this proves (8) for either budget. Taking square roots yields (D2−H)+≤W2(μ,ν)≤D2+S2\sqrt{(D^2-H)_+}\le W_2(\mu,\nu)\le\sqrt{D^2+S^2}, and the triangle inequality gives W2(μ,ν)≥D−SW_2(\mu,\nu)\ge D-S, proving (9). To evaluate HcellH_{\mathrm{cell}}, each boundary sjs_j of μ^\hat{\mu} must be located in its containing cell Jk(j)J_{k(j)} of ν^\hat{\nu}. Since both boundary lists are sorted, k(j)k(j) is nondecreasing in jj, so a single merge of the two lists finds every k(j)k(j); the same merge with the roles of μ\mu and ν\nu exchanged locates every tkt_k in a cell of μ^\hat{\mu}. Hence HcellH_{\mathrm{cell}} costs O(Mμ+Mν)O(M_\mu+M_\nu) time. □

Regularity refinements of cor:certificates

Here we illustrate how Theorem 3 can be strengthened when more assumptions are made on the quantiles. While this is not directly applicable to discrete measures, it provides some intuition for the more general approximation scheme considered here.

Corollary 7 (Lipschitz quantiles). Suppose Qμ,QνQ_\mu,Q_\nu are Lipschitz with constants Aμ,AνA_\mu,A_\nu. Then the boundary budget

HA=14ΔμAν(qmax⁡ν)2+14ΔνAμ(qmax⁡μ)2H_A=\frac{1}{4}\Delta_\mu A_\nu(q_{\max}^\nu)^2+\frac{1}{4}\Delta_\nu A_\mu(q_{\max}^\mu)^2

may replace HH in (8) and (9). Furthermore, ερ2≤Aρ2(qmax⁡ρ)2/12\varepsilon_\rho^2\le A_\rho^2(q_{\max}^\rho)^2/12 for ρ∈{μ,ν}\rho\in\{\mu,\nu\}, and consequently

∣W22(μ,ν)−D2∣≤max⁡{HA,(Aμqmax⁡μ+Aνqmax⁡ν)212}.\left\lvert W_2^2(\mu,\nu)-D^2\right\rvert\le\max\left\{H_A,\frac{(A_\mu q_{\max}^\mu+A_\nu q_{\max}^\nu)^2}{12}\right\}.

For fixed Lipschitz constants, this is O(M−2)O(M^{-2}) whenever both largest cell masses are O(M−1)O(M^{-1}).

Proof. Write BB for the sum of the two boundary terms in (5), so that W22(μ,ν)−D2=∥rμ−rν∥2+BW_2^2(\mu,\nu)-D^2=\lVert r_\mu-r_\nu\rVert^2+B. On a cell Jk=(a,b]J_k=(a,b], the centroid formula gives

−φν(s)=1b−a∫as∫sb(Qν(y)−Qν(x)) dy dx≤Aν2(s−a)(b−s)≤Aν(b−a)28.-\varphi_\nu(s)=\frac{1}{b-a}\int_a^s\int_s^b\left(Q_\nu(y)-Q_\nu(x)\right)\,\mathrm{d}y\,\mathrm{d}x\le\frac{A_\nu}{2}(s-a)(b-s)\le\frac{A_\nu(b-a)^2}{8}.

Since φν≤0\varphi_\nu\le0 and the atom increments bj+1−bjb_{j+1}-b_j are nonnegative with sum Δμ\Delta_\mu,

0≤−2∑j(bj+1−bj)φν(sj)≤2⋅Aν(qmax⁡ν)28∑j(bj+1−bj)=14ΔμAν(qmax⁡ν)2.0 \le-2\sum_j (b_{j+1}-b_j)\varphi_\nu(s_j) \le2\cdot\frac{A_\nu(q_{\max}^\nu)^2}{8}\sum_j(b_{j+1}-b_j)=\frac{1}{4}\Delta_\mu A_\nu(q_{\max}^\nu)^2.

The same argument with the roles of μ\mu and ν\nu exchanged bounds the second sum in BB by 14ΔνAμ(qmax⁡μ)2\frac{1}{4}\Delta_\nu A_\mu(q_{\max}^\mu)^2. Adding the two bounds gives −HA≤B≤0-H_A\le B\le0, so the proof of Theorem 3 applies with HAH_A in place of HH. For the energy, the variance identity on a cell of mass qk=b−aq_k=b-a gives

εν,k2=12qk∫ab∫ab(Qν(x)−Qν(y))2 dx dy≤Aν2qk312.\varepsilon_{\nu,k}^2=\frac{1}{2q_k}\int_a^b\int_a^b(Q_\nu(x)-Q_\nu(y))^2\,dx\,dy\le\frac{A_\nu^2q_k^3}{12}.

Summing over cells and using ∑kqk=1\sum_k q_k=1 yields εν2≤Aν(qmax⁡ν)2/12\varepsilon_\nu^2\le A_\nu(q_{\max}^\nu)^2/12; the argument for μ\mu is identical. The absolute bound follows from (8) and the resulting bound on S2\mathcal{S}^2.

Lemma 8 (widths of optimal quantization cells). Let ρ\rho have density ff with 0<c≤f≤C0<c\le f\le C almost everywhere on an interval of length ℓ\ell, vanishing outside it. For M≥6M\ge6, every optimal free-weight MM-atom quadratic quantizer has clipped Voronoi cells of width at most κℓ/M\kappa\ell/M, where κ=44/3(C/c)4/3\kappa=4^{4/3}(C/c)^{4/3}. Thus

qmax⁡≤CκℓM,∣Y−Y^∣≤κℓM almost surely,ερ≤ℓ2M,q_{\max}\le\frac{C\kappa\ell}{M},\qquad|Y-\widehat{Y}|\le\frac{\kappa\ell}{M}\ \text{almost surely},\qquad\varepsilon_\rho\le\frac{\ell}{2M},

where (Y,Y^)(Y,\widehat{Y}) is the quantile coupling of ρ\rho with its sketch. Also, QρQ_\rho is c−1c^{-1}-Lipschitz.

Proof. An optimum uses exactly MM nonempty cells: otherwise, splitting any positive-width cell into two and replacing its centroid by the two conditional centroids strictly reduces the error while using at most MM atoms. The cells partition the support interval, up to endpoints, and each atom is its cell centroid.

Fix a cell II of width ww and mass q≤Cwq\le Cw. Split it at its midpoint into halves I1,I2I_1,I_2 with masses qi≥cw/2q_i\ge cw/2 and centroids m1<m2m_1<m_2. On a half of length h=w/2h=w/2, the centroid’s distance from the inner endpoint is at least c∫0ht dt/(Ch)=ch/(2C)c\int_0^h t\,dt/(Ch)=ch/(2C), so m2−m1≥cw/(2C)m_2-m_1\ge cw/(2C). By the decomposition ∫I(x−m)2 dρ=∑i∫Ii(x−mi)2 dρ+q1q2q(m2−m1)2\int_I(x-m)^2\,d\rho=\sum_i\int_{I_i}(x-m_i)^2\,d\rho+\frac{q_1q_2}{q}(m_2-m_1)^2, where mm is the centroid of II, replacing II by its two halves decreases the distortion by

q1q2q(m2−m1)2≥c4w316C3.\frac{q_1q_2}{q}(m_2-m_1)^2\ge\frac{c^4w^3}{16C^3}.

Excluding II, the remaining M−1M-1 cells form at most two chains and contain at least (M−3)/2(M-3)/2 disjoint adjacent pairs. Their widths sum to at most ℓ\ell, so one pair has combined width W≤2ℓ/(M−3)≤4ℓ/MW\le2\ell/(M-3)\le4\ell/M, using M≥6M\ge6. Merging that pair into one cell at its centroid increases the distortion by qjqj+1qj+qj+1(bj+1−bj)2≤CW3/4\frac{q_jq_{j+1}}{q_j+q_{j+1}}(b_{j+1}-b_j)^2\le CW^3/4. Splitting II and merging this disjoint pair gives a competitor with MM cells, so optimality forces c4w3/(16C3)≤CW3/4c^4w^3/(16C^3)\le CW^3/4, hence w≤41/3(C/c)4/3W≤κℓ/Mw\le4^{1/3}(C/c)^{4/3}W\le\kappa\ell/M. Its mass is at most CwCw, proving the mass bound. As the centroid lies in its cell, the same width bound controls ∣Y−Y^∣|Y-\widehat{Y}| almost surely. Finally, MM equally spaced midpoint representatives on the support interval have pointwise nearest-neighbour error at most ℓ/(2M)\ell/(2M); assigning each point to its nearest representative gives an admissible free-weight quantizer, so optimality gives ερ≤ℓ/(2M)\varepsilon_\rho\le\ell/(2M). The lower density bound gives F(y)−F(x)≥c(y−x)F(y)-F(x)\ge c(y-x) on the support interval, and inverting gives the Lipschitz bound on QρQ_\rho.

Corollary 9 (optimal sketches of bounded densities). For ρ∈{μ,ν}\rho\in\{\mu,\nu\}, suppose ρ\rho has density 0<cρ≤fρ≤Cρ0<c_\rho\le f_\rho\le C_\rho almost everywhere on an interval of length ℓρ\ell_\rho, vanishing outside it. Put κρ=44/3(Cρ/cρ)4/3\kappa_\rho=4^{4/3}(C_\rho/c_\rho)^{4/3} and βρ=Cρκρℓρ\beta_\rho=C_\rho\kappa_\rho\ell_\rho. If both sketches are optimal free-weight quantizers with M≥6M\ge6 atoms, then ∣W22(μ,ν)−D2∣≤Kμν/M2|W_2^2(\mu,\nu)-D^2|\le K_{\mu\nu}/M^2, where

Kμν=max⁡{14(ℓμβν2cν+ℓνβμ2cμ),(ℓμ+ℓν)24}.K_{\mu\nu}=\max\left\{\frac{1}{4}\left(\frac{\ell_\mu\beta_\nu^2}{c_\nu}+\frac{\ell_\nu\beta_\mu^2}{c_\mu}\right),\frac{(\ell_\mu+\ell_\nu)^2}{4}\right\}.

Proof. Theorem 8 gives qmax⁡ρ≤βρ/Mq_{\max}^{\rho} \le\beta_{\rho}/M, a Lipschitz constant Aρ=cρ−1A_{\rho} = c_{\rho}^{-1} for QρQ_{\rho}, and ερ≤ℓρ/(2M)\varepsilon_{\rho} \le\ell_{\rho}/(2M). Since every centroid is in the support interval, Δρ≤ℓρ\Delta_{\rho} \le\ell_{\rho}. Thus HA≤14M2(ℓμβν2cν+ℓνβμ2cμ)H_A \le\frac{1}{4M^2}\left(\frac{\ell_{\mu}\beta_{\nu}^2}{c_{\nu}}+\frac{\ell_{\nu}\beta_{\mu}^2}{c_{\mu}}\right) and S2≤(ℓμ+ℓν)2/(4M2)S^2 \le(\ell_{\mu}+\ell_{\nu})^2/(4M^2), and (8) with the budget of Theorem 7 gives the result.

Sharpness of the boundary budget

The following example shows that the boundary budget of Theorem 3 cannot in general be replaced by a constant multiple of S2S^2.

Example 10 (sharpness for general centroid sketches). Let μ=12U[−2,−1]+12U[1,2]\mu= \frac{1}{2}U[-2,-1] + \frac{1}{2}U[1,2] and use its equal-mass sketch with MM even. The middle boundary is sM/2=12s_{M/2} = \frac{1}{2}, with atom jump bM/2+1−bM/2=2+2/Mb_{M/2+1} - b_{M/2} = 2 + 2/M. Set q=1/(M+1)q = 1/(M+1) and

νM=(1−q)μ+q2δ−h/2+q2δh/2,h=M−1/2.\nu_M = (1-q)\mu+ \frac{q}{2}\delta_{-h/2} + \frac{q}{2}\delta_{h/2}, \qquad h = M^{-1/2}.

For the equal-mass sketch of νM\nu_M with M+1M+1 cells, the middle cell consists exactly of the two added atoms. Its centroid is zero, so φνM(12)=−qh/4\varphi_{\nu_M}\left(\frac{1}{2}\right) = -qh/4. The other boundary terms together are O(M−2)O(M^{-2}): away from the central jump the quantiles are linear with bounded slopes, while the two central boundaries of the second sketch lie in cells of μ\mu with residual integrals O(M−2)O(M^{-2}). The residual term is also O(M−2)O(M^{-2}). Thus

W22(μ,νM)−D2=−(2+2/M)qh2+O(M−2)=−M−3/2+O(M−2),\begin{aligned} W_2^2(\mu,\nu_M)-D^2 = -\frac{(2+2/M)qh}{2} + O(M^{-2}) \\ &= -M^{-3/2} + O(M^{-2}), \end{aligned}

whereas εμ2=1/(3M2)\varepsilon_{\mu}^2 = 1/(3M^2) and ενM2=qh2/4+O(M−2)\varepsilon_{\nu_M}^2 = qh^2/4 + O(M^{-2}). This is a sequence of pairs with general centroid sketches, checked numerically in Section C. Whether an O(M−2)O(M^{-2}) gap holds for all pairs of optimal sketches with εμ,εν=O(M−1)\varepsilon_{\mu},\varepsilon_{\nu} = O(M^{-1}) remains open.

Proof of Theorem 4

Average (8) over the slices. Minkowski’s inequality gives

1L∑ℓ(εμ,ℓ+εν,ℓ)2≤(Eμ+Eν)2,\frac{1}{L}\sum_{\ell}(\varepsilon_{\mu,\ell}+\varepsilon_{\nu,\ell})^2 \le(E_{\mu}+E_{\nu})^2,

which proves the signed squared bounds. For the unsquared bound, apply the reverse triangle inequality to the Euclidean norms of the vectors of slice distances, and then use the fact that ∣W2(μℓ,νℓ)−W2(μ^ℓ,ν^ℓ)∣≤εμ,ℓ+εν,ℓ\lvert W_2(\mu_{\ell},\nu_{\ell})-W_2(\hat{\mu}_{\ell},\hat{\nu}_{\ell})\rvert\le\varepsilon_{\mu,\ell}+\varepsilon_{\nu,\ell}.

For empirical inputs, the same product-space triangle inequality gives

∣SW⁡2,Θ(μ,ν)−DΘ,M(μn,νn)∣≤Sμn+Sνn+Eμn+Eνn.\left|\operatorname{SW}_{2,\Theta}(\mu,\nu)-D_{\Theta,M}(\mu^n,\nu^n)\right| \le S_{\mu}^n+S_{\nu}^n+E_{\mu}^n+E_{\nu}^n.

This holds for any empirical measures; independence and sampling assumptions enter only when bounding Sμn,SνnS_{\mu}^n,S_{\nu}^n statistically.

For the Monte Carlo statement, put m=EθZ=SW⁡22m = \mathbb{E}_{\theta}Z = \operatorname{SW}_2^2 and Zˉ=L−1∑ℓZ(θℓ)=SW⁡2,Θ2\bar{Z} = L^{-1}\sum_{\ell} Z(\theta_{\ell}) = \operatorname{SW}_{2,\Theta}^2. Independence gives EΘ(Zˉ−m)2=Var⁡θ(Z)/L\mathbb{E}_{\Theta}(\bar{Z}-m)^2 = \operatorname{Var}_{\theta}(Z)/L. Also

0≤Z(θ)≤K:=2(E∥X∥2+E∥Y∥2),X∼μ,Y∼ν,0 \le Z(\theta) \le K := 2(\mathbb{E}\lVert X\rVert^2+\mathbb{E}\lVert Y\rVert^2), \qquad X \sim\mu,\quad Y \sim\nu,

so Var⁡(Z)≤Km\operatorname{Var}(Z) \le Km. Cauchy–Schwarz gives the squared-error claim. If m>0m > 0,

EΘ∣Z‾−m∣≤EΘ∣Z‾−m∣m≤K/L.\mathbb{E}_{\Theta}\left|\sqrt{\overline{Z}}-\sqrt{m}\right| \le\frac{\mathbb{E}_{\Theta}|\overline{Z}-m|}{\sqrt{m}} \le\sqrt{K/L}.

If m=0m = 0, Z=0Z = 0 almost surely and the error is zero. These are the usual projection-sampling bounds [41].

Proof of thm:rate

Fix θ∈Sd−1\theta\in\mathbb{S}^{d-1} and let Xθ=θTXX_{\theta} = \theta^{\mathsf{T}}X. The extended Pierce lemma [38 Lemma 1] states that for every δ>0\delta> 0 there is a constant CδC_{\delta} such that for every real random variable YY and every M≥1M \ge1,

inf⁡∣α∣≤M∥Y−Y^α∥L22≤Cδ∥Y∥L2+δ2M−1,\inf_{|\alpha|\le M}\|Y-\widehat{Y}^{\alpha}\|_{L^{2}}^{2} \le C_{\delta}\|Y\|_{L^{2+\delta}}^{2}M^{-1},

where Y^α\widehat{Y}^{\alpha} is the nearest-neighbour projection onto the finite set α\alpha; the left side is εM⋆(law⁡(Y))\varepsilon_{M}^{\star}(\operatorname{law}(Y)). Apply it to Y=XθY = X_{\theta} and use ∣θTX∣≤∥X∥|\theta^{\mathsf{T}}X| \le\|X\|, so ∥Xθ∥L2+δ≤(E∥X∥2+δ)1/(2+δ)\|X_{\theta}\|_{L^{2+\delta}} \le(\mathbb{E}\|X\|^{2+\delta})^{1/(2+\delta)} uniformly in θ\theta. Averaging (εM⋆(θℓ#μ))2(\varepsilon_{M}^{\star}(\theta_{\ell\#}\mu))^{2} over ℓ\ell gives the bound on EμE_{\mu}. (Translating XX by any fixed vector does not change εM⋆\varepsilon_{M}^{\star}, so E∥X∥2+δ\mathbb{E}\|X\|^{2+\delta} may be replaced by min⁡aE∥X−a∥2+δ\min_{a}\mathbb{E}\|X-a\|^{2+\delta}; see [32 Thm. 1.9(b].) The limit statement is Zador’s theorem in one dimension [22 Thm. 6.2], valid under the same 2+δ2+\delta moment condition, which also guarantees ∫fθ1/3<∞\int f_{\theta}^{1/3}<\infty. Note that a finite second moment alone does not guarantee the stated rate [22].

Equal-mass approximation rates

The following proposition compares the equal-mass sketch with the optimal quantizer of a single one-dimensional law ρ\rho, such as a projection θ#μ\theta_{\#}\mu. Write εMeq(ρ)\varepsilon_{M}^{\mathrm{eq}}(\rho) for the error of its MM-cell equal-mass sketch and εM⋆(ρ)\varepsilon_{M}^{\star}(\rho) for the optimal MM-atom error. Since equal weights are admissible, εM⋆(ρ)≤εMeq(ρ)\varepsilon_{M}^{\star}(\rho) \le\varepsilon_{M}^{\mathrm{eq}}(\rho) for every MM.

Proposition 11 (equal-mass and optimal rates). Let ρ\rho have density ff and an absolutely continuous quantile function.

(a) If ∫{f>0}f−1<∞\int_{\{f>0\}} f^{-1} < \infty, then

M2(εMeq)2→112∫{f>0}f−1.M^{2}\left(\varepsilon_{M}^{\mathrm{eq}}\right)^{2} \to\frac{1}{12}\int_{\{f>0\}} f^{-1}.

(b) If, in addition, ρ\rho has a finite moment of order 2+δ2+\delta for some δ>0\delta> 0, then

lim⁡M2(εM⋆)2=112(∫f1/3)3≤112∫{f>0}f−1,\lim M^{2}\left(\varepsilon_{M}^{\star}\right)^{2} = \frac{1}{12}\left(\int f^{1/3}\right)^{3} \le\frac{1}{12}\int_{\{f>0\}} f^{-1},

with equality if and only if ρ\rho is uniform on an interval.

(c) If ρ\rho is a nondegenerate Gaussian, then

(εMeq)2≍(Mlog⁡M)−1,\left(\varepsilon_{M}^{\mathrm{eq}}\right)^{2} \asymp(M\log M)^{-1},

whereas

(εM⋆)2≍M−2.\left(\varepsilon_{M}^{\star}\right)^{2} \asymp M^{-2}.

(d) If ρ\rho is the projection of the uniform distribution on the unit ball of Rd\mathbb{R}^{d} onto a line, so that f(t)∝(1−t2)(d−1)/2f(t) \propto(1-t^{2})^{(d-1)/2} on [−1,1][-1,1], then

(εM⋆)2≍M−2\left(\varepsilon_{M}^{\star}\right)^{2} \asymp M^{-2}

and

(εMeq)2≍{M−2,d≤2,M−2log⁡M,d=3,M−(d+5)/(d+1),d≥4,\left(\varepsilon_{M}^{\mathrm{eq}}\right)^{2} \asymp \begin{cases} M^{-2}, & d \le2,\\ M^{-2}\log M, & d = 3,\\ M^{-(d+5)/(d+1)}, & d \ge4, \end{cases}

with constants depending on dd.

In (c), and in (d) for d≥3d \ge3, ∫f−1=∞\int f^{-1} = \infty, so (a) does not apply and the equal-mass rate is slower than M−2M^{-2}. The cost comes from low-density cells: in the Gaussian tail and near the endpoints of the ball projection, a cell of mass 1/M1/M must be wide. The Gaussian rate in (c) is sharp along M=2kM = 2^{k} by Giles et al. [18].

Proof. (a): For prescribed cell masses, the best W2W_2 approximation uses cell means of the quantile function [59 Theorem 5.5]. Indeed, these are the L2L^2 projection onto the space of functions constant on the prescribed intervals, and the resulting cell means remain nondecreasing. Hence the equal-mass residual error εMeq\varepsilon_M^{\mathrm{eq}} is the optimal error among measures with MM equal weights. Absolute continuity of the quantile and the stated integrability condition allow [59 Theorem 5.15] to be applied with r=2r=2.

(b) Under the moment condition, Zador’s theorem in one dimension [22 Thm. 6.2] gives

lim⁡M→∞M2(εMeq)2=112(∫f1/3)3.\lim_{M\to\infty} M^2\left(\varepsilon_M^{\mathrm{eq}}\right)^2=\frac{1}{12}\left(\int f^{1/3}\right)^3.

To compare this constant with the one in (a), apply Hölder’s inequality with exponents 3 and 3/23/2 to f1/3=f−1/3f2/3f^{1/3}=f^{-1/3}f^{2/3} on {f>0}\{f>0\}:

∫f1/3≤(∫{f>0}f−1)1/3(∫f)2/3=(∫{f>0}f−1)1/3.\int f^{1/3}\leq\left(\int_{\{f>0\}}f^{-1}\right)^{1/3}\left(\int f\right)^{2/3}=\left(\int_{\{f>0\}}f^{-1}\right)^{1/3}.

Cubing gives the stated inequality; it is trivial when ∫{f>0}f−1=∞\int_{\{f>0\}}f^{-1}=\infty. Equality in Hölder’s inequality holds if and only if f−1f^{-1} and ff are proportional on {f>0}\{f>0\}, that is, ff is constant there. An absolutely continuous quantile function has no jumps, so {f>0}\{f>0\} is an interval up to a null set, and equality holds exactly when ρ\rho is uniform on an interval. This comparison concerns the limiting constants, not the errors at finite MM.

(c) By symmetry and scaling it suffices to treat the upper tail of N(0,1)N(0,1). Number the equal-mass cells from the right, so that cell kk has tail probabilities ((k−1)/M,k/M]((k-1)/M,k/M]. The outermost cell is the tail beyond x1=Φ−1(1−1/M)x_1=\Phi^{-1}(1-1/M), with x1∼2log⁡Mx_1\sim\sqrt{2\log M}, and the conditional variance of a Gaussian tail beyond xx is ∼x−2\sim x^{-2} for large xx. This cell alone contributes 1Mx1−2≍(Mlog⁡M)−1\frac{1}{M}x_1^{-2}\asymp(M\log M)^{-1}, which gives the lower bound. For 2≤k≤M/42\leq k\leq M/4, cell kk lies to the right of xk=Φ−1(1−k/M)≥Φ−1(3/4)>0x_k=\Phi^{-1}(1-k/M)\geq\Phi^{-1}(3/4)>0, and xk2≍log⁡(M/k)x_k^2\asymp\log(M/k) for k≤M/ek\leq M/e. By the Mills-ratio bounds

x1+x2φ(x)≤1−Φ(x)≤φ(x)x\frac{x}{1+x^2}\varphi(x)\leq1-\Phi(x)\leq\frac{\varphi(x)}{x}

for x>0x>0 [21], its width is ≍(kxk)−1\asymp(kx_k)^{-1}, and its conditional variance is at most the square of its width. The cells with M/4<k≤3M/4M/4<k\leq3M/4 lie in [−Φ−1(3/4),Φ−1(3/4)][-\Phi^{-1}(3/4),\Phi^{-1}(3/4)], where the density is at least φ(Φ−1(3/4))\varphi(\Phi^{-1}(3/4)), so each has width O(M−1)O(M^{-1}) and together they contribute O(M−2)O(M^{-2}). Hence

(εMeq)2≲1M(1log⁡M+∑2≤k≤M/21k2max⁡{log⁡(M/k),1})+O(M−2)≲1Mlog⁡M,\left(\varepsilon_M^{\mathrm{eq}}\right)^2\lesssim\frac{1}{M}\left(\frac{1}{\log M}+\sum_{2\leq k\leq M/2}\frac{1}{k^2\max\{\log(M/k),1\}}\right)+O(M^{-2})\lesssim\frac{1}{M\log M},

since the sum is dominated by k≤Mk\leq\sqrt{M}, where log⁡(M/k)≥12log⁡M\log(M/k)\geq\frac{1}{2}\log M.

(d): For the uniform ball, symmetry reduces the calculation to t∈[0,1]t\in[0,1]. There fθ(t)=cd(1−t2)(d−1)/2≍(1−t)(d−1)/2f_\theta(t)=c_d(1-t^2)^{(d-1)/2}\asymp(1-t)^{(d-1)/2}, with constants depending on dd. Thus the upper-tail mass satisfies F‾θ(t)≍(1−t)(d+1)/2\overline{F}_\theta(t)\asymp(1-t)^{(d+1)/2}. Put α=2/(d+1)\alpha=2/(d+1) and number the equal-mass cells from the right. For k≤⌊M/2⌋k\leq\lfloor M/2\rfloor, cell kk covers tail probabilities ((k−1)/M,k/M]((k-1)/M,k/M] and has width

wk≍M−αkα−1.w_k\asymp M^{-\alpha}k^{\alpha-1}.

For k=1k=1 this follows directly from the tail-mass relation. For k≥2k\geq2, it follows by integrating the derivative of the inverse tail function, whose magnitude is comparable to uα−1u^{\alpha-1}. The conditional variance on each cell is comparable to wk2w_k^2: its upper bound is wk2/4w_k^2/4, and a lower bound with a positive dd-dependent constant follows by comparison with the density (1−t)(d−1)/2(1-t)^{(d-1)/2} and rescaling the cell. For this power density the normalized variance is bounded away from zero, including at the endpoint.

Each cell has mass 1/M1/M, so symmetry yields

(εMeq)2≳M−1−4d+1∑k=1⌊M/2⌋k4d+1−2+O(M−2),\left(\varepsilon_M^{\mathrm{eq}}\right)^2\gtrsim M^{-1-\frac{4}{d+1}}\sum_{k=1}^{\lfloor M/2\rfloor}k^{\frac{4}{d+1}-2}+O(M^{-2}),

where any remaining central cell has bounded density and contributes at most O(M−2)O(M^{-2}). The sum is bounded for d>3d>3, grows like log⁡M\log M for d=3d=3, and grows like M4/(d+1)−1M^{4/(d+1)-1} for d<3d<3. Substitution gives the three stated squared-error rates. Zador’s formula gives (εM∗)2≍M−2(\varepsilon_M^*)^2 \asymp M^{-2} with a finite positive constant for every fixed dd.

Proof of prop:moments

Fix θ\theta and suppress it from the notation for simplicity. Let UU be uniform on (0,1)(0,1) and set Xθ=Qθ#μ(U)X_\theta=Q_{\theta\#\mu}(U) and X^θ=Q^θ#μ(U)\widehat{X}_\theta=\widehat{Q}_{\theta\#\mu}(U). Thus XθX_\theta has the law of θ⊤X\theta^\top X, X^θ\widehat{X}_\theta has the sketch law, and this coupling realizes the one-dimensional quadratic Wasserstein distance. Let C=jC=j when U∈IjU\in I_j, write qj=∣Ij∣>0q_j=|I_j|>0, and let G=σ(C)\mathcal{G}=\sigma(C). By the centroid condition,

X^θ=bC=E[Xθ∣G].(18)\widehat{X}_\theta=b_C=\mathbb{E}[X_\theta\mid\mathcal{G}]. \tag*{(18)}

For Z=Xθ−X^θZ=X_\theta-\widehat{X}_\theta, it follows that E[Z∣G]=0\mathbb{E}[Z\mid\mathcal{G}]=0. Conditional Jensen gives EX^θ2≤EXθ2<∞\mathbb{E}\widehat{X}_\theta^2\leq\mathbb{E}X_\theta^2<\infty; hence X^θ,Z∈L2\widehat{X}_\theta,Z\in L^2. Consequently,

EX^θ=EXθ,E[X^θZ]=0,EXθ2=EX^θ2+EZ2.\mathbb{E}\widehat{X}_\theta=\mathbb{E}X_\theta,\qquad\mathbb{E}[\widehat{X}_\theta Z]=0,\qquad\mathbb{E}X_\theta^2=\mathbb{E}\widehat{X}_\theta^2+\mathbb{E}Z^2.

These prove (12), since EZ2=εμ,θ2\mathbb{E}Z^2=\varepsilon_{\mu,\theta}^2 [32 Prop. 1.7, Cor. 1.8].

For f∈C2(R)f\in C^2(\mathbb{R}) with bounded second derivative, Taylor’s formula with integral remainder gives

f(Xθ)−f(X^θ)=f′(X^θ)Z+Z2∫01(1−t)f′′(X^θ+tZ) dt.f(X_\theta)-f(\widehat{X}_\theta)=f'(\widehat{X}_\theta)Z+Z^2\int_0^1(1-t)f''(\widehat{X}_\theta+tZ)\,dt.

Bounded f′′f'' implies that f′f' has at most linear growth and ff at most quadratic growth. Thus all terms are integrable, and

E[f′(X^θ)Z]=E[f′(X^θ)E[Z∣G]]=0.\mathbb{E}[f'(\widehat{X}_\theta)Z]=\mathbb{E}\bigl[f'(\widehat{X}_\theta)\mathbb{E}[Z\mid\mathcal{G}]\bigr]=0.

Taking expectations and using ∫01(1−t) dt=1/2\int_0^1(1-t)\,dt=1/2 proves ∣Ef(Xθ)−Ef(X^θ)∣≤12∥f′′∥∞EZ2|\mathbb{E}f(X_\theta)-\mathbb{E}f(\widehat{X}_\theta)|\leq\frac{1}{2}\|f''\|_\infty\mathbb{E}Z^2 [47, 48, 32]. This argument uses only the centroid condition, not global optimality.

Now assume ∥X∥≤R\|X\|\leq R almost surely. Since θ\theta is a unit vector, ∣Xθ∣≤R|X_\theta|\leq R almost surely, and (18) implies ∣X^θ∣≤R|\widehat{X}_\theta|\leq R almost surely. The segment between X^θ\widehat{X}_\theta and XθX_\theta therefore lies in [−R,R][-R,R]. Applying the same Taylor argument to f(x)=xrf(x)=x^r on this interval, where sup⁡∣x∣≤R∣f′′(x)∣=r(r−1)Rr−2\sup_{|x|\leq R}|f''(x)|=r(r-1)R^{r-2}, proves (13). For even rr, x↦xrx\mapsto x^r is convex on R\mathbb{R}, so conditional Jensen also gives

X^θr=(E[Xθ∣G])r≤E[Xθr∣G].\widehat{X}_\theta^r=\bigl(\mathbb{E}[X_\theta\mid\mathcal{G}]\bigr)^r\leq\mathbb{E}[X_\theta^r\mid\mathcal{G}].

Taking expectations proves the asserted one-sided inequality.

To establish the correction, observe that

ej=E[Z21{C=j}],∑jej=EZ2=εμ,θ2.(19)e_j=\mathbb{E}[Z^2\mathbf{1}_{\{C=j\}}],\qquad\sum_j e_j=\mathbb{E}Z^2=\varepsilon_{\mu,\theta}^2. \tag*{(19)}

In particular, these are unnormalized per-cell energies; the conditional variance in cell jj is ej/qje_j/q_j. Since X^θ=bj\widehat{X}_\theta=b_j on {C=j}\{C=j\},

E[X^θr−2Z2]=∑jbjr−2ej.\mathbb{E}[\widehat{X}_\theta^{r-2}Z^2]=\sum_j b_j^{r-2}e_j.

For r=2r = 2, formula (14) therefore coincides with (12) and is exact. For r≥3r \ge3, Taylor’s formula through the quadratic term gives

Xθr=X^θr+rX^θr−1Z+(r2)X^θr−2Z2+Rr,X_\theta^r = \hat{X}_\theta^r + r\hat{X}_\theta^{r-1}Z + \binom{r}{2}\hat{X}_\theta^{r-2}Z^2 + R_r,
Rr=Z32∫01(1−t)2d3dx3xr∣x=X^θ+tZ dt.R_r = \frac{Z^3}{2}\int_0^1 (1-t)^2 \left.\frac{\mathrm{d}^3}{\mathrm{d}x^3}x^r\right|_{x=\hat{X}_\theta+tZ}\,\mathrm{d}t.

As ∣X^θ+tZ∣≤R\lvert\hat{X}_\theta+ tZ\rvert\le R and ∫01(1−t)2 dt=1/3\int_0^1(1-t)^2\,\mathrm{d}t = 1/3,

∣Rr∣≤(r3)Rr−3∣Z∣3.\lvert R_r\rvert\le\binom{r}{3}R^{r-3}\lvert Z\rvert^3.

The linear term again has zero expectation. The expectation of the first and quadratic terms is exactly m~r,θ\widetilde{m}_{r,\theta}, and hence

∣mr,θ−m~r,θ∣≤(r3)Rr−3E∣Z∣3.(20)\lvert m_{r,\theta} - \widetilde{m}_{r,\theta}\rvert\le\binom{r}{3}R^{r-3}\mathbb{E}\lvert Z\rvert^3. \tag*{(20)}

If ∣Z∣≤hθ\lvert Z\rvert\le h_\theta almost surely, then E∣Z∣3≤hθEZ2\mathbb{E}\lvert Z\rvert^3 \le h_\theta\mathbb{E}Z^2, which proves (15). Such a bound always exists under bounded support, since ∣Z∣≤2R\lvert Z\rvert\le2R; the sharper rate below requires a bound that decreases with MM.

For completeness, the exact moment decomposition underlying this correction is

mr,θ=m^r,θ+∑k=2r(rk)∑jbjr−kej,k,ej,k:=E[Zk1{C=j}].m_{r,\theta} = \hat{m}_{r,\theta} + \sum_{k=2}^{r}\binom{r}{k}\sum_j b_j^{r-k}e_{j,k}, \qquad e_{j,k}:=\mathbb{E}[Z^k\mathbf{1}\{C=j\}].

It follows by binomial expansion and ej,1=0e_{j,1}=0. The correction retains only the k=2k=2 term, and (20) bounds the omitted terms jointly. It therefore requires no evaluation of residual moments of order three or higher.

Next let Sym⁡r(Rd)\operatorname{Sym}^r(\mathbb{R}^d) carry the Frobenius inner product, and let RL\mathbb{R}^L carry the Euclidean inner product. For

Tr=EX⊗r,T_r=\mathbb{E}X^{\otimes r},
⟨Tr,θ⊗r⟩=E(θTX)r=mr,θℓ.\langle T_r,\theta^{\otimes r}\rangle=\mathbb{E}(\theta^\mathsf{T}X)^r=m_{r,\theta_\ell}.

Thus the true moment vector mr=(mr,θℓ)ℓ=1Lm_r=(m_{r,\theta_\ell})_{\ell=1}^L satisfies mr=ArTrm_r=A_rT_r. Define

T^r=Ar†(m^r,θℓ)ℓ=1L,T~r=Ar†(m~r,θℓ)ℓ=1L.\widehat{T}_r=A_r^\dagger(\widehat{m}_{r,\theta_\ell})_{\ell=1}^L,\qquad \widetilde{T}_r=A_r^\dagger(\widetilde{m}_{r,\theta_\ell})_{\ell=1}^L.

If ArA_r has full column rank, then Ar†ArA_r^\dagger A_r is the identity on Sym⁡r(Rd)\operatorname{Sym}^r(\mathbb{R}^d). Therefore, for either input moment vector vv and its least-squares reconstruction T(v)T(v),

T(v)−Tr=Ar†(v−mr),∥T(v)−Tr∥F≤∥Ar†∥2→F∥v−mr∥2.T(v)-T_r=A_r^\dagger(v-m_r),\qquad \lVert T(v)-T_r\rVert_F\le\lVert A_r^\dagger\rVert_{2\to F}\lVert v-m_r\rVert_2.

Applying the coordinatewise bounds (13) and (15) proves (16) and (17), respectively. Here εμ,ℓ=εμ,θℓ\varepsilon_{\mu,\ell}=\varepsilon_{\mu,\theta_\ell}.

To verify the generic rank claim, put nr=dim⁡Sym⁡r(Rd)=(d+r−1r)n_r=\dim\operatorname{Sym}^r(\mathbb{R}^d)=\binom{d+r-1}{r}. The tensors θ⊗r\theta^{\otimes r}, θ∈Sd−1\theta\in\mathbb{S}^{d-1}, span this space. Indeed, a symmetric tensor TT orthogonal to all of them defines the homogeneous polynomial pT(x)=⟨T,x⊗r⟩p_T(x)=\langle T,x^{\otimes r}\rangle, which vanishes on the sphere. Homogeneity implies that pTp_T vanishes on all of Rd\mathbb{R}^d, and uniqueness of polynomial coefficients gives T=0T=0. Consequently, some nrn_r directions yield an invertible evaluation matrix. In a fixed basis, its determinant is a polynomial in the direction coordinates and does not vanish identically on (Sd−1)nr(\mathbb{S}^{d-1})^{n_r}. For d≥2d\ge2, its zero set is a proper algebraic subset of this product and has product surface measure zero; this is the exceptional set excluded by “generic.” For d=1d=1, nr=1n_r=1 and every unit direction already gives a nonzero evaluation. Adding rows preserves full column rank. This is the polynomial reconstruction argument of Bodmann et al. [6].

Finally, exact mean and covariance recovery require only μ∈P2(Rd)\mu\in\mathcal{P}_2(\mathbb{R}^d). The directional means are θℓTEX\theta_\ell^{\mathsf{T}}\mathbb{E}X, so dd spanning directions determine EX\mathbb{E}X uniquely. From the stored total residual energies and (12), the directional second moments are known exactly. If A2A_2 is injective, these determine T2=EXXTT_2 = \mathbb{E}XX^{\mathsf{T}} exactly. Injectivity of A2A_2 also implies that the directions span Rd\mathbb{R}^d: otherwise, for a nonzero vv orthogonal to every direction,

A2(vvT)=((θℓTv)2)ℓ=1L=0,A_2(vv^{\mathsf{T}}) = \left((\theta_\ell^{\mathsf{T}}v)^2\right)_{\ell=1}^{L} = 0,

contradicting injectivity. The mean is therefore also recovered, and Cov⁡(X)=T2−(EX)(EX)T\operatorname{Cov}(X) = T_2 - (\mathbb{E}X)(\mathbb{E}X)^{\mathsf{T}} is exact. The generic rank result with r=2r = 2 requires L≥(d+12)L \ge\binom{d+1}{2}.

For the stated rates, fix rr, RR, and the directions. The bound εμ,θ=O(M−1)\varepsilon_{\mu,\theta} = O(M^{-1}) in (13) gives O(M−2)O(M^{-2}) error, while hθ=O(M−1)h_\theta= O(M^{-1}) together with (15) gives O(M−3)O(M^{-3}) error. Under the bounded-density assumptions of Theorem 8, every optimal Voronoi cell intersected with the support has width O(M−1)O(M^{-1}). Each centroid lies within its cell, so ∣Xθ−X^θ∣=O(M−1)|X_\theta- \widehat{X}_\theta| = O(M^{-1}) almost surely. A uniform grid on the bounded support gives squared distortion O(M−2)O(M^{-2}); optimality gives the same upper bound for the optimal quantizer. Thus both conditions hold in that setting. For fixed directions with ArA_r injective, the corresponding tensor bounds inherit the same rates. All identities refer to the law being quantized; if that law is empirical, they recover or approximate its empirical moments.

Implementation details

This section gives the implementation details needed to reproduce the experiments of § 5. Benchmark experiments ran on a server with 128 logical cores and four NVIDIA RTX A5000 GPUs.

Main components. The optimal sketch of a slice is computed by exact dynamic programming. Weights are normalized to sum to one, zero-weight points are removed, and duplicate locations are merged after sorting; if at most MM distinct locations remain, the slice is returned unchanged. Sketch distances are computed by a monotone sweep that transports the smaller of the two current atom masses and advances the exhausted atom, in O(M)O(M) time per slice. Uncompressed sliced distances use the same sweep on the sorted projections, or the mean squared difference of sorted projections when all distributions have the same number of equally weighted points.

Classification (Table 1). Documents (Kusner et al., [30]) are bags of 300-dimensional word embeddings, normalized to unit length and weighted by normalized word counts. We use the five provided train/test splits (one for Reuters) and hold out 20% of each training split for validation. AML subjects (Aghaeepoor et al., [2]) are represented by 10410^4 randomly subsampled cells of tube 6 with all 7 channels, each standardized with the mean and standard deviation of the training subjects of the fold. Validation scores come from a stratified 5-fold cross-validation inside each training fold. For ModelNet40 shapes (Wu et al., [58]) we use the official train/test split and hold out 20% of the training shapes for validation. Table entries are means and standard deviations over splits or folds. A star marks a paired difference between ours and equal-mass: a paired tt-test over the five document splits (5% level), a mean difference larger than two standard errors over the 25 AML folds, and a 95% paired bootstrap interval over the test shapes of ModelNet40 (1000 resamples) that excludes zero. The error ratio is the median over distributions and slices of the ratio of the equal-mass to the optimal residual energy, averaged over splits or folds.

The L=16L = 16 slices are linear maps with rows normalized to unit length, trained on the training split only (without the validation part) with the neighbourhood-component loss (Goldberger et al., [19]): a softmax over −a SW2,Θ2-a\,\mathrm{SW}^{2}_{2,\Theta} to the other distributions of the batch, with a learned scale aa. We use Adam with learning rate 10−210^{-2}. For documents and ModelNet40, batches have 256 distributions, distances during training use 64 quantile levels, and training runs for at most 3000 steps with early stopping on the validation kkNN error. For AML, the slices are trained on the training part of the first inner fold, with early stopping on its validation part. Each step uses all of these subjects, represented by random subsets of 512 cells, for at most 300 steps. The five-fold validation scores used to choose kk and MM therefore include subjects seen during slice training, and test subjects are never used. The slices are then frozen and shared by all methods. Each distance is used in a kk-nearest-neighbour classifier, with k∈{1,…,19}k \in\{1,\ldots,19\} chosen on validation.

For documents, WMD uses the precomputed distances of Sato et al. [53]. For AML and ModelNet40, exact W1W_1 with Euclidean cost is computed by a network-simplex solver on the first 10310^3 cells and the first 256 points, respectively. All baselines use the same splits, validation and kkNN classifier.

Learning from few subjects (Table 2 and Table 5). This experiment uses the AML subjects (N=104N = 10^4 cells) and the 25 folds of Table 1, with L=32L = 32 random directions (seed 0) shared by all subjects. A subject is represented by a feature vector: its LN=320,000LN = 320{,}000 sorted projections (uncompressed); for every slice, the MM atoms and M−1M - 1 masses of the optimal sketch (ours) or the 2M−12M - 1 cell means of equal-mass cells (equal-mass). Inside each training fold, we draw 2, 4, 8 or 16 AML subjects together with normal subjects in the ratio of the dataset, ten times per size; “all” uses the whole training fold. On each draw we fit a class-balanced, ℓ2\ell_2-regularized logistic regression with penalty C=1C = 1 or linear SVM, with one regularization setting for all representations, and compute the AUC on the test subjects of the fold. Tables report the mean and standard error over the 25 folds.

summarystored values24816all
AML subjects in training
uncompressed320,00092.2 ± 0.694.9 ± 0.496.8 ± 0.497.9 ± 0.498.5 ± 0.4
mean, covariance3592.6 ± 0.795.4 ± 0.696.1 ± 0.797.0 ± 0.697.2 ± 0.5
equal-mass9691.2 ± 0.793.7 ± 0.495.7 ± 0.596.7 ± 0.597.8 ± 0.5
ours9696.1 ± 0.497.4 ± 0.398.4 ± 0.299.0 ± 0.299.4 ± 0.2
equal-mass48092.0 ± 0.694.7 ± 0.496.7 ± 0.497.8 ± 0.498.4 ± 0.4
ours48096.2 ± 0.497.5 ± 0.398.2 ± 0.398.8 ± 0.398.9 ± 0.3

Table 5. AML, linear SVM from few labelled subjects. As Table 2, with a class-balanced linear SVM in place of logistic regression. Stored values: number of values stored per subject.

Pooling layer (Figure 4). We use the official code and ModelNet40 protocol of Naderializadeh et al. [40] and change only the pooling layer. We report the test accuracy after the last epoch, computed as in their code (mean over test batches of 32 shapes), as mean and standard deviation over three seeds. The PSWE layer compares the sorted projections of each slice with a learned reference of 1024 values and reduces the differences with 1024 learned weights to one number per slice. Our variants replace the sorted projections by the step quantile of a sketch with M=4M = 4 cells, i.e., each projected point is replaced by the mean of its cell, using equal-mass cells (256 points each) or the optimal partition. GAP, PMA (Lee et al. [31]) and FSpool (Zhang et al. [63]) are taken from the same code and pool the backbone features directly.

Numerical validation of the theoretical results

We give a separate numerical check of every theorem, proposition, corollary, lemma and example in the paper. These experiments check exact identities and finite inequalities, and illustrate the asymptotic statements on distributions whose assumptions are known analytically. Finite computations do not establish a universal bound or an asymptotic theorem. In particular, an O(M−p)O(M^{-p}) upper bound need not be attained. Table 3 maps the results to the experiments and their recorded data.

ResultNumerical checkRecorded CSV files
Theorem 2Independent residual/boundary decomposition; both signs of the distance gapcertificates_atomic
Theorem 3Hcell≤H0H_{\mathrm{cell}} \le H_0, signed bounds and complete distance intervalcertificates_atomic
Theorem 4Averaged signed and unsquared bounds; shared linear and nonlinear mapscertificates_sliced
Theorem 5Pierce scaling, Gaussian sphere supremum, Zador constantscontinuous_rates, sliced_rate
Theorem 11Gaussian and all three ball-projection rate regimescontinuous_rates
Theorem 7Known quantile Lipschitz constants and nonmatching cellslipschitz
Theorem 8Optimal-cell width, mass, pointwise error and residual boundscell_widths
Theorem 9Squared-distance gap and the stated constant KμνK_{\mu\nu}bounded_density
Theorem 10M3/2(W22−D2)→−1M^{3/2}(W_2^2-D^2) \to-1; expansion exceeds S2S^2sharpness
Theorem 6Scalar/tensor bounds, correction, exact recovery, rank and conditioningmoments_scalar, moments_tensor, moments_rates, moments_gaussian_recovery, moments_rank, moments_conditioning
Sampling/directionsEmpirical-population decomposition and L−1/2L^{-1/2} Monte Carlo errorscertificates_sampling, certificates_directions

Table 3. Theory-to-experiment correspondence. CSV files are in results/theory_validation/; all are regenerated by one command.

Partition mismatch and computable certificates

Identity (Theorem 2). We generate weighted Gaussian, separated-mixture, Student-t3t_3, atomic and degenerate pairs, with 37–60 and 48–71 input points. The inputs include duplicate locations and zero weights. For each of 24 trials per family, we use optimal sketches, equal-mass sketches, a shared nonuniform mass partition, and two independently chosen nonuniform partitions. The first cell count cycles through 1, 2, 4, 8; the optimal and independent-partition pairs use one additional cell for the second measure. Nonuniform

masses are Dirichlet with parameter 2 per cell. Optimal sketches may use fewer atoms when the input support is small.

All quantile integrals are finite sums on the common refinement of the two input and two sketch partitions. The distance gap, residual norm, boundary terms and per-cell energies are evaluated separately, and the resulting energies and transport costs are checked against the production routines. Across 480 pairs, the largest identity discrepancy divided by 1+W22+D2+S2+H01 + W_2^2 + D^2 + S^2 + H_0 is 1.29×10−151.29 \times10^{-15}. There are 142 expansions and 230 contractions exceeding absolute tolerance 2⋅10−102 \cdot10^{-10}, with the remaining cases numerically exact. Residual primitives are nonpositive and vanish at their own cell boundaries; shared partitions have zero boundary term and contract the distance. As construction checks, 24 small problems agree with exhaustive contiguous-partition enumeration, and an atomic input is recovered exactly once the budget reaches its support size.

Certificates (Theorem 3). On the same pairs we independently evaluate H0H_0, HcellH_{\mathrm{cell}}, both signed inequalities and both endpoints of (9). No inequality is violated beyond the scaled tolerance 2⋅10−102 \cdot10^{-10}; the largest positive scaled discrepancy is 4.89×10−164.89 \times10^{-16}. Figure 5 displays the identity and the location of each nonexact optimal-sketch gap within its certified interval. Pairs with S2+HcellS^2 + H_{\mathrm{cell}} below the tolerance, which are recovered exactly, remain checked but are omitted from both normalized panels.

Figure 5. Exact atomic identity and certificate checks, and direction sampling. Left: independently computed sides of the identity coincide. Middle: the signed gap lies in [−Hcell,S2][-H_{\mathrm{cell}}, S^2], rescaled to [0,1][0, 1]. Right: Monte Carlo mean absolute errors with bars of two standard errors over 8, 192 independent direction sets; the dashed line is the analytic squared-distance bound.

Sliced, sampling and direction certificates

Sliced bounds (Theorem 4). We use 16 weighted pairs in R3\mathbb{R}^3, with 67 and 83 points, and eight shared slices. Three choices give 48 comparisons: random linear directions, linear directions fitted from the mean difference of separate synthetic training samples and then frozen, and shared nonlinear maps gθ(x)=θℓTx+0.15(θℓTx)2g_\theta(x) = \theta_\ell^\mathsf{T}x + 0.15(\theta_\ell^\mathsf{T}x)^2. Optimal four-atom sketches are paired with equal-mass five-cell sketches. Both averaged signed bounds and the unsquared bound pass in every case. The data-dependent directions test the theorem’s applicability after selecting shared maps; this is not a test of the equality of a learning algorithm.

Sampling and direction errors. For the deterministic sampling decomposition, two finite weighted populations of 9 and 11 points in R3\mathbb{R}^{3} make the population reference exactly computable. We draw n=16,64,256,1024n = 16, 64, 256, 1024 observations, with 16 repetitions at each size, and build four-atom sketches on eight directions. All 64 errors are below Eμn+Eνn+Sμn+SνnE_{\mu}^{n}+E_{\nu}^{n}+S_{\mu}^{n}+S_{\nu}^{n}; the largest ratio is 0.364. This checks the decomposition without imposing a sampling-rate claim.

For direction sampling alone, let μ=N(0,I3)\mu= N(0,I_{3}) and ν=N(a,I3)\nu= N(a,I_{3}) with ∥a∥=1.3\lVert a\rVert= 1.3. Then Z(θ)=(θTa)2Z(\theta) = (\theta^{\mathsf{T}}a)^{2}, EZ=∥a∥2/3\mathbb{E}Z = \lVert a\rVert^{2}/3 and Var⁡Z=∥a∥4(1/5−1/9)\operatorname{Var}Z = \lVert a\rVert^{4}(1/5 - 1/9) are known exactly. For L=4,8,…,512L = 4, 8, \ldots, 512, we use 8, 192 independent sets of directions. Log–log slopes over L=64,128,256,512L = 64, 128, 256, 512 are −0.504-0.504 for the squared-distance mean absolute error and −0.506-0.506 for the distance error, consistent with L−1/2L^{-1/2}. The script checks the Monte Carlo estimates against the analytic expectation bounds with a five-standard-error allowance; the plot reports two-standard-error bars.

Optimal and equal-mass quantization rates

Continuous numerical protocol. We use N(0,1)N(0,1) and the one-dimensional projections of uniform balls in d=1,2,3,5,9d = 1, 2, 3, 5, 9. Thus there is no empirical quantile grid or sampling floor. Cell masses and first moments are analytic. Optimal quantizers solve the continuous centroid/Voronoi equations for M=4,8,…,512M = 4, 8, \ldots, 512; global optimality of an exact solution follows from log-concavity for these particular laws [56, 27]. We report finite-precision solutions, not interval-certified optima. The largest centroid residual is 1.00×10−131.00 \times10^{-13}. Centered cell integration uses 32 and 64 Gauss nodes, analytic Gaussian tail variances and a change of variables at ball endpoints. The largest relative energy change is 4.34×10−124.34 \times10^{-12}. A perturbed initialization, tighter root tolerance and 96 nodes at M=512M = 512 change optimal energies by at most 6.56×10−156.56 \times10^{-15}. These checks are recorded in continuous_refinement.csv.

Free weights (Theorem 5). We plot M2(εM⋆)2/CZadorM^{2}(\varepsilon_{M}^{\star})^{2}/C_{\mathrm{Zador}}, where CZador=112(∫f1/3)3C_{\mathrm{Zador}} = \frac{1}{12}(\int f^{1/3})^{3} is evaluated analytically. All six curves approach one (Figure 6 and Table 4). For the standard Gaussian CZador=3π/2C_{\mathrm{Zador}} = \sqrt{3}\pi/2. We also compare N(0,diag⁡(1,4))N(0,\operatorname{diag}(1,4)) and N((0.4,−0.3)T,diag⁡(2,0.7))N((0.4,-0.3)^{\mathsf{T}},\operatorname{diag}(2,0.7)) on seven equally spaced directions in the plane. Direct transport between the scaled Gaussian centroid sketches is compared with the analytic sliced distance. Its error is below Eμ+EνE_{\mu}+E_{\nu}, and M(Eμ+Eν)M(E_{\mu}+E_{\nu}) stabilizes; the actual error in this example decays faster. For the first Gaussian the sphere supremum is exactly 2εM⋆(N(0,1))2\varepsilon_{M}^{\star}(N(0,1)) and E∥X∥4=59\mathbb{E}\lVert X\rVert^{4} = 59, so the recorded ratio Msup⁡θεM⋆(θ#μ)/591/4M\sup_{\theta}\varepsilon_{M}^{\star}(\theta_{\#}\mu)/59^{1/4} also directly checks the uniform-direction scaling. We do not estimate the universal Pierce constant from these examples.

Figure 6. Continuous quantization rates. Top left: comparison with analytic Zador constants. Top right: Gaussian squared errors. Bottom left: equal-mass errors under the law-specific normalizations in Table 4; colors match the top-left legend. Bottom right: the cost of prescribing equal masses at the same MM, on the common range M≤512M \le512.

LawM2ε∗2/CZadorM^2\varepsilon_*^2/C_{\mathrm{Zador}}Equal-mass normalizationRescaled equal-mass error
Gaussian0.99597Mlog⁡MM\log M1.07909
Ball d=1d=11.00000M2M^20.33333
Ball d=2d=20.99939M2M^20.40858
Ball d=3d=30.99892M2/log⁡MM^2/\log M0.07224
Ball d=5d=50.99827M10/6M^{10/6}0.11563
Ball d=9d=90.99755M14/10M^{14/10}0.03175

Table 4. Endpoints of the continuous rate experiment: M=512M = 512 for optimal quantizers and M=218M = 2^{18} for equal-mass cells. The last column is the equal-mass squared error multiplied by the stated normalization; it is not claimed to equal its limiting constant.

Equal masses (Theorem 11). Using the same continuous laws, with exact cell boundaries Q(j/M)Q(j/M), we extend the equal-mass experiment to M=218M = 2^{18}. The normalization of the squared error is Mlog⁡MM\log M for the Gaussian, M2M^{2} for balls in d=1,2d = 1,2, M2/log⁡MM^{2}/\log M for d=3d = 3, and M(d+5)/(d+1)M^{(d+5)/(d+1)} for d=5,9d = 5,9. The rescaled curves remain of constant order, while the equal/free error ratio grows for the Gaussian and d≥3d \ge3. These are finite-range illustrations; logarithmic corrections converge slowly. The uniform law gives identical free and equal-mass errors and the exact rescaled value 1/31/3. For d=2d = 2, the finite equal-mass limit is π2/24≃0.41123\pi^{2}/24 \simeq0.41123; the observed M2(εMeq)2M^{2}(\varepsilon_{M}^{\mathrm{eq}})^{2} at M=218M = 2^{18} is 0.40858, approaching this constant from below.

Regularity and optimal-cell geometry

Lipschitz quantiles (Theorem 7). Take Qμ(u)=u+0.2u2Q_{\mu}(u) = u + 0.2u^{2} and Qν(u)=0.3+0.7u+0.4u3Q_{\nu}(u) = 0.3 + 0.7u + 0.4u^{3}, with known constants Aμ=1.4A_{\mu} = 1.4, Aν=1.9A_{\nu} = 1.9. Use equal-mass cells for μ\mu and alternating masses proportional to

1+0.35(−1)j−11 + 0.35(-1)^{j-1}, j=1,…,Mj = 1, \ldots, M, for ν\nu. Polynomial quadrature evaluates the energies and true distance exactly up to rounding. For M=6,8,16,…,512M = 6, 8, 16, \ldots, 512, both energy bounds and both signed distance bounds hold. Figure 7 shows the predicted M−2M^{-2} squared-distance scale with genuinely mismatched partitions.

Figure 7. Checks under analytic regularity assumptions: polynomial quantiles and their Lipschitz certificate; optimal widths and masses for f+f_{+}; and the squared-distance gap between f+f_{+} and f−f_{-} with the Lipschitz boundary budget. No empirical quantile is treated as Lipschitz.

Cell widths (Theorem 8). For f+(x)=ex/(e−1)f_{+}(x) = e^{x}/(e - 1) and f−(x)=e1−x/(e−1)f_{-}(x) = e^{1-x}/(e - 1) on [0,1][0, 1], c=1/(e−1)c = 1/(e - 1) and C=e/(e−1)C = e/(e - 1) are analytic density bounds. For each optimum at M=6,8,16,…,512M = 6, 8, 16, \ldots, 512, we check the largest clipped Voronoi width, cell mass, pointwise residual and total residual against the lemma’s stated constants. All checks pass. For f+f_{+} at M=512M = 512, Mwmax⁡=1.1864M w_{\max} = 1.1864 and Mqmax⁡=1.3446M q_{\max} = 1.3446, illustrating the asserted M−1M^{-1} scales. The quantile Lipschitz bound follows directly from the known density minimum; it is not estimated from samples.

Bounded densities (Theorem 9). We compare the two preceding optimal quantizers and integrate the true quantile distance independently. The explicit constant is Kμν=1247.6K_{\mu\nu} = 1247.6, and every squared gap is below Kμν/M2K_{\mu\nu}/M^2. At M=512M = 512, M2∣W22−D2∣=0.17901M^2|W_2^2 - D^2| = 0.17901. The general constant is conservative: the plot additionally gives the much smaller computable M2HAM^2H_A, while the CSV retains the explicit KμνK_{\mu\nu}.

Sharpness of the boundary budget

For Theorem 10, we use exactly the stated MM-dependent pair, with MM even, q=1/(M+1)q = 1/(M + 1), h=M−1/2h = M^{-1/2}, and equal-mass sketches with MM and M+1M + 1 cells. The two quantiles are piecewise affine or constant. Splitting at every atom and cell boundary makes two-point Gaussian quadrature exact for the squared quantities; four-point integration independently checks the result. The energies also agree with the closed forms

εμ2=13M2,ενM2=1−q3M2+qh24.\varepsilon_{\mu}^{2} = \frac{1}{3M^{2}}, \qquad\varepsilon_{\nu_M}^{2} = \frac{1-q}{3M^{2}} + \frac{q h^{2}}{4}.

For M=8,16,…,216M = 8, 16, \ldots, 2^{16}, the rescaled signed gap approaches −1-1. At M=65,536M = 65{,}536, it equals −1.005526-1.005526, while (D2−W22)/S2=143.12(D^{2} - W_{2}^{2})/S^{2} = 143.12 (Figure 8). The remaining terms after the central boundary contribution have bounded M2M^{2} scaling, as recorded in the CSV. This experiment concerns general centroid sketches; it does not establish a counterexample for optimal quantizers.

Figure 8. Exact integration of the sharpness family. The expansion decays more slowly than the residual-only budget, its M3/2M^{3/2} rescaling approaches −1-1, and its ratio to S2S^2 grows. The target νM\nu_M varies with MM.

Moment fidelity, correction and recovery

Finite scalar and tensor bounds (Theorem 6). We use three weighted clouds of 181 bounded points in R3\mathbb{R}^3, 30 generic directions, M=2,4,8,16M=2,4,8,16, and optimal, equal-mass and nonuniform prescribed cells. Exact atom/cell intersections give per-cell energies and the actual largest residual hθh_\theta. The 17,280 scalar checks cover means, second moments, raw and corrected orders 2–6, even-moment signs, and the C2C^2 bound for x2x^2, sin⁡(1.7x)\sin(1.7x), cos⁡(0.7x)\cos(0.7x) and 1+x2\sqrt{1+x^2}. The largest centroid-identity discrepancy is 9.44×10−169.44 \times10^{-16}; all inequalities pass, and the largest corrected-error/bound ratio is 0.192. For the 108 tensor configurations of orders 2–4, the largest uncorrected and corrected ratios are 0.558 and 0.0363. Tensor coordinates use the Frobenius-orthonormal symmetric basis with factors r!/α!\sqrt{r!/\alpha!}; the norm is checked independently against explicitly accumulated full tensors.

Moment rates. Let UU be uniform on [0,1][0,1] and X(U)=(U+0.3U2, 0.2+0.5U+0.4U2)X(U)=(U+0.3U^2,\ 0.2+0.5U+0.4U^2). Twelve directions with angles equally spaced between 0.06 and π/2−0.06\pi/2-0.06 give increasing polynomial quantiles. We use equal-mass cells for M=2,4,…,128M=2,4,\ldots,128, and degree-exact Gaussian quadrature for all moments. The code directly checks εθ2=O(M−2)\varepsilon_\theta^2=O(M^{-2}) and hθ=O(M−1)h_\theta=O(M^{-1}) on this range. For the fourth directional moment, fitted error slopes over M=16,32,64,128M=16,32,64,128 are −1.999-1.999 without correction and −4.000-4.000 with correction; the tensor slopes are −1.999-1.999 and −4.000-4.000. The plotted theoretical budgets scale as M−2M^{-2} and M−3M^{-3}, respectively. The observed M−4M^{-4} corrected error is faster than the asserted upper bound, as can occur for smooth cells.

Exact recovery, rank and conditioning. For an unbounded three-dimensional Gaussian with prescribed mean and positive definite covariance, analytic truncated-normal cell integrals include the two infinite tail cells. With L=6,12,18L=6,12,18 directions and M=2,4,8,16,32M=2,4,8,16,32, adding one residual energy per slice recovers the covariance with maximum Frobenius error 3.78×10−143.78 \times10^{-14} against the independently specified matrix. Three spanning directions recover the mean with error 2.29×10−152.29 \times10^{-15}. The 144 random-direction checks for tensor orders 1–4 give rank min⁡{L,(d+r−1r)}\min\{L,\binom{d+r-1}{r}\}. A saved counterexample below the covariance threshold consists of two positive definite Gaussian covariances at Frobenius distance 0.5 with identical variances on five directions up to rounding. Finally, nearly aligned directions remain full rank but amplify perturbations; perturbing in the least singular direction reproduces ∥A2∥2→F\|A_2\|_{2\to F}. The witness matrices, directions and conditioning data are saved.

Figure 9. Moment checks. Left and middle: fourth-order scalar and tensor errors with the bounds of Theorem 6; corrected errors decrease faster than their M−3M^{-3} bounds in this smooth example. Right: covariance errors before and after adding residual energies for an unbounded Gaussian.

Additional experiments

Sweeps over LL and MM

Figure 10 to Figure 13 compare the optimal sketch with MM atoms and equal-mass cells with MM cells at the same LL, as in Table 1, on the learned slices and runs behind Table 1, for every LL and MM. Every configuration is shown, each with its own kk chosen on validation, and no further selection is made. The optimal sketch stores L(2M−1)L(2M-1) numbers per distribution and equal-mass cells LMLM. Figure 10 and Figure 11 fix LL and sweep MM; Figure 12 and Figure 13 fix MM and sweep LL. Bands are standard errors over splits or folds (documents, AML) and bootstrap 95% intervals over test shapes (ModelNet40); the dotted line is the uncompressed SW2,ΘSW_{2,\Theta} on the same slices. Over the 23 pairs of benchmark and LL, the optimal sketch is more accurate in all 23 at M=4M=4 and in 21 at M=8M=8, by 0.8 and 0.6 points on average; six differences at each MM are distinguishable in its favour, and one at M=8M=8 in favour of equal-mass cells. At M=2M=2 it is ahead in 15 pairs, by 2.0 points on average and by 10 points on ModelNet40, but behind on Recipe at every LL, by 2.3 points. From M=16M=16 on, the mean difference is 0.1 points or less, and both rules are close to the uncompressed distance.

Figure 10. Documents, learned slices: optimal sketch with MM atoms against equal-mass cells with MM cells, fixed LL (rows), sweep over MM; test error.

Figure 11. AML and ModelNet40, learned slices: optimal sketch with MM atoms against equal-mass cells with MM cells, fixed LL, sweep over MM; test accuracy.

Figure 12. Documents, learned slices: optimal sketch with MM atoms against equal-mass cells with MM cells, fixed MM (rows), sweep over LL; test error.

Figure 13. AML and ModelNet40, learned slices: optimal sketch with MM atoms against equal-mass cells with MM cells, fixed MM, sweep over LL; test accuracy.

Few labelled subjects: linear SVM

Table 5 repeats the comparison of Table 2 with a class-balanced linear SVM in place of logistic regression, on the same slices, folds and draws of training subjects. The conclusions are those of logistic regression. The optimal sketch has a higher test AUC than the uncompressed representation at every training size, and the paired difference falls from 3.9±0.53.9 \pm0.5 points with two AML subjects to 0.9±0.30.9 \pm0.3 with the whole fold.

References

  1. [1]Alok Aggarwal, Maria M. Klawe, Shlomo Moran, Peter Shor, and Robert Wilber. Geometric applications of a matrix-searching algorithm. Algorithmica, 2:195–208, 1987. doi: 10.1007/BF01840359.DOI
  2. [2]Nima Aghaeepour, Greg Finak, FlowCAP Consortium, Dream Consortium, Holger Hoos, Tim R Mosmann, Ryan Brinkman, Raphael Gottardo, and Richard H Scheuermann. Critical assessment of automated flow cytometry data analysis techniques. Nature methods, 10(3):228–238, 2013.
  3. [3]Peter L. Bartlett, Tamás Linder, and Gábor Lugosi. The minimax distortion redundancy in empirical quantizer design. IEEE Transactions on Information Theory, 44(5):1802–1813, 1998. URL https://econ-papers.upf.edu/papers/198.pdf.
  4. [4]Oumaima Bencheikh and Benjamin Jourdan. Approximation rate in Wasserstein distance of probability measures on the real line by deterministic empirical measures. Journal of Approximation Theory, 274:105684, 2022. doi: 10.1016/j.jat.2021.105684. URL https://arxiv.org/abs/2012.09729.
  5. [5]Gaspard Beugnot, Aude Genevay, Kristjan Greenewald, and Justin Solomon. Improving approximate optimal transport distances using quantization. In Proceedings of the Thirty-Seventh Conference on Uncertainty in Artificial Intelligence, volume 161 of Proceedings of Machine Learning Research, pages 290–300, 2021. URL https://proceedings.mlr.press/v161/beugnot21a.html.arxiv.org/abs/2102.12731
  6. [6]Bernhard G. Bodmann, Martin Ehler, and Manuel Gräf. From low- to high-dimensional moments without magic. Journal of Theoretical Probability, 31(4):2167–2193, 2018. doi: 10.1007/s10959-017-0785-x. URL https://link.springer.com/article/10.1007/s10959-017-0785-x.DOI
  7. [7]Nicolas Bonneel, Julien Rabin, Gabriel Peyré, and Hanspeter Pfister. Sliced and Radon Wasserstein barycenters of measures. Journal of Mathematical Imaging and Vision, 51(1):22–45, 2015. doi: 10.1007/s10851-014-0506-3. URL https://link.springer.com/article/10.1007/s10851-014-0506-3.DOI
  8. [9]James Donald Bruce. An investigation of optimum quantization. Sc.d. thesis, Massachusetts Institute of Technology, 1964. URL https://dspace.mit.edu/entities/publication/2a8e5a17-f2f9-4ded-a129-c99ec123a7e8.
  9. [10]Raphaël Carpintero Perez, Sébastien Da Veiga, Josselin Garnier, and Brian Staber. Gaussian process regression with sliced Wasserstein Weisfeiler–Lehman graph kernels. In Proceedings of the 27th International Conference on Artificial Intelligence and Statistics, volume 238 of Proceedings of Machine Learning Research, pages 1297–1305, 2024. URL https://proceedings.mlr.press/v238/carpintero-perez24a.html.arxiv.org/abs/2402.03838
  10. [11]Arthur Charpentier, Agathe Fernandes Machado, Olivier Côté, and François Hu. Federated measurement of demographic disparities from quantile sketches. arXiv preprint arXiv:2602.18870, 2026. URL https://arxiv.org/abs/2602.18870.
  11. [12]Sebastian Claici, Aude Genevay, and Justin Solomon. Wasserstein measure coresets. arXiv preprint arXiv:1805.07412, 2018. URL https://arxiv.org/abs/1805.07412. Revised 2020.
  12. [13]H. Cramér and H. Wold. Some theorems on distribution functions. Journal of the London Mathematical Society, s1-11(4):290–294, 1936. doi: 10.1112/jlms/s1-11.4.290. URL https://londonmathsoc.onlinelibrary.wiley.com/doi/abs/10.1112/jlms/s1-11.4.290.DOI
  13. [14]Juan Antonio Cuesta-Albertos, Ricardo Fraiman, and Thomas Ransford. A sharp form of the Cramér–Wold theorem. Journal of Theoretical Probability, 20(2):201–209, 2007. doi: 10.1007/s10959-007-0060-7. URL https://link.springer.com/article/10.1007/s10959-007-0060-7.
  14. [15]Giorgio Dall’Agllio. Sugli estremi dei momenti delle funzioni di ripartizione doppia. Annali della Scuola Normale Superiore di Pisa, Classe di Scienze, 10(1-2):35–74, 1956. URL https://www.numdam.org/item/ASNSP_1956_3_10_1-2_35_0/.
  15. [16]PE Fleischer. Sufficient conditions for achieving minimum distortion in a quantizer. IEEE Int. Conv. Rec, 12:104–111, 1964.
  16. [17]Erell Gachon, Elsa Cazelles, and Jérémie Bigot. Scalable learning from probability measures with mean measure quantization. arXiv preprint arXiv:2502.04907, 2025. URL https://arxiv.org/abs/2502.04907. Revised 2026.
  17. [18]Michael B. Giles, Mario Hefter, Lukas Mayer, and Klaus Ritter. Random bit quadrature and approximation of distributions on Hilbert spaces. Foundations of Computational Mathematics, 19(1):205–238, 2019. doi: 10.1007/s10208-018-9382-3.DOI
  18. [19]Jacob Goldberger, Geoffrey Hinton, Sam Roweis, and Ruslan Salakhutdinov. Neighbourhood components analysis. In Advances in Neural Information Processing Systems, volume 17, 2004.
  19. [20]Gene H. Golub and John H. Welsch. Calculation of Gauss quadrature rules. Mathematics of Computation, 23(106):221–230, 1969. doi: 10.1090/S0025-5718-69-99647-1. URL https://www.ams.org/journals/mcom/1969-23-106/S0025-5718-69-99647-1/.DOI
  20. [21]Robert D Gordon. Values of mills’ ratio of area to bounding ordinate and of the normal probability integral for large values of the argument. The Annals of Mathematical Statistics, 12(3):364–366, 1941.DOI
  21. [22]Siegfried Graf and Harald Luschgy. Foundations of Quantization for Probability Distributions, volume 1730 of Lecture Notes in Mathematics. Springer, Berlin, Heidelberg, 2000. ISBN 978-3-540-67394-1. doi: 10.1007/BFb0103945.DOI
  22. [23]Allan Grøn(l)und, Kasper Green Larsen, Alexander Mathiasen, Jesper Sindahl Nielsen, Stefan Schneider, and Mingzhou Song. Fast exact k-means, k-medians and Bregman divergence clustering in 1D. arXiv preprint arXiv:1701.07204, 2017. URL https://arxiv.org/abs/1701.07204.
  23. [24]Keaton Hamm and Varun Khurana. Structured approximations of measures. arXiv preprint arXiv:2310.09149, 2026.arxiv.org/abs/2310.09149
  24. [25]Sariel Har-Peled and Akash Kushal. Smaller coresets for k-median and k-means clustering. Discrete & Computational Geometry, 37(1):3–19, 2007. doi: 10.1007/s00454-006-1271-x.
  25. [26]Zohar Karnin, Kevin Lang, and Edo Liberty. Optimal quantile approximation in streams. In 2016 IEEE 57th Annual Symposium on Foundations of Computer Science (FOCS), pages 71–78, 2016. doi: 10.1109/FOCS.2016.17. URL https://arxiv.org/abs/1603.05346.
  26. [27]John C. Kieffer. Uniqueness of locally optimal quantizer for log-concave density and convex error weighting function. IEEE Transactions on Information Theory, 29(1):42–47, 1983. doi: 10.1109/TIT.1983.1056622.DOI
  27. [28]Soheil Kolouri, Se Rim Park, and Gustavo K Rohde. The radon cumulative distribution transform and its application to image classification. IEEE transactions on image processing, 25(2):920–934, 2015.DOI
  28. [29]Soheil Kolouri, Yang Zou, and Gustavo K. Rohde. Sliced Wasserstein kernels for probability distributions. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 5258–5267, 2016. doi: 10.1109/CVPR.2016.568. URL https://www.cv-foundation.org/opencaccess/content_cvpr_2016/html/Kolouri_Sliced_Wasserstein_Kernels_CVPR_2016_paper.html.DOI
  29. [30]Matt J. Kusner, Yu Sun, Nicholas I. Kolkin, and Kilian Q. Weinberger. From word embeddings to document distances. In Proceedings of the 32nd International Conference on Machine Learning, volume 37 of Proceedings of Machine Learning Research, pages 957–966. PMLR, 2015. URL https://proceedings.mlr.press/v37/kusnerb15.html.
  30. [31]Juho Lee, Yoonho Lee, Jungtaek Kim, Adam Kosiorek, Seungjin Choi, and Yee Whye Teh. Set transformer: A framework for attention-based permutation-invariant neural networks. In Proceedings of the 36th International Conference on Machine Learning, volume 97 of Proceedings of Machine Learning Research, pages 3744–3753, 2019.arxiv.org/abs/1810.00825
  31. [32]Vincent Lemaire, Thibaut Montes, and Gilles Pagès. New weak error bounds and expansions for optimal quantization. Journal of Computational and Applied Mathematics, 371:112670, 2020. doi: 10.1016/j.cam.2019.112670. URL https://arxiv.org/abs/1903.10330.
  32. [34]Xinran Liu, Shansita D. Sharma, and Soheil Kolouri. EMPEROR: Efficient moment-preserving representation of distributions. arXiv preprint arXiv:2509.16379, 2025. URL https://arxiv.org/abs/2509.16379.
  33. [35]Yating Liu and Gilles Pagès. Convergence rate of optimal quantization and application to the clustering performance of the empirical measure. Journal of Machine Learning Research, 21(86):1–36, 2020. URL https://jmlr.org/papers/v21/18-804.html.
  34. [36]Stuart P. Lloyd. Least squares quantization in PCM. IEEE Transactions on Information Theory, 28(2):129–137, 1982. doi: 10.1109/TIT.1982.1056489. Originally circulated as a Bell Laboratories memorandum in 1957.DOI
  35. [37]Yuzhe Lu, Xinran Liu, Andrea Soltoggio, and Soheil Kolouri. SLoSH: Set locality sensitive hashing via sliced-Wasserstein embeddings. In Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision (WACV), pages 2566–2576, 2024. URL https://openaccess.thecvf.com/content/WACV2024/html/Lu_SLoSH_Set_Locality_Sensitive_Hashing_via_Sliced-Wasserstein_Embeddings_WACV_2024_paper.html.arxiv.org/abs/2112.05872
  36. [38]Harald Luschgy and Gilles Pagès. Functional quantization rate and mean regularity of processes with an application to Lévy processes. The Annals of Applied Probability, 18(2):427–469, 2008. doi: 10.1214/07-AAP459. URL https://arxiv.org/abs/math/0601774.
  37. [39]Joel Max. Quantizing for minimum distortion. IRE Transactions on Information Theory, 6(1):7–12, 1960. doi: 10.1109/TIT.1960.1057548.DOI
  38. [40]Navid Naderializadeh, Joseph F. Comer, Reed W. Andrews, Heiko Hoffmann, and Soheil Kolouri. Pooling by sliced-Wasserstein embedding. In Advances in Neural Information Processing Systems, volume 34, 2021. URL https://proceedings.neurips.cc/paper/2021/hash/1bc2029a8851ad344a8d503930dfd7f7-Abstract.html.
  39. [41]Kimia Nadjahi, Alain Durmus, Lénaïc Chizat, Soheil Kolouri, Shahin Shahrampour, and Umut Şimşekli. Statistical and topological properties of sliced probability divergences. In Advances in Neural Information Processing Systems, volume 33, 2020. URL https://proceedings.neurips.cc/paper/2020/hash/eefc9e10ebdc4a2333b42b2dbb8f27b6-Abstract.html.arxiv.org/abs/2003.05783
  40. [42]Kimia Nadjahi, Alain Durmus, Pierre E. Jacob, Roland Badeau, and Umut Şimşekli. Fast approximation of the Sliced-Wasserstein distance using concentration of random projections. In Advances in Neural Information Processing Systems, volume 34, 2021. URL https://proceedings.neurips.cc/paper/2021/hash/6786f3c62fbf9021694f6e51cc07fe3c-Abstract.html.arxiv.org/abs/2106.15427
  41. [43]Khai Nguyen. Streaming sliced optimal transport. In International Conference on Machine Learning (ICML), 2026. URL https://arxiv.org/abs/2505.06835.
  42. [44]Khai Nguyen, Shujian Zhang, Tam Le, and Nhat Ho. Sliced Wasserstein with random-path projecting directions. In Proceedings of the 41st International Conference on Machine Learning, volume 235 of Proceedings of Machine Learning Research, pages 37879–37899, 2024. URL https://proceedings.mlr.press/v235/nguyen24l.html.arxiv.org/abs/2401.15889
  43. [45]Sloan Nietert, Ziv Goldfeld, Ritwik Sadhu, and Kengo Kato. Statistical, robustness, and computational guarantees for sliced Wasserstein distances. In Advances in Neural Information Processing Systems, volume 35, 2022. doi: 10.52202/068431-2043. URL https://proceedings.neurips.cc/paper_files/paper/2022/hash/b4bc180bf09d513c34ecf66e53101595-Abstract-Conference.html.DOI
  44. [47]Gilles Pagès. A space quantization method for numerical integration. Journal of Computational and Applied Mathematics, 89(1):1–38, 1998. doi: 10.1016/S0377-0427(97)00190-8. URL https://www.sciencedirect.com/science/article/pii/S0377042797001908.DOI
  45. [48]Gilles Pagès and Jacques Printems. Optimal quadratic quantization for numerics: the Gaussian case. Monte Carlo Methods and Applications, 9(2):135–165, 2003. doi: 10.1515/156939603322663321. URL https://doi.org/10.1515/156939603322663321.
  46. [49]Se Rim Park, Soheil Kolouri, Shinjini Kundu, and Gustavo K. Rohde. The cumulative distribution transform and linear pattern classification. Applied and Computational Harmonic Analysis, 45(3):616–641, 2018. doi: 10.1016/j.acha.2017.02.002. URL https://arxiv.org/abs/1507.05936.
  47. [50]J. N. Pierce. Asymptotic quantizing error for unbounded random variables. IEEE Transactions on Information Theory, 16(1):81–83, 1970. doi: 10.1109/TIT.1970.1054400.DOI
  48. [51]Julien Rabin, Gabriel Peyré, Julie Delon, and Marc Bernot. Wasserstein barycenter and its application to texture mixing. In Scale Space and Variational Methods in Computer Vision (SSVM 2011), volume 6667 of Lecture Notes in Computer Science, pages 435–446. Springer, 2012. doi: 10.1007/978-3-642-24785-9_37. URL https://link.springer.com/chapter/10.1007/978-3-642-24785-9_37.DOI
  49. [52]Filippo Santambrogio. Optimal Transport for Applied Mathematicians: Calculus of Variations, PDEs, and Modeling, volume 87 of Progress in Nonlinear Differential Equations and Their Applications. Birkhäuser, Cham, 2015. ISBN 978-3-319-20827-5. doi: 10.1007/978-3-319-20828-2.DOI
  50. [53]Ryoma Sato, Makoto Yamada, and Hisashi Kashima. Re-evaluating word mover’s distance. In Proceedings of the 39th International Conference on Machine Learning, volume 162 of Proceedings of Machine Learning Research, pages 19231–19249, 2022. URL https://proceedings.mlr.press/v162/sato22b.html.arxiv.org/abs/2105.14403
  51. [54]Mingzhou Song and Hua Zhong. Efficient weighted univariate clustering maps outstanding dysregulated genomic zones in human cancers. Bioinformatics, 36(20):5027–5036, 2020. doi: 10.1093/bioinformatics/btaa613. URL https://pmc.ncbi.nlm.nih.gov/articles/PMC7755420/.
  52. [55]Binh Thuan Tran and Nicolas Schreuder. Minimax-optimal two-sample test with sliced Wasserstein. In Proceedings of the 29th International Conference on Artificial Intelligence and Statistics, volume 300 of Proceedings of Machine Learning Research, pages 1927–1935, 2026. URL https://proceedings.mlr.press/v300/tran26c.html.arxiv.org/abs/2510.27498
  53. [56]A. V. Trushkin. Sufficient conditions for uniqueness of a locally optimal quantizer for a class of convex error weighting functions. IEEE Transactions on Information Theory, 28(2):187–198, 1982. doi: 10.1109/TIT.1982.1056480.
  54. [57]Xiaolin Wu. Optimal quantization by matrix searching. Journal of Algorithms, 12(4):663–673, 1991. doi: 10.1016/0196-6774(91)90039-2.DOI
  55. [58]Zhirong Wu, Shuran Song, Aditya Khosla, Fisher Yu, Linguan Zhang, Xiaoou Tang, and Jianxiong Xiao. 3d shapenets: A deep representation for volumetric shapes. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 1912–1920, 2015.DOI
  56. [59]Chuang Xu and Arno Berger. Best finite constrained approximations of one-dimensional probabilities. Journal of Approximation Theory, 244:1–36, 2019. doi: 10.1016/j.jat.2019.03.005. URL https://arxiv.org/abs/1704.07871.
  57. [60]Paul L. Zador. Development and evaluation of procedures for quantizing multivariate distributions. Technical Report SOL ONR 92, Department of Statistics, Stanford University, December 1963. URL https://purl.stanford.edu/gv272ws3207.
  58. [61]Paul L. Zador. Asymptotic quantization error of continuous signals and the quantization dimension. IEEE Transactions on Information Theory, 28(2):139–148, 1982. doi: 10.1109/TIT.1982.1056490.DOI
  59. [62]Manzil Zaheer, Satwik Kottur, Siamak Ravnbakhsh, Barnabás Póczos, Ruslan Salakhutdinov, and Alexander J Smola. Deep sets. In Proceedings of the 31st International Conference on Neural Information Processing Systems, NIPS ’17, page 3394–3404, Red Hook, NY, USA, 2017. Curran Associates Inc. ISBN 9781510860964.
  60. [63]Yan Zhang, Jonathon Hare, and Adam Prügel-Bennett. FSPool: Learning set representations with featurewise sort pooling. In International Conference on Learning Representations, 2020.arxiv.org/abs/1906.02795

Paper details

vlnc:W_duknrry5
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents