
erik_softmax_gan
Diffusion and generative14 ops1.5M params
The generator from PyTorch-GAN's boundary-seeking GAN, a GAN objective built for discrete data.
Diffusion and generative · 14 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Boundary-seeking GANs, BGAN for short, are a way to train generative adversarial networks on discrete data, where the usual GAN recipe fails because generated samples must be differentiable with respect to the generator's parameters. The paper's motivating example is a step function at the end of a generator: its derivative is zero almost everywhere, so back-propagation alone carries no training signal, even though many important datasets such as character or word text are discrete. The fix uses the discriminator's estimated difference measure to compute importance weights for generated samples, which supplies a policy gradient for the generator. Those weights are tied to the discriminator's decision boundary, which is where the name comes from.
The theory rests on f-divergences: a discriminator trained to estimate an f-divergence yields importance weights, and for the divergence of the original GAN the optimal weight is the odds ratio of the discriminator's output. Computing the normalized weights costs M times more work per update, which the authors note can run in parallel, trading space for time. The objective also extends to continuous data, where the generator minimizes the squared log of the importance weight, which the paper presents as a more stable generator objective. On discrete MNIST the importance-weighted BGAN trains stably and produces realistic, highly variable handwritten digits, and the continuous form is demonstrated on CelebA, LSUN bedrooms and ImageNet without conditioning.
The captured member is not the authors' code, whose official release is a Theano and Lasagne project with Fuel datasets, but the generator from the PyTorch-GAN collection's bgan.py. That collection warns that its architectures will not always mirror the ones proposed in the papers, since its author chose to cover the core ideas rather than every layer configuration. BGAN is at heart a training objective, so what the graph shows is an ordinary generator mapping latent noise to an image; the boundary-seeking part lives in the loss, not in the layers. The official repository's own instructions begin with installing binarized MNIST and CelebA through Fuel.
Key idea. A policy-gradient GAN objective for discrete data, built from discriminator-derived importance weights, that also extends to a more stable continuous objective.
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
@misc{hjelm2018boundaryseekinggenerativeadversarialnetworks,
title={Boundary-Seeking Generative Adversarial Networks},
author={R Devon Hjelm and Athul Paul Jacob and Tong Che and Adam Trischler and Kyunghyun Cho and Yoshua Bengio},
year={2018},
eprint={1702.08431},
archivePrefix={arXiv},
primaryClass={stat.ML},
url={https://arxiv.org/abs/1702.08431},
}