Skip to main content
QUICK REVIEW

[Paper Review] Fast Approximation of the Sliced-Wasserstein Distance Using Concentration of Random Projections

Kimia Nadjahi, Alain Durmus|arXiv (Cornell University)|Jun 29, 2021
Geometric Analysis and Curvature FlowsMathematics38 references5 citations
TL;DR

This paper proposes a deterministic, hyperparameter-free approximation of the Sliced-Wasserstein distance (SW) by leveraging the concentration of measure phenomenon in high-dimensional random projections. Instead of Monte Carlo sampling, the method uses the fact that high-dimensional projections concentrate around a Gaussian distribution, enabling a fast, accurate, and computationally efficient SW estimation with nonasymptotic error guarantees that vanish as dimension increases under weak dependence conditions.

ABSTRACT

The Sliced-Wasserstein distance (SW) is being increasingly used in machine learning applications as an alternative to the Wasserstein distance and offers significant computational and statistical benefits. Since it is defined as an expectation over random projections, SW is commonly approximated by Monte Carlo. We adopt a new perspective to approximate SW by making use of the concentration of measure phenomenon: under mild assumptions, one-dimensional projections of a high-dimensional random vector are approximately Gaussian. Based on this observation, we develop a simple deterministic approximation for SW. Our method does not require sampling a number of random projections, and is therefore both accurate and easy to use compared to the usual Monte Carlo approximation. We derive nonasymptotical guarantees for our approach, and show that the approximation error goes to zero as the dimension increases, under a weak dependence condition on the data distribution. We validate our theoretical findings on synthetic datasets, and illustrate the proposed approximation on a generative modeling problem.

Motivation & Objective

  • To address the high computational cost of Monte Carlo-based Sliced-Wasserstein distance (SW) estimation in high-dimensional settings.
  • To develop a deterministic alternative to Monte Carlo sampling for SW that avoids tuning the number of projections $ L $.
  • To provide nonasymptotic theoretical guarantees on the approximation error of SW under weak dependence conditions.
  • To enable faster training in generative modeling and other ML tasks relying on SW by replacing Monte Carlo SW with a deterministic, scalable alternative.
  • To demonstrate the method's effectiveness on synthetic data and image generation, showing improved speed and quality over Monte Carlo-based SW.

Proposed method

  • The method exploits the concentration of measure phenomenon: high-dimensional random projections of weakly dependent data concentrate around a Gaussian distribution.
  • It replaces the Monte Carlo expectation over random projections with a deterministic approximation based on the limiting Gaussian distribution of projections.
  • The approximation is derived using a bound from [26] on the Wasserstein distance between projected distributions and their Gaussian limit.
  • The resulting SW estimate is computed via closed-form operations on the mean and covariance of the data, avoiding sampling or optimization.
  • The method is implemented efficiently using PyTorch’s sorting operations, enabling GPU acceleration and low per-epoch computation time.
  • The approach is applied to generative modeling by comparing feature representations with regularized covariance matrices to enforce weak dependence.

Experimental results

Research questions

  • RQ1Can the concentration of measure phenomenon be leveraged to construct a deterministic, hyperparameter-free approximation of the Sliced-Wasserstein distance?
  • RQ2What is the nonasymptotic error behavior of this deterministic SW approximation as the data dimension increases?
  • RQ3How does the approximation error scale with the dimension and under what dependence assumptions on the data distribution?
  • RQ4Can this deterministic SW approximation outperform Monte Carlo-based SW in terms of computational efficiency and generative model quality?
  • RQ5Is the method applicable to real-world ML tasks such as image generation, especially when data features are weakly dependent?

Key findings

  • The proposed deterministic SW approximation achieves significantly faster computation than Monte Carlo: under 3 seconds per epoch on CPU for CelebA, compared to ~45 minutes with Monte Carlo.
  • The approximation error decreases with increasing dimension, approaching zero under a weak dependence condition on the data distribution.
  • On synthetic data, the empirical convergence rate of the approximation error is faster than the theoretical $ d^{-1/8} $ bound, suggesting the bound may be conservative.
  • In image generation, the reg-det-SWG model using the proposed SW approximation produces higher-quality images and achieves comparable or lower training time than Monte Carlo-based SWG.
  • The method eliminates the need for tuning the number of projections $ L $, reducing hyperparameter sensitivity and simplifying implementation.
  • The theoretical error bound is $ O(d^{-1/2}) $ for diagonal covariance Gaussians, and the authors suggest tighter bounds may be possible for specific distributions.

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.