Multi-marginal Wasserstein GAN

Jiezhang Cao, Langyuan Mo, Yifan Zhang, Kui Jia, Chunhua Shen, Mingkui Tan

TL;DR

Multi-marginal Wasserstein GAN (MWGAN) is a novel framework designed to map a single source domain to multiple target domains simultaneously. By leveraging multi-marginal optimal transport theory, it jointly optimizes the distances between all domains. This approach effectively captures cross-domain correlations and outperforms existing methods like StarGAN and CycleGAN in complex image translation tasks.

The Multiple Marginal Matching Problem

The authors tackle the Multiple Marginal Matching ($M^3$) problem. Imagine you have a photo of a person (the source domain) and you want to generate versions of that person with different hair colors, wearing glasses, or with different skin tones (multiple target domains).

Illustration of the Multiple Marginal Matching problem, mapping a source domain to multiple target domains.

Existing solutions face two major hurdles when addressing this problem:

  1. Distribution Mismatching: Methods like CycleGAN optimize pairs of domains separately. This is computationally expensive and ignores the broader context of the entire dataset. Other approaches, like StarGAN, compare the source to a mixture of all target distributions. This can lead to blurry or inaccurate results because the model gets "confused" by the averaged target data.
  2. Ignoring Correlations: Most models focus only on the relationship between the source and a specific target. They fail to exploit the fact that different target domains (e.g., "blond hair" and "brown hair") often share significant structural information.

Methodology: Multi-marginal Wasserstein GAN

The core contribution of the paper is the Multi-marginal Wasserstein GAN (MWGAN). It moves away from pairwise comparisons and instead uses a unified objective function based on multi-marginal Optimal Transport (OT) theory.

Comparison of mapping strategies: CycleGAN (pairwise), StarGAN (mixture), and MWGAN (joint multi-marginal).

Key technical components of this framework include:

  • A New Dual Formulation: Directly solving multi-marginal OT is mathematically intractable. The authors derive a new dual formulation that uses a shared potential (a single discriminator) scaled by domain-specific weights. This allows the model to learn what all domains have in common while still distinguishing their unique features.
  • Inner-domain Constraints: To ensure a generated image actually looks like it belongs to the target domain (e.g., ensuring a "blond" output is actually blond), the model uses an auxiliary classifier and maximizes mutual information.
  • Inter-domain Constraints: The authors introduce a novel inter-domain gradient penalty. Unlike standard GAN gradient penalties that look at one domain at a time, this penalty captures the dependencies between domains, enforcing the mathematical requirements of the Wasserstein distance across the entire multi-domain space.

Key Insights and Ideas

  • The Power of Jointness: By treating multiple domains as a single multi-marginal problem rather than a collection of independent pairs, the model becomes more stable and requires fewer parameters than running multiple CycleGANs.
  • Exploiting Shared Structure: In image translation, domains usually differ only in details (color, texture) but share the same underlying geometry (face shape, horizon lines). MWGAN’s shared potential explicitly exploits this shared geometry, leading to better generalization.
  • Solving the "Mixture" Problem: Unlike StarGAN, which sees a "blur" of all targets, MWGAN’s multi-marginal approach keeps the target distributions distinct yet mathematically linked, preventing the distribution mismatching that plagues previous state-of-the-art models.

Experimental Results

The researchers evaluated MWGAN on four distinct types of data: synthetic toy datasets (2D Gaussian and Uniform distributions), CelebA (single and multi-attribute facial changes), an imbalanced Edge $\rightarrow$ CelebA task, and Style Painting (translating photos into the styles of Monet, Van Gogh, etc.).

MWGAN consistently outperformed baselines in both quantitative and qualitative metrics:

  • Higher Accuracy: On the CelebA multi-attribute task (e.g., generating an image with Blond Hair + Mustache + Glasses), MWGAN achieved a classification accuracy of 19.95%, whereas CycleGAN plummeted to 2.11% and StarGAN reached only 6.10%.
  • Better Image Quality: In the Edge $\rightarrow$ CelebA task, MWGAN achieved a Fréchet Inception Distance (FID) of 33.81 (lower is better), significantly beating StarGAN's 53.41.
  • Visual Realism: Qualitative results show that MWGAN produces much sharper images with fewer artifacts, especially in style transfer where it maintains the structural integrity of the original scene better than UFDN or CycleGAN.

Limitations and Future Work

While the paper provides a strong theoretical foundation and impressive results, a few areas remain for exploration:

  • Weight Selection: The importance weights ($\lambda_i$) for different domains are currently set manually (e.g., $1/N$). Finding a way to learn these weights dynamically could improve performance on highly imbalanced datasets.
  • Scaling to "Many" Domains: While the model handles a handful of domains well, the complexity of the multi-marginal constraints might become a bottleneck if one were to scale to hundreds of distinct domains simultaneously.
  • Computational Cost: Although more efficient than training multiple CycleGANs, the inter-domain gradient penalty adds computational overhead during the training phase.

Summary updated

BibTeX
@inproceedings{cao2019multi,
  author = {Jiezhang Cao and Langyuan Mo and Yifan Zhang and Kui Jia and Chunhua Shen and Mingkui Tan},
  title = {{Multi-marginal Wasserstein GAN}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2019},
  url = {https://openreview.net/forum?id=7Udts8kXWu},
}
Figure