Distributional Sliced Embedding Discrepancy for Incomparable Distributions

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

Abstract

Comparing probability distributions across disparate metric spaces—such as 2D images and 3D point clouds—is a critical task in modern machine learning. While the Gromov-Wasserstein (GW) distance is the standard tool for such "incomparable" distributions, its $O(n^3)$ computational complexity hinders large-scale application. We introduce Heterogeneous Wasserstein Discrepancy (HWD), an efficient alternative that utilizes distributional slicing. By learning non-linear mappings to a shared 1D space, HWD achieves rotation invariance and high accuracy with significantly lower computational overhead than GW.

Introduction

Optimal Transport (OT) metrics, particularly the Wasserstein distance, are widely used to compare distributions. However, they typically require distributions to reside in the same metric space. When comparing distributions across different dimensions, researchers often turn to the Gromov-Wasserstein distance, which measures the discrepancy between internal pairwise distances. Unfortunately, GW is computationally expensive and non-convex.

Recent attempts to scale GW, such as Sliced Gromov-Wasserstein (SGW), rely on 1D projections. However, SGW often requires ad-hoc "zero-padding" to match dimensions, which can destroy intrinsic geometric properties like rotation invariance. HWD sidesteps these issues by learning optimal embeddings directly.

The HWD Framework

HWD addresses these limitations through distributional slicing. Instead of simple linear projections or padding, HWD employs deep neural networks to learn mappings ($\phi$ and $\psi$) from a common latent sphere to the unit spheres of the target spaces.

The HWD framework: mapping a latent space to target spaces for 1D slicing.

The process involves:

  1. Latent Sampling: A direction $\theta$ is sampled from a $d$-dimensional latent sphere.
  2. Non-linear Embedding: Mappings $\phi$ and $\psi$ identify informative directions in the target spaces $\mathbb{R}^p$ and $\mathbb{R}^q$.
  3. 1D Projection and OT: Data is projected onto these directions, and the 1D Wasserstein distance is computed efficiently via sorting.
  4. Optimization: The mappings are optimized to find the most descriptive slices, ensuring the discrepancy captures the underlying structure of the data.

Experimental Evaluation

HWD was evaluated on several benchmarks:

  • Toy Manifolds: Testing rotation and translation invariance on 2D and 3D Gaussian mixtures.
  • Non-rigid Shape World: Assessing scalability on 3D shape classes.
  • SHREC’2010: Evaluating classification accuracy on high-resolution triangular meshes (up to 50K vertices) under various deformations.

Results and Discussion

HWD demonstrates significant advantages in speed, quality, and robustness. It operates at speeds comparable to SGW while avoiding the pitfalls of zero-padding.

Generative Quality and Robustness

In generative tasks, HWD effectively captures multi-modal distributions where competing methods like SGW may collapse. Furthermore, HWD is mathematically proven to be rotation-invariant, a property confirmed by its superior performance on the SHREC’2010 benchmark.

Classification accuracy comparison between SGW and HWD on the SHREC’2010 dataset.

As shown in the figure above, HWD achieves higher classification accuracy and exhibits greater robustness to noise and topological changes compared to SGW. This is largely due to its ability to preserve intrinsic geometry through learned embeddings rather than arbitrary padding.

Conclusion

Heterogeneous Wasserstein Discrepancy offers a scalable and geometrically sound approach to comparing distributions in different spaces. By replacing rigid padding with learned distributional slices, HWD provides a robust tool for cross-domain generative modeling and shape analysis. Future work will focus on refining hyperparameter selection and exploring formal metric properties.

Summary updated

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