Learning Generative Models across Incomparable Spaces

Charlotte Bunne, David Alvarez-Melis, Andreas Krause, Stefanie Jegelka

Abstract

Standard Generative Adversarial Networks (GANs) are constrained by the requirement that training and generated data reside in the same dimensional space. This paper introduces the Gromov-Wasserstein GAN (GW GAN), a framework that replicates the relational topology of data across incomparable spaces. By utilizing the Gromov-Wasserstein distance to compare intra-space pairwise distances rather than absolute coordinates, the model facilitates manifold learning and cross-domain generation. We demonstrate its efficacy on synthetic and vision benchmarks, highlighting its ability to decouple structural content from stylistic attributes.

Introduction

In traditional generative modeling, loss functions—whether Jensen-Shannon divergence, Maximum Mean Discrepancy (MMD), or standard Wasserstein distances—rely on directly comparing a generated sample to a real sample. This fundamental mechanic requires both distributions to be supported in identical, or at least highly comparable, ambient spaces (e.g., both must be 28x28 pixel grids).

However, many real-world applications require modeling only the topological or relational aspects of a dataset. For instance, reference data might be a weighted graph with no absolute coordinates, or a researcher might wish to learn the manifold structure of a 3D dataset but generate samples in a 2D space. Current generative models cannot handle these scenarios because their divergence metrics break down when spaces are incomparable. The GW GAN addresses this by shifting the paradigm from absolute spatial comparisons to relational comparisons.

Methodology

To bridge incomparable spaces, the authors build a GAN architecture around the Gromov-Wasserstein (GW) distance. Unlike standard metrics, the GW distance measures the distance between two points in Space A, does the same for two points in Space B, and then compares those intra-space distances. This makes the metric oblivious to the ambient dimensionality of the spaces.

The GW GAN architecture uses intra-space distances to bridge incomparable domains.

To make this work efficiently in high dimensions, the authors use an adversary network ($f_\omega$) to map data and generator samples into feature spaces where Euclidean intra-space distances are computed. A major challenge is that the adversary can "cheat" by stretching the feature space to infinity to maximize the GW distance. To prevent this, the authors introduce Orthogonal Procrustes Regularization, forcing the adversary network to act as an approximately orthogonal operator. Furthermore, because the GW loss only dictates structural topology, the generator retains "spare" degrees of freedom. This allows for a modular framework where a secondary "style adversary" can be attached to enforce specific surface-level traits on the generated samples.

Experimental Setup

The model was evaluated across several diverse datasets to test its flexibility:

  • Synthetic Data: 2D and 3D Gaussian mixtures, and a 3D S-curve dataset used for manifold learning experiments.
  • Vision Benchmarks: MNIST, Fashion-MNIST, and grayscale CIFAR-10.
  • EMNIST: Used specifically to train an independent binary classifier acting as a style adversary for font-thickness experiments.

Results and Discussion

The GW GAN successfully learned to translate between mixtures of Gaussian distributions in 2D and 3D spaces, recovering the global structure and relative distances of the modes despite the dimensional mismatch.

Evolution of generated samples across iterations/epochs for various datasets.

Key insights from the results include:

  • Graph-to-Euclidean Generation: The model successfully generated a 2D Euclidean distribution using only the shortest-path distances from a k-nearest neighbor graph of a 3D S-curve.
  • Decoupling Structure and Style: By training on standard MNIST and applying a style adversary trained on EMNIST, the model generated "bold" digits while retaining the structural content of the original dataset. This suggests that the GW loss effectively captures the data manifold while leaving superficial characteristics undetermined.
  • Computational Trade-offs: To make the math differentiable, the authors use an entropy-regularized GW loss via the Sinkhorn-Knopp algorithm. While effective, it is computationally heavier than standard GANs (e.g., ~156 seconds/epoch for GW GAN vs. ~17 seconds/epoch for WGAN-GP on MNIST).

Conclusion

By shifting the loss function from absolute coordinates to pairwise distances, generative models are no longer bound to the ambient dimensionality or data type of the training set. While computational efficiency remains a hurdle, the inherent flexibility of the GW GAN makes it a prime candidate for advanced style transfer and cross-domain applications where data spaces are fundamentally incomparable.

Summary updated

BibTeX
@inproceedings{bunne2019learning,
  author = {Charlotte Bunne and David Alvarez-Melis and Andreas Krause and Stefanie Jegelka},
  title = {{Learning Generative Models across Incomparable Spaces}},
  booktitle = {International Conference on Machine Learning},
  year = {2019},
}
Figure