Papers
Topics
Authors
Recent
Search
2000 character limit reached

Online Sinkhorn Algorithms

Updated 30 March 2026
  • Online Sinkhorn is a scalable iterative method that computes entropic-regularized optimal transport distances by updating dual potentials directly from data streams.
  • It employs stochastic approximation and mini-batch updates to achieve robust convergence and reduced memory usage compared to batch methods.
  • Extensions such as Mirror and Compressed Online Sinkhorn enhance efficiency by controlling computational complexity while preserving convergence rates.

Online Sinkhorn algorithms constitute a family of scalable iterative methods for computing entropic-regularized optimal transport (OT) distances and more general convex objectives over transport polytopes, leveraging sample streams and stochastic approximation. Unlike classical batch Sinkhorn methods that operate on static, finite measures, online Sinkhorn approaches update nonparametric representations of dual potentials or transport plans directly from incoming sample streams. These methods are robust to noise, require only one pass through data, and have favorable convergence guarantees, making them suitable for large-scale, streaming, or online machine learning applications.

1. Foundational Problem Formulations

The core objective is to compute the entropic-regularized OT cost between two probability measures α\alpha and β\beta on a compact space X\mathcal{X} with cost function C:X×XRC : \mathcal{X} \times \mathcal{X} \to \mathbb{R},

minπΠ(α,β)X×XC(x,y)dπ(x,y)+εKL(παβ),\min_{\pi \in \Pi(\alpha, \beta)} \int_{\mathcal{X} \times \mathcal{X}} C(x, y) \, d\pi(x, y) + \varepsilon \, KL(\pi \| \alpha \otimes \beta),

where ε>0\varepsilon > 0, and Π(α,β)\Pi(\alpha, \beta) denotes the set of couplings. The dual formulation is smooth and strictly convex,

maxf,gC(X)f,α+g,βεexp(f(x)+g(y)C(x,y)ε)dα(x)dβ(y).\max_{f, g \in C(\mathcal{X})} \langle f, \alpha \rangle + \langle g, \beta \rangle - \varepsilon \int \exp\left(\frac{f(x)+g(y)-C(x,y)}{\varepsilon}\right) d\alpha(x) d\beta(y).

For discrete measures μΔm\mu \in \Delta_m, νΔn\nu \in \Delta_n, optimization is over the transport polytope

β\beta0

for general convex β\beta1, with special cases including linear OT and entropic-regularized OT (Mensch et al., 2020, Wang et al., 2023, Ballu et al., 2022).

2. Stochastic and Online Sinkhorn Algorithms

The classic Sinkhorn algorithm alternates soft β\beta2-transforms to update dual potentials on discretized measures, requiring full batch access. Mensch and Peyré introduced a stochastic framework for streaming data:

  • Dual potentials are represented by growing kernel expansions:

β\beta3

and similarly for β\beta4 in terms of past samples β\beta5.

  • Update steps use mini-batches β\beta6:

β\beta7

with β\beta8 vanishing, and unbiased Monte Carlo approximations of soft β\beta9-transforms.

For the discrete convex setup, the Mirror Sinkhorn algorithm executes a single-loop of mirror descent with a negative-entropy mirror map, alternating Sinkhorn-style marginal projections:

  1. Mirror step: X\mathcal{X}3,
  2. Normalizations alternate row- or column-scaling via Diag operators,
  3. Averaging: Optional running average X\mathcal{X}4 in stochastic settings,
  4. Output: Last or averaged iterate, depending on the regime (Ballu et al., 2022).

3. Convergence Analysis and Theoretical Guarantees

