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.

Entropic Regularization: Sinkhorn Algorithm

Entropic regularization makes optimal transport smooth, strictly convex and scalable. This chapter first explains the discrete KL-regularized problem, derives Sinkhorn’s alternating matrix scaling algorithm, and then rewrites the same construction as a relative-entropy projection problem. It then records the general continuous formulation, develops the dual soft-transform picture, explains the path-space Schrodinger problem behind the static coupling formulation, and presents the main convex regularization variants and the debiased Sinkhorn divergence. A final section records a less standard viewpoint: after fixing the potential gauge, the finite-dimensional Sinkhorn equations admit a local holomorphic continuation to complex values of the temperature.

The presentation connects the older matrix-scaling literature Sinkhorn, 1964Sinkhorn & Knopp, 1967Sinkhorn, 1967 with modern entropic OT Cuturi, 2013Peyré & Cuturi, 2019.

Entropic Regularization for Discrete Measures

Entropy turns a possibly non-unique linear program into a unique smooth problem. The price is bias, but the reward is differentiability and fast scaling algorithms.

Using this entropy as a regularizing function gives the approximate transport value

LCϵ(a,b):=minPU(a,b)P,CϵH(P).\mathcal{L}_{\C}^{\epsilon}(a,b) \eqdef \min_{\P\in\mathbf{U}(a,b)} \langle \P,\C\rangle - \epsilon H(\P).

Equivalently, the regularizer is ϵi,jPi,jlogPi,j\epsilon\sum_{i,j}\P_{i,j}\log \P_{i,j}. It penalizes concentrated couplings and makes the objective strictly convex on the relative interior of the transport polytope.

Proof

The transport polytope is non-empty and compact, and the objective is continuous with the convention 0log0=00\log0=0, so a minimizer exists. On the relative interior,

2H(P)=diag(1/Pi,j)-\partial^2 H(\P)=\operatorname{diag}(1/\P_{i,j})

is positive definite on every non-zero feasible direction. Hence H-H is strictly convex on the polytope, which gives uniqueness.

If ai,bj>0a_i,b_j>0 and a minimizer had Pi,j=0\P_{i,j}=0, then the perturbation Pt=(1t)P+tab\P_t=(1-t)\P+t\,a\otimes b remains feasible for small t>0t>0. The derivative of rlogrr\log r at zero along a positive direction is -\infty, so the objective decreases, contradicting optimality.

Smoothing Effect

The entropy acts as a barrier for positivity and makes LCϵ(a,b)\mathcal{L}_{\C}^{\epsilon}(a,b) smooth in aa, bb, and C\C as long as these variables stay in the relative interior. As ϵ+\epsilon\to+\infty, the minimizer converges to the independent coupling aba\otimes b; as ϵ0\epsilon\to0, it approaches the optimal face of the original transport linear program.

Figure Div visualizes this temperature-dependent path and contrasts it with a generic logarithmic barrier on linear-programming slacks.

<IPython.core.display.Image object>

Entropic regularization and slack barriers. Large ϵ\epsilon selects an interior reference point, while small ϵ\epsilon moves the minimizer toward a low-cost face of the transport polytope. The second row gives the analogous entropy-on-slacks picture for a generic linear program.

Interactive panel. Move the temperature to see the entropic minimizer travel along the central path from the simplex interior toward the linear-programming vertex.

Entropy Barriers Versus Generic LP Barriers

For a generic linear program minzz\min_z \ell^\top z with constraints AzbAz\le b, one can introduce positive slacks s=bAzs=b-Az and penalize them by an entropy. This is a useful analogy, but it is not the standard self-concordant interior-point barrier. The canonical barrier is the Burg, or reverse-KL, barrier ilogsi-\sum_i\log s_i, which leads to Newton systems.

Optimal transport is special because entropy is placed on the entries of P\P, while the constraints are only row and column marginals. This separable structure turns Bregman projections into diagonal rescalings, giving the Sinkhorn iterations.

Sinkhorn’s Algorithm

Sinkhorn’s algorithm is alternating normalization of rows and columns. The key point is that the optimizer of the entropic problem has a multiplicative scaling form.

Proof

After removing zero-mass rows and columns, the minimizer is strictly positive, so the positivity constraint can be ignored in the first-order conditions. Introduce Lagrange multipliers fRnf\in\RR^n and gRmg\in\RR^m for the two marginal constraints. The Lagrangian is

L(P,f,g)=P,C+ϵi,jPi,jlogPi,j+f,aP1+g,bP1.\mathcal{L}(\P,f,g) = \langle \P,\C\rangle + \epsilon\sum_{i,j}\P_{i,j}\log \P_{i,j} + \langle f,a-\P\mathbf 1\rangle + \langle g,b-\P^\top\mathbf 1\rangle .

Stationarity with respect to Pi,j\P_{i,j} gives

Ci,j+ϵ(logPi,j+1)figj=0.\C_{i,j} + \epsilon(\log \P_{i,j}+1) - f_i-g_j =0.

Thus Pi,j=exp((fi+gjCi,j)/ϵ1)\P_{i,j}=\exp((f_i+g_j-\C_{i,j})/\epsilon-1), which is exactly the scaling form after absorbing the one-body terms into uu and vv.

In matrix notation, P=diag(u)Kdiag(v)\P=\operatorname{diag}(u)K\operatorname{diag}(v). The marginal constraints become

u(Kv)=a,v(Ku)=b.u\odot(Kv)=a, \qquad v\odot(K^\top u)=b.

Solving each equation in turn gives Sinkhorn’s algorithm:

u(+1)=aKv(),v(+1)=bKu(+1).u^{(\ell+1)} = \frac{a}{Kv^{(\ell)}}, \qquad v^{(\ell+1)} = \frac{b}{K^\top u^{(\ell+1)}}.

The division is entrywise. The scaling vectors are not unique: multiplying uu by λ>0\lambda>0 and vv by 1/λ1/\lambda leaves P\P unchanged.

Figure Div exposes the alternating feasibility mechanism on a small matrix: each row or column normalization enforces one marginal exactly while generally perturbing the other.

<IPython.core.display.Image object>

Marginal constraints during Sinkhorn scaling. Row normalizations align the red source marginal and leave a blue defect; column normalizations align the blue target marginal and leave a red defect.

The interactive demo exposes the alternating row/column normalization directly. Change the half-step count to see the current coupling acquire one marginal, lose the other, and then converge toward both.

Interactive panel. Use the iteration, regularization, and mass controls to watch Sinkhorn row and column scalings enforce the marginals.

Figure Div shows the same alternating projection mechanism on a dense one-dimensional discretization, where the marginal defects appear as continuous side curves.

<IPython.core.display.Image object>

Dense Sinkhorn scaling for one-dimensional Gaussian-mixture marginals. The violet side curves are the current row and column sums; the red and blue curves are the prescribed marginals.

After convergence, the regularization strength controls how much of the Gibbs kernel remains visible in the optimal plan. Small ϵ\epsilon produces a concentrated transport band, while larger ϵ\epsilon spreads the same marginals into a smoother coupling.

Figure Div compares these converged plans at four temperatures while keeping both marginals fixed.

<IPython.core.display.Image object>

Final Sinkhorn couplings for the same one-dimensional marginals and four regularization strengths. Decreasing ϵ\epsilon sharpens the plan toward an optimal-transport graph; increasing ϵ\epsilon keeps more of the product structure.

Before that, Figure Div tracks the same Sinkhorn scaling in dual variables.

<IPython.core.display.Image object>

KL-normalized dual potentials along the scaling iteration. The logarithmic scaling potentials stabilize as the row/column normalizations converge.

The next interactive demo keeps the iteration count high and varies the temperature. It is the quickest way to see the geometry-bias tradeoff: low temperature is geometric and sharp, high temperature is smooth and closer to independence.

Interactive panel. Use the regularization slider to compare sparse exact-looking couplings with smoother entropic plans and potentials.

Complexity bounds for Sinkhorn and comparisons with accelerated first-order methods are discussed in Altschuler et al., 2017Dvurechensky et al., 2018Knight, 2008. For a dense n×mn\times m problem, each iteration costs one multiplication by KK and one by KK^\top, so the cost scales like CnmCnm for C\C iterations. For fixed positive ϵ\epsilon, the marginal error eventually has a linear regime, but small ϵ\epsilon makes the Gibbs kernel more peaked and scaling harder.

Figure Div complements the complexity discussion by plotting the marginal defect across half-steps and showing how smaller temperatures slow the observed linear regime.

<IPython.core.display.Image object>

Marginal violation along Sinkhorn half-steps for several values of ϵ\epsilon. Smaller ϵ\epsilon gives sharper transport geometry but slower scaling.

Interactive panel. Vary ϵ\epsilon and the conditioning parameters to compare observed residual decay with Hilbert-metric convergence guides.

Reformulation Using Relative Entropy

The KL formulation identifies Sinkhorn as a projection method. It also prepares the continuous and unbalanced settings, where a reference measure is essential.

Relative Entropy

A convenient tool to reformulate and normalize discrete entropy is relative entropy. It turns entropy regularization into a finite-dimensional projection problem and admits a direct measure-theoretic extension.

For matrices with the same total mass, the affine terms cancel and

KL(PQ)=i,jPi,jlogPi,jQi,j.\operatorname{KL}(P|Q) = \sum_{i,j}P_{i,j}\log\frac{P_{i,j}}{Q_{i,j}}.

On fixed-mass couplings, taking Q=1n×mQ=\mathbf 1_{n\times m} is equivalent to subtracting the Shannon--Boltzmann entropy.

Proof

Write ϕ(s)=slogss+1\phi(s)=s\log s-s+1. Then ϕ(s)0\phi(s)\ge0, with equality only at s=1s=1. If PP is not absolutely continuous with respect to QQ, the divergence is infinite. Otherwise,

KL(PQ)=i,j:Qi,j>0Qi,jϕ(Pi,j/Qi,j)0.\operatorname{KL}(P|Q) = \sum_{i,j:\,Q_{i,j}>0}Q_{i,j}\phi(P_{i,j}/Q_{i,j}) \ge0.

Equality forces equality entrywise, including on the zero set of QQ.

KL Reformulation of Regularized OT

Choosing the tensor product ab=(aibj)i,j\a\otimes\b=(\a_i\b_j)_{i,j} as reference measure leads to the normalized problem

