FlashSinkhorn: IO-Aware Entropic Optimal Transport on GPU

Felix X. -F. Ye, Xingjie Li, An Yu, Ming-Ching Chang, Linsong Chu +1 more
2/3/2026
10 citations
cs.LGcs.AImath.NA
transformer-attention

Official code: ot-triton-lab/flash-sinkhorn (226 stars, Python, MIT, PyTorch, last commit 2026-10-05).

Abstract

Entropic optimal transport (EOT) via Sinkhorn iterations is widely used in modern machine learning, yet GPU solvers remain inefficient at scale. Tensorized implementations suffer quadratic HBM traffic from dense $n\times m$ interactions, while existing online backends avoid storing dense matrices but still rely on generic tiled map-reduce reduction kernels with limited fusion.

Show full abstract

We present \textbf{FlashSinkhorn}, an IO-aware EOT solver for squared Euclidean cost that rewrites stabilized log-domain Sinkhorn updates as row-wise LogSumExp reductions of biased dot-product scores, the same normalization as transformer attention. This enables FlashAttention-style fusion and tiling: fused Triton kernels stream tiles through on-chip SRAM and update dual potentials in a single pass, substantially reducing HBM IO per iteration while retaining linear-memory operations. We further provide streaming kernels for transport application, enabling scalable first- and second-order optimization. On A100 GPUs, FlashSinkhorn achieves up to $32\times$ forward-pass and $161\times$ end-to-end speedups over state-of-the-art online baselines on point-cloud OT, improves scalability on OT-based downstream tasks. For reproducibility, we release an open-source implementation at https://github.com/ot-triton-lab/flash-sinkhorn .

View on arXivView PDF

Code Implementations(1)

PyTorchMIT

The official repository of FlashSinkhorn [ICML 2026 Oral]

22622Python, NixDec 21, 20251 months agoMIT
cudaentropic-optimal-transportflash-attentionflashsinkhorngpu+5 more

Similar Papers

Cite this paper

@article{ye2026flashsinkhorn,
  title  = {FlashSinkhorn: IO-Aware Entropic Optimal Transport on GPU},
  author = {Felix X. -F. Ye and Xingjie Li and An Yu and Ming-Ching Chang and Linsong Chu and Davis Wertheimer},
  year   = {2026},
  eprint = {2602.03067},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2602.03067v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2602.03067.svg)](https://codeofpaper.com/paper/2602.03067)

Discussion