Wasserstein Wormhole: Scalable Optimal Transport Distance with Transformers

D. Haviv, R. Kunes, Thomas Dougherty, Cassandra Burdziak, T. Nawy +2 more
4/1/2024
transformer-attention

No confident code implementation found for this paper.

Abstract

Optimal transport (OT) and the related Wasserstein metric (W) are powerful and ubiquitous tools for comparing distributions. However, computing pairwise Wasserstein distances rapidly becomes intractable as cohort size grows.

Show full abstract

An attractive alternative would be to find an embedding space in which pairwise Euclidean distances map to OT distances, akin to standard multidimensional scaling (MDS). We present Wasserstein Wormhole, a transformer-based autoencoder that embeds empirical distributions into a latent space wherein Euclidean distances approximate OT distances. Extending MDS theory, we show that our objective function implies a bound on the error incurred when embedding non-Euclidean distances. Empirically, distances between Wormhole embeddings closely match Wasserstein distances, enabling linear time computation of OT distances. Along with an encoder that maps distributions to embeddings, Wasserstein Wormhole includes a decoder that maps embeddings back to distributions, allowing for operations in the embedding space to generalize to OT spaces, such as Wasserstein barycenter estimation and OT interpolation. By lending scalability and interpretability to OT approaches, Wasserstein Wormhole unlocks new avenues for data analysis in the fields of computational geometry and single-cell biology. Software is available at http://wassersteinwormhole.readthedocs.io/en/latest/.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{haviv2024wasserstein,
  title  = {Wasserstein Wormhole: Scalable Optimal Transport Distance with Transformers},
  author = {D. Haviv and R. Kunes and Thomas Dougherty and Cassandra Burdziak and T. Nawy and Anna Gilbert and D. Pe’er},
  year   = {2024},
  eprint = {2404.09411},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2404.09411},
  journal = {ICML 2024 2024}
}

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/2404.09411.svg)](https://codeofpaper.com/paper/2404.09411)

Discussion