minPU(a,b)P,C+ϵKL(Pab).\min_{\P\in\CouplingsD(\a,\b)} \langle \P,\C\rangle + \epsilon\KLD(\P|\a\otimes\b).

For every PU(a,b)\P\in\CouplingsD(\a,\b),

P,C+ϵKL(Pab)=P,CϵH(P)+ϵ(H(a)+H(b)).\langle \P,\C\rangle+\epsilon\KLD(\P|\a\otimes\b) = \langle \P,\C\rangle-\epsilon\HD(\P) +\epsilon\bigl(\HD(\a)+\HD(\b)\bigr).

Hence this problem has exactly the same minimizer as the original entropic OT problem, while its optimal value is LCϵ(a,b)+ϵ(H(a)+H(b))\MKD_\C^\epsilon(\a,\b)+\epsilon(\HD(\a)+\HD(\b)). The normalization becomes substantive in unbalanced OT, where changing the reference measure is no longer merely an additive shift.

Proof

Expand the logarithm and use the marginal constraints:

KL(Pab)=KL(Pab)+iailogaiai+jbjlogbjbj=KL(Pab)KL(aa)KL(bb).\begin{aligned} \operatorname{KL}(P|a\otimes b) &= \operatorname{KL}(P|a'\otimes b') + \sum_i a_i\log\frac{a_i'}{a_i} + \sum_j b_j\log\frac{b_j'}{b_j} \\ &= \operatorname{KL}(P|a'\otimes b') - \operatorname{KL}(a|a') - \operatorname{KL}(b|b'). \end{aligned}

The tensor-product reference is nevertheless useful when supports vary. It makes explicit which entries may vanish and passes cleanly to the continuous formulation.

Figure Div shows how the corresponding KL-normalized dual potentials deform with temperature, from nearly hard Kantorovich potentials to smoother log-sum-exp profiles.

<IPython.core.display.Image object>

KL-normalized Sinkhorn dual potentials for one-dimensional Gaussian-mixture histograms. For ϵ=0.010\epsilon=0.010 the curves are already close to the unregularized one-dimensional Kantorovich potentials; increasing ϵ\epsilon turns this hard cc-transform geometry into smoother log-sum-exp potentials.

Interactive panel. Change ϵ\epsilon to compare the dual potentials with the corresponding entropic coupling.

Proof Sketch

For ϵ0\epsilon\to0, use compactness of the transport polytope and compare the optimality inequalities for the entropic problem against an exact Kantorovich optimizer. The cost gap is bounded by ϵ\epsilon times a KL difference, so every cluster point is cost-optimal; after dividing by ϵ\epsilon, the cluster point is the KL-minimizer on the optimal face.

For ϵ+\epsilon\to+\infty, subtract a constant from CC so that C0C\ge0. Testing the objective at aba\otimes b gives

KL(Pϵab)C,abϵ,\operatorname{KL}(P_\epsilon|a\otimes b) \le \frac{\langle C,a\otimes b\rangle}{\epsilon},

so the KL divergence to aba\otimes b vanishes.

Figure Div illustrates the two limiting regimes established above: the plan approaches a sparse optimal coupling as ϵ0\epsilon\downarrow0 and the product coupling as ϵ\epsilon grows.

<IPython.core.display.Image object>

Entropically regularized couplings between the red disk and blue annulus point clouds. The plans are strictly positive for every ϵ>0\epsilon>0, but the visible mass pattern evolves from nearly radial and sparse to diffuse as ϵ\epsilon increases.

Interactive panel. Use the same temperature control to see positivity, diffusion, and sharpening of entropic couplings in a one-dimensional setting.

General Formulation

The continuous formulation replaces matrices by measures and discrete KL by relative entropy. This section records the measure-theoretic problem, explains how the temperature ϵ\epsilon connects exact transport to the independent product coupling, and states the two asymptotic regimes that are useful later: a large-temperature expansion around independence and a small-temperature expansion around quadratic optimal transport.

Measure Formulation

The only structural change from the discrete problem is that matrix entries are replaced by densities with respect to a product reference measure. For probability measures α\alpha and β\beta, define

Lcϵ(α,β):=minπΠ(α,β)X×Yc(x,y)dπ(x,y)+ϵKL(παβ).\mathcal{L}_{c}^{\epsilon}(\alpha,\beta) \eqdef \min_{\pi\in\Couplings(\alpha,\beta)} \int_{\X\times\Y}c(x,y)\,\d\pi(x,y) + \epsilon\operatorname{KL}(\pi|\alpha\otimes\beta).

For fixed balanced marginals, the specific product reference only matters up to additive constants, provided the reference marginals are mutually absolutely continuous with α\alpha and β\beta. Its support still matters: it determines which couplings have finite entropy.

Probabilistic Interpretation

With this terminology, the entropic problem is

infXα,  YβE(c(X,Y))+ϵI(X,Y).\inf_{X\sim\alpha,\;Y\sim\beta} \mathbb E(c(X,Y))+\epsilon\mathcal I(X,Y).

Large ϵ\epsilon favors nearly independent endpoints, while small ϵ\epsilon suppresses endpoint randomness and recovers an optimal Monge--Kantorovich coupling in the limit. When the unregularized quadratic problem has a Brenier map, this limiting coupling is deterministic.

Sinkhorn for General Measures

The multiplicative scaling structure extends from matrices to positive functions. Define the Gibbs kernel and its two integral operators by

kϵ(x,y):=exp ⁣(c(x,y)ϵ),(Kϵv)(x):=Ykϵ(x,y)v(y)dβ(y),(Kϵu)(y):=Xkϵ(x,y)u(x)dα(x).\begin{aligned} k_\epsilon(x,y)&\eqdef\exp\!\left(-\frac{c(x,y)}{\epsilon}\right),\\ (\mathcal K_\epsilon v)(x) &\eqdef\int_\Yy k_\epsilon(x,y)v(y)\d\be(y), & (\mathcal K_\epsilon^*u)(y) &\eqdef\int_\Xx k_\epsilon(x,y)u(x)\d\al(x). \end{aligned}

Fubini’s theorem gives the adjoint identity XuKϵvdα=YvKϵudβ\int_\Xx u\mathcal K_\epsilon v\d\al =\int_\Yy v\mathcal K_\epsilon^*u\d\be. For compact marginal supports and continuous cc, Propositions Proposition: Continuous Entropic Duality and Proposition: Existence and Uniqueness of Entropic Dual Potentials provide optimal dual potentials (fϵ,gϵ)(f_\epsilon,g_\epsilon). Set uϵ=efϵ/ϵu_\epsilon=e^{f_\epsilon/\epsilon} and vϵ=egϵ/ϵv_\epsilon=e^{g_\epsilon/\epsilon}. The continuous density law (54) then becomes

dπϵd(αβ)(x,y)=uϵ(x)kϵ(x,y)vϵ(y),\frac{\d\pi_\epsilon}{\d(\al\otimes\be)}(x,y) =u_\epsilon(x)k_\epsilon(x,y)v_\epsilon(y),

Because αβ\al\otimes\be already contains the prescribed marginals, their target densities with respect to α\al and β\be are both one. Thus

uϵKϵvϵ=1α-a.e.,vϵKϵuϵ=1β-a.e.u_\epsilon\mathcal K_\epsilon v_\epsilon=1 \quad \al\text{-a.e.}, \qquad v_\epsilon\mathcal K_\epsilon^*u_\epsilon=1 \quad \be\text{-a.e.}

Starting, for instance, from v(0)=1v^{(0)}=1, continuous Sinkhorn alternately enforces these two identities:

u(+1)=1Kϵv(),v(+1)=1Kϵu(+1).u^{(\ell+1)}=\frac{1}{\mathcal K_\epsilon v^{(\ell)}}, \qquad v^{(\ell+1)}=\frac{1}{\mathcal K_\epsilon^*u^{(\ell+1)}}.

Equivalently, pointwise,

u(+1)(x)=1Ykϵ(x,y)v()(y)dβ(y),v(+1)(y)=1Xkϵ(x,y)u(+1)(x)dα(x).\begin{aligned} u^{(\ell+1)}(x) &=\frac{1}{\displaystyle\int_\Yy k_\epsilon(x,y)v^{(\ell)}(y)\d\be(y)},\\ v^{(\ell+1)}(y) &=\frac{1}{\displaystyle\int_\Xx k_\epsilon(x,y)u^{(\ell+1)}(x)\d\al(x)}. \end{aligned}

Given v()v^{(\ell)}, the first update produces an intermediate coupling with X\Xx-marginal α\al; the second produces one with Y\Yy-marginal β\be, while generally perturbing the first marginal again. The scalings retain the gauge (u,v)(λu,v/λ)(u,v)\mapsto(\lambda u,v/\lambda).

There is one useful situation in which no iteration is required: choose the target by applying the normalized Gibbs kernel itself to the source.

Proof

By construction, pϵ(x,)dβ0p_\epsilon(x,\cdot)\d\beta_0 is a probability measure. Fubini’s theorem therefore shows that (31) has first marginal α\alpha and second marginal βϵ\beta_\epsilon.

Let γΠ(α,βϵ)\gamma\in\Couplings(\alpha,\beta_\epsilon) have finite objective. Since ϵlogkϵ=c-\epsilon\log k_\epsilon=c, the displayed density of πϵ\pi_\epsilon gives

ϵKL(γπϵ)=cdγ+ϵKL(γαβϵ)+ϵlogZϵdα+ϵlogqϵdβϵ.\epsilon\KL(\gamma|\pi_\epsilon) = \int c\,\d\gamma + \epsilon\KL(\gamma|\alpha\otimes\beta_\epsilon) + \epsilon\int\log Z_\epsilon\,\d\alpha + \epsilon\int\log q_\epsilon\,\d\beta_\epsilon.

The last two terms depend only on the prescribed marginals. Minimizing the entropic objective is therefore equivalent to minimizing KL(γπϵ)\KL(\gamma|\pi_\epsilon), whose unique minimizer is γ=πϵ\gamma=\pi_\epsilon.

If kϵ(x,)k_\epsilon(x,\cdot) is already normalized with respect to β0\beta_0, then Zϵ=1Z_\epsilon=1 and (30) reduces to

dβϵdβ0(y)=Xkϵ(x,y)dα(x).\frac{\d\beta_\epsilon}{\d\beta_0}(y) = \int_\X k_\epsilon(x,y)\d\alpha(x).

