Hierarchical Hybrid Sliced Wasserstein: A Scalable Metric for Heterogeneous Joint Distributions

Khai Nguyen, Nhat Ho

Introduction

Optimal Transport (OT) has emerged as a fundamental framework for measuring distances between probability distributions, with applications ranging from generative modeling to computer vision. However, the standard Wasserstein distance is computationally intensive, scaling at $O(n^3 \log n)$, and suffers from the curse of dimensionality. To mitigate these issues, researchers often turn to the Sliced Wasserstein (SW) distance, which leverages the property that the Wasserstein distance between one-dimensional distributions is trivial to compute. By projecting high-dimensional data onto 1D lines, SW achieves a significantly more efficient $O(n \log n)$ complexity.

Despite its efficiency, standard SW possesses a significant limitation: it assumes that data resides in a homogeneous Euclidean space. In many real-world scenarios, data is inherently heterogeneous, existing on product manifolds where different components follow different geometries. For instance, a 3D mesh point is defined by its position in $\mathbb{R}^3$ and its surface normal on the unit sphere $\mathbb{S}^2$. Standard SW treats these as a concatenated flat vector, ignoring the underlying geometric structure and failing to capture the dependencies between these distinct data types. This paper introduces the Hierarchical Hybrid Sliced Wasserstein (H2SW) metric to address this gap.

The Challenge of Heterogeneity

When dealing with joint distributions over heterogeneous domains, traditional slicing methods—which typically use linear projections—fail to respect the intrinsic geometry of the individual components. A linear slice through a spherical domain does not capture the manifold's structure effectively. This "one-size-fits-all" approach leads to a loss of discriminative power and poor performance in tasks requiring high geometric fidelity.

The core challenge lies in designing a slicing mechanism that is both computationally efficient and mathematically rigorous (i.e., maintaining the injectivity of the underlying Radon transform) while being flexible enough to handle diverse geometric spaces simultaneously.

Methodology: Hierarchical Hybrid Radon Transform

The authors propose a "divide and conquer" strategy for slicing joint distributions, centered on two primary innovations:

1. Partial Generalized Radon Transform (PGRT)

Instead of projecting the entire joint distribution at once, the PGRT allows for the non-linear slicing of specific subsets of the data. This ensures that each component of the heterogeneous data can be processed using a transform suited to its specific geometry.

2. Hierarchical Hybrid Radon Transform (HHRT)

The HHRT is a two-stage hierarchical process designed to capture both local geometry and global dependencies:

  • Stage 1 (Local Slicing): Apply domain-specific slices to each part of the data. For example, a linear slice is applied to 3D positions, while a circular or spherical slice is applied to surface normals. This preserves the local geometric integrity of each marginal distribution.
  • Stage 2 (Global Integration): A second "global" slice is applied to the results of the first stage. This step is crucial as it captures the cross-dependencies between the different heterogeneous parts of the data.

3. The H2SW Metric

By integrating the HHRT into the Sliced Wasserstein framework, the authors define the H2SW metric. They provide rigorous mathematical proofs demonstrating that this hierarchical approach maintains the injectivity of the transform. Consequently, H2SW is a valid metric that satisfies the triangle inequality and is zero if and only if the distributions are identical. Crucially, it maintains the $O(n \log n)$ computational complexity of standard SW.

Experimental Evaluation

The H2SW metric was evaluated across three distinct domains to test its versatility and performance:

  • 3D Mesh Deformation: Using the Armadillo and Stanford Bunny meshes, the authors tested the metric's ability to guide a source shape to a target shape. This task requires the metric to accurately capture both positional and directional (normal) information.
  • Deep 3D Mesh Autoencoders: The metric was used as a loss function for training autoencoders on the ShapeNet dataset. Each shape was represented by 2048 points and their corresponding normal vectors.
  • Product Manifold Comparison: The researchers compared datasets across mixed Euclidean and Hyperbolic spaces using standard benchmarks including MNIST, EMNIST, Fashion MNIST, KMNIST, and USPS.

Key Results and Insights

Superior Geometric Fidelity

In 3D mesh deformation tasks, H2SW significantly outperformed standard SW and Generalized Sliced Wasserstein (GSW). While competing methods often produced noisy or distorted surfaces due to their inability to reconcile positional and normal data, H2SW produced clean, structurally sound results. The hierarchical approach allowed the model to converge faster and maintain the integrity of the mesh surface.

Enhanced Reconstruction and Approximation

In deep learning applications on ShapeNet, H2SW consistently achieved lower reconstruction errors than its predecessors across various projection counts ($L=100$ and $L=1000$). Furthermore, when tested on mixed manifolds (Euclidean + Hyperbolic), H2SW provided a much closer approximation to the computationally expensive "Joint Wasserstein" distance than other sliced variants, demonstrating a significantly lower relative error.

Scalability

A primary advantage of H2SW is that it provides these accuracy gains without a significant computational penalty. By remaining in the same complexity class as standard SW, it is highly suitable for large-scale deep learning workflows and real-time 3D processing.

Conclusion and Future Work

Hierarchical Hybrid Sliced Wasserstein (H2SW) represents a significant advancement in the use of Optimal Transport for complex, real-world data. By respecting the underlying geometry of heterogeneous joint distributions through a hierarchical slicing mechanism, it bridges the gap between the efficiency of sliced methods and the accuracy of full OT.

Future research directions include exploring "optimal" or "maximal" slicing distributions to find the most informative projection directions, which could further enhance performance. Additionally, the authors suggest extending the hierarchical structure to accommodate even more complex joint distributions involving a wider array of manifold types.

Summary updated

BibTeX
@inproceedings{nguyen2024hierarchical,
  author = {Khai Nguyen and Nhat Ho},
  title = {{Hierarchical Hybrid Sliced Wasserstein: A Scalable Metric for Heterogeneous Joint Distributions}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=XwrMd1njqq},
}
Figure