[Paper Review] Learning Wasserstein Embeddings
This paper proposes a deep learning framework to embed probability distributions into a Euclidean space where Euclidean distances approximate Wasserstein distances, enabling fast computation of Wasserstein-based operations like barycenters and interpolations. Using a siamese autoencoder architecture, the method achieves real-time inference (4 ms/interpolation) with minimal accuracy loss compared to exact optimal transport solutions.
The Wasserstein distance received a lot of attention recently in the community of machine learning, especially for its principled way of comparing distributions. It has found numerous applications in several hard problems, such as domain adaptation, dimensionality reduction or generative models. However, its use is still limited by a heavy computational cost. Our goal is to alleviate this problem by providing an approximation mechanism that allows to break its inherent complexity. It relies on the search of an embedding where the Euclidean distance mimics the Wasserstein distance. We show that such an embedding can be found with a siamese architecture associated with a decoder network that allows to move from the embedding space back to the original input space. Once this embedding has been found, computing optimization problems in the Wasserstein space (e.g. barycenters, principal directions or even archetypes) can be conducted extremely fast. Numerical experiments supporting this idea are conducted on image datasets, and show the wide potential benefits of our method.
Motivation & Objective
- To address the high computational cost of computing Wasserstein distances in large-scale machine learning applications.
- To enable fast approximation of Wasserstein-based operations such as barycenters, geodesics, and interpolations.
- To learn a Euclidean embedding where the Euclidean norm mimics the Wasserstein distance between probability measures.
- To jointly learn the embedding and its inverse for distribution reconstruction from the embedded space.
- To evaluate transferability of learned embeddings across different datasets with varying data complexity.
Proposed method
- A siamese neural network architecture is trained to map probability distributions into a low-dimensional Euclidean space such that the Euclidean distance approximates the Wasserstein distance.
- A separate decoder network is trained to reconstruct the original input distribution from the embedded representation, enabling inverse mapping.
- The model is trained using a contrastive loss that encourages small Euclidean distances between distributions with small Wasserstein distances.
- The framework supports end-to-end learning of the embedding and reconstruction, allowing for efficient inference in the embedded space.
- The method is evaluated on MNIST and three doodle datasets (Cat, Crab, Faces) using exact Wasserstein distances computed via the POT toolbox.
- Wasserstein interpolation and barycenter computation are performed in the embedded space, with comparisons to exact linear programming and regularized optimal transport solutions.
Experimental results
Research questions
- RQ1Can a deep neural network learn a Euclidean embedding such that the Euclidean distance between embedded points approximates the Wasserstein distance between their original distributions?
- RQ2How well can the learned embedding preserve the geometric structure of the Wasserstein space, especially for complex and varied data distributions?
- RQ3To what extent can an embedding trained on one dataset be transferred to another dataset with different data characteristics?
- RQ4How does the computational efficiency of the proposed method compare to exact optimal transport solvers and regularized OT methods?
- RQ5Can the joint learning of the embedding and its inverse enable accurate reconstruction of input distributions from the embedded space?
Key findings
- The proposed method achieves real-time inference for Wasserstein interpolation in 4 ms per interpolation, compared to 20 seconds using exact linear programming solvers.
- On the MNIST dataset, the learned embedding achieves a mean squared error (MSE) of 0.405 in reconstructing Wasserstein distances, indicating high fidelity.
- Cross-dataset performance shows moderate accuracy degradation (e.g., MSE ~10–50 on MNIST when using doodle-trained models), but remains stable across similar data domains.
- The method produces smooth, continuous interpolations that reflect optimal transport behavior, despite some loss of fine details due to autoencoder reconstruction error.
- Regularized optimal transport (Bregman projection) is faster than exact LP but more blurred; the DWE method strikes a balance with speed and visual plausibility.
- The framework enables fast computation of Wasserstein barycenters and principal directions in the embedded space, significantly reducing computational cost compared to direct Wasserstein optimization.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.