Low-Rank Sinkhorn Factorization

Meyer Scetbon, Marco Cuturi, Gabriel Peyré

Optimal Transport (OT) has become a cornerstone of modern machine learning, used for everything from aligning word embeddings to analyzing single-cell sequencing data. However, the "gold standard" for computing OT—the Sinkhorn algorithm—faces a persistent dilemma: it is either computationally expensive ($O(n^2)$) or numerically unstable when high precision is required.

In this paper, Meyer Scetbon, Marco Cuturi, and Gabriel Peyré introduce Low-Rank Sinkhorn Factorization (LOT). Instead of just smoothing the problem with entropy, they propose a structural constraint: forcing the transport plan to have a low nonnegative rank. This approach offers a faster, more stable, and more scalable alternative to traditional regularized OT.

TL;DR

The authors propose a novel method to solve Optimal Transport problems by constraining the coupling matrix to a low nonnegative rank. This "Low-Rank Sinkhorn" approach provides a stable alternative to entropic regularization, achieves linear time complexity for common cost functions, and outperforms existing low-rank approximation methods in both speed and accuracy.

What Problem Does This Paper Address?

Computing the exact Optimal Transport distance (the Wasserstein distance) between two distributions of size $n$ is a heavy lift, typically requiring $O(n^3 \log n)$ time. The Sinkhorn algorithm revolutionized the field by adding entropic regularization, which smooths the problem and reduces complexity to $O(n^2)$.

However, Sinkhorn has two major "pain points":

  1. The Precision-Stability Trade-off: To get a sharp, accurate transport plan, you need a very small regularization parameter ($\epsilon$). But as $\epsilon$ approaches zero, the algorithm becomes numerically unstable and slow to converge.
  2. Scalability: Even $O(n^2)$ is too slow for the massive datasets common in modern genomics or computer vision.

Previous attempts to fix this usually involved approximating the kernel matrix (the "cost" of moving mass). LOT takes a different route by constraining the coupling matrix (the "plan" for moving mass) itself.

Methods

The core idea is to restrict the set of feasible transport plans (couplings) to those with a nonnegative rank at most $r$, where $r \ll n$.

The Factorization Trick

The authors decompose the coupling matrix $P$ into a product of two smaller "sub-coupling" matrices, $Q$ and $R$, linked by a common marginal $g$: $$P = Q \text{diag}(1/g) R^T$$ This looks conceptually similar to Non-negative Matrix Factorization (NMF). By optimizing over $Q, R,$ and $g$, the algorithm ensures the transport plan always stays within the low-rank constraint.

The Algorithm: LOT

To solve this non-convex problem, the authors use a two-layered approach:

  • Outer Loop: A Mirror Descent scheme that iteratively updates the factors.
  • Inner Loop: An adapted version of Dykstra’s algorithm to project the updates back onto the set of valid transport constraints (ensuring the mass moved matches the starting and ending distributions).

Crucially, if the cost matrix $C$ itself is low-rank (which is true for squared Euclidean distance), the entire computation drops from $O(n^2)$ to linear time $O(n)$.

Key Insights and Ideas

  • Rank as Regularization: Traditionally, we use entropy ($\epsilon$) to control the "blurriness" of OT. LOT shows that rank ($r$) can act as a similar knob. A rank of 1 represents independent marginals (maximum entropy), while a rank of $n$ recovers the standard OT solution.
Comparison of transport plans for varying rank r and entropy epsilon
  • Decoupling from the Kernel: Unlike previous methods (like Nyström or Random Features) that fail when $\epsilon$ is small, LOT’s performance doesn't degrade with high precision. It treats the low-rank constraint as a structural property of the solution, not just a numerical approximation.
  • Linear Time for Euclidean Costs: By exploiting the fact that the squared Euclidean distance matrix is naturally low-rank (rank $d+2$), LOT achieves true linear scalability for one of the most common use cases in ML.

Datasets and Key Results

The authors evaluated LOT on several benchmarks, including synthetic Gaussian mixtures, graph distances, and single-cell RNA sequencing data.

  • Superior Approximation: LOT consistently provided a better approximation of the true OT cost than Sinkhorn, Nyström, or Random Features-based methods, especially in the high-precision regime.
  • Speedup: For large-scale problems ($n=10,000$), LOT was orders of magnitude faster than standard Sinkhorn while maintaining higher accuracy.
  • Biological Validity: In the single-cell experiment, LOT successfully recovered the same developmental trajectories as Sinkhorn but with much better computational efficiency and robustness to the choice of hyperparameters.

Limitations and Future Work

  • Non-convexity: Because the low-rank constraint makes the optimization problem non-convex, the algorithm is only guaranteed to find a stationary point, not necessarily the global minimum. However, empirical results showed it is robust to initialization.
  • Rank Selection: Much like choosing $\epsilon$ in Sinkhorn, choosing the optimal rank $r$ remains a heuristic process.
  • Memory vs. Rank: While the time complexity is linear, the memory required still scales with the chosen rank $r$.

Overall, LOT provides a powerful new framework for researchers who need the geometric insights of Optimal Transport but are currently limited by the quadratic scaling of the Sinkhorn algorithm.

Summary updated

BibTeX
@inproceedings{scetbon2021low,
  author = {Meyer Scetbon and Marco Cuturi and Gabriel Peyré},
  title = {{Low-Rank Sinkhorn Factorization}},
  booktitle = {International Conference on Machine Learning},
  year = {2021},
  url = {https://openreview.net/forum?id=1lUd16OXaf},
}
Figure