For example, let X=Y=Rd\X=\Y=\RR^d, let β0\beta_0 be Lebesgue measure, and take c(x,y)=xy2c(x,y)=\norm{x-y}^2. Then Zϵ=(πϵ)d/2Z_\epsilon=(\pi\epsilon)^{d/2} and

pϵ(x,y)=(πϵ)d/2exy2/ϵ,βϵ=αN ⁣(0,ϵ2Id).p_\epsilon(x,y) = (\pi\epsilon)^{-d/2}e^{-\norm{x-y}^2/\epsilon}, \qquad \beta_\epsilon = \alpha*\Gaussian\!\left(0,\frac{\epsilon}{2}\Id\right).

Equivalently, the closed-form coupling is the law of (X,X+ϵ/2G)(X,X+\sqrt{\epsilon/2}\,G) for independent XαX\sim\alpha and GN(0,Id)G\sim\Gaussian(0,\Id). Time-indexed Gaussian blurrings are the forward noising mechanism behind diffusion models, with an additional deterministic rescaling for variance-preserving Ornstein--Uhlenbeck schedules; see Connection with diffusion models..

For discrete measures, setting ui=aiu(xi)\uD_i=\a_i u(x_i) and vj=bjv(yj)\vD_j=\b_jv(y_j) gives Pi,j=aibju(xi)Ki,jv(yj)=uiKi,jvj\P_{i,j}=\a_i\b_j u(x_i)\K_{i,j}v(y_j)=\uD_i\K_{i,j}\vD_j, so the functional iteration reduces exactly to the matrix Sinkhorn iteration (8). Its logarithmic interpretation as continuous dual block ascent is derived in Dual Sinkhorn for General Measures. Continuous convergence is revisited through a generalized Fortet-type monotonicity argument in Section Sinkhorn Convergence: Monotone Point of View; the finite-dimensional linear rate is studied through Hilbert’s metric in Section Sinkhorn Convergence: Linear Hilbert Metric Rate.

Convergence with ϵ\epsilon

The continuous problem has the same qualitative temperature limits as the finite-dimensional problem, but the zero-temperature selection is subtler. For quadratic transport between smooth densities, the limiting OT plan is typically supported on a graph and is therefore singular with respect to αβ\alpha\otimes\beta. Thus the robust statement is weak convergence of minimizers. This is the standard Γ\Gamma-convergence mechanism for entropic OT Léonard, 2012Carlier et al., 2017; the density hypothesis below isolates the only approximation point needed in the proof.

The proof is the standard Γ\Gamma-convergence argument: the entropy is nonnegative, finite-entropy couplings provide recovery sequences, and Pinsker’s inequality from Theorem Theorem: Pinsker Inequality turns the large-ϵ\epsilon entropy bound into total-variation convergence.

Large-Temperature Expansion

When ϵ\epsilon is large, the entropy dominates and the optimal plan is a small perturbation of the product coupling. The useful object is the part of the cost that cannot be absorbed into row and column potentials. Let r=αβr=\alpha\otimes\beta and define

cˉX(x)=Yc(x,y)dβ(y),cˉY(y)=Xc(x,y)dα(x),cˉ=X×Ycdr,\bar c_\X(x)=\int_\Y c(x,y)\,\d\beta(y),\qquad \bar c_\Y(y)=\int_\X c(x,y)\,\d\alpha(x),\qquad \bar c=\int_{\X\times\Y}c\,\d r,

and

c0(x,y)=c(x,y)cˉX(x)cˉY(y)+cˉ.c_0(x,y)=c(x,y)-\bar c_\X(x)-\bar c_\Y(y)+\bar c.

The coefficient c0c_0 has zero conditional means. The second-order term follows by expanding the constrained exponential tilt and using this conditional orthogonality.

Small-Temperature Expansion for Smooth Densities

At small temperature, entropic transport is a viscous perturbation of quadratic optimal transport. The expansion contains an ϵlogϵ\epsilon\log\epsilon term from the Gaussian normalization of Brownian bridges, an endpoint entropy correction, and a Fisher-information term along the McCann interpolation. The formula below translates the small-noise Schrödinger expansion to the convention xy2+ϵKL(αβ)\|x-y\|^2+\epsilon\operatorname{KL}(\cdot|\alpha\otimes\beta) Conforti & Tamanini, 2021Chizat et al., 2020.

The Brownian entropy used in the proof is relative to the sigma-finite endpoint measure pT(x,y)dxdyp_T(x,y)\,\d x\d y, and therefore uses H(πξ)=log(dπ/dξ)dπ\mathscr H(\pi|\xi)=\int\log(\d\pi/\d\xi)\,\d\pi rather than the finite-measure generalized KL above. This distinction is what fixes the Gaussian normalization and the ϵlogϵ\epsilon\log\epsilon coefficient.

Dual of Sinkhorn

The dual point of view replaces couplings by potentials and soft cc-transforms. It is the right formulation for stabilized implementations and differentiation.

Discrete Dual

The KL-normalized problem has the dual

minPU(a,b)P,C+ϵKL(Pab)=maxf,g[f,a+g,bϵi,jexp(fi+gjCi,jϵ)aibj+ϵ].\min_{\P\in\mathbf U(a,b)} \langle \P,\C\rangle+\epsilon\operatorname{KL}(\P|a\otimes b) = \max_{f,g} \left[ \langle f,a\rangle+\langle g,b\rangle - \epsilon\sum_{i,j} \exp\left(\frac{f_i+g_j-\C_{i,j}}{\epsilon}\right)a_i b_j + \epsilon \right].

The optimal potentials are linked to the scaling variables through

ui=aiefi/ϵ,vj=bjegj/ϵ.u_i=a_i e^{f_i/\epsilon}, \qquad v_j=b_j e^{g_j/\epsilon}.

Discrete Soft cc-Transforms

For fixed gg, maximizing the dual with respect to ff gives

fi=ϵlogjexp(gjCi,jϵ)bj.f_i = -\epsilon\log \sum_j \exp\left(\frac{g_j-\C_{i,j}}{\epsilon}\right)b_j.

This is a smoothed minimum.

Exponentiating the alternating soft-transform iterations recovers Sinkhorn’s algorithm. For small ϵ\epsilon, one must compute the log-sum-exp terms with the usual stabilization trick: subtract the minimum before exponentiating and add it back afterward.

Figure Div visualizes the corresponding soft minimum: decreasing ϵ\epsilon sharpens the smooth best response toward the hard cc-transform envelope.

<IPython.core.display.Image object>

Soft cc-transforms for decreasing temperatures. A positive ϵ\epsilon replaces the hard lower envelope by a log-sum-exp soft minimum.

Interactive panel. Use the epsilon and potential controls to see how the hard c-transform is softened by log-sum-exp smoothing.

Continuous Dual and Soft-Transforms

The continuous formula follows from the same entropy conjugacy as its matrix counterpart; it is not a discretization heuristic.

Proof

Write ξ=αβ\xi=\alpha\otimes\beta and ϕ(r)=rlogrr+1\phi(r)=r\log r-r+1. Every plan with finite objective has a density r=dπ/dξr=\d\pi/\d\xi. Its two marginal constraints read

Yr(x,y)dβ(y)=1α-a.e.,Xr(x,y)dα(x)=1β-a.e.\int_\Y r(x,y)\,\d\beta(y)=1\quad\alpha\text{-a.e.}, \qquad \int_\X r(x,y)\,\d\alpha(x)=1\quad\beta\text{-a.e.}

Introducing potentials (f,g)(f,g) for these constraints gives the Lagrangian

fdα+gdβ+ ⁣[ϵϕ(r)+(cfg)r]dξ.\int f\,\d\alpha+\int g\,\d\beta +\int\!\left[ \epsilon\phi(r)+(c-f-g)r \right]\d\xi.

Since ϕ(s)=es1\phi^*(s)=e^s-1, pointwise minimization over r0r\geq0 yields

infr0{ϵϕ(r)+(cfg)r}=ϵ(e(f+gc)/ϵ1).\inf_{r\geq0} \left\{\epsilon\phi(r)+(c-f-g)r\right\} = -\epsilon\left(e^{(f+g-c)/\epsilon}-1\right).

After integration, this is exactly Dϵ(f,g)\mathcal D_\epsilon(f,g), proving weak duality. Fenchel--Rockafellar entropy duality gives equality: the strictly positive feasible density r1r\equiv1 supplies the qualification point, and cc is bounded on the compact product. Continuity of cc allows the supremum to be restricted to continuous potentials, since the soft transforms turn bounded potentials into continuous ones without lowering the dual value.

At primal--dual optimality, equality in the Fenchel inequality forces rr^\star to be the unique pointwise minimizer. Its first-order condition is ϵlogr+cfg=0\epsilon\log r^\star+c-f^\star-g^\star=0, which gives the displayed density formula after exponentiation.

This is the smooth counterpart of the hard feasibility constraint fgcf\oplus g\le c from the Kantorovich dual.

Proof Sketch

Normalize potentials by imposing fdα=0\int f\,\d\alpha=0. Replacing a pair of potentials by the corresponding soft transforms does not decrease the dual objective. The transformed potentials have oscillations bounded by the oscillation of cc, and their modulus of continuity is controlled by the modulus of continuity of cc. Arzela--Ascoli gives existence.

Uniqueness on the supports, up to constants, follows from strict convexity of HeH/ϵd(αβ)H\mapsto\int e^{H/\epsilon}\d(\alpha\otimes\beta) on the image of (f,g)fgc(f,g)\mapsto f\oplus g-c, modulo constants.

Dual Sinkhorn for General Measures

The soft transforms are not only regularized analogues of hard cc-transforms: they are the exact block-maximization steps of the continuous dual objective (53). Indeed, for fixed gg and hC(X)h\in\Cc(\X),

ddsDϵ(f+sh,g)s=0=Xh(x)[1ef(x)/ϵYe(g(y)c(x,y))/ϵdβ(y)]dα(x).\left.\frac{\d}{\d s}\mathcal D_\epsilon(f+s h,g)\right|_{s=0} = \int_\X h(x)\left[ 1-e^{f(x)/\epsilon} \int_\Y e^{(g(y)-c(x,y))/\epsilon}\d\beta(y) \right]\d\alpha(x).

Hence exact maximization first over ff and then over gg gives

f(+1)=(g())cˉ,ϵ,g(+1)=(f(+1))c,ϵ.f^{(\ell+1)}=(g^{(\ell)})^{\bar c,\epsilon}, \qquad g^{(\ell+1)}=(f^{(\ell+1)})^{c,\epsilon}.

