k-GANs: Ensemble of Generative Models with Semi-Discrete Optimal Transport

Luca Ambrogioni, Umut Güçlü, Marcel van GervenarXiv 2019

Introduction

Generative Adversarial Networks (GANs) have revolutionized generative modeling but remain susceptible to mode collapse, a failure mode where the generator captures only a fraction of the target distribution's diversity. While ensemble-based approaches have been proposed to address this, many rely on heuristics that do not guarantee distinct mode coverage. The k-GANs framework introduces a mathematically grounded method to train an ensemble of generators by partitioning the data space using semi-discrete optimal transport.

Methodology: GANs as Generative Clustering

The k-GANs approach conceptualizes generative modeling as a clustering problem. By utilizing optimal transport (OT) theory, the authors partition the data space into $k$ Voronoi cells, each governed by a specific prototype. Each generator in the ensemble is then tasked with modeling the data distribution within its assigned cell.

The training follows an iterative, EM-like algorithm:

  1. Local Generator Training: With fixed prototypes, each generator/discriminator pair is trained on the subset of data falling within its Voronoi cell.
  2. Prototype Refinement: With fixed generators, the prototypes are updated to be the medoids of the distributions produced by the generators.

This "divide and conquer" strategy simplifies the optimization landscape for individual networks, ensuring that the ensemble collectively covers the entire data distribution without redundant overlap.

Experimental Results

The authors evaluated k-GANs across synthetic 2D datasets and standard benchmarks like MNIST and Fashion-MNIST.

Quantitative Performance on Toy Datasets

On synthetic 2D datasets featuring multiple clusters, k-GANs significantly outperformed baseline Wasserstein GANs (wGANs). As illustrated in Figure 1, the k-GANs framework successfully adapts its Voronoi partitions to the data geometry, resulting in near-perfect coverage and higher precision compared to the $k=1$ baseline, which frequently suffers from mode collapse.

Performance on toy 2D datasets (A) and quantitative metrics for coverage and precision (B).

Qualitative Diversity on Image Data

The benefits of the ensemble approach are equally evident in image generation. In experiments on MNIST, a single generator ($k=1$) often produces generic or blurry samples. In contrast, a k-GANs ensemble with $k=4$ partitions the digit space effectively. As shown in Figure 2, each prototype represents a distinct mode (e.g., different digit classes), and the associated generators produce sharp, diverse samples corresponding to those modes.

Comparison of prototypes and generated samples for a single GAN (k=1) versus a k-GANs ensemble (k=4) on MNIST.

Similar results were observed on Fashion-MNIST, where the ensemble successfully distributed complex categories—such as footwear versus upper-body clothing—across different generators, preventing the collapse into a single dominant category.

Conclusion and Future Directions

k-GANs provide a principled bridge between classical clustering and deep generative modeling. By leveraging semi-discrete optimal transport, the framework ensures diverse mode coverage and improved sample precision. While the current implementation uses Euclidean distance for partitioning, future work may explore feature-based cost functions to better handle high-dimensional natural images and scale the approach to larger ensembles.

Summary updated

Abstract

Generative adversarial networks (GANs) are the state of the art in generative modeling. Unfortunately, most GAN methods are susceptible to mode collapse, meaning that they tend to capture only a subset of the modes of the true distribution. A possible way of dealing with this problem is to use an ensemble of GANs, where (ideally) each network models a single mode. In this paper, we introduce a principled method for training an ensemble of GANs using semi-discrete optimal transport theory. In our approach, each generative network models the transportation map between a point mass (Dirac measure) and the restriction of the data distribution on a tile of a Voronoi tessellation that is defined by the location of the point masses. We iteratively train the generative networks and the point masses until convergence. The resulting k-GANs algorithm has strong theoretical connection with the k-medoids algorithm. In our experiments, we show that our ensemble method consistently outperforms baseline GANs.
BibTeX
@misc{ambrogioni2019k,
  author = {Luca Ambrogioni and Umut Güçlü and Marcel van Gerven},
  title = {{k-GANs: Ensemble of Generative Models with Semi-Discrete Optimal Transport}},
  year = {2019},
  eprint = {1907.04050},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1907.04050},
}
Figure