Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Statistical Optimal Transport

Optimal transport is rarely evaluated on population measures directly. In machine learning and statistics, the inputs are usually empirical laws, histograms, simulated particles or minibatches, and the central question is therefore no longer only how to compute OT, but how OT behaves as a random estimator. This chapter studies this statistical layer: qualitative consistency of empirical measures, non-asymptotic sample-complexity rates, and asymptotic bias--variance decompositions for exact and regularized transport costs.

This statistical convergence is conceptually different from the algorithmic convergence studied in the previous chapter. There the marginals and the temperature were fixed and one asked how Sinkhorn iterates approach a regularized optimizer. Here the number of samples grows, the empirical measures themselves move, and the regularization parameter may either remain fixed or be sent to zero. The resulting picture explains why exact OT is statistically expensive in high intrinsic dimension, why fixed-temperature Sinkhorn has smoother parametric fluctuations, and why approximating exact OT with entropy always involves a bias--variance tradeoff.

Law of Large Numbers and Central Limit Theorem

Before discussing sample complexity in Section Sample Complexity, it is useful to separate consistency from rates. If X1,,XnX_1,\ldots,X_n are i.i.d. samples with common law α\alpha, the associated empirical measure is the random probability measure

α^n:=1ni=1nδXi.\hat\alpha_n \eqdef \frac1n\sum_{i=1}^n\delta_{X_i}.

The ordinary law of large numbers says that empirical averages converge to expectations. In measure language this means that α^n\hat\alpha_n converges weakly toward α\alpha, because testing α^n\hat\alpha_n against a bounded continuous function φ\varphi gives the sample average n1iφ(Xi)n^{-1}\sum_i\varphi(X_i). Wasserstein distances strengthen this statement by also recording moment convergence. Thus, if α\alpha has a finite pp-th moment, the empirical law converges to α\alpha in Wp\Wass_p, almost surely and in pp-th mean in the sense that EWp(α^n,α)p0\mathbb E\Wass_p(\hat\alpha_n,\alpha)^p\to0. This is the qualitative consistency statement behind empirical OT plug-in estimators: empirical transport distances converge to their population counterparts once the sampled laws themselves converge in Wasserstein distance. It says nothing yet about the speed.

Proof

Fix a reference point x0Xx_0\in\Xx, and write r(x)=d(x,x0)r(x)=d(x,x_0). Since X\Xx is Polish, the weak topology on P(X)\Pp(\Xx) admits a countable convergence-determining class (φk)k1Cb(X)(\varphi_k)_{k\geq1}\subset C_b(\Xx). For each fixed kk, the strong law of large numbers gives

φkdα^n=1ni=1nφk(Xi)Eφk(X1)=φkdα\int \varphi_k\,\d\hat\alpha_n = \frac1n\sum_{i=1}^n\varphi_k(X_i) \longrightarrow \mathbb E\varphi_k(X_1) = \int\varphi_k\,\d\alpha

almost surely. Intersecting these probability-one events over the countable set of indices gives convergence against every φk\varphi_k, hence weak convergence α^nα\hat\alpha_n\rightharpoonup\alpha.

The moment condition αPp(X)\alpha\in\Pp_p(\Xx) means rpdα<+\int r^p\,\d\alpha<+\infty. Applying the strong law again to r(X1)pr(X_1)^p gives

rpdα^n=1ni=1nr(Xi)prpdα\int r^p\,\d\hat\alpha_n = \frac1n\sum_{i=1}^n r(X_i)^p \longrightarrow \int r^p\,\d\alpha

almost surely. Weak convergence plus convergence of pp-th moments is equivalent to Wp\Wass_p convergence on Pp(X)\Pp_p(\Xx), so Wp(α^n,α)0\Wass_p(\hat\alpha_n,\alpha)\to0 almost surely.

For convergence in expectation, set An=rpdα^nA_n=\int r^p\,\d\hat\alpha_n and M=rpdαM=\int r^p\,\d\alpha. The triangle inequality through the Dirac mass δx0\delta_{x_0}, followed by (a+b)p2p1(ap+bp)(a+b)^p\leq2^{p-1}(a^p+b^p), gives

Wp(α^n,α)p2p1(An+M).\Wass_p(\hat\alpha_n,\alpha)^p \leq 2^{p-1}(A_n+M).

The family (An)n(A_n)_n is uniformly integrable. By the de la Vallee--Poussin criterion, choose a convex superlinear function Ψ\Psi such that EΨ(r(X1)p)<+\mathbb E\Psi(r(X_1)^p)<+\infty; Jensen’s inequality gives

EΨ(An)1ni=1nEΨ(r(Xi)p)=EΨ(r(X1)p).\mathbb E\Psi(A_n) \leq \frac1n\sum_{i=1}^n\mathbb E\Psi(r(X_i)^p) = \mathbb E\Psi(r(X_1)^p).

Thus (An+M)n(A_n+M)_n, and hence (Wp(α^n,α)p)n(\Wass_p(\hat\alpha_n,\alpha)^p)_n, is uniformly integrable. Together with almost-sure convergence to zero, this implies EWp(α^n,α)p0\mathbb E\Wass_p(\hat\alpha_n,\alpha)^p\to0.

Central-Limit Fluctuations

The previous proposition is a law-of-large-numbers statement: a random empirical measure converges to the law that generated it. The central limit theorem describes a different, fluctuation-scale limit. As recalled in Remark Remark: Central limit theorem, if (Xi)i1(X_i)_{i\geq1} are centered i.i.d. random vectors with identity covariance, the law of n1/2iXin^{-1/2}\sum_i X_i converges weakly toward a Gaussian. Equivalently, if α\alpha is the common law of the XiX_i, this law is the rescaled convolution (D1/n)αn(D_{1/\sqrt n})_\sharp\alpha^{*n}. Wasserstein distances make this qualitative convergence quantitative. The next result is a W1\Wass_1 form of the Berry--Esseen theorem: it controls the error uniformly over all 1-Lipschitz test functions. The qualitative Bernoulli example was visualized earlier in Figure Div.

Proof

By Kantorovich--Rubinstein duality,

W1(αn,γ)=supLip(h)1Eh(Sn)Eh(G),Sn=n1/2iXi,Gγ.\Wass_1(\alpha_n,\gamma) = \sup_{\Lip(h)\leq1} \left|\mathbb{E}h(S_n)-\mathbb{E}h(G)\right|, \qquad S_n=n^{-1/2}\sum_iX_i, \quad G\sim\gamma.

For each such hh, solve Stein’s equation fh(x)xfh(x)=h(x)Eh(G)f_h'(x)-xf_h(x)=h(x)-\mathbb{E}h(G). Its solution satisfies fh+fhC\norm{f_h'}_\infty+\norm{f_h''}_\infty\leq C Chen et al., 2011. Writing Sn(i)=SnXi/nS_n^{(i)}=S_n-X_i/\sqrt n, independence and EXi=0\mathbb E X_i=0 give

E[Snfh(Sn)]=1ni=1nE[Xi(fh(Sn(i)+Xi/n)fh(Sn(i)))].\mathbb E[S_nf_h(S_n)] = \frac1{\sqrt n}\sum_{i=1}^n \mathbb E\left[X_i\left(f_h(S_n^{(i)}+X_i/\sqrt n)-f_h(S_n^{(i)})\right)\right].

Taylor’s formula with integral remainder and EXi2=1\mathbb E X_i^2=1 show that this differs from n1iEfh(Sn(i))n^{-1}\sum_i\mathbb E f_h'(S_n^{(i)}) by at most CEX13/nC\mathbb E|X_1|^3/\sqrt n. The Lipschitz bound on fhf_h' replaces this average by Efh(Sn)\mathbb E f_h'(S_n) at the same order. Stein’s identity and the duality formula then prove the claim Berry, 1941Esseen, 1942Chen et al., 2011Bobkov, 2018Rio, 2011.

The universal n1/2n^{-1/2} bound is sharp over broad classes of input laws, but it need not describe the asymptotic behavior of a fixed law. For symmetric inputs, the smooth skewness correction vanishes. What replaces it depends on whether the law is lattice-valued or has a density.

Proof

Write FnF_n for the CDF of αn\alpha_n, and Φ\Phi and φ\varphi for the standard Gaussian CDF and density. With ψ(u)=12{u}\psi(u)=\frac12-\{u\}, the integrated lattice Edgeworth expansion gives

Fn(x)Φ(x)=hnψ ⁣(nxnah)φ(x)+rn(x),rnL1(R)=o(n1/2);F_n(x)-\Phi(x) = \frac h{\sqrt n}\, \psi\!\left(\frac{\sqrt n\,x-na}{h}\right)\varphi(x)+r_n(x), \qquad \|r_n\|_{L^1(\mathbb R)}=o(n^{-1/2});

