Skip to main content
QUICK REVIEW

[Paper Review] Linear Time Sinkhorn Divergences using Positive Features

Meyer Scetbon, Marco Cuturi|arXiv (Cornell University)|Jun 1, 2020
Sparse and Compressive Sensing TechniquesEngineering8 citations
TL;DR

This paper proposes a linear-time approximation of Sinkhorn divergences using positive feature maps, reducing computation from O(n²) to O(nr) by modeling ground costs as inner products in a positive orthant. The method enables differentiable, scalable optimal transport for applications like OT-GAN training, achieving significant speedups while preserving gradient fidelity.

ABSTRACT

Although Sinkhorn divergences are now routinely used in data sciences to compare probability distributions, the computational effort required to compute them remains expensive, growing in general quadratically in the size $n$ of the support of these distributions. Indeed, solving optimal transport (OT) with an entropic regularization requires computing a $n imes n$ kernel matrix (the neg-exponential of a $n imes n$ pairwise ground cost matrix) that is repeatedly applied to a vector. We propose to use instead ground costs of the form $c(x,y)=-\log\dotp{\varphi(x)}{\varphi(y)}$ where $\varphi$ is a map from the ground space onto the positive orthant $\RR^r_+$, with $r\ll n$. This choice yields, equivalently, a kernel $k(x,y)=\dotp{\varphi(x)}{\varphi(y)}$, and ensures that the cost of Sinkhorn iterations scales as $O(nr)$. We show that usual cost functions can be approximated using this form. Additionaly, we take advantage of the fact that our approach yields approximation that remain fully differentiable with respect to input distributions, as opposed to previously proposed adaptive low-rank approximations of the kernel matrix, to train a faster variant of OT-GAN \cite{salimans2018improving}.

Motivation & Objective

  • To address the high computational cost of Sinkhorn divergences, which scale quadratically with support size n.
  • To develop a low-rank, differentiable approximation of the kernel matrix in entropic optimal transport using positive feature maps.
  • To enable faster training of OT-GAN by replacing expensive kernel computations with efficient feature-based operations.
  • To maintain the differentiability of the approximation with respect to input distributions, unlike prior low-rank methods.

Proposed method

  • The method models the ground cost as c(x,y) = -log⟨φ(x), φ(y)⟩, where φ maps data points into the positive orthant ℝʳ₊ with r ≪ n.
  • This formulation yields a positive definite kernel k(x,y) = ⟨φ(x), φ(y)⟩, which allows efficient matrix-vector multiplication in O(nr) time.
  • The kernel approximation ensures that each Sinkhorn iteration scales linearly in n, rather than quadratically, by exploiting the low-rank structure of the feature map.
  • The approach maintains full differentiability of the Sinkhorn divergence with respect to input probability measures, enabling end-to-end learning.
  • The method is applied to train a faster variant of OT-GAN, leveraging the differentiable nature of the approximation.

Experimental results

Research questions

  • RQ1Can we approximate Sinkhorn divergences in linear time while preserving differentiability?
  • RQ2Can positive feature maps enable a low-rank kernel structure that reduces OT computation from O(n²) to O(nr)?
  • RQ3Does the proposed method maintain sufficient accuracy for downstream tasks like GAN training?
  • RQ4How does the differentiability of the approximation compare to prior low-rank kernel approximations?

Key findings

  • The proposed method reduces the computational cost of Sinkhorn iterations from O(n²) to O(nr), enabling linear-time computation.
  • The use of positive feature maps ensures that the kernel remains positive definite and amenable to efficient matrix-vector operations.
  • The approximation remains fully differentiable with respect to input distributions, unlike previous low-rank approximations.
  • The method enables faster training of OT-GAN by replacing expensive kernel computations with efficient feature-based operations.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.