Skip to main content
QUICK REVIEW

[Paper Review] Sliced Gromov-Wasserstein

Titouan Vayer, Rémi Flamary|arXiv (Cornell University)|May 24, 2019
Adversarial Robustness in Machine LearningComputer Science59 references25 citations
TL;DR

This paper introduces Sliced Gromov-Wasserstein (SGW), a computationally efficient approximation of the Gromov-Wasserstein (GW) distance for comparing probability distributions in different metric spaces. By leveraging a closed-form solution for 1D GW and averaging over random projections, SGW achieves O(Ln log n) complexity—orders of magnitude faster than GW—while preserving key properties for large-scale machine learning tasks like GAN training and mesh matching.

ABSTRACT

Recently used in various machine learning contexts, the Gromov-Wasserstein distance (GW) allows for comparing distributions whose supports do not necessarily lie in the same metric space. However, this Optimal Transport (OT) distance requires solving a complex non convex quadratic program which is most of the time very costly both in time and memory. Contrary to GW, the Wasserstein distance (W) enjoys several properties (e.g. duality) that permit large scale optimization. Among those, the solution of W on the real line, that only requires sorting discrete samples in 1D, allows defining the Sliced Wasserstein (SW) distance. This paper proposes a new divergence based on GW akin to SW. We first derive a closed form for GW when dealing with 1D distributions, based on a new result for the related quadratic assignment problem. We then define a novel OT discrepancy that can deal with large scale distributions via a slicing approach and we show how it relates to the GW distance while being $O(n\log(n))$ to compute. We illustrate the behavior of this so called Sliced Gromov-Wasserstein (SGW) discrepancy in experiments where we demonstrate its ability to tackle similar problems as GW while being several order of magnitudes faster to compute.

Motivation & Objective

  • Address the high computational cost of Gromov-Wasserstein (GW) distance, which scales as O(n³) and limits its use in large-scale machine learning.
  • Develop a scalable alternative to GW that retains its ability to compare distributions across different metric spaces.
  • Leverage the structure of 1D GW to enable efficient computation via random projections, akin to Sliced Wasserstein.
  • Provide theoretical justification for the validity of the slicing approach, despite a known error in the original proof of Theorem 3.1.
  • Demonstrate the practical utility of SGW in large-scale applications such as GAN training and 3D mesh matching.

Proposed method

  • Derive a closed-form solution for the Gromov-Wasserstein distance between one-dimensional probability distributions using a novel result on the Quadratic Assignment Problem (QAP) for Euclidean distance matrices.
  • Define the Sliced Gromov-Wasserstein (SGW) discrepancy as the average of 1D GW distances over L random projections of the input distributions onto the unit sphere.
  • Use sorting and optimal transport in 1D to compute the 1D GW distance efficiently in O(n log n) time per projection.
  • Propose an algorithm that samples L random directions, projects the data, computes 1D GW for each, and averages the results to form the SGW distance.
  • Introduce a rotational invariant variant, RISW, by minimizing over orthogonal transformations of the data, improving robustness to rotation.
  • Implement the method using efficient numerical tricks to reduce the per-projection cost to linear in n, enabling large-scale deployment.

Experimental results

Research questions

  • RQ1Can a slicing-based approach be used to approximate the Gromov-Wasserstein distance while maintaining computational efficiency?
  • RQ2Does the Sliced Gromov-Wasserstein distance preserve the theoretical properties of GW, such as being a proper discrepancy when distributions are isomorphic?
  • RQ3How does SGW compare to GW and Sliced Wasserstein in terms of computational complexity and performance on large-scale learning tasks?
  • RQ4Can SGW be used effectively in deep generative models like GANs, where distribution comparison is critical?
  • RQ5Is the SGW discrepancy invariant to rotations of the input data, and how does it compare to rotational invariant variants of Sliced Wasserstein?

Key findings

  • The Sliced Gromov-Wasserstein (SGW) distance is computable in O(Ln log n) time, significantly faster than the O(n³) complexity of standard GW.
  • SGW preserves the key property that SGW(μ, ν) = 0 implies GW₂(d, μ, ν) = 0, ensuring consistency with the original GW distance under isomorphism.
  • Experiments on spiral datasets show that SGW is invariant to rotations when using the rotational invariant variant RISGW, unlike standard SW.
  • In GAN training, SGW enables effective learning of 2D and 3D distributions, with generated samples converging to the target distribution over 1000 epochs.
  • The method achieves comparable performance to GW in tasks like mesh matching and generative modeling, but with orders of magnitude faster computation.
  • Despite a known error in the proof of Theorem 3.1, numerical simulations suggest that the theoretical claims of the paper hold in practice, and the method remains effective.

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.