see Petrov, 1975Bhattacharya & Ranga Rao, 2010Kolassa & McCullagh, 1990. Vallender’s identity Vallender, 1974 states that W1(αn,γ)=RFnΦ\Wass_1(\alpha_n,\gamma)=\int_{\mathbb R}|F_n-\Phi|. The inequality u+vuv\big||u+v|-|u|\big|\leq|v| reduces the result to periodic averaging:

Rψ ⁣(nxnah)φ(x)dx01ψ(u)du=14.\int_{\mathbb R} \left|\psi\!\left(\frac{\sqrt n\,x-na}{h}\right)\right|\varphi(x)\,dx \longrightarrow \int_0^1|\psi(u)|\,du =\frac14.

For completeness, prove this first for compactly supported step functions, where it is a Riemann sum over periods, and conclude by L1L^1 approximation of φ\varphi.

The absence of a lattice correction reveals the next smooth Edgeworth term. A density automatically satisfies Cramér’s non-lattice condition because its characteristic function vanishes at infinity.

Proof

The non-lattice Edgeworth expansion through order n1n^{-1} has an n1/2n^{-1/2} term proportional to the third cumulant, and n1n^{-1} terms proportional to the fourth cumulant and to the square of the third one. Symmetry makes the third cumulant vanish and gives

Fn(x)Φ(x)=κ424nH3(x)φ(x)+rn(x),rnL1(R)=o(n1);F_n(x)-\Phi(x) =-\frac{\kappa_4}{24n}H_3(x)\varphi(x)+r_n(x), \qquad \|r_n\|_{L^1(\mathbb R)}=o(n^{-1});

see Petrov, 1975Bhattacharya & Ranga Rao, 2010. Insert this expansion into Vallender’s identity and use u+vuv\big||u+v|-|u|\big|\leq|v|.

These two results explain the different behaviors in Figure Div. For the symmetric Bernoulli law, the maximal span is h=2h=2, hence W1(αn,γ)=1/(2n)+o(n1/2)\Wass_1(\alpha_n,\gamma)=1/(2\sqrt n)+o(n^{-1/2}). The density proposition cannot be used: this law has no density and its characteristic function is E[eitX]=cost\mathbb E[e^{itX}]=\cos t, whose modulus returns to one at arbitrarily large frequencies. Thus symmetry removes the smooth skewness term but not the lattice sawtooth. Conversely, XUnif[3,3]X\sim\operatorname{Unif}[-\sqrt3,\sqrt3] has a density, characteristic function sin(3t)/(3t)0\sin(\sqrt3t)/(\sqrt3t)\to0, and κ4=6/5\kappa_4=-6/5. Since

RH3(x)φ(x)dx=2φ(0)+8φ(3)=2+8e3/22π,\int_{\mathbb R}|H_3(x)|\varphi(x)\,dx =2\varphi(0)+8\varphi(\sqrt3) =\frac{2+8e^{-3/2}}{\sqrt{2\pi}},

one obtains

W1(αn,γ){12n,X12(δ1+δ1),1+4e3/2102π1n,XUnif[3,3].\Wass_1(\alpha_n,\gamma) \sim \begin{cases} \dfrac1{2\sqrt n}, &X\sim\frac12(\delta_{-1}+\delta_1),\\[2mm] \dfrac{1+4e^{-3/2}}{10\sqrt{2\pi}}\dfrac1n, &X\sim\operatorname{Unif}[-\sqrt3,\sqrt3]. \end{cases}

Figure Div confronts these equivalents with exact one-dimensional computations. For a centered, unit-variance input law α\alpha, define

αn=(D1/n)αn,n1,\alpha_n=(D_{1/\sqrt n})_\sharp\alpha^{*n}, \qquad n\geq1,

so that α1=α\alpha_1=\alpha. For Bernoulli input, the distance is evaluated by the exact quantile formula and atom masses are divided by the current lattice spacing in the density display. For continuous-uniform input, the normalized convolution is an affine image of the Irwin--Hall distribution, whose density is, up to rescaling, a cardinal B-spline of degree n1n-1, and the absolute CDF difference is integrated numerically. Neither computation uses Monte Carlo sampling.

<IPython.core.display.Image object>

Sharp lattice and density central-limit asymptotics in W1\Wass_1. The two left panels show α1\alpha_1, α2\alpha_2, and α6\alpha_6 for symmetric Bernoulli and continuous-uniform inputs; the gray curve is the standard Gaussian density. The right panel compares the exact numerical distances (solid) with the sharp equivalents in (17) (dashed). The Bernoulli curve follows its lattice rate 1/(2n)1/(2\sqrt n), while the continuous-uniform curve approaches (1+4e3/2)/(102πn)(1+4e^{-3/2})/(10\sqrt{2\pi}\,n).

Sample Complexity

This section compares four statistical regimes. Exact OT resolves geometry at all scales and pays rates controlled by the intrinsic dimension. MMD replaces transport by a kernel mean embedding and has a parametric Monte-Carlo rate for bounded kernels. Fixed-temperature Sinkhorn divergences smooth the dual potentials and also recover parametric fluctuations, at the price of regularization bias. Sliced Wasserstein inherits one-dimensional empirical rates through its projected laws.

Unregularized OT

The previous section proves qualitative convergence of empirical laws. The sample-complexity question is how fast this convergence happens. The sample complexity of unregularized OT suffers from the curse of dimensionality, but the relevant dimension is geometric. If the distributions are supported on a regular lower-dimensional set, for instance a dd'-dimensional submanifold of Rd\RR^d, the empirical rate is governed by dd' rather than by the ambient dimension dd. In the high-dimensional regime for Wp\Wass_p, namely d>2pd'>2p, this gives the characteristic rate n1/dn^{-1/d'}. Exact OT is therefore dimension-adaptive: it sees the intrinsic dimension of the data support through its covering numbers Dudley, 1969Weed & Bach, 2019. Related two-sample-testing viewpoints are developed in Ramdas et al., 2017.

For n2n\geq2, p1p\geq1, and d1d\geq1, define the worst-case empirical scale