The transforms are those of Definition Definition: Continuous Soft cc-Transforms. Their decorations record their domains: the cˉ\bar c-transform sends a potential on Y\Y to one on X\X, whereas the cc-transform sends a potential on X\X to one on Y\Y.

This dual iteration is exactly the logarithmic form of the continuous scaling iteration (27). Set u()=ef()/ϵu^{(\ell)}=e^{f^{(\ell)}/\epsilon} and v()=eg()/ϵv^{(\ell)}=e^{g^{(\ell)}/\epsilon}. Exponentiating the dual updates and using the kernel operators (24) gives

u(+1)=1Kϵv(),v(+1)=1Kϵu(+1).u^{(\ell+1)}=\frac{1}{\mathcal K_\epsilon v^{(\ell)}}, \qquad v^{(\ell+1)}=\frac{1}{\mathcal K_\epsilon^*u^{(\ell+1)}}.

The coupling density reconstructed from the current potentials is therefore u()(x)kϵ(x,y)v()(y)u^{(\ell)}(x)k_\epsilon(x,y)v^{(\ell)}(y) with respect to αβ\alpha\otimes\beta, as in (25). At a fixed point, its two marginals are α\alpha and β\beta; equivalently, the potentials jointly maximize the continuous dual.

Neural Dual Solvers

The convex-potential structure above suggests a sample-based alternative to evaluating soft transforms on a grid or on all pairs of samples. For the bilinear cost c(x,y)=x,yc(x,y)=-\dotp{x}{y}, the signs of the dual potentials are convex: writing Φ=f\Phi=-f and Ψ=g\Psi=-g, the zero-temperature constraint f(x)+g(y)x,yf(x)+g(y)\leq-\dotp{x}{y} becomes

Φ(x)+Ψ(y)x,y.\Phi(x)+\Psi(y)\geq \dotp{x}{y}.

For the quadratic cost this is the same statement after subtracting the quadratic terms. One can therefore maximize the continuous dual over parameterized convex potentials, estimating the integrals by stochastic samples.

A useful parameterization is given by input-convex neural networks (ICNNs) Amos et al., 2017Makkuva et al., 2020. The construction mirrors elementary closure rules for convex functions: nonnegative linear combinations preserve convexity, composition with a convex nondecreasing scalar nonlinearity preserves convexity, and the ReLU rmax(r,0)r\mapsto\max(r,0) is both convex and nondecreasing. Thus a feed-forward network with nonnegative hidden-to-hidden weights and affine skip connections from the input defines a convex function of its input. This gives a flexible cone of convex trial potentials, although the finite-dimensional optimization over the network weights is not a convex optimization problem. Universal-approximation statements must be read with this distinction in mind: max-affine functions are dense among continuous convex functions on compact convex sets, and ICNN-type architectures are designed to inherit this approximation principle. General ReLU universal approximation results, such as the width d+1d+1 theorem on compact subsets of Rd\RR^d Hanin, 2019, provide useful background but do not by themselves enforce convexity. In practice, neural dual solvers trade exact Sinkhorn scaling for amortized stochastic optimization of the dual potentials.

The path-space meaning of the static Schrodinger problem now follows the dual construction. A noisy reference dynamics first defines a probability law on trajectories; after optimizing out the conditional law of the path given its endpoints, only the endpoint coupling remains.

Path-Space Schrodinger Problem

Schrodinger’s reciprocal problem is naturally posed on paths rather than on endpoint pairs. The Sinkhorn problem appears after the path law is reduced to its two endpoint marginals.

Unregularized Path-Space Transport

Let Ω=C([0,1];X)\Omega=C([0,1];\X) be a path space and let et(ω)=ωte_t(\omega)=\omega_t be the evaluation maps. Given a path action A:Ω[0,+]\mathcal A:\Omega\to[0,+\infty], the unregularized path-space problem is

infMP(Ω){ΩA(ω)dM(ω):(e0)M=α, (e1)M=β}.\inf_{M\in\mathcal P(\Omega)} \left\{ \int_\Omega\mathcal A(\omega)\,\d M(\omega) : (e_0)_\sharp M=\alpha,\ (e_1)_\sharp M=\beta \right\}.

For quadratic Wasserstein geometry on Rd\RR^d,