Online Sinkhorn algorithms admit strong convergence properties:

  • For streaming settings with growing batch sizes X\mathcal{X}5, decreasing step sizes X\mathcal{X}6, and X\mathcal{X}7, the expected variation-norm error for the duals decays as X\mathcal{X}8, where X\mathcal{X}9 is the total sample count (Wang et al., 2023).
  • Previous results only established C:X×XRC : \mathcal{X} \times \mathcal{X} \to \mathbb{R}0 rates; refined analyses lead to sharper algebraic exponents tied to C:X×XRC : \mathcal{X} \times \mathcal{X} \to \mathbb{R}1 (Mensch et al., 2020, Wang et al., 2023).
  • In the discrete finite case, Mirror Sinkhorn yields, for C:X×XRC : \mathcal{X} \times \mathcal{X} \to \mathbb{R}2-Lipschitz convex C:X×XRC : \mathcal{X} \times \mathcal{X} \to \mathbb{R}3, online regret bounds C:X×XRC : \mathcal{X} \times \mathcal{X} \to \mathbb{R}4 and constraint violation sums C:X×XRC : \mathcal{X} \times \mathcal{X} \to \mathbb{R}5 (Ballu et al., 2022).
  • When C:X×XRC : \mathcal{X} \times \mathcal{X} \to \mathbb{R}6 is strongly convex and smooth in KL divergence, the method obtains C:X×XRC : \mathcal{X} \times \mathcal{X} \to \mathbb{R}7 aggregate error up to logarithmic factors.
  • The Bregman decomposition underpins the proofs, leveraging contraction and Pinsker’s inequalities.

4. Algorithmic Extensions: Compression and Mirror Descent

To counteract the unbounded memory and kernel-evaluation cost, Compressed Online Sinkhorn periodically reduces the support of the dual potentials using moment-preserving compression:

  • Compression by moment-matching: Replace the kernel expansion with a reduced atomic measure C:X×XRC : \mathcal{X} \times \mathcal{X} \to \mathbb{R}8 matching selected functional moments (e.g., polynomials in Gaussian Quadrature for C:X×XRC : \mathcal{X} \times \mathcal{X} \to \mathbb{R}9, Fourier moments for any minπΠ(α,β)X×XC(x,y)dπ(x,y)+εKL(παβ),\min_{\pi \in \Pi(\alpha, \beta)} \int_{\mathcal{X} \times \mathcal{X}} C(x, y) \, d\pi(x, y) + \varepsilon \, KL(\pi \| \alpha \otimes \beta),0). For Fourier-based compression, error bounds are minπΠ(α,β)X×XC(x,y)dπ(x,y)+εKL(παβ),\min_{\pi \in \Pi(\alpha, \beta)} \int_{\mathcal{X} \times \mathcal{X}} C(x, y) \, d\pi(x, y) + \varepsilon \, KL(\pi \| \alpha \otimes \beta),1 for minπΠ(α,β)X×XC(x,y)dπ(x,y)+εKL(παβ),\min_{\pi \in \Pi(\alpha, \beta)} \int_{\mathcal{X} \times \mathcal{X}} C(x, y) \, d\pi(x, y) + \varepsilon \, KL(\pi \| \alpha \otimes \beta),2.
  • Theoretical result: If minπΠ(α,β)X×XC(x,y)dπ(x,y)+εKL(παβ),\min_{\pi \in \Pi(\alpha, \beta)} \int_{\mathcal{X} \times \mathcal{X}} C(x, y) \, d\pi(x, y) + \varepsilon \, KL(\pi \| \alpha \otimes \beta),3 (compressed) satisfies minπΠ(α,β)X×XC(x,y)dπ(x,y)+εKL(παβ),\min_{\pi \in \Pi(\alpha, \beta)} \int_{\mathcal{X} \times \mathcal{X}} C(x, y) \, d\pi(x, y) + \varepsilon \, KL(\pi \| \alpha \otimes \beta),4, and minπΠ(α,β)X×XC(x,y)dπ(x,y)+εKL(παβ),\min_{\pi \in \Pi(\alpha, \beta)} \int_{\mathcal{X} \times \mathcal{X}} C(x, y) \, d\pi(x, y) + \varepsilon \, KL(\pi \| \alpha \otimes \beta),5, the compressed algorithm preserves the minπΠ(α,β)X×XC(x,y)dπ(x,y)+εKL(παβ),\min_{\pi \in \Pi(\alpha, \beta)} \int_{\mathcal{X} \times \mathcal{X}} C(x, y) \, d\pi(x, y) + \varepsilon \, KL(\pi \| \alpha \otimes \beta),6 convergence rate for an appropriate compression scheme (Wang et al., 2023).