rn,p,d:={n1/(2p),d<2p,n1/(2p)(log(1+n))1/p,d=2p,n1/d,d>2p.r_{n,p,d} \eqdef \begin{cases} n^{-1/(2p)}, & d<2p,\\ n^{-1/(2p)}(\log(1+n))^{1/p}, & d=2p,\\ n^{-1/d}, & d>2p. \end{cases}

The following proposition turns this scale into uniform one-sample and two-sample bounds for empirical OT.

The following multiscale estimate makes the mechanism behind the W1\Wass_1 bound explicit.

Proof Sketch

Match the common mass inside the finest cells, then recursively match the remaining common mass inside each parent cell. Mass first matched at scale jj moves by at most d2j\sqrt d\,2^{-j}, and its total amount is bounded by the sum of the child-cell imbalances. The residual at the finest unresolved scale has mass at most one and moves by at most d2J\sqrt d\,2^{-J}.

Proof of the empirical-OT rate proposition

General empirical Wasserstein moment estimates prove the one-sample statement for arbitrary pp Dereich et al., 2013Fournier & Guillin, 2015; reverse triangle and Minkowski then give the two-sample estimate. We give the direct multiscale proof for p=1p=1. The triangle inequality reduces the result to EW1(α^n,α)\mathbb E\Wass_1(\hat\alpha_n,\alpha). For each dyadic cell QQ,

Eα^n(Q)α(Q)α(Q)/n.\mathbb E|\hat\alpha_n(Q)-\alpha(Q)| \leq \sqrt{\alpha(Q)/n}.

Summing by Cauchy--Schwarz and applying Proposition: Dyadic Partition Bound for W1\Wass_1 gives

EW1(α^n,α)d2J+n1/2j=0J12j(d/21).\mathbb E\Wass_1(\hat\alpha_n,\alpha) \lesssim_d 2^{-J}+n^{-1/2}\sum_{j=0}^{J-1}2^{j(d/2-1)}.

Optimizing JJ yields the three displayed regimes for p=1p=1.

Figure Div gives a numerical overview of these regimes: exact OT exhibits dimension-dependent empirical fluctuations, whereas MMD and fixed-temperature Sinkhorn divergences lie much closer to the parametric n1/2n^{-1/2} scale.

<IPython.core.display.Image object>

Empirical fluctuations in dimensions three and six. For each sample size nn, two independent empirical measures are drawn from the same standard Gaussian law. Exact OT follows a slower dimension-dependent scale, while MMD and the fixed-ϵ\epsilon Sinkhorn divergence behave closer to the parametric n1/2n^{-1/2} guide. This is a statistical illustration, not a solver benchmark.

Interactive panel. Vary dimension, sample budget and temperature to compare the curse-of-dimensionality OT guide with the parametric fluctuation and bias floor of entropic OT.

Lower Bounds and Minimax Optimality

The high-dimensional rate is not merely a defect of the empirical plug-in estimator. A hypercube of localized density perturbations gives the following distribution-estimation obstruction Singh & Póczos, 2018Weed & Bach, 2019Chewi et al., 2025.

Proof Sketch

Partition the cube into M=mdM=m^d cells of width h=1/mh=1/m, and put an independent signed, zero-mean bump of fixed small amplitude in each cell. Kantorovich--Rubinstein duality gives a separation of order hd+1h^{d+1} per differing sign. Neighboring experiments have one-sample KL divergence O(hd)O(h^d). Pinsker’s inequality (Theorem: Pinsker Inequality) shows that choosing MnM\asymp n keeps their nn-sample total variation bounded away from one. Assouad’s lemma then gives Mhd+1=hn1/dMh^{d+1}=h\asymp n^{-1/d}.

Leveraging Smoothness

For a Sobolev-smooth density, convolving the empirical measure at bandwidth hh creates a bias of order hs+1h^{s+1} but reduces the empirical fluctuation to order n1/2h1d/2n^{-1/2}h^{1-d/2}. Balancing these terms selects hnn1/(d+2s)h_n\asymp n^{-1/(d+2s)}, which improves on the empirical n1/dn^{-1/d} rate when d>2d>2 Niles-Weed & Berthet, 2022Divol, 2022.

Proof Sketch

Kantorovich--Rubinstein duality bounds W1W_1 by the negative Sobolev norm H˙1\dot H^{-1}. Since Eρα~n=ρακh\mathbb E\rho_{\tilde\alpha_n}=\rho_\alpha\ast\kappa_h, Fourier estimates give kernel bias O(hs+1)O(h^{s+1}), while Parseval’s identity gives

Eρα~nρακhH˙121nk0κ^(hk)24π2k2h2dn.\mathbb E \left\| \rho_{\tilde\alpha_n}-\rho_\alpha\ast\kappa_h \right\|_{\dot H^{-1}}^2 \lesssim \frac1n\sum_{k\neq0} \frac{|\widehat\kappa(hk)|^2}{4\pi^2|k|^2} \lesssim \frac{h^{2-d}}n.

Balancing the bias with the square root of this fluctuation yields the stated bandwidth and rate.

The restriction s1s\leq1 permits a nonnegative symmetric kernel and hence a genuine probability estimator. Exploiting higher smoothness requires higher-order, generally signed kernels followed by a positivity correction. Dimensions one and two have separate parametric or logarithmic regimes Divol, 2022.

This statistical acceleration has a numerical price. For a Gaussian kernel, α~n\tilde\alpha_n is a mixture of nn Gaussians, and OT between two such mixtures has no closed form in general. A direct particle implementation draws MM independent vectors ξi,jN(0,Idd)\xi_{i,j}\sim\mathcal N(0,\mathrm{Id}_d) around each observation and defines

α~n,M=1nMi=1nj=1MδXi+hnξi,j.\tilde\alpha_{n,M} = \frac1{nM}\sum_{i=1}^n\sum_{j=1}^M \delta_{X_i+h_n\xi_{i,j}}.

Here addition is understood modulo Zd\mathbb Z^d. Conditionally on the observations, convexity of W1W_1 under mixing, together with translation, scaling and the 1-Lipschitz projection onto the torus, gives

EW1(α~n,M,α~n)hnEW1(1Mj=1Mδξj,N(0,Idd))dhnM1/d.\mathbb E W_1(\tilde\alpha_{n,M},\tilde\alpha_n) \leq h_n\,\mathbb E W_1\left( \frac1M\sum_{j=1}^M\delta_{\xi_j}, \mathcal N(0,\mathrm{Id}_d) \right) \lesssim_d h_nM^{-1/d}.

The last estimate is the moment form of the empirical OT rate Fournier & Guillin, 2015. At the optimal bandwidth hnn1/(d+2s)h_n\asymp n^{-1/(d+2s)}, keeping this extra error below the statistical rate is guaranteed by Mnsd/(d+2s)M\gtrsim n^{sd/(d+2s)}. This componentwise strategy therefore uses Ncomp=nMn1+sd/(d+2s)N_{\rm comp}=nM\gtrsim n^{1+sd/(d+2s)} particles per measure.

Approximating every Gaussian separately is conservative. One can instead sample or quantize the whole smoothed mixture using NN points. In dimension d>2d>2, the corresponding W1W_1 error is of order N1/dN^{-1/d}, up to dimension-dependent constants Graf & Luschgy, 2000. Thus target accuracy δ\delta requires NδdN\gtrsim\delta^{-d}, whereas the componentwise construction uses Ncompδd2s/(s+1)N_{\rm comp}\gtrsim\delta^{-d-2s/(s+1)}. The global strategy is cheaper, but its particle count remains exponential in dd at fixed accuracy. Forming and storing a dense N×NN\times N transport kernel costs O(N2)O(N^2) work and memory, and each direct Sinkhorn scaling costs another O(N2)O(N^2) operations. Fast kernel summation or low-rank approximations may reduce this matrix cost, but without additional structure they do not remove the underlying N1/dN^{-1/d} discretization barrier.

MMD

MMD contains no transport optimization: its square is a combination of expectations of kernel evaluations, estimated empirically by sums of kernel values. Ordinary Monte Carlo averaging therefore gives a dimension-free parametric rate for bounded kernels. This sharply contrasts with exact empirical OT, whose value is defined through an optimization problem and whose worst-case W1W_1 plug-in bias in dimension d>2d>2 decays only as n1/dn^{-1/d}, corresponding to a sample requirement of order δd\delta^{-d} at accuracy δ\delta. The constants for MMD still depend on the kernel and its bandwidth, and changing the kernel changes the discrepancy being estimated.

Proof

Let Φ(x)=k(x,)\Phi(x)=k(x,\cdot) be the feature map and mα=EΦ(X)m_\alpha=\mathbb E\Phi(X). The reverse triangle inequality gives

MMDk(α^n,β^m)MMDk(α,β)MMDk(α^n,α)+MMDk(β^m,β).\abs{ \operatorname{MMD}_k(\hat\alpha_n,\hat\beta_m) - \operatorname{MMD}_k(\alpha,\beta) } \leq \operatorname{MMD}_k(\hat\alpha_n,\alpha) + \operatorname{MMD}_k(\hat\beta_m,\beta).

Independence cancels cross terms after taking squared norms and expectation:

EMMDk(α^n,α)2=1nEΦ(X)mαHk2=1n(Ek(X,X)Ek(X,X)).\mathbb E\operatorname{MMD}_k(\hat\alpha_n,\alpha)^2 = \frac1n \mathbb E\norm{\Phi(X)-m_\alpha}_{\mathcal H_k}^2 = \frac1n \left( \mathbb E k(X,X)-\mathbb E k(X,X') \right).

Jensen’s inequality and k(x,x)κ2k(x,x)\leq\kappa^2 give the displayed bound.

Entropic OT

Entropic regularization keeps the transport geometry while smoothing the dual potentials. The sharp fixed-temperature statement below has polynomial, rather than exponential, dependence on the inverse temperature Genevay et al., 2019Mena & Niles-Weed, 2019.

Proof Sketch

Dual optimality bounds a one-marginal perturbation by the empirical process indexed by normalized entropic potentials. One can show that these potentials obey polynomial local Hölder bounds under a common subgaussian proxy Mena & Niles-Weed, 2019. Their covering numbers have a finite Dudley integral, hence the empirical process is O(n1/2)O(n^{-1/2}) with constant Cd(1+σqd)C_d(1+\sigma^{q_d}) at ϵ=1\epsilon=1. The rescaling xx/ϵx\mapsto x/\sqrt\epsilon gives the displayed Λd,σ(ϵ)\Lambda_{d,\sigma}(\epsilon). Perturbing both marginals and applying the same estimate to the cross and two self terms yields the debiased result.

For fixed ϵ>0\epsilon>0, the empirical fluctuation is therefore parametric, while the prefactor deteriorates only polynomially as ϵ0\epsilon\downarrow0. Compact support is a special case: if both supports lie in a common ball B(z,R)B(z,R), translating them by z-z leaves the quadratic transport problem unchanged, and the subgaussian assumption holds with σ=R/2dlog2=O(R)\sigma=R/\sqrt{2d\log 2}=O(R). Genevay--Chizat--Bach--Cuturi--Peyré established the compactly supported result, and Mena--Niles-Weed extended it to the subgaussian setting above Genevay et al., 2019Mena & Niles-Weed, 2019.

The interactive demo below is only a scaling guide: change the dimension to see the exact-OT exponent flatten, and change ϵ\epsilon to move the Sinkhorn bias floor against its parametric fluctuation term.

Interactive panel. This exploratory panel is a scaling guide. Use dimension, sample size, and epsilon to compare statistical fluctuation with regularization bias.

Sample Complexity of Estimating OT Maps

The preceding estimates concern transport values. For map estimation, one solves the empirical discrete dual problem (2) or its entropic counterpart (47) for potentials (fn,mϵ,gn,mϵ)Rn×Rm(\mathbf f_{n,m}^\epsilon,\mathbf g_{n,m}^\epsilon)\in\RR^n\times\RR^m, with ϵ=0\epsilon=0 denoting the unregularized Kantorovich problem, and then uses the soft cc-transform as an out-of-sample extrapolator.

For the quadratic cost c2(x,y)=xy2/2c_2(x,y)=\norm{x-y}^2/2, let Pn,mϵ=(Pijϵ)\P_{n,m}^\epsilon=(\P_{ij}^\epsilon) be the empirical entropic coupling and let gn,mϵ\mathbf g_{n,m}^\epsilon be the target-side dual potential. Define

un,mϵ(x)=ϵlogjbjexp(gn,m,jϵc2(x,Yj)ϵ),Tn,mϵ(x)=xun,mϵ(x).u_{n,m}^\epsilon(x) = -\epsilon\log \sum_j b_j \exp\left( \frac{\mathbf g_{n,m,j}^\epsilon-c_2(x,Y_j)}{\epsilon} \right), \qquad T_{n,m}^\epsilon(x)=x-\nabla u_{n,m}^\epsilon(x).

Equivalently, subtracting the quadratic marginal terms turns c2c_2 into the bilinear cost cip(x,y)=x,yc_{\rm ip}(x,y)=-\langle x,y\rangle. With the sign convention used here, the associated soft convex potential is

φn,mϵ(x)=12x2un,mϵ(x)=ϵlogjbjexp(x,Yj+gn,m,jϵ12Yj2ϵ),Tn,mϵ=φn,mϵ.\varphi_{n,m}^\epsilon(x) = \frac12\norm{x}^2-u_{n,m}^\epsilon(x) = \epsilon\log\sum_j b_j \exp\left( \frac{\langle x,Y_j\rangle+\mathbf g_{n,m,j}^\epsilon-\frac12\norm{Y_j}^2}{\epsilon} \right), \qquad T_{n,m}^\epsilon=\nabla\varphi_{n,m}^\epsilon .

Differentiating this log-sum-exp gives the explicit soft barycentric form

Tn,mϵ(x)=jωjϵ(x)Yj,ωjϵ(x)=bje(gn,m,jϵc2(x,Yj))/ϵkbke(gn,m,kϵc2(x,Yk))/ϵ.T_{n,m}^\epsilon(x)=\sum_j\omega_j^\epsilon(x)Y_j, \qquad \omega_j^\epsilon(x)= \frac{b_j e^{(\mathbf g_{n,m,j}^\epsilon-c_2(x,Y_j))/\epsilon}} {\sum_k b_k e^{(\mathbf g_{n,m,k}^\epsilon-c_2(x,Y_k))/\epsilon}} .

At a sampled point XiX_i, Sinkhorn normalization gives

Tn,mϵ(Xi)=1aijPijϵYj,T_{n,m}^\epsilon(X_i)=\frac1{a_i}\sum_jP_{ij}^\epsilon Y_j,

which is the barycentric projection of the entropic plan. At ϵ=0\epsilon=0, the hard cc-transform is generally nondifferentiable: away from Laguerre boundaries its gradient selects one target site, whereas the barycentric projection of an optimal unregularized plan may average several target sites when a row splits. The consistency statement is therefore formulated directly for barycentric projections. It uses uniform empirical weights; deterministic nonuniform weights require the corresponding entropy bound.

Proof Sketch

Compare the entropic minimizer with an unregularized empirical optimal plan. On a uniform n×mn\times m grid, this relative entropy is the mutual information of two uniform indices and is at most min{logn,logm}\min\{\log n,\log m\}. Thus the entropic coupling has asymptotically optimal quadratic cost when ϵlog(min{n,m})0\epsilon\log(\min\{n,m\})\to0. Any weak limit is therefore an optimal population plan, hence the Brenier graph (Id,T)#α(\operatorname{Id},T)_\#\alpha. Jensen’s inequality applied to each conditional law reduces the claim to the convergence of yT(x)2dPn,mϵ(x,y)\iint\norm{y-T(x)}^2\,dP_{n,m}^{\epsilon}(x,y). This last convergence is not a continuity tautology, because the Brenier map is only defined α\alpha-a.e. At every differentiability point of ϕ\phi, the subdifferential is the singleton {ϕ(x)}\{\nabla\phi(x)\}; compactness of the target bounds the selected subgradients, and the closed-graph property of the subdifferential then gives continuity of any selected subgradient there. Since convex functions are differentiable Lebesgue-a.e. and α\alpha is absolutely continuous, the portmanteau theorem for bounded test functions continuous almost everywhere under the limiting measure gives the desired limit.

Quantitative map convergence requires stronger regularity than consistency. The following result gives a direct guarantee for the Sinkhorn-based estimator defined above Pooladian & Niles-Weed, 2021.

This estimator is directly computable from Sinkhorn potentials. Under stronger modeling and smoothing assumptions, unregularized estimators can attain sharper minimax rates Hütter & Rigollet, 2021Deb et al., 2021Manole et al., 2024.

Sliced Wasserstein

For Pθ(x)=θ,xP_\theta(x)=\langle\theta,x\rangle and normalized surface measure σ\sigma on Sd1\mathbb S^{d-1}, define

SWp(α,β)p=Sd1Wp((Pθ)#α,(Pθ)#β)p,dσ(θ).\SW_p(\alpha,\beta)^p = \int_{\mathbb S^{d-1}} \Wass_p((P_\theta)_\#\alpha,(P_\theta)_\#\beta)^p,d\sigma(\theta).

The construction is studied in Sliced Wasserstein Distances. For p=1p=1, it inherits a particularly clean one-dimensional empirical-CDF rate rather than an ambient-dimensional matching rate Nadjahi et al., 2019Nadjahi et al., 2020Manole et al., 2022.

Proof

The triangle inequality reduces the claim to the two one-sample terms SW1(α^n,α)\SW_1(\hat\alpha_n,\alpha) and SW1(β^m,β)\SW_1(\hat\beta_m,\beta). Fix a direction θ\theta, and let FθF_\theta and F^θ,n\hat F_{\theta,n} be the CDFs of (Pθ)#α(P_\theta)_\#\alpha and (Pθ)#α^n(P_\theta)_\#\hat\alpha_n. Their supports lie in [R,R][-R,R], and the one-dimensional CDF formula gives

EW1((Pθ)#α^n,(Pθ)#α)=RREF^θ,n(s)Fθ(s)dsRRFθ(s)(1Fθ(s))ndsRn.\mathbb E\Wass_1((P_\theta)_\#\hat\alpha_n,(P_\theta)_\#\alpha) =\int_{-R}^R\mathbb E|\hat F_{\theta,n}(s)-F_\theta(s)|\,ds \leq\int_{-R}^R\sqrt{\frac{F_\theta(s)(1-F_\theta(s))}{n}}\,ds \leq\frac R{\sqrt n}.

Here nF^θ,n(s)n\hat F_{\theta,n}(s) is binomial with success probability Fθ(s)F_\theta(s). Integrating over θ\theta yields ESW1(α^n,α)R/n\mathbb E\SW_1(\hat\alpha_n,\alpha)\leq R/\sqrt n. The same argument for β\beta concludes the proof.

Bias and Variance of OT

Bias, Variance and Approximation Errors

The previous section answered a coarse but essential question: how many samples are needed before an empirical OT quantity is accurate, typically up to universal constants. We now ask for a finer statistical description of the KL-normalized entropic OT value Lcϵ\MK_c^\epsilon defined in (20), with the convention Lc0:=Lc\MK_c^0\eqdef\MK_c for unregularized OT. Fixing cc, α\alpha and β\beta, define the statistical bias

Bn,mϵ:=ELcϵ(α^n,β^m)Lcϵ(α,β)B_{n,m}^\epsilon \eqdef \mathbb E\MK_c^\epsilon(\hat\alpha_n,\hat\beta_m) -\MK_c^\epsilon(\alpha,\beta)

and the centered fluctuation

Zn,mϵ:=Lcϵ(α^n,β^m)ELcϵ(α^n,β^m).Z_{n,m}^\epsilon \eqdef \MK_c^\epsilon(\hat\alpha_n,\hat\beta_m) -\mathbb E\MK_c^\epsilon(\hat\alpha_n,\hat\beta_m).

If the target is the exact cost but the statistic is entropically regularized, these quantities isolate the three sources of error:

Lcϵ(α^n,β^m)Lc0(α,β)=Lcϵ(α,β)Lc0(α,β)regularization bias+Bn,mϵstatistical bias+Zn,mϵcentered fluctuation.\MK_c^\epsilon(\hat\alpha_n,\hat\beta_m)-\MK_c^0(\alpha,\beta) = \underbrace{\MK_c^\epsilon(\alpha,\beta)-\MK_c^0(\alpha,\beta)}_{\text{regularization bias}} + \underbrace{B_{n,m}^\epsilon}_{\text{statistical bias}} + \underbrace{Z_{n,m}^\epsilon}_{\text{centered fluctuation}}.

For the debiased Sinkhorn divergence, define Bˉn,mϵ\bar B_{n,m}^\epsilon and Zˉn,mϵ\bar Z_{n,m}^\epsilon by replacing Lcϵ\MK_c^\epsilon with Lˉcϵ\bar\MK_c^\epsilon above; the same decomposition then holds with bars. It is usually read after choosing a temperature ϵ=ϵn\epsilon=\epsilon_n. At fixed ϵ>0\epsilon>0 and on finite supports, the statistical bias is typically O(n1+m1)O(n^{-1}+m^{-1}), while the centered fluctuation is OP(n1/2+m1/2)O_{\mathbb P}(n^{-1/2}+m^{-1/2}). The regularization bias disappears only when ϵ0\epsilon\to0, whereas the fluctuation constants can deteriorate in this limit. This is the bias--variance tradeoff illustrated in Div.

The remainder of this section analyzes the latter two terms. The superscript records their dependence on the regularization strength. The empirical fluctuation is pushed through the nonlinear transport value Lcϵ\MK_c^\epsilon, which can be nonsmooth at ϵ=0\epsilon=0. Its limiting law is governed by local differentiability and by the geometry of the optimal dual potentials.

For exact OT on finite spaces, empirical central-limit theorems follow from a directional delta method Sommerfeld & Munk, 2018Tameling et al., 2019; fixed positive entropic regularization makes the transport value smooth on the interiors of the marginal simplices Bigot et al., 2019Klatt et al., 2020Hundrieser et al., 2021Mena & Niles-Weed, 2019. The following statement isolates the Gaussian regime common to both settings: at zero temperature, uniqueness of the dual potentials turns the directional derivative into an ordinary linear derivative.

Proof

Writing a^n\hat a_n and b^n\hat b_n for the two empirical histograms, the independent multinomial central-limit theorems give

n(a^na,b^nb)(Ga,Gb),\sqrt n(\hat a_n-a,\hat b_n-b) \Longrightarrow (G_a,G_b),

where GaG_a and GbG_b are independent centered Gaussian vectors with covariance matrices diag(a)aa\operatorname{diag}(a)-aa^\top and diag(b)bb\operatorname{diag}(b)-bb^\top. Proposition Proposition: First variations of OT values gives the directional derivative for every ϵ0\epsilon\geq0. It is linear under the assumed uniqueness at ϵ=0\epsilon=0, and automatically at positive temperature. Thus,

DLcϵ(α,β)[h,k]=ifϵ(xi)hi+jgϵ(yj)kj.D\MK_c^\epsilon(\alpha,\beta)[h,k] = \sum_i f_\epsilon^\star(x_i)h_i + \sum_j g_\epsilon^\star(y_j)k_j.

The delta method therefore gives the Gaussian limit ifϵ(xi)(Ga)i+jgϵ(yj)(Gb)j\sum_i f_\epsilon^\star(x_i)(G_a)_i+ \sum_j g_\epsilon^\star(y_j)(G_b)_j. Independence and the two multinomial covariance formulas give exactly vϵ\mathsf{v}_\epsilon.

It remains to justify convergence of the moments, which does not follow from convergence in distribution alone. Set R=maxi,jc(xi,yj)mini,jc(xi,yj)R=\max_{i,j}c(x_i,y_j)-\min_{i,j}c(x_i,y_j). Exact dual potentials may be replaced by their cc-transforms, and entropic potentials by their soft cc-transforms; in either case their oscillations are at most RR. Since differences of histograms have zero sum, integrating the corresponding subgradient bounds along segments in the two marginal simplices gives, for any histograms (a,b)(a',b') and their associated measures (α,β)(\alpha',\beta'),

Lcϵ(α,β)Lcϵ(α,β)R2(aa1+bb1).\left|\MK_c^\epsilon(\alpha',\beta')-\MK_c^\epsilon(\alpha,\beta)\right| \leq \frac{R}{2}\left(\|a'-a\|_1+\|b'-b\|_1\right).

Because N,MN,M are fixed, the fourth moments of na^na1\sqrt n\|\hat a_n-a\|_1 and nb^nb1\sqrt n\|\hat b_n-b\|_1 are uniformly bounded. The squared rescaled OT values are therefore uniformly integrable. The Gaussian limit then yields convergence of the means and second moments, which proves the assertions for Bn,nϵB_{n,n}^\epsilon, Zn,nϵZ_{n,n}^\epsilon, and the variance.

For fixed ϵ>0\epsilon>0, the entropic value is twice continuously differentiable in a neighborhood of the positive pair (a,b)(a,b). A second-order Taylor expansion on this neighborhood has a uniformly bounded remainder; its linear term has zero expectation and E(a^na2+b^nb2)=O(n1)\mathbb E(\|\hat a_n-a\|^2+\|\hat b_n-b\|^2)=O(n^{-1}). The probability of leaving the neighborhood is exponentially small, and the preceding global Lipschitz bound controls its contribution. Hence Bn,nϵ=O(n1)B_{n,n}^\epsilon=O(n^{-1}).

The uniqueness assumption at ϵ=0\epsilon=0 is substantive. Without it, the directional delta method gives the generally non-Gaussian limit

sup(f,g)Dc(α,β){if(xi)(Ga)i+jg(yj)(Gb)j},\sup_{(f,g)\in\mathcal D_c(\alpha,\beta)} \left\{ \sum_i f(x_i)(G_a)_i+ \sum_j g(y_j)(G_b)_j \right\},

where Dc(α,β)\mathcal D_c(\alpha,\beta) is the set of optimal dual pairs modulo the additive gauge. Its expectation need not vanish, so the exact-OT bias can then have order n1/2n^{-1/2} rather than being negligible at the central-limit scale Sommerfeld & Munk, 2018Tameling et al., 2019.

Fixed Support Versus a Continuum

Proposition: Finite-Space Bias and CLT for OT keeps the support sizes NN and MM fixed while nn grows. More explicitly, its limiting variable is

i=1Nfϵ(xi)(Ga)i+j=1Mgϵ(yj)(Gb)j,{Cov(Ga)=diag(a)aa,Cov(Gb)=diag(b)bb.\sum_{i=1}^{N}f_\epsilon^\star(x_i)(G_a)_i + \sum_{j=1}^{M}g_\epsilon^\star(y_j)(G_b)_j, \qquad \begin{cases} \operatorname{Cov}(G_a)=\operatorname{diag}(a)-aa^\top,\\ \operatorname{Cov}(G_b)=\operatorname{diag}(b)-bb^\top. \end{cases}

The variance does not necessarily diverge with N,MN,M: for a uniformly bounded cost, normalized dual potentials have bounded oscillation, hence vϵ\mathsf{v}_\epsilon remains bounded. What fails to be uniform is the differentiability argument. If amin=miniaia_{\min}=\min_i a_i and bmin=minjbjb_{\min}=\min_j b_j, then

P[some source or target atom is unobserved]Nenamin+Menbmin.\mathbb P[\text{some source or target atom is unobserved}] \leq N e^{-n a_{\min}}+M e^{-n b_{\min}}.

For nearly uniform weights, making this probability vanish already requires both nNlogNn\gg N\log N and nMlogMn\gg M\log M. Moreover, exact-dual uniqueness margins can close as the supports become dense, while entropic Hessian bounds can deteriorate with the smallest weights and as ϵ0\epsilon\downarrow0. Thus the constant hidden in the bias estimate may grow even when the first-order variance stays bounded.

There is therefore no distribution-free passage from this multinomial CLT to arbitrary continuous laws. Continuous CLTs nevertheless hold under hypotheses ensuring stable unique potentials, with limiting variance Varα(fϵ)+Varβ(gϵ)\operatorname{Var}_\alpha(f_\epsilon^\star)+ \operatorname{Var}_\beta(g_\epsilon^\star) in the independent two-sample setting Barrio & Loubes, 2019Barrio et al., 2021Mena & Niles-Weed, 2019González-Sanz & Hundrieser, 2023. The first-order description ceases to be informative in degenerate regimes. For instance, when ϵ=0\epsilon=0, c=dpc=\dist^p, and α=β\alpha=\beta, the first derivative vanishes; the two-sample empirical cost Ldp(α^n,β^n)\MK_{\dist^p}(\hat\alpha_n,\hat\beta_n) is instead governed by the dimension-dependent matching behavior studied in Sample Complexity. This is where the curse of dimensionality re-enters. The first derivative of the debiased Sinkhorn divergence also vanishes under the null, so its nontrivial limit is of second order Goldfeld et al., 2024.

Sketching Sinkhorn in Linear Time

The statistical results above explain why entropic OT is attractive at fixed temperature, but they also expose a computational tension. Sampling the marginals replaces the input laws by empirical measures and reduces the problem to finitely many support points; subsampling or coarsening these supports is governed by the sample-complexity estimates of this chapter. Even after the supports are fixed, however, a Sinkhorn sweep still costs O(nm)O(nm), because it repeatedly applies the Gibbs kernel to vectors. Kernel sketching attacks this second bottleneck: it keeps the sampled marginals fixed and samples, or otherwise compresses, the feature representation of the kernel used by Sinkhorn. With a rank RR factorization, NitN_{\rm it} scaling sweeps cost O(Nit(n+m)R)O(N_{\rm it}(n+m)R), which is linear in the support sizes only when both the required rank and the iteration count are controlled. The rank generally depends on dimension, temperature, and target accuracy.

PSD Kernels and Ordinary Feature Sketches

The RKHS/MMD section, Dual RKHS Norms and Maximum Mean Discrepancies, already used positive semidefinite kernels to define Hilbertian discrepancies between measures. Recall that a symmetric kernel k:X×XRk:\Xx\times\Xx\to\RR is positive semidefinite if, for every finite family (xi)i=1n(x_i)_{i=1}^n, the Gram matrix (k(xi,xj))ij(k(x_i,x_j))_{ij} is positive semidefinite. Many scalable kernel methods start from an integral feature representation

k(x,y)=Zϕ(x,z),ϕ(y,z)Rpdξ(z),ϕ:X×ZRp,k(x,y)=\int_Z \dotp{\phi(x,z)}{\phi(y,z)}_{\RR^p}\,d\xi(z), \qquad \phi:\Xx\times Z\to\RR^p,

where ξ\xi is a latent distribution. Drawing z1,,zrξz_1,\ldots,z_r\sim\xi gives

k~r(x,y)=1r=1rϕ(x,z),ϕ(y,z)Rp.\widetilde k_r(x,y) = \frac1r\sum_{\ell=1}^r \dotp{\phi(x,z_\ell)}{\phi(y,z_\ell)}_{\RR^p}.

This is the classical random-feature principle. Given two point families (xi)i=1n(x_i)_{i=1}^n and (yj)j=1m(y_j)_{j=1}^m, define the rectangular cross-kernel matrix KRn×mK\in\RR^{n\times m} by Kij=k(xi,yj)K_{ij}=k(x_i,y_j). Set R=rpR=rp, flatten (,q)(\ell,q) into a single feature index, and define

(ΦX)i,(,q)=r1/2ϕq(xi,z),(ΦY)j,(,q)=r1/2ϕq(yj,z),K~=ΦXΦY.(\Phi_X)_{i,(\ell,q)}=r^{-1/2}\phi_q(x_i,z_\ell), \qquad (\Phi_Y)_{j,(\ell,q)}=r^{-1/2}\phi_q(y_j,z_\ell), \qquad \widetilde K=\Phi_X\Phi_Y^\top.

Here ΦXRn×R\Phi_X\in\RR^{n\times R}, ΦYRm×R\Phi_Y\in\RR^{m\times R}, and

K~ij=1r=1rϕ(xi,z),ϕ(yj,z)Rp=k~r(xi,yj).\widetilde K_{ij} = \frac1r\sum_{\ell=1}^r \dotp{\phi(x_i,z_\ell)}{\phi(y_j,z_\ell)}_{\RR^p} = \widetilde k_r(x_i,y_j).

Although KK is generally rectangular and hence is not itself a Gram matrix, it is a cross-block of the Gram matrix evaluated on the union of the two point families. When the families coincide, ΦX=ΦY=Φ\Phi_X=\Phi_Y=\Phi, and the construction reduces to the symmetric approximation K~=ΦΦ\widetilde K=\Phi\Phi^\top. The number rr of sampled latent variables is thus a second sample size, distinct from nn and mm. At this stage no positivity of ϕ\phi is assumed; signed or oscillatory features are exactly what make Fourier sketches useful.

For translation-invariant kernels on Rd\RR^d, Bochner’s theorem gives the standard Fourier sketch. If k(x,y)=κ(xy)k(x,y)=\kappa(x-y) and κ(t)=eiω,tdΛ(ω)\kappa(t)=\int e^{i\dotp{\omega}{t}}\,d\Lambda(\omega), with Λ\Lambda a positive spectral measure, one may use real features ϕ(x,ω)=(cosω,x,sinω,x)\phi(x,\omega)=(\cos\dotp{\omega}{x},\sin\dotp{\omega}{x}). For the Gaussian kernel kσ(x,y)=exp(xy2/(2σ2))k_\sigma(x,y)=\exp(-\norm{x-y}^2/(2\sigma^2)), this corresponds to ωN(0,σ2Id)\omega\sim\mathcal N(0,\sigma^{-2}\Id). This random Fourier feature construction was introduced by Rahimi and Recht to accelerate large-scale kernel machines Rahimi & Recht, 2007; its statistical role for kernel ridge regression and related supervised methods is analyzed, for instance, in Rudi & Rosasco, 2017Avron et al., 2017.

The following concentration bound assesses the entrywise quality of the rectangular sketch (69). This is the relevant control when the kernel will subsequently be used inside logarithms or componentwise divisions.

Proof

For each fixed (i,j)(i,j), the summands in the definition of K~ij\widetilde K_{ij} have expectation KijK_{ij} and lie in [M,M][-M,M]. Hoeffding’s inequality therefore gives

P(K~ijKij>δKij)2exp(rδ2Kij22M2)2exp(rδ2Kmin22M2).\mathbb P\left( \left|\widetilde K_{ij}-K_{ij}\right|>\delta K_{ij} \right) \leq 2\exp\left(-\frac{r\delta^2K_{ij}^2}{2M^2}\right) \leq 2\exp\left(-\frac{r\delta^2K_{\min}^2}{2M^2}\right).

A union bound over the nmnm entries proves (72). On its complementary event, write K~ij=Kij(1+sij)\widetilde K_{ij}=K_{ij}(1+s_{ij}), where sijδ1/2|s_{ij}|\leq\delta\leq1/2. Hence K~ij>0\widetilde K_{ij}>0, and log(1+sij)2sij|\log(1+s_{ij})|\leq2|s_{ij}| gives the logarithmic estimate.

Application to Sinkhorn Kernels

Let

α=i=1naiδxi,β=j=1mbjδyj.\alpha=\sum_{i=1}^n a_i\delta_{x_i}, \qquad \beta=\sum_{j=1}^m b_j\delta_{y_j}.

Specialize the preceding construction to the Gibbs kernel kϵ(x,y)=ec(x,y)/ϵk_\epsilon(x,y)=e^{-c(x,y)/\epsilon}, assumed to be PSD and to admit the displayed feature representation. Thus the rectangular matrix defined above is precisely the Sinkhorn kernel, Kij=kϵ(xi,yj)K_{ij}=k_\epsilon(x_i,y_j). Assume that the weights and the entries of KK are positive. Recall the Sinkhorn scaling equations (8):

u=aKv,v=bKu,u=\frac{a}{Kv}, \qquad v=\frac{b}{K^\top u},

where divisions are componentwise. Replacing KK by its rank-RR sketch (69), the two matrix-vector products are evaluated as

K~v=ΦX(ΦYv),K~u=ΦY(ΦXu),\widetilde K v=\Phi_X(\Phi_Y^\top v), \qquad \widetilde K^\top u=\Phi_Y(\Phi_X^\top u),

so each scaling sweep costs O((n+m)R)O((n+m)R) operations and stores only O((n+m)R)O((n+m)R) numbers. The difficulty is that Sinkhorn is not a generic kernel method: it divides by K~v\widetilde K v and, in dual variables, applies logarithms. Thus one needs K~ij>0\widetilde K_{ij}>0, preferably with a relative error on the entries, because ϵlogKij-\epsilon\log K_{ij} is the effective cost. This is a more stringent requirement than the usual spectral or Frobenius approximation of a PSD Gram matrix.

The interaction between kernel accuracy and scaling accuracy can be quantified for Gaussian kernels. The following specialization of the Nyström--Sinkhorn analysis of Altschuler, Bach, Rudi and Niles-Weed Altschuler et al., 2018Altschuler et al., 2019 uses ϵ\epsilon for the entropic temperature and τ\tau for the requested numerical accuracy. We write O~\widetilde O for bounds up to logarithmic factors in NN, 1/τ1/\tau, and 1/δ1/\delta.

Proof

Apply the Gaussian Nyström approximation to the Gram matrix on the union of the NN support points and retain its source--target block. Since xy2D\norm{x-y}\leq2D, one has Kmine4D2/ϵK_{\min}\geq e^{-4D^2/\epsilon}. The adaptive stopping rule of Altschuler, Bach, Rudi and Niles-Weed resolves the kernel below this scale, hence produces K~>0\widetilde K>0 with the same logarithmic control singled out in Proposition: Entrywise Accuracy of Rectangular Feature Sketches. Their Gaussian effective-dimension estimate gives (79). Stability of entropic OT with respect to logK\log K, followed by approximate Sinkhorn scaling and rounding, gives the two error bounds. The low-rank factorization costs O(NR2)O(NR^2) to construct, each kernel product costs O(NR)O(NR), and the quantitative scaling bound contributes O~(NRD4/(ϵτ))\widetilde O(NRD^4/(\epsilon\tau)), yielding the stated time and memory estimates. Their entropy convention differs from the KL-normalized value Lcϵ\MK_c^\epsilon only by a constant depending on (a,b)(a,b), so the approximation bounds are unchanged.

The power dd in (79) is the principal limitation. Sinkhorn requires K~>0\widetilde K>0 and control of logK~\log\widetilde K, so an additive kernel approximation must resolve entries as small as e4D2/ϵe^{-4D^2/\epsilon}. The Gaussian effective dimension at this resolution scales as (D2/ϵ)d(D^2/\epsilon)^d, up to logarithmic factors. For example, when n=mn=m and both measures are uniform, 0LcϵLcϵlogn0\leq\MK_c^\epsilon-\MK_c\leq\epsilon\log n. Approximating unregularized OT to accuracy τ\tau therefore calls for ϵ\epsilon of order τ/logn\tau/\log n, and the sufficient rank scales as τd\tau^{-d} up to powers of DD and logarithmic factors. This is the dimension-dependent price of the sketch; replacing dd by a smaller intrinsic dimension is possible under additional geometric assumptions on the data Altschuler et al., 2019.

Positive Features and Complete Positivity

The preceding analysis identifies positivity as a central bottleneck: a signed sketch may require many features merely to avoid negative entries, whereas Sinkhorn repeatedly divides by kernel--vector products and therefore cannot tolerate this failure. A natural remedy is to build entrywise nonnegativity into every sketch by using nonnegative features; under a mild nondegeneracy condition, the resulting entries are strictly positive. Not every positive semidefinite and pointwise-positive kernel admits such a representation, however. We therefore first identify the matrix and kernel classes for which positive sketches are possible. In finite dimension, let

DNNn={ARn×n:A0, Aij0},CPn={BB:BR+n×q for some q1}.\mathrm{DNN}_n=\{A\in\RR^{n\times n}: A\succeq0,\ A_{ij}\geq0\}, \qquad \mathrm{CP}_n=\{BB^\top: B\in\RR_+^{n\times q}\hbox{ for some }q\geq1\}.

Matrices in DNNn\mathrm{DNN}_n are doubly nonnegative, while matrices in CPn\mathrm{CP}_n are completely positive. One always has CPnDNNn\mathrm{CP}_n\subset\mathrm{DNN}_n, with equality for n4n\leq4 and strict inclusion for n5n\geq5 Berman & Shaked-Monderer, 2003Burer et al., 2009. Thus, from five sampled points onward, positive sketchability is strictly more demanding than being doubly nonnegative: the latter is the spectral and entrywise positivity condition desirable for stable Sinkhorn kernels, whereas the former guarantees nonnegative low-rank features and hence positive Sinkhorn sketches. This gap does not occur for ordinary sketches, where no sign constraint is imposed on the features: spectral positivity is equivalent to the existence of a possibly signed Hilbert feature representation. It appears only when one insists that every feature, and hence every finite sketch, be pointwise nonnegative. Checking membership in the completely positive cone is computationally hard: strong membership is NP-hard, and weak membership for the completely positive cone and its copositive dual is NP-hard Dickinson & Gijben, 2014.

A concrete five-point obstruction is provided by the periodic kernel

kλ(x,y)=λ+cos2(xy2),λ>0.k_\lambda(x,y)=\lambda+\cos^2\left(\frac{x-y}{2}\right), \qquad \lambda>0.

It is PSD and strictly positive pointwise because cos2(t/2)=(1+cost)/2\cos^2(t/2)=(1+\cos t)/2 has nonnegative Fourier coefficients. Yet, for λ=1/20\lambda=1/20, its Gram matrix KK on five equally spaced points is not completely positive. Indeed, the Horn copositive matrix HH is nonnegative on CP5\mathrm{CP}_5, whereas

H,K=214552<0.\langle H,K\rangle = \frac{21}{4}-\frac{5\sqrt5}{2}<0.

Thus KDNN5CP5K\in\mathrm{DNN}_5\setminus\mathrm{CP}_5, as displayed in Figure Notebook-code.

<IPython.core.display.Image object>

Interactive panel. Change the offset to compare an entrywise positive PSD kernel matrix with the Horn certificate obstructing complete positivity.

A doubly positive kernel is equivalently PSD and pointwise nonnegative.

Proof

If kk has positive features, then on x1,,xnx_1,\ldots,x_n,

K=q=1pZvq(z)vq(z)dξ(z),vq(z):=(ϕq(xi,z))i=1n0.K=\sum_{q=1}^p\int_Zv_q(z)v_q(z)^\top\,d\xi(z), \qquad v_q(z):=(\phi_q(x_i,z))_{i=1}^n\geq0.

The integrand belongs to the closed convex cone CPn\mathrm{CP}_n, hence so does KK.

The zero kernel is trivial. Otherwise, choose a dkd_k-dense sequence (xi)(x_i) and positive weights (ωi)(\omega_i) such that 0<S:=iωik(xi,xi)<+0<S:=\sum_i\omega_i k(x_i,x_i)<+\infty. Factor each finite Gram matrix as K(r)=B(r)(B(r))K^{(r)}=B^{(r)}(B^{(r)})^\top. If bb_\ell are its nonzero columns, set t=irωi(b)i2t_\ell=\sum_{i\leq r}\omega_i(b_\ell)_i^2, Sr=tS_r=\sum_\ell t_\ell, and zi(r,)=Sr/t(b)iz_i^{(r,\ell)}=\sqrt{S_r/t_\ell}(b_\ell)_i for iri\leq r, with zero coordinates afterward. The probability measures

ξr:=tSrδz(r,)\xi_r:=\sum_\ell\frac{t_\ell}{S_r}\delta_{z^{(r,\ell)}}

are supported on the compact product i[0,S/ωi]\prod_i[0,\sqrt{S/\omega_i}] and satisfy zizjdξr=k(xi,xj)\int z_i z_j\,d\xi_r=k(x_i,x_j) for i,jri,j\leq r. A weak limit ξ\xi gives scalar nonnegative features ϕ(xi,z)=zi\phi(x_i,z)=z_i. Their L2(ξ)L^2(\xi)-distance is dk(xi,xj)d_k(x_i,x_j), so they extend by continuity to all xXx\in\Xx, remain nonnegative, and have inner products k(x,y)k(x,y).

The separability assumption holds for continuous kernels on separable metric spaces. It cannot be omitted for a common probability feature space: the delta kernel on an uncountable discrete set has completely positive finite Gram matrices but would require uncountably many pairwise orthogonal nonzero elements of L+2(ξ)L^2_+(\xi). For a rectangular source--target matrix, the proposition is applied to the Gram matrix on the union of the two point sets, after which one extracts the rectangular cross block.

Despite this certification difficulty, completely positive kernels, equivalently positive-sketchable kernels under the preceding proposition, enjoy a useful closure algebra. It provides a systematic way to construct new kernels whose low-rank features remain nonnegative.

Proof

On an arbitrary finite point set, nonnegative sums are handled by concatenating nonnegative factors. If Kj=BjBjK_j=B_jB_j^\top, then

K1K2=,s((B1),(B2),s)((B1),(B2),s),K_1\odot K_2 = \sum_{\ell,s} \big((B_1)_{\cdot,\ell}\odot(B_2)_{\cdot,s}\big) \big((B_1)_{\cdot,\ell}\odot(B_2)_{\cdot,s}\big)^\top,

so pointwise products are completely positive. Measurable nonnegative mixtures remain in the closed convex cone CPn\mathrm{CP}_n. The autocorrelation formula is directly a scalar positive-feature representation, so the same integral argument applies.

For the quadratic cost c(x,y)=xy2c(x,y)=\norm{x-y}^2, the Gaussian Gibbs kernel used by Sinkhorn admits an especially simple positive feature representation, which is the construction exploited by Scetbon and Cuturi Scetbon & Cuturi, 2020. The same construction extends to the generalized Gaussian kernels exyp/ϵe^{-\norm{x-y}^p/\epsilon} for 0<p20<p\leq2, because these kernels are mixtures of Gaussian kernels. This is the Schoenberg--Bernstein mechanism behind the positive definiteness of radial stable kernels Schoenberg, 1938Berg et al., 1984.

Proof

The stable-law normalization gives

EetΛ=exp(taϵ),\mathbb E e^{-t\Lambda} = \exp\left(-\frac{t^a}{\epsilon}\right),

while, conditionally on Λ\Lambda, the Gaussian moment-generating function gives

EZ[ϕp,ϵ(x;Λ,Z)ϕp,ϵ(y;Λ,Z)]=eΛxy2.\mathbb E_Z\left[ \phi_{p,\epsilon}(x;\Lambda,Z) \phi_{p,\epsilon}(y;\Lambda,Z) \right] =e^{-\Lambda\norm{x-y}^2}.

Taking t=xy2t=\norm{x-y}^2 in the first identity proves the feature formula, and averaging independent copies proves unbiasedness.

Positive Sketches for Sinkhorn

For the pp-power cost cp(x,y)=xypc_p(x,y)=\norm{x-y}^p, with 0<p20<p\leq2, let

Ki,j=kp,ϵ(xi,yj)=exp(xiyjpϵ).K_{i,j}=k_{p,\epsilon}(x_i,y_j) = \exp\left(-\frac{\norm{x_i-y_j}^p}{\epsilon}\right).

The factor 1/p1/p, often used in the definition of WppW_p^p, only rescales ϵ\epsilon. For p1p\geq1, this is the usual pp-Wasserstein power cost; for 0<p<10<p<1, it should be read simply as a concave power transport cost. Using the sketching features φ\varphi_\ell of Proposition Proposition: Generalized Gaussian Positive Features, define directly

(ΦX)i,=φ(xi),(ΦY)j,=φ(yj).(\Phi_X)_{i,\ell}=\varphi_\ell(x_i), \qquad (\Phi_Y)_{j,\ell}=\varphi_\ell(y_j).

The proposition gives Kr:=ΦXΦY0K_r:=\Phi_X\Phi_Y^\top\geq0 entrywise and E[Kr]=K\mathbb E[K_r]=K. Sinkhorn applied to KrK_r uses only products by the two feature matrices, and its plan is represented as

Pr=diag(u)ΦXΦYdiag(v)=LR,L=diag(u)ΦX,R=diag(v)ΦY.P_r = \diag(u)\Phi_X\Phi_Y^\top\diag(v) = LR^\top, \qquad L=\diag(u)\Phi_X, \quad R=\diag(v)\Phi_Y .

This route is complementary to worst-case near-linear Sinkhorn analyses Altschuler et al., 2017, low-rank Gaussian-kernel approximations for quadratic transport Altschuler et al., 2018, and factored-coupling models in which the coupling itself is constrained to have low rank Scetbon et al., 2021.

Figure Notebook-code uses the p=2p=2 Gaussian Gibbs kernel. A sufficiently large rank gives a visually accurate plan and entrywise logarithm of the kernel matrix, whereas coarse sketches preserve the marginals but lose geometric concentration.

<IPython.core.display.Image object>

The top row shows the entropic couplings. The bottom row displays the entries ϵlog(Kr)i,j-\epsilon\log (K_r)_{i,j} with black level sets, compared with the exact quadratic cost xiyj2|x_i-y_j|^2 in the first column. Rank 40 remains close to the dense computation, while ranks 10 and 3 preserve the marginals but increasingly blur the transport geometry.

Interactive panel. Change the regularization and random seed to compare the exact Gibbs matrix with positive low-rank sketches and their logarithmic matrices.

Connection with Linear Time Attention

The same algebra appears in transformer attention, studied later from a continuous-depth transport viewpoint in Evolution in Depth of Transformers. A softmax attention matrix has entries proportional to exp(qi,kj)\exp(\dotp{q_i}{k_j}); linear-attention methods replace this positive kernel by features Φ(qi)Φ(kj)\Phi(q_i)^\top\Phi(k_j), so that attention can be applied as Φ(Q)(Φ(K)V)\Phi(Q)(\Phi(K)^\top V) rather than by forming the full n×nn\times n matrix Katharopoulos et al., 2020Choromanski et al., 2021Wang et al., 2020Xiong et al., 2021. Sinkhorn sketching is the transport analogue of this idea: replace the Gibbs matrix by a positive feature factorization, keep only the scaling vectors and feature factors, and control the approximation in the logarithmic scale relevant to entropic potentials. The transport case is more constrained, however, since the approximate kernel is reused inside nonlinear normalizations until the prescribed marginals are reached for the sketched problem.

References
  1. Chen, L. H. Y., Goldstein, L., & Shao, Q.-M. (2011). Normal Approximation by Stein’s Method. Springer.
  2. Berry, A. C. (1941). The Accuracy of the Gaussian Approximation to the Sum of Independent Variates. Transactions of the American Mathematical Society, 49(1), 122–136.
  3. Esseen, C.-G. (1942). On the Liapunoff Limit of Error in the Theory of Probability. Arkiv for Matematik, Astronomi Och Fysik, 28A(9), 1–19.
  4. Bobkov, S. G. (2018). Berry–Esseen bounds and Edgeworth expansions in the central limit theorem for transport distances. Probability Theory and Related Fields, 170, 229–262.
  5. Rio, E. (2011). Asymptotic constants for minimal distance in the central limit theorem. Electronic Communications in Probability, 16, 96–103.
  6. Petrov, V. V. (1975). Sums of Independent Random Variables (Vol. 82). Springer-Verlag. 10.1007/978-3-642-65809-9
  7. Bhattacharya, R. N., & Ranga Rao, R. (2010). Normal Approximation and Asymptotic Expansions (Vol. 64). Society for Industrial. 10.1137/1.9780898719895
  8. Kolassa, J. E., & McCullagh, P. (1990). Edgeworth Series for Lattice Distributions. The Annals of Statistics, 18(2), 981–985. 10.1214/aos/1176347637
  9. Vallender, S. S. (1974). Calculation of the Wasserstein Distance Between Probability Distributions on the Line. Theory of Probability and Its Applications, 18(4), 784–786. 10.1137/1118101
  10. Dudley, R. M. (1969). The speed of mean Glivenko-Cantelli convergence. Annals of Mathematical Statistics, 40(1), 40–50.
  11. Weed, J., & Bach, F. (2019). Sharp asymptotic and finite-sample rates of convergence of empirical measures in Wasserstein distance. Bernoulli, 25(4A), 2620–2648. 10.3150/18-BEJ1065
  12. Ramdas, A., Trillos, N. G., & Cuturi, M. (2017). On Wasserstein two-sample testing and related families of nonparametric tests. Entropy, 19(2), 47.
  13. Dereich, S., Scheutzow, M., & Schottstedt, R. (2013). Constructive quantization: Approximation by empirical measures. Annales de l’Institut Henri Poincaré, Probabilités et Statistiques, 49(4), 1183–1203.
  14. Fournier, N., & Guillin, A. (2015). On the rate of convergence in Wasserstein distance of the empirical measure. Probability Theory and Related Fields, 162(3–4), 707–738.
  15. Singh, S., & Póczos, B. (2018). Minimax Distribution Estimation in Wasserstein Distance. arXiv Preprint arXiv:1802.08855. https://arxiv.org/abs/1802.08855