techlist.io

Generative Adversarial Networks

3 posts

OpenAI2018-03-141 min readCurated summary

Improving GANs using optimal transport

The paper introduces OT-GAN, a variant of generative adversarial networks that minimizes a new distance measure between the generator's distribution and the data distribution. This measure, called mini-batch energy distance, combines optimal transport in primal form with an energy distance computed in an adversarially learned feature space. The authors report that OT-GAN is highly stable with large mini-batches and achieves state-of-the-art results on several popular image generation benchmarks. ## A New Training Metric: Mini-batch Energy Distance - Measures the distance between the generator and data distributions - Combines optimal transport (primal form) with an energy distance - Computes the energy distance in a feature space that is learned adversarially - Produces a highly discriminative distance function with unbiased mini-batch gradients ## Stability at Large Batch Sizes - Training remains stable when using large mini-batches, which is often a challenge for GANs ## Image Generation Results - Achieves state-of-the-art performance on several popular image generation benchmarks This summary is based on the abstract alone. The post does not include the method details, experimental setup, or quantitative comparisons, so those would need to be read in the full paper.

OpenAI2016-11-132 min readCurated summary

On the quantitative analysis of decoder-based generative models

Generative models such as variational autoencoders, GANs, and generative moment matching networks share a decoder network, but their performance is hard to measure because their log-likelihoods are intractable and inspecting samples can be misleading. The post proposes Annealed Importance Sampling (AIS) as a way to estimate log-likelihoods for decoder-based models, and it validates the estimates with bidirectional Monte Carlo. The authors use this technique to assess how well these models perform, how reliable existing estimators are, how much they overfit, and how well they cover the modes of the data distribution. ## Decoder-Based Generative Models - A decoder is a parametric deep neural network that defines a generative distribution over data. - The approach covers several families: variational autoencoders, generative adversarial networks, and generative moment matching networks. - The post treats the decoder as the shared component across these otherwise different models, which is what makes a single evaluation method applicable to all of them. ## The Evaluation Problem - Log-likelihood is the standard quantitative metric for generative models, but it cannot be computed exactly for decoder-based models. - Visual inspection of samples is the common fallback, but the post argues it can mislead, since good-looking samples do not show whether the model covers the whole data distribution or merely memorizes parts of it. ## Annealed Importance Sampling for Log-Likelihood Estimation - AIS is used to estimate the log-likelihood of decoder-based models in place of an intractable exact computation. - Its accuracy is checked with bidirectional Monte Carlo, which bounds the estimate from both directions to show how close it is to the true value. - The evaluation code is released publicly so others can reproduce the method. ## What the Analysis Reveals - The approach measures overall performance of decoder-based models across the families above. - It tests how effective existing log-likelihood estimators are, not just the models themselves. - It quantifies the degree of overfitting to the training data. - It indicates how much of the data distribution these models fail to capture, specifically which important modes they miss. ## Practical Takeaway If you are comparing decoder-based generative models, relying on sample quality alone is insufficient. Estimating log-likelihood with AIS, and checking the estimate with bidirectional Monte Carlo, gives a more rigorous basis for comparison, including on overfitting and mode coverage.

OpenAI2016-11-102 min readCurated summary

A connection between generative adversarial networks, inverse reinforcement learning, and energy-based models

Generative adversarial networks (GANs), inverse reinforcement learning (IRL), and energy-based models (EBMs) are usually studied separately, but this post argues they are closely linked. The authors show that a sample-based algorithm for maximum entropy IRL is mathematically equivalent to a GAN in which the generator's density can be evaluated and fed to the discriminator. They then argue that GAN training can be understood as training an energy-based model, and they hope making these links explicit will help researchers transfer techniques for stabilizing and scaling these methods. ## Learning Cost Functions in Generative Modeling and Control - In a GAN, the generator is trained against a cost function that a discriminator learns at the same time. - Learning cost functions has a longer history in control and reinforcement learning, mainly for imitation learning from demonstrations. - In those fields, recovering the cost that explains observed behavior is called inverse reinforcement learning or inverse optimal control. ## Equivalence Between Maximum Entropy IRL and GANs - The authors show that certain IRL methods are not just analogous to GANs but mathematically equivalent to them. - The specific match is a sample-based algorithm for maximum entropy IRL and a GAN whose discriminator also receives the generator's density as an additional input. ## Connection to Energy-Based Models - Maximum entropy IRL is a special case of an energy-based model. - Because of this, GAN training can be interpreted as a way to train energy-based models. - The paper relates this view to other recent work that connects GANs and EBMs. ## Implications for Stability and Scalability - Stability and scalability are named as major open challenges in all three areas. - The authors suggest that ideas can move between the communities once the formal connections are clear, especially methods aimed at more stable and scalable training.