Boundary-Seeking Generative Adversarial Networks

R. Devon Hjelm, Athul Paul Jacob, Tong Che, Kyunghyun Cho, Yoshua BengioarXiv 2017

Abstract

Boundary-Seeking GANs (BGANs) introduce a novel framework for training Generative Adversarial Networks on discrete data, such as text or quantized images, by utilizing the discriminator's decision boundary to provide a policy gradient. By treating the discriminator as a density ratio estimator, the authors derive importance weights that guide the generator toward the target distribution without requiring differentiability throughout the entire architecture. This method improves training stability for both discrete and continuous data.

Introduction

The success of Generative Adversarial Networks (GANs) typically hinges on the differentiability of the generator's output, allowing for direct backpropagation from the discriminator. However, this assumption fails for discrete data—such as words in a sentence or quantized pixel values—where operations like argmax result in zero gradients almost everywhere. While reinforcement learning techniques like REINFORCE or continuous relaxations like Gumbel-softmax are common workarounds, they often suffer from high variance or approximation errors.

BGANs address this by re-centering the training objective. Instead of the generator attempting to "fool" the discriminator through direct gradient descent, it seeks to match a target distribution defined by the discriminator's current decision boundary.

Methodology

The BGAN framework leverages the theoretical link between GAN discriminators and $f$-divergences. An optimal discriminator can be viewed as an estimator of the density ratio between the real data distribution and the generated distribution.

Importance Weights and $f$-Divergences

The authors derive specific importance weights for various $f$-divergences, which serve as a reward signal for the generator. For discrete data, these weights are used within a policy gradient framework, allowing the generator to learn which discrete choices lead to more realistic samples.

Importance weights derived for various f-divergences.

Boundary-Seeking Objective

The generator is trained to minimize the KL-divergence between its current distribution and a target distribution defined by these importance weights. This effectively pushes generated samples toward the discriminator's decision boundary—the point of maximum uncertainty where the model cannot distinguish between real and fake data. For continuous data, this is implemented by minimizing the square of the statistic network's output, transforming the optimization into a more stable, convex-like problem.

Experimental Setup

The authors evaluated BGAN across diverse domains to test its versatility:

  • Discrete Data: Binary MNIST, Quantized CelebA (16-color palette), and character-level modeling of the 1-billion word dataset.
  • Continuous Data: High-resolution CelebA, LSUN Bedrooms, and ImageNet.
  • Adversarial Classification: CIFAR-10.

Results

BGAN demonstrated superior stability compared to standard GAN architectures. In continuous image generation tasks, the model remained resilient even when the generator was updated multiple times per discriminator step, a scenario that often leads to mode collapse in traditional GANs.

Performance on Discrete Tasks

On a discrete CIFAR-10 classification task, BGAN variants achieved error rates as low as 26.0%, nearly matching the supervised cross-entropy baseline of 26.6%. This significantly outperformed WGAN with weight clipping, which struggled in this discrete setup.

Classification error rates on discrete CIFAR-10 comparing BGAN variants to baselines.

Qualitatively, BGAN successfully generated readable English text and realistic 16-color images from scratch, proving that the policy gradient derived from the discriminator is a viable training signal for complex discrete structures.

Discussion and Limitations

While BGAN represents a breakthrough for training discrete GANs without pre-training, some limitations remain. Character-level text generation, though impressive, still lacks the long-term coherence of supervised RNNs. Additionally, the importance weight estimator can be biased, as its accuracy depends on the discriminator's ability to tightly bound the true $f$-divergence. Finally, the requirement to generate multiple samples for normalized importance weights introduces a computational overhead, though this is mitigated by the ease of parallelization.

Conclusion

Boundary-Seeking GANs provide a principled and stable framework for training generative models on discrete data. By reframing the discriminator as a density ratio estimator and focusing on the decision boundary, BGANs offer a robust alternative to standard GAN training that extends the reach of adversarial learning to non-differentiable domains.

Summary updated

BibTeX
@misc{hjelm2017boundary,
  author = {R. Devon Hjelm and Athul Paul Jacob and Tong Che and Kyunghyun Cho and Yoshua Bengio},
  title = {{Boundary-Seeking Generative Adversarial Networks}},
  year = {2017},
  eprint = {1702.08431},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1702.08431},
}
Figure