Cycle Consistent Probability Divergences Across Different Spaces

Zhengxin Zhang, Youssef Mroueh, Ziv Goldfeld, Bharath K. Sriperumbudur

TL;DR

This paper introduces a novel framework for comparing probability distributions across entirely different mathematical spaces by explicitly learning bidirectional, cycle-consistent mapping functions. By kernelizing this approach into the Generalized Maximum Mean Discrepancy (GMMD), the authors create a method that successfully generalizes to unseen data points, delivering a massive three-order-of-magnitude speedup during inference compared to traditional Gromov-Wasserstein methods.

What Problem Does This Paper Address?

In many machine learning applications, we need to compare and align datasets that live in completely different spaces. Think of translating words between English and French embedding spaces, or matching a 2D image to a 3D shape model.

The standard tool for this task is the Gromov-Wasserstein (GW) distance. While powerful, GW has a major flaw: it only computes a static distance or a coupling matrix for the specific data points provided. It does not learn an actual mapping function. If you get new data points, you have to recompute the entire optimization problem from scratch, which is computationally expensive ($O(n^3)$ complexity).

The authors set out to design a discrepancy measure that inherently encodes consistent, bidirectional maps, allowing the model to generalize to new, unseen data points instantly.

Methods

The authors propose the Unbalanced Bidirectional Gromov-Monge (UBGM) divergence, which builds on the classical Gromov-Hausdorff distance. The key innovations include:

  • Bidirectional, Cycle-Consistent Maps: Instead of a single map or a static coupling matrix, UBGM optimizes two maps simultaneously ($f$ pushes distribution $P$ to $Q$, and $g$ pushes $Q$ back to $P$). They enforce cycle consistency, meaning $g(f(x)) \approx x$.
  • Unbalanced Relaxation: Traditional Monge optimal transport requires strict mass preservation. UBGM relaxes this constraint using marginal relaxation penalties (divergences $D_X$ and $D_Y$), making it robust to noise and differing sample sizes.
  • Kernelization (GMMD): To make UBGM computationally practical, the authors instantiate the relaxation penalties as Maximum Mean Discrepancies (MMDs) using characteristic kernels. They restrict the mapping functions to parametric classes, specifically Neural Networks (NNs). This practical variant is called the Generalized Maximum Mean Discrepancy (GMMD).

Datasets

The framework was evaluated on three distinct tasks:

  1. Synthetic 2D Shapes: A 2-dimensional heart shape ($P$) matched against its own transformed versions: rotated ($Q_b$), scaled ($Q_c$), and isometrically embedded into a 3D space ($Q_d$).
  2. Princeton Shape Benchmark: A complex 3D shape matching task utilizing two different biplane models ($n = 8000$ samples each).
  3. Cross-Lingual Word Embeddings: High-dimensional text data consisting of English and French words embedded in 300-dimensional spaces (using the 20k most frequent words).

Key Insights and Ideas

  • The Mathematical Foundation of CycleGAN: The authors prove that the popular CycleGAN architecture is actually a specific instantiation of their UBGM divergence when Integral Probability Metrics (IPMs) are used as the witness functions. This provides a rigorous theoretical explanation for why CycleGAN works so well in practice.
  • Amortized Optimization: While traditional optimal transport methods solve a problem per dataset, GMMD shifts the computational burden to training neural networks. Once trained, these networks act as continuous, out-of-sample mapping functions.

Key Results

  • Massive Inference Speedup: For the biplane matching task ($n = 8000$), matching new data points using the pre-learned GMMD network took just 63 milliseconds. In contrast, the standard Gromov-Wasserstein method required recomputing the coupling matrix, taking 26 minutes—representing a 3-order-of-magnitude speedup.
  • Lower Distortion: In the heart-rotation experiment, GMMD achieved significantly lower metric distortion ($\Delta = 0.0560$) compared to GW ($\Delta = 0.696$).
  • High-Dimensional Performance: On the English-to-French word translation task, GMMD achieved a competitive accuracy of 76.1% (EN to FR) and 74.5% (FR to EN), performing on par with standard GW methods.

Limitations and Future Work

  • High Training Overhead: Although inference is blazing fast, GMMD requires a lengthy training phase (e.g., 3000 epochs of gradient descent), making its initial setup slower than standard GW.
  • Hyperparameter Sensitivity: The unbalanced formulation relies heavily on tuning the regularization coefficients ($\lambda_x, \lambda_y$).
  • Future Directions: The authors suggest extending GMMD to allow optimization directly over the kernels (min-max formulation) to improve high-dimensional text alignment, as well as deriving sharper statistical bounds.

Summary updated

BibTeX
@inproceedings{zhang2022cycle,
  author = {Zhengxin Zhang and Youssef Mroueh and Ziv Goldfeld and Bharath K. Sriperumbudur},
  title = {{Cycle Consistent Probability Divergences Across Different Spaces}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2022},
}
Figure