Heterogeneous Wasserstein Discrepancy for Incomparable Distributions

Mokhtar Z. Alaya, Gilles Gasso, Maxime Berar, Alain Rakotomamonjy

TL;DR

This paper introduces the Heterogeneous Wasserstein Discrepancy (HWD), a new method for measuring differences between probability distributions that live in different spaces. HWD leverages distributional slicing and learned embeddings to efficiently compare these "incomparable" distributions, showing promise in generative modeling and retrieval tasks.

What Problem Does This Paper Address?

Comparing probability distributions is a fundamental task in machine learning, often achieved using Optimal Transport (OT) metrics like the Wasserstein distance. However, standard Wasserstein distance assumes distributions live in the same metric space. When distributions are defined on different spaces (e.g., comparing a 2D image distribution to a 3D point cloud distribution), this assumption breaks down. Existing methods for handling such "heterogeneous" distributions, like Gromov-Wasserstein (GW) distance, are computationally expensive and can be complex to implement. This paper aims to bridge this gap by proposing a new, computationally efficient, and theoretically grounded method for comparing distributions in different spaces.

Methods

The core idea of HWD is to transform distributions from their original, potentially different, spaces into a common one-dimensional space where their differences can be measured using the standard 1D Wasserstein distance. This is achieved through a novel approach involving:

  • Distributional Slicing: Instead of directly comparing distributions in their high-dimensional spaces, HWD projects them onto 1D lines. This is done by sampling random directions from a learned distribution over a latent space.
  • Learned Embeddings: The projection process is guided by learned mappings (embeddings) that transform directions from the latent space into directions within the original spaces of the distributions. These embeddings are crucial for capturing the relevant structure of the data.
  • 1D Wasserstein Distance: After projecting the distributions onto 1D lines using the learned embeddings, the standard 1D Wasserstein distance is computed between these projected distributions.
  • Optimization: The entire process involves a min-max optimization problem: minimizing the discrepancy with respect to the learned embeddings and the distribution of projection directions, while maximizing over the possible projection directions. This is tackled using an alternating optimization scheme.

HWD builds upon the concept of sliced Wasserstein distance but extends it to heterogeneous domains and incorporates learned, non-linear projections, differentiating it from prior work like Sliced Gromov-Wasserstein (SGW).

Datasets

The paper evaluates HWD on several datasets and scenarios:

  • Synthetic Datasets: Used to demonstrate HWD's behavior under translation and rotation.
  • Generative Modeling Tasks: The authors train generative models to produce distributions in one dimensionality from targets in another (e.g., 2D from 3D, and vice-versa). The target distributions are described as 3D Gaussian mixture models with four modes and 2D Gaussian mixture models with five modes.
  • Non-Rigid Shape World Dataset: A dataset of 148 3D shapes from 12 classes, used to evaluate the scalability of HWD compared to GW and SGW.
  • Shape Retrieval Contest (SHREC'2010) Correspondence Dataset: Used to assess the robustness of HWD to various transformations (isometry, topology, scale, shotnoise) in a classification/retrieval context.

Key Insights and Ideas

  • Bridging Heterogeneous Spaces: HWD offers a principled and computationally feasible way to compare distributions that live in fundamentally different spaces, a problem that has been challenging for existing OT methods.
  • Learned Projections are Key: The ability to learn the projection mappings (embeddings) is critical. This allows HWD to adaptively find the most informative "slices" for comparison, rather than relying on fixed or random projections.
  • Rotation Invariance: A significant theoretical property of HWD is its rotation invariance, which is desirable for many applications where the orientation of the data should not affect the distance measure.
  • Efficiency Gains: By leveraging 1D Wasserstein distance and learned projections, HWD offers a more computationally efficient alternative to methods like Gromov-Wasserstein, especially for complex, high-dimensional data.
  • Robustness in Generative Models: HWD demonstrates strong performance as a loss function for generative models, particularly in cross-dimensional generation tasks, outperforming SGW in generating complex target distributions.

Key Results

  • Generative Modeling: HWD successfully generates visually correct distributions in cross-dimensional tasks, outperforming SGW, which struggled with mode collapse and squeezing of dimensions.
  • Translation and Rotation: HWD correctly captures translation differences while remaining invariant to rotation, aligning with theoretical properties. SGW was found to be insensitive to translation, and not rotation-invariant.
  • Scalability: HWD's computation time for comparing shapes is on par with SGW and significantly faster than GW, making it suitable for large-scale applications.
  • Classification Robustness: HWD achieved slightly better mean classification accuracy than SGW under various transformations, demonstrating its robustness.
  • Theoretical Properties: HWD is shown to be non-negative, symmetric, finite (given finite moments), and rotation-invariant.

Limitations and Future Work

  • Hyperparameter Tuning: The authors acknowledge that implementing HWD faces the standard deep learning bottleneck of tuning model hyperparameters, particularly for the learned embeddings and projection distribution.
  • Theoretical Guarantees: Future work is suggested to deliver theoretical guarantees regarding the regularizing parameters used in the optimization process.
  • Computational Complexity: While more efficient than GW, HWD's complexity is still dependent on the number of projections and optimization iterations. The authors note that in practice, fewer slices might be needed than in SGW due to the learned projection distribution.
  • Further Applications: The paper suggests exploring HWD in other areas like shape retrieval and domain adaptation, building on its demonstrated success in generative modeling.

Summary updated

BibTeX
@inproceedings{alaya2022heterogeneous,
  author = {Mokhtar Z. Alaya and Gilles Gasso and Maxime Berar and Alain Rakotomamonjy},
  title = {{Heterogeneous Wasserstein Discrepancy for Incomparable Distributions}},
  booktitle = {International Conference on Learning Representations},
  year = {2022},
  url = {https://openreview.net/forum?id=UORhn0DGIT},
}
Figure