A(ω)={01ω˙t2dt,ω absolutely continuous,+,otherwise.\mathcal A(\omega) = \begin{cases} \int_0^1\norm{\dot\omega_t}^2\,\d t, & \omega\text{ absolutely continuous},\\ +\infty, & \text{otherwise}. \end{cases}

The endpoint cost induced by the action is

cA(x,y):=inf{A(ω):e0(ω)=x, e1(ω)=y}.c_{\mathcal A}(x,y) \eqdef \inf\left\{ \mathcal A(\omega): e_0(\omega)=x,\ e_1(\omega)=y \right\}.

For the quadratic action, the minimizing path is the straight segment and cA(x,y)=xy2c_{\mathcal A}(x,y)=\norm{x-y}^2.

Proof

For any feasible path law MM, set π=(e0,e1)M\pi=(e_0,e_1)_\sharp M. Then πΠ(α,β)\pi\in\Couplings(\alpha,\beta) and by definition of cAc_{\mathcal A},

ΩA(ω)dM(ω)X×XcA(x,y)dπ(x,y).\int_\Omega\mathcal A(\omega)\,\d M(\omega) \ge \int_{\X\times\X}c_{\mathcal A}(x,y)\,\d\pi(x,y).

Conversely, mix selected minimizing paths according to any coupling π\pi and then optimize over π\pi.

Entropic Path-Space Problem

Let RϵP(Ω)R^\epsilon\in\mathcal P(\Omega) be a reference path law, for instance a Brownian or Langevin dynamics at noise level ϵ\epsilon. The dynamic Schrodinger bridge problem is the entropy projection

SBϵ(α,β):=infMP(Ω){ϵKL(MRϵ):(e0)M=α, (e1)M=β}.\mathrm{SB}_\epsilon(\alpha,\beta) \eqdef \inf_{M\in\mathcal P(\Omega)} \left\{ \epsilon\operatorname{KL}(M|R^\epsilon): (e_0)_\sharp M=\alpha,\ (e_1)_\sharp M=\beta \right\}.

It asks for the most likely path law, relative to the prior dynamics, among all path laws matching the observed endpoints Schrödinger, 1931Léonard, 2012Léonard, 2014Chen et al., 2016.

Stochastic-Control Interpretation

For Brownian references, the entropy projection has a direct control meaning. To fix constants, suppose that RϵR^\epsilon is the law of

dXt=ϵdBt,X0α,\d X_t = \sqrt{\epsilon}\,\d B_t, \qquad X_0\sim\alpha ,

so that the generator is (ϵ/2)Δ(\epsilon/2)\Delta. Under the standard finite-entropy assumptions, a path law MM with the same initial marginal and MRϵM\ll R^\epsilon can be represented, in the weak sense, by an adapted drift utu_t of finite energy,

dXt=utdt+ϵdBt,X0α.\d X_t = u_t\,\d t+\sqrt{\epsilon}\,\d B_t, \qquad X_0\sim\alpha .

Conversely, such a drift defines an absolutely continuous change of law when the usual Girsanov integrability conditions hold. Girsanov’s formula then gives

KL(MRϵ)=12ϵEM01ut2dt,ϵKL(MRϵ)=12EM01ut2dt.\operatorname{KL}(M|R^\epsilon) = \frac{1}{2\epsilon}\mathbb E_M\int_0^1\norm{u_t}^2\,\d t, \qquad \epsilon\operatorname{KL}(M|R^\epsilon) = \frac12\mathbb E_M\int_0^1\norm{u_t}^2\,\d t .

If the reference initial law is not α\alpha, an additional term ϵKL(αR0ϵ)\epsilon\operatorname{KL}(\alpha|R^\epsilon_0) appears, but it is fixed by the endpoint constraint. Hence, up to this fixed endpoint cost, the Schrodinger bridge can be read as

infu{12E01ut2dt:dXt=utdt+ϵdBt,X0α, X1β}.\inf_u \left\{ \frac12\mathbb E\int_0^1\norm{u_t}^2\,\d t : \d X_t=u_t\,\d t+\sqrt{\epsilon}\,\d B_t,\quad X_0\sim\alpha,\ X_1\sim\beta \right\}.

Thus the bridge is the least energetic change of drift that steers the Brownian prior from α\alpha to β\beta. The optimizer may be chosen Markovian. If hth_t denotes the positive space-time harmonic Schrodinger factor associated with the terminal constraint, then the optimal feedback drift has the Doob-transform form

ut(x)=ϵloght(x).u_t^\star(x)=\epsilon\nabla\log h_t(x).

Equivalently, with the value potential ϕt=ϵloght\phi_t=\epsilon\log h_t, one has ut=ϕtu_t^\star=\nabla\phi_t and ϕt\phi_t solves the viscous Hamilton--Jacobi equation tϕt+12ϕt2+ϵ2Δϕt=0\partial_t\phi_t+\frac12\norm{\nabla\phi_t}^2+\frac{\epsilon}{2}\Delta\phi_t=0. This control viewpoint and the endpoint-coupling reduction below are two faces of the same object: the controlled diffusion describes the whole path law, whereas the static Sinkhorn coupling records only its two endpoints.

Viscous Benamou--Brenier Formulations

The dynamic problem also has viscous Benamou--Brenier formulations. Here vtv_t denotes the forward drift called utu_t in the control formulation, whereas utu_t denotes the associated current velocity. If the uncontrolled noise is σdBt\sqrt{\sigma}\,\d B_t, its generator is (σ/2)Δ(\sigma/2)\Delta and

tρt+div(ρtvt)=σ2Δρt\partial_t\rho_t+\operatorname{div}(\rho_t v_t) = \frac{\sigma}{2}\Delta\rho_t

and one minimizes a kinetic action. After absorbing the diffusion into the velocity ut=vtσ2logρtu_t=v_t-\frac{\sigma}{2}\nabla\log\rho_t, the same minimizers are obtained from

01 ⁣(12ut(x)2+σ28logρt(x)2)ρt(x)dxdt,\int_0^1\!\int \left( \frac12\norm{u_t(x)}^2 + \frac{\sigma^2}{8}\norm{\nabla\log\rho_t(x)}^2 \right) \rho_t(x)\,\d x\,\d t,

up to endpoint entropy terms. The extra term is a Fisher-information penalty.

Proof

Disintegrate both MM and RϵR^\epsilon with respect to their endpoint pairs. The chain rule gives

KL(MRϵ)=KL(πR01ϵ)+KL(Mx,yRϵ,x,y)dπ(x,y).\operatorname{KL}(M|R^\epsilon) = \operatorname{KL}(\pi|R^\epsilon_{01}) + \int \operatorname{KL}(M^{x,y}|R^{\epsilon,x,y}) \,\d\pi(x,y).

The second term is nonnegative and vanishes exactly when the conditional path law is the reference bridge for π\pi-almost every endpoint pair.

Brownian Bridges and Sinkhorn Couplings

For the convention dXt=ϵdBt\d X_t=\sqrt{\epsilon}\,\d B_t, the endpoint kernel is exp(xy2/(2ϵ))\exp(-\norm{x-y}^2/(2\epsilon)) and the corresponding static cost is xy2/2\norm{x-y}^2/2. Renaming the static temperature gives the equivalent kernel

exp(xy2ϵ).\exp\left(-\frac{\norm{x-y}^2}{\epsilon}\right).

After rewriting this prior with respect to αβ\alpha\otimes\beta, the endpoint problem is exactly the continuous Sinkhorn problem up to an additive constant. Sinkhorn computes which endpoints should be paired; the path-space Schrodinger bridge then connects each pair by a Brownian bridge.

Figure Div illustrates this endpoint-to-path lifting on a small discrete example.

<IPython.core.display.Image object>

Endpoint couplings lifted to Brownian bridges. Increasing ϵ\epsilon both softens the endpoint coupling and amplifies the Brownian fluctuations between paired endpoints.

Interactive panel. Vary ϵ\epsilon to move continuously from straight OT rays to noisy Brownian-bridge lifts with a more diffuse endpoint coupling.

Marginal-Dependent Problems

The balanced Sinkhorn problem fixes both marginals exactly. Many nearby models instead optimize the transported marginals, but only through penalties or constraints applied separately to each marginal. The useful point, emphasized by the generalized scaling algorithms of Chizat, Peyré, Schmitzer and Vialard Chizat et al., 2018, is that entropic OT remains a diagonal-scaling problem whenever these marginal terms admit simple KL-proximal maps.

Let F\mathcal F and G\mathcal G be proper convex lower semicontinuous functionals on finite nonnegative measures on X\Xx and Y\Yy. The unregularized marginal-dependent transport problem is

infπM+(X×Y)c(x,y)dπ(x,y)+F(π1)+G(π2),\inf_{\pi\in\Mm_+(\Xx\times\Yy)} \int c(x,y)\,\d\pi(x,y) + \mathcal F(\pi_1) + \mathcal G(\pi_2),

where π1=(pX)π\pi_1=(\mathrm p_{\Xx})_\sharp\pi and π2=(pY)π\pi_2=(\mathrm p_{\Yy})_\sharp\pi are the two marginals of π\pi. Entropic regularization turns this problem into the scaling-friendly form

infπM+(X×Y)c(x,y)dπ(x,y)+F(π1)+G(π2)+ϵKL(παβ),\inf_{\pi\in\Mm_+(\Xx\times\Yy)} \int c(x,y)\,\d\pi(x,y) + \mathcal F(\pi_1) + \mathcal G(\pi_2) + \epsilon\operatorname{KL}(\pi|\alpha\otimes\beta),

where α\alpha and β\beta are reference measures. In this subsection, when the total mass of π\pi is not fixed, the KL term is understood in the generalized sense associated with φ(s)=slogss+1\varphi(s)=s\log s-s+1. Thus, if λ=αβ\lambda=\alpha\otimes\beta and π=ρλ+π\pi=\rho\lambda+\pi^\perp is the Lebesgue decomposition of π\pi with respect to λ\lambda, then

KL(πλ)=(ρlogρρ+1)dλ\operatorname{KL}(\pi|\lambda) = \int \bigl(\rho\log\rho-\rho+1\bigr)\,\mathrm d\lambda

with value ++\infty when π0\pi^\perp\ne0. On probability couplings this coincides with the usual relative entropy.

Balanced OT is recovered by taking F=ι{α}\mathcal F=\iota_{\{\alpha\}} and G=ι{β}\mathcal G=\iota_{\{\beta\}}. Unbalanced OT replaces these hard indicators by marginal divergences, as developed later in Section Unbalanced OT. An entropic JKO step fixes the first marginal to the previous iterate and puts the energy on the second marginal, for instance F=ι{αt}\mathcal F=\iota_{\{\alpha_t\}} and G=E\mathcal G=E, with cost c/(2τ)c/(2\tau); this is the static counterpart of the minimizing-movement schemes of Chapter Paragraph. Barycenters are the multi-coupling extension: several couplings share one unknown marginal and are treated by the generalized Sinkhorn updates of Section OT Barycenters.

In finite dimension, with reference weights satisfying ai,bj>0a_i,b_j>0 and proper convex functions F:R+nR{+}\mathsf F:\RR_+^n\to\RR\cup\{+\infty\}, G:R+mR{+}\mathsf G:\RR_+^m\to\RR\cup\{+\infty\}, the entropic version becomes

infPR+n×mC,P+F(P1m)+G(P1n)+ϵKL(Pab).\inf_{\P\in\RR_+^{n\times m}} \langle\C,\P\rangle + \mathsf F(\P\ones_m) + \mathsf G(\P^\top\ones_n) + \epsilon\KLD(\P|\a\otimes\b).

Equivalently, if Kij=aibjeCij/ϵ\K_{ij}=a_i b_j e^{-\C_{ij}/\epsilon}, the terms involving C\C can be absorbed into the Gibbs reference and the problem is, up to the additive constant ϵi,j(aibjKij)\epsilon\sum_{i,j}(a_i b_j-\K_{ij}),

infP0F(P1m)+G(P1n)+ϵKL(PK).\inf_{\P\ge0} \mathsf F(\P\ones_m) + \mathsf G(\P^\top\ones_n) + \epsilon\KLD(\P|\K).
Proof

Introduce independent variables rr and ss for the two marginals and use dual variables f,g\mathbf f,\mathbf g for the constraints r=P1mr=\P\ones_m and s=P1ns=\P^\top\ones_n. The Lagrangian contains

F(r)+f,r+G(s)+g,s+C,P+ϵKL(Pab)fg,P.\mathsf F(r)+\langle\mathbf f,r\rangle + \mathsf G(s)+\langle\mathbf g,s\rangle + \langle\C,\P\rangle + \epsilon\KLD(\P|\a\otimes\b) - \langle\mathbf f\oplus\mathbf g,\P\rangle.

Minimizing over rr and ss gives F(f)-\mathsf F^*(-\mathbf f) and G(g)-\mathsf G^*(-\mathbf g). For each scalar entry, the convex conjugate of pCijp+ϵ(plog(p/(aibj))p+aibj)p\mapsto C_{ij}p+\epsilon(p\log(p/(a_i b_j))-p+a_i b_j) is qϵaibj(e(qCij)/ϵ1)q\mapsto\epsilon a_i b_j(e^{(q-C_{ij})/\epsilon}-1). Minimizing over P\P with q=fi+gjq=\mathbf f_i+\mathbf g_j gives the displayed dual.

For the scaling form, fix v>0\mathbf v>0, set K~=Kdiag(v)\widetilde{\K}=\K\operatorname{diag}(\mathbf v) and z=K~1m=Kvz=\widetilde{\K}\ones_m=\K\mathbf v. Updating the row scaling means looking for P=diag(u)K~\P=\operatorname{diag}(\mathbf u)\widetilde{\K}, so its row marginal is r=P1m=uzr=\P\ones_m=\mathbf u\odot z. The row-wise chain rule gives

KL(diag(u)K~K~)=i(rilog(ri/zi)ri+zi)=KL(rz).\KLD(\operatorname{diag}(\mathbf u)\widetilde{\K}|\widetilde{\K}) = \sum_i \bigl(r_i\log(r_i/z_i)-r_i+z_i\bigr) = \KLD(r|z).

Thus exact optimization of this block is equivalent to minimizing F(r)+ϵKL(rz)\mathsf F(r)+\epsilon\KLD(r|z) over r0r\ge0, hence r=proxF/ϵKL(z)r=\operatorname{prox}_{\mathsf F/\epsilon}^{\KLD}(z) and u=rz\mathbf u=r\oslash z. The column update is identical with w=Kuw=\K^\top\mathbf u.

When F=ι{a}\mathsf F=\iota_{\{\a\}} and G=ι{b}\mathsf G=\iota_{\{\b\}}, the first two dual terms are f,a+g,b\langle\mathbf f,\a\rangle+\langle\mathbf g,\b\rangle, and one recovers the usual entropic dual. The classical Sinkhorn update is the special case in which the KL proximal maps return the prescribed marginals a\a and b\b.

The usefulness of this formulation is that many KL-proximal maps are explicit.

proxF/ϵKL(z)=zϵ/(τ+ϵ)aτ/(τ+ϵ),\operatorname{prox}_{\mathsf F/\epsilon}^{\KLD}(z) = z^{\epsilon/(\tau+\epsilon)}\odot \a^{\tau/(\tau+\epsilon)},

so u(az)τ/(τ+ϵ)\mathbf u\leftarrow(\a\oslash z)^{\tau/(\tau+\epsilon)}, the damped scaling of unbalanced Sinkhorn.

proxF/ϵKL(z)i={zieλ,zi<aieλ,ai,aieλziaieλ,zieλ,zi>aieλ.\operatorname{prox}_{\mathsf F/\epsilon}^{\KLD}(z)_i = \begin{cases} z_i e^{\lambda}, & z_i<a_i e^{-\lambda},\\ a_i, & a_i e^{-\lambda}\le z_i\le a_i e^{\lambda},\\ z_i e^{-\lambda}, & z_i>a_i e^{\lambda}. \end{cases}

These examples explain why generalized Sinkhorn algorithms remain practical: the expensive operation is still multiplication by K\K or K\K^\top, while the model-specific part is a low-dimensional KL-proximal update on a marginal.

Heat Kernels and Hopf--Cole Transforms

The Gaussian kernel used by Sinkhorn is also the Euclidean heat kernel. This viewpoint clarifies when entropic OT admits fast grid and surface implementations, and it places soft minima and Hopf--Cole transforms in the same heat-kernel calculus.

Geodesics in Heat

On Rd\mathbb R^d, the heat kernel for tu=Δu\partial_t u=\Delta u is

ht(x,y)=(4πt)d/2exp ⁣(xy24t).h_t(x,y)=(4\pi t)^{-d/2}\exp\!\left(-\frac{\norm{x-y}^2}{4t}\right).

For the quadratic cost c(x,y)=xy2c(x,y)=\norm{x-y}^2, the Sinkhorn Gibbs kernel is exactly a heat kernel up to a scalar factor:

Kϵ(x,y)=exy2/ϵ=(πϵ)d/2hϵ/4(x,y).K_\epsilon(x,y) =e^{-\norm{x-y}^2/\epsilon} =(\pi\epsilon)^{d/2}h_{\epsilon/4}(x,y).

The scalar factor is absorbed by the Sinkhorn scalings and does not change the coupling. On a Riemannian manifold or surface MM, write L=ΔML=-\Delta_M and replace the dense Gibbs matrix by the intrinsic heat operator Hϵ=e(ϵ/4)LH_\epsilon=e^{-(\epsilon/4)L}. For two histograms on the same discretized domain, Sinkhorn becomes

u(+1)=a(Hϵv()),v(+1)=b(Hϵu(+1)).u^{(\ell+1)}=a\oslash(H_\epsilon v^{(\ell)}), \qquad v^{(\ell+1)}=b\oslash(H_\epsilon^\top u^{(\ell+1)}).

Here HϵH_\epsilon includes quadrature weights and HϵH_\epsilon^\top is its discrete adjoint; they coincide for a symmetric mass-normalized discretization. This fits Sinkhorn because kernel multiplication is its only expensive step. Equivalently, the heat kernel defines the effective cost cϵ(x,y)=ϵloghϵ/4(x,y)c_\epsilon(x,y)=-\epsilon\log h_{\epsilon/4}(x,y). Varadhan’s formula gives

cϵ(x,y)dM(x,y)2(ϵ0),c_\epsilon(x,y)\longrightarrow d_M(x,y)^2 \qquad (\epsilon\downarrow0),

so convolutional Sinkhorn recovers the squared geodesic ground cost at small temperature without computing all pairwise geodesic distances Varadhan, 1967Solomon et al., 2015. This is also the asymptotic principle behind geodesics-in-heat distance estimation Crane et al., 2013.

Computationally, the heat operator admits the resolvent approximation

Hϵ=limq(I+ϵ4qL)q.H_\epsilon =\lim_{q\to\infty} \left(I+\frac{\epsilon}{4q}L\right)^{-q}.

For a sparse discrete Laplacian LhL_h, factor Aϵ,q=I+ϵLh/(4q)=RRA_{\epsilon,q}=I+\epsilon L_h/(4q)=RR^\top once by sparse Cholesky. Each application of HϵH_\epsilon is then approximated by qq successive solves with Aϵ,qA_{\epsilon,q}, each reduced to two triangular substitutions. The same factorization is reused in every Sinkhorn row and column update, avoiding a dense kernel and an all-pairs distance matrix Solomon et al., 2015. An ϵ\epsilon-scaling schedule requires one factorization per temperature. The diffusion length is of order ϵ\sqrt\epsilon, so the small-temperature limit must still be resolved by the mesh; taking ϵ\epsilon smaller than the squared grid spacing produces metrication and discretization artifacts.

Figure Div compares the exact distance to a non-convex source curve with heat-kernel and shifted-Laplacian approximations at several smoothing scales.

<IPython.core.display.Image object>

Geodesics-in-heat approximation of the distance to a dense non-convex source curve. The one-step approximation (I+ϵLh/4)1(I+\epsilon L_h/4)^{-1} with Neumann boundary conditions is followed by a normalized-gradient Poisson solve. Larger Sinkhorn temperatures suppress unresolved grid-scale artifacts but progressively round the non-convex level-set geometry.

Interactive panel. Adjust the Sinkhorn temperature ϵ\epsilon and number of sources to see how heat smoothing rounds Voronoi fronts and approximate distance level sets.

Soft Hopf--Lax and Hopf--Cole

The Hopf--Lax formula is the Hamilton--Jacobi incarnation of the hard cc-transform. We use the normalized quadratic cost

c(x,y)=12xy2,c(x,y)=\frac12\norm{x-y}^2,

so that the Hopf--Lax operator applied to an initial datum hh is precisely

(h)cˉ(x)=infy{h(y)+12xy2}.(-h)^{\bar c}(x)=\inf_y\left\{h(y)+\frac12\norm{x-y}^2\right\}.

The sign only reflects the convention of Definition: cc-Transform. This is the usual Hopf--Lax formula for the Hamiltonian p2/2\norm{p}^2/2 Evans, 2010Villani, 2009; other quadratic scalings amount to multiplying the cost by a constant. In the present entropic setting, the parameter of interest is instead the temperature ϵ\epsilon.

The soft version replaces the infimum by a log-sum-exp soft minimum. In the notation of Definition: Continuous Soft cc-Transforms, and using Lebesgue measure on Rd\RR^d,

(h)cˉ,ϵ(x)=ϵlogexp ⁣(h(y)+xy2/2ϵ)dy.(-h)^{\bar c,\epsilon}(x) = -\epsilon\log \int \exp\!\left(-\frac{h(y)+\norm{x-y}^2/2}{\epsilon}\right)\,dy .

This is a soft cc-transform of the function h-h, and Laplace’s principle gives (h)cˉ,ϵ(h)cˉ(-h)^{\bar c,\epsilon}\to(-h)^{\bar c} as ϵ0\epsilon\to0 under the usual compactness assumptions on near-minimizers. The same formula is also a heat-kernel formula. If

Gϵ(z)=(2πϵ)d/2exp ⁣(z22ϵ),G_\epsilon(z)=(2\pi\epsilon)^{-d/2} \exp\!\left(-\frac{\norm{z}^2}{2\epsilon}\right),

then

(h)cˉ,ϵ(x)=ϵlog(Gϵeh/ϵ)(x)ϵd2log(2πϵ).(-h)^{\bar c,\epsilon}(x) = -\epsilon\log\big(G_\epsilon\ast e^{-h/\epsilon}\big)(x) -\frac{\epsilon d}{2}\log(2\pi\epsilon).

Thus a soft quadratic cc-transform is a Gaussian convolution followed by a logarithm, up to an explicit additive constant independent of xx. This is the bridge between soft-minimum operators, heat kernels and entropic transport potentials.

The proof is just completion of squares. Since

infy{Sf(y)+12py2}=12p2f(p),\inf_y\left\{\mathsf S f(y)+\frac12\norm{p-y}^2\right\} =\frac12\norm{p}^2-f^*(p),

this shift turns the Legendre--Fenchel transform into a quadratic cˉ\bar c-transform. Replacing the hard transform by its soft version gives the definition of f,ϵf^{*,\epsilon}. Expanding the square yields the log-sum-exp formula, the Gaussian-convolution expression follows from the normalized kernel GϵG_\epsilon, and the convergence follows from Laplace’s principle.

The first figure below isolates the biconjugation effect. It compares the hard lower convex envelope with finite-temperature soft biconjugates for both a simple and a more oscillatory non-convex profile.

Figure Div illustrates the biconjugation viewpoint directly.

<IPython.core.display.Image object>

Soft Legendre biconjugates as approximations of lower convex envelopes. The dashed gray curve is the original non-convex function, the red curve is ff^{**}, and the purple-to-blue curves show (f,ϵ),ϵ(f^{*,\epsilon})^{*,\epsilon} for increasing ϵ\epsilon.

Interactive panel. Change the smoothing temperature to see how the soft cc-transform interpolates between hard envelopes and smooth log-sum-exp transforms.

The nonlinear PDEs are linearized by the Hopf--Cole transform. With the same temperature normalization, us=eϕs/ϵu_s=e^{-\phi_s/\epsilon} converts

sϕs+12ϕs2=ϵ2Δϕs\partial_s\phi_s+\frac12\norm{\nabla\phi_s}^2=\frac{\epsilon}{2}\Delta\phi_s

into sus=(ϵ/2)Δus\partial_su_s=(\epsilon/2)\Delta u_s. Conversely, ϕs=ϵlogus\phi_s=-\epsilon\log u_s gives a Hamilton--Jacobi solution, while vs=ϕs=ϵlogusv_s=\nabla\phi_s=-\epsilon\nabla\log u_s solves the gradient viscous Burgers equation svs+(vs)vs=(ϵ/2)Δvs\partial_s v_s+(v_s\cdot\nabla)v_s=(\epsilon/2)\Delta v_s. In one dimension this is the classical Cole--Hopf transform; in higher dimension this scalar reduction applies to irrotational velocity fields. The figure below keeps only the PDE content: the same initial potential is evolved through the Hopf--Cole transform for three values of the viscosity.

Figure Div starts from a Gaussian velocity bump, whose inviscid evolution would form a shock on its decreasing flank, and shows how the viscosity parameter ϵ/2\epsilon/2 regularizes this steepening.

<IPython.core.display.Image object>

Hopf--Cole numerics for viscous Hamilton--Jacobi and Burgers dynamics. The upper row shows the potentials ϕt\phi_t, the lower row shows the velocities vt=xϕtv_t=\partial_x\phi_t, and colors encode time from red to blue.

Interactive panel. Change the viscosity, final time and initial velocity bump to see the same Hopf--Cole mechanism: heat evolves the transformed variable, while the logarithm reconstructs the Hamilton--Jacobi potential and the Burgers velocity.

Other Convex Regularizers

KL regularization is the case that leads to multiplicative Sinkhorn scalings. Replacing KL by another density-ratio penalty keeps the same transport constraints but changes the scalar law linking the optimal density to the dual potentials.

ϕ\phi-Divergence Regularization

The exponential Gibbs relation is replaced by the scalar law generated by a general convex entropy function.

Let ϕ\phi be an entropy function and define

Lc,ϕϵ(α,β):=minπΠ(α,β)c(x,y)dπ(x,y)+ϵDϕ(παβ).\mathcal L_{c,\phi}^{\epsilon}(\alpha,\beta) \eqdef \min_{\pi\in\Couplings(\alpha,\beta)} \int c(x,y)\,\d\pi(x,y) + \epsilon D_\phi(\pi|\alpha\otimes\beta).

For KL, ϕ(r)=rlogrr+1\phi(r)=r\log r-r+1 and ϕ(s)=es1\phi^*(s)=e^s-1, recovering the Sinkhorn dual. Other choices replace the exponential law by another scalar transfer function:

ϕ(r)=rlogrr+1r=es,ϕ(r)=rlogr1r=(1s)1(s<1),ϕ(r)=12(r1)2r=(1+s)+,s=fgcϵ.\begin{array}{lll} \phi(r)=r\log r-r+1 &\Rightarrow& r^\star=e^s,\\ \phi(r)=r-\log r-1 &\Rightarrow& r^\star=(1-s)^{-1}\quad(s<1),\\ \phi(r)=\frac12(r-1)^2 &\Rightarrow& r^\star=(1+s)_+, \end{array} \qquad s=\frac{f^\star\oplus g^\star-c}{\epsilon}.

Bregman-Divergence Regularization

The previous construction regularizes OT by a density-ratio divergence. This differs from using a Bregman divergence generated by a convex functional on the space of measures.

With the product reference ξ=αβ\xi=\alpha\otimes\beta, the corresponding regularized transport value is

Lc,Φϵ(α,β):=infπΠ(α,β){cdπ+ϵBΦ(πξ)}.\mathcal L_{c,\Phi}^{\epsilon}(\alpha,\beta) \eqdef \inf_{\pi\in\Couplings(\alpha,\beta)} \left\{ \int c\,\d\pi+\epsilon B_\Phi(\pi|\xi) \right\}.
Main Idea of the Proof

Write the Bregman-regularized objective, up to constants independent of π\pi, as

ϵΦ(π)+(cϵδΦ(ξ))dπ.\epsilon\Phi(\pi) + \int(c-\epsilon\delta\Phi(\xi))\,\d\pi .

Dualizing the marginal constraints and minimizing over π\pi produces the global conjugate Φ\Phi^*. Equality in Fenchel’s inequality gives the Bregman optimality condition.

The primal--dual relations (118) and (113) make the distinction precise. Bregman regularization translates the reference measure in the functional dual coordinate δΦ\delta\Phi, whereas ϕ\phi-divergence regularization applies the scalar derivative ϕ\phi' pointwise to the density relative to αβ\alpha\otimes\beta. For KL these laws coincide: logarithmic dual coordinates turn additive potential shifts into multiplicative density scalings.

Thus the two generalizations lead to different duals and different algorithms. Only for KL do density-ratio regularization and Bregman projection geometry coincide and reduce to multiplicative Sinkhorn scalings.

Generalized Soft cc-Transforms and Alternate Dual Maximization Method

The two dual formulations above suggest the same basic optimizer: maximize exactly over one potential while the other is fixed, then exchange their roles. For the ϕ\phi-divergence dual, separability with respect to αβ\alpha\otimes\beta makes both block updates pointwise:

gcˉ,ϵ,ϕ(x)argminuR{ϵϕ(u+g(y)c(x,y)ϵ)dβ(y)u},fc,ϵ,ϕ(y)argminvR{ϵϕ(f(x)+vc(x,y)ϵ)dα(x)v}.\begin{aligned} g^{\bar c,\epsilon,\phi}(x) &\in \operatorname*{argmin}_{u\in\mathbb R} \left\{ \epsilon\int \phi^*\left(\frac{u+g(y)-c(x,y)}{\epsilon}\right)\d\beta(y)-u \right\},\\ f^{c,\epsilon,\phi}(y) &\in \operatorname*{argmin}_{v\in\mathbb R} \left\{ \epsilon\int \phi^*\left(\frac{f(x)+v-c(x,y)}{\epsilon}\right)\d\alpha(x)-v \right\}. \end{aligned}

When ϕ\phi^* is differentiable, the first minimizer satisfies

(ϕ)(u+g(y)c(x,y)ϵ)dβ(y)=1,\int (\phi^*)'\left(\frac{u+g(y)-c(x,y)}{\epsilon}\right)\d\beta(y)=1,

and the second satisfies the symmetric equation. Thus each update normalizes one conditional density. For Burg or quadratic penalties, the solve remains one-dimensional and monotone, but it is no longer a log-sum-exp.

The Bregman dual has analogous block transforms, but they are function-space minimizations unless Φ\Phi is separable. With ξ=αβ\xi=\alpha\otimes\beta, define

gcˉ,ϵ,ΦargminuC(X){ϵΦ(δΦ(ξ)+ugcϵ)udα},fc,ϵ,ΦargminvC(Y){ϵΦ(δΦ(ξ)+fvcϵ)vdβ}.\begin{aligned} g^{\bar c,\epsilon,\Phi} &\in \operatorname*{argmin}_{u\in\mathcal C(\mathcal X)} \left\{ \epsilon\Phi^*\left(\delta\Phi(\xi)+\frac{u\oplus g-c}{\epsilon}\right) -\int u\,\d\alpha \right\},\\ f^{c,\epsilon,\Phi} &\in \operatorname*{argmin}_{v\in\mathcal C(\mathcal Y)} \left\{ \epsilon\Phi^*\left(\delta\Phi(\xi)+\frac{f\oplus v-c}{\epsilon}\right) -\int v\,\d\beta \right\}. \end{aligned}

These are precisely the exact block minimizers of the negative Bregman dual. For separable Φ\Phi, disintegration reduces them to independent scalar problems.

The two alternate dual-maximization schemes are therefore

f(+1)=(g())cˉ,ϵ,ϕ,g(+1)=(f(+1))c,ϵ,ϕ,f(+1)=(g())cˉ,ϵ,Φ,g(+1)=(f(+1))c,ϵ,Φ.\begin{aligned} f^{(\ell+1)}&=\big(g^{(\ell)}\big)^{\bar c,\epsilon,\phi}, &g^{(\ell+1)}&=\big(f^{(\ell+1)}\big)^{c,\epsilon,\phi},\\ f^{(\ell+1)}&=\big(g^{(\ell)}\big)^{\bar c,\epsilon,\Phi}, &g^{(\ell+1)}&=\big(f^{(\ell+1)}\big)^{c,\epsilon,\Phi}. \end{aligned}

For KL, which has both descriptions, these iterations coincide with the usual soft cc-transform iteration and recover Sinkhorn.

Quadratic regularizers replace exponentiation by positive-part thresholding. For discrete measures, the choices ϕ(r)=12(r1)2\phi(r)=\frac12(r-1)^2 and Φ(P)=12PF2\Phi(\mathrm P)=\frac12\|\mathrm P\|_{\mathrm F}^2 give, respectively,

Pi,j=aibj(1+fi+gjCi,jϵ)+,Pi,j=(aibj+fi+gjCi,jϵ)+.\mathrm P^\star_{i,j} = a_i b_j\left(1+\frac{f_i^\star+g_j^\star-\mathrm C_{i,j}}{\epsilon}\right)_+, \qquad \mathrm P^\star_{i,j} = \left(a_i b_j+\frac{f_i^\star+g_j^\star-\mathrm C_{i,j}}{\epsilon}\right)_+.

Both laws can produce sparse plans, as advocated by Blondel, Seguy, and Rolet Blondel et al., 2018. For the first law, the row transform solves

jbj(1+u+gjCi,jϵ)+=1.\sum_j b_j \left(1+\frac{u+g_j-\mathrm C_{i,j}}{\epsilon}\right)_+=1.

The left-hand side is continuous, nondecreasing, and piecewise affine. Sorting its breakpoints, equivalently computing a weighted simplex projection, costs O(mlogm)O(m\log m) for a row of length mm. The unweighted quadratic Bregman transform is an ordinary Euclidean simplex projection.

Figures Div and Div show the two visible consequences: changing the regularizer modifies both the smoothing of the dual envelope and the support of the primal coupling.

<IPython.core.display.Image object>

Generalized soft double transforms for c(x,y)=xyc(x,y)=-xy. The dashed curve is the same non-concave input potential in all panels, the dark curve is the hard double cc-transform after centering, and colored curves show the centered double transform (fc,ϵ,ϕ)cˉ,ϵ,ϕ(f^{c,\epsilon,\phi})^{\bar c,\epsilon,\phi} for increasing ϵ\epsilon from red to blue. KL, Burg, and quadratic density-ratio penalties smooth the concave envelope differently.

<IPython.core.display.Image object>

Density-ratio regularizers and coupling support. KL gives a diffuse positive plan, the Burg barrier keeps positive but differently tailed support, and the rightmost quadratic plan is computed by alternate threshold transforms and is exactly sparse through the positive-part law.

The interactive demo separates the same two effects. The left plot shows the pointwise law r=h(s)r=h(s), while the right plot recomputes a coupling after enforcing the marginals with that law.

Interactive panel. Compare entropic and quadratic penalties on the same transport problem by changing the regularizer and its strength.

Sinkhorn Divergences

Sinkhorn divergences remove the entropic self-bias while retaining smoothness. They interpolate between OT-like geometry and kernel-like norms, which explains their statistical behavior.

Entropic Bias

The raw Sinkhorn cost is biased: for ϵ>0\epsilon>0, minimizing Lcϵ(α,β)\mathcal L_c^\epsilon(\alpha,\beta) over β\beta does not generally return β=α\beta=\alpha. In the large-temperature limit, the raw value behaves like a product interaction:

For c(x,y)=xy2c(x,y)=\norm{x-y}^2, minimizing this large-temperature limit over β\beta collapses toward a Dirac at the mean of α\alpha.

Sinkhorn Divergences

The standard debiasing subtracts the two self-interaction energies. This cancellation removes the large-temperature attraction toward the independent coupling; positivity is a separate property, proved below through the positive-definite kernel associated with ec/ϵe^{-c/\epsilon}.

Figure Div demonstrates the role of the two self-cost corrections by optimizing a finite point cloud against a fixed target with and without debiasing.

<IPython.core.display.Image object>

Debiasing by point optimization. For large ϵ\epsilon, minimizing the raw entropic cost collapses atoms toward the barycenter, whereas the self-cost subtraction keeps a bimodal cloud.

The interactive demo below shows the same mechanism with two-dimensional point clouds. The raw entropic loss tends to keep the fitted cloud too concentrated, whereas the self-cost correction spreads the moving particles across the target geometry.

Interactive panel. Use the smoothing, correction, and iteration controls to compare raw entropic attraction with the debiased Sinkhorn divergence.

Proof

At optimality,

1=e(fα,β(x)+gα,β(y)c(x,y))/ϵdβ(y)1 = \int e^{(f_{\alpha,\beta}(x)+g_{\alpha,\beta}(y)-c(x,y))/\epsilon} \d\beta(y)

for α\alpha-almost every xx. Therefore the exponential penalty term in the dual integrates to zero, and the dual value reduces to the two linear potential terms.

The zero-temperature statement is the Γ\Gamma-convergence of entropic OT to the Kantorovich problem Léonard, 2012Carlier et al., 2017. Non-negativity of relative entropy and continuity of cc give the liminf inequality; a finite-entropy approximation of an optimal coupling, chosen so that its entropy multiplied by ϵ\epsilon vanishes, gives a recovery sequence.

Proof Sketch

Use the optimal self-potentials for (α,α)(\alpha,\alpha) and (β,β)(\beta,\beta) as a suboptimal pair in the dual problem between α\alpha and β\beta. After rewriting with α~=efα,α/ϵα\tilde\alpha=e^{f_{\alpha,\alpha}/\epsilon}\alpha and β~=efβ,β/ϵβ\tilde\beta=e^{f_{\beta,\beta}/\epsilon}\beta, one obtains

1ϵLcϵ(α,β)1α~,β~kϵ.\frac{1}{\epsilon} \overline{\mathcal L}_c^\epsilon(\alpha,\beta) \ge 1-\langle \tilde\alpha,\tilde\beta\rangle_{k_\epsilon}.

The self Sinkhorn fixed-point equations imply α~kϵ=β~kϵ=1\norm{\tilde\alpha}_{k_\epsilon}=\norm{\tilde\beta}_{k_\epsilon}=1, so Cauchy--Schwarz for the kernel pairing gives the result.

If the divergence vanishes and the kernel is universal, equality in Cauchy--Schwarz gives identical kernel mean embeddings for α~\tilde\alpha and β~\tilde\beta, hence α~=β~\tilde\alpha=\tilde\beta. The self-consistency equations then recover the same original measure from this common weighted measure. Positive semidefiniteness without universality guarantees only non-negativity and may leave a nontrivial null space.

Complex ϵ\epsilon

The Sinkhorn temperature is usually a positive real number: positivity makes the Gibbs kernel positive, gives the entropy a convex meaning, and underlies the Hilbert-metric and monotone convergence arguments of the next chapter. Once the equations are written as exponential fixed-point equations, however, ϵ\epsilon can also be regarded locally as a complex variable. This does not produce a positive coupling or a contraction theorem; it produces a holomorphic branch of the same scaling equations near any positive real temperature.

Measure fixed point

Let αP(X)\alpha\in\mathcal P(X) and βP(Y)\beta\in\mathcal P(Y). For ϵC{0}\epsilon\in\mathbb C\setminus\{0\}, reuse the Gibbs kernel and integral operators in (24) whenever the defining integrals exist. The density factorization (25), the marginal equations that follow it, and the updates (27) then remain valid verbatim for complex-valued uu and vv, provided that the divisions are well defined. For real ϵ>0\epsilon>0 these are the usual Sinkhorn equations. For complex ϵ\epsilon they are only local analytic identities: they imply neither positivity of πϵ\pi_\epsilon nor convergence of the alternating iteration.

Discrete histograms

For discrete histograms, evaluate the Gibbs kernel entrywise at (xi,yj)(x_i,y_j). The factorization (4) and Sinkhorn updates (8) are then used verbatim over C\mathbb C, with the same marginal constraints and multiplicative gauge, whenever ϵ0\epsilon\ne0 and all divisions are defined. This complexified iteration is again a local parametrization of the scaling equations, not a globally convergent algorithm.

The following finite-dimensional result is the scaling-variable counterpart of Theorem 2.1 and Remark 2.2 of Carlier et al., 2023. For compactly supported marginals and a continuous cost, Carlier, Pegon and Tamanini prove through the Schrödinger system that the normalized potentials, and hence the entropic cost, depend analytically on every real ϵ>0\epsilon>0; their remark explicitly records the resulting local extension to complex temperatures. We state the discrete version directly in (u,v)(u,v) and also allow the marginals and cost matrix to vary.

Proof

Apply the holomorphic implicit-function theorem to the nn row residuals, the first m1m-1 column residuals, and the gauge residual G(u)=iai0(uiui0)G(u)=\sum_i a_i^0(u_i-u_i^0). There are n+mn+m equations for the n+mn+m scaling coordinates. Let (δu,δv)(\delta u,\delta v) belong to the kernel of their derivative at the positive real base point and set

ri=δuiui0,sj=δvjvj0.r_i=\frac{\delta u_i}{u_i^0}, \qquad s_j=\frac{\delta v_j}{v_j^0}.

The induced perturbation is

δPij=Pij0(ri+sj).\delta \P_{ij}=\P^0_{ij}(r_i+s_j).

The linearized row sums vanish; the first m1m-1 column sums vanish by definition, and the last column sum follows from equality of the total row and column sums. Hence

0=irijδPij+jsjiδPij=i,jPij0ri+sj2.0 = \sum_i\overline{r_i}\sum_j\delta \P_{ij} + \sum_j\overline{s_j}\sum_i\delta \P_{ij} = \sum_{i,j}\P^0_{ij}|r_i+s_j|^2.

Strict positivity gives ri=θr_i=\theta and sj=θs_j=-\theta. The linearized gauge then gives 0=θiai0ui00=\theta\sum_i a_i^0u_i^0, hence θ=0\theta=0. The derivative is invertible, and the holomorphic implicit-function theorem gives the local branch.

After shrinking the neighborhoods if necessary, every scaling coordinate is nonzero. Choosing local logarithms defines the holomorphic log-scalings fϵ=ϵloguϵf_\epsilon=\epsilon\log u_\epsilon and gϵ=ϵlogvϵg_\epsilon=\epsilon\log v_\epsilon. They are useful for visualization but are not needed in the theorem.

Figure Div visualizes the local continuation at the level of the coupling, without choosing logarithm branches. For a fixed real part ϵ0\epsilon_0, it displays Pϵ0+iη|\P_{\epsilon_0+i\eta}| at four increasing imaginary parts. The complex matrix Pϵ0+iη\P_{\epsilon_0+i\eta} retains the prescribed marginals (a,b)(a,b), but taking its entrywise modulus destroys these linear identities. The attached red and blue profiles therefore show (a,b)(a,b), while the violet profiles show the row and column sums of Pϵ0+iη|\P_{\epsilon_0+i\eta}| and reveal the cancellations hidden by the modulus.

<IPython.core.display.Image object>

The magnitude of a complex Sinkhorn coupling exposes the oscillations created by an imaginary temperature. Two Gaussian-mixture histograms and ϵ0=0.55\epsilon_0=0.55 are fixed, while ϵ=ϵ0+iη\epsilon=\epsilon_0+i\eta is continued through η{0,0.20,0.40,0.60}\eta\in\{0,0.20,0.40,0.60\}. Every panel uses the same intensity scale. The red and blue profiles are the prescribed marginals of the complex coupling; the violet profiles are the marginals of its entrywise modulus and separate from them as cancellation increases.

Interactive panel. Vary the real and imaginary parts of the temperature to inspect Pϵ0+iη|\P_{\epsilon_0+i\eta}|. The side profiles distinguish the prescribed marginals of the complex matrix from the marginals obtained after taking its entrywise modulus.

References
  1. Sinkhorn, R. (1964). A relationship between arbitrary positive matrices and doubly stochastic matrices. The Annals of Mathematical Statistics, 35(2), 876–879. 10.1214/aoms/1177703591
  2. Sinkhorn, R., & Knopp, P. (1967). Concerning nonnegative matrices and doubly stochastic matrices. Pacific Journal of Mathematics, 21(2), 343–348. 10.2140/pjm.1967.21.343
  3. Sinkhorn, R. (1967). Diagonal equivalence to matrices with prescribed row and column sums. American Mathematical Monthly, 74, 402–405.
  4. Cuturi, M. (2013). Sinkhorn distances: lightspeed computation of optimal transport. Advances in Neural Information Processing Systems 26, 2292–2300.
  5. Peyré, G., & Cuturi, M. (2019). Computational Optimal Transport: With Applications to Data Science. Foundations and Trends in Machine Learning, 11(5–6), 355–607. 10.1561/2200000073
  6. Nesterov, Y., & Nemirovskii, A. (1994). Interior-point polynomial algorithms in convex programming (Vol. 13). SIAM.
  7. Altschuler, J., Weed, J., & Rigollet, P. (2017). Near-linear time approximation algorithms for optimal transport via Sinkhorn iteration. Advances in Neural Information Processing Systems, 30, 1964–1974.
  8. Dvurechensky, P., Gasnikov, A., & Kroshnin, A. (2018). Computational Optimal Transport: Complexity by Accelerated Gradient Descent Is Better Than by Sinkhorn’s Algorithm. In J. Dy & A. Krause (Eds.), Proceedings of the 35th International Conference on Machine Learning (Vol. 80, pp. 1367–1376). PMLR.
  9. Knight, P. A. (2008). The Sinkhorn–Knopp algorithm: convergence and applications. SIAM Journal on Matrix Analysis and Applications, 30(1), 261–275. 10.1137/060659624
  10. Léonard, C. (2012). From the Schrödinger problem to the Monge–Kantorovich problem. Journal of Functional Analysis, 262(4), 1879–1920.
  11. Carlier, G., Duval, V., Peyré, G., & Schmitzer, B. (2017). Convergence of entropic schemes for optimal transport and gradient flows. SIAM Journal on Mathematical Analysis, 49(2), 1385–1418.
  12. Conforti, G., & Tamanini, L. (2021). A formula for the time derivative of the entropic cost and applications. Journal of Functional Analysis, 280(11), 108964. 10.1016/j.jfa.2021.108964
  13. Chizat, L., Roussillon, P., Léger, F., Vialard, F.-X., & Peyré, G. (2020). Faster Wasserstein Distance Estimation with the Sinkhorn Divergence. Advances in Neural Information Processing Systems, 33, 2257–2269.
  14. Nutz, M., & Wiesel, J. (2022). Entropic Optimal Transport: Convergence of Potentials. Probability Theory and Related Fields, 184, 401–424. 10.1007/s00440-021-01096-8
  15. Amos, B., Xu, L., & Kolter, J. Z. (2017). Input Convex Neural Networks. Proceedings of the 34th International Conference on Machine Learning, 70, 146–155.