Mirror Sinkhorn is further extensible to non-linear, stochastic, or multi-marginal objectives and to dual-space variants.

5. Empirical Performance and Implementation Considerations

Empirical studies validate that:

  • Standard Online Sinkhorn matches batch Sinkhorn objectives with substantially less memory and enables online warm-starting of batch algorithms, yielding speed-ups (e.g., minπΠ(α,β)X×XC(x,y)dπ(x,y)+εKL(παβ),\min_{\pi \in \Pi(\alpha, \beta)} \int_{\mathcal{X} \times \mathcal{X}} C(x, y) \, d\pi(x, y) + \varepsilon \, KL(\pi \| \alpha \otimes \beta),7 for 3D shape matching).
  • Compressed Online Sinkhorn reduces wall-clock times by minπΠ(α,β)X×XC(x,y)dπ(x,y)+εKL(παβ),\min_{\pi \in \Pi(\alpha, \beta)} \int_{\mathcal{X} \times \mathcal{X}} C(x, y) \, d\pi(x, y) + \varepsilon \, KL(\pi \| \alpha \otimes \beta),8 (e.g., in 5D GMMs), maintaining matching error decay envelopes with reduced evaluation and storage costs.
  • In convex discrete settings, Mirror Sinkhorn achieves zero-bias convergence and outperforms entropic-regularized Sinkhorn in accuracy, especially under stochastic-noise settings (Ballu et al., 2022).
  • Typical choices for regularization (minπΠ(α,β)X×XC(x,y)dπ(x,y)+εKL(παβ),\min_{\pi \in \Pi(\alpha, \beta)} \int_{\mathcal{X} \times \mathcal{X}} C(x, y) \, d\pi(x, y) + \varepsilon \, KL(\pi \| \alpha \otimes \beta),9), step-sizes (ε>0\varepsilon > 00), batching (ε>0\varepsilon > 01), and compression levels are empirically justified (Wang et al., 2023).

6. Comparisons, Advantages, and Limitations

Algorithm Per-iteration Cost Memory (w.r.t. N) Constraint Consistency Rate
Batch Sinkhorn ε>0\varepsilon > 02 ε>0\varepsilon > 03 Finite sample bias ε>0\varepsilon > 04 (dual error)
Online Sinkhorn ε>0\varepsilon > 05 ε>0\varepsilon > 06 Consistent ε>0\varepsilon > 07, ε>0\varepsilon > 08 growing
Mirror Sinkhorn (discrete) ε>0\varepsilon > 09 Π(α,β)\Pi(\alpha, \beta)0 Marginal error Π(α,β)\Pi(\alpha, \beta)1 Π(α,β)\Pi(\alpha, \beta)2, Π(α,β)\Pi(\alpha, \beta)3 (strong convex.)
Compressed Online Sinkhorn Π(α,β)\Pi(\alpha, \beta)4 Π(α,β)\Pi(\alpha, \beta)5 Preserved rate Same as Online, lower asymp. cost
  • Online Sinkhorn is single-pass and streaming-friendly, in contrast to two-phase batch approaches (Mensch et al., 2020, Wang et al., 2023).
  • Mirror Sinkhorn avoids nested loops and the need to know a target precision Π(α,β)\Pi(\alpha, \beta)6 in advance (Ballu et al., 2022).
  • Compression schemes further control memory and arithmetic complexity, yielding asymptotic computational exponents as low as Π(α,β)\Pi(\alpha, \beta)7 (Wang et al., 2023).
  • A limitation is that marginal constraint satisfaction in stochastic methods is typically Π(α,β)\Pi(\alpha, \beta)8, slower than exponentially fast convergence in highly entropic batch Sinkhorn. No Π(α,β)\Pi(\alpha, \beta)9 rate is guaranteed in the non-strongly convex case for Mirror Sinkhorn (Ballu et al., 2022).

7. Applications and Extensions

Online Sinkhorn methods are applicable across OT-based tasks in machine learning, including domain adaptation, WGAN training, barycenter computation, and matching in high-dimensional or streaming-data settings:

Definition Search Book Streamline Icon: https://streamlinehq.com
References (3)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Online Sinkhorn.