Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MHGAN #3

Open
kayuksel opened this issue Mar 9, 2019 · 2 comments
Open

MHGAN #3

kayuksel opened this issue Mar 9, 2019 · 2 comments
Labels
enhancement New feature or request

Comments

@kayuksel
Copy link

kayuksel commented Mar 9, 2019

A recent improvement over the traditional GANs came out from Uber’s engineering team and is called Metropolis-Hastings GAN (MHGAN). The idea behind Uber’s approach is (as they state it) somewhat similar to another approach created by Google and University of California, Berkeley called Discriminator Rejection Sampling (DRS). Basically, when we train GAN we use the Discriminator (D) for the sole purpose of better training the Generator (G). Often, after training the GAN we do not use the D any more. MHGAN and DRS, however, try to use D in order to choose samples generated by G that are close to the real data distribution (a difference between is that MHGAN uses Markov Chain Monte Carlo (MCMC) for sampling).

MHGAN takes K samples generated from the G (created from independent noise inputs to the G). Then, it sequentially runs through the K outputs and following an acceptance rule (created from D) to decide whether to accept the current sample or keep the last accepted one. The last kept output is the one considered the real output of G. To sum up, Metropolis-Hastings GAN refers to the functionality of improving trained GANs by drawing k samples from the generator in MCMC fashion and using the discriminator (or critic) probabilities for calculating an acceptance ratio to obtain the best possible sample. Hence, given a perfect discriminator, and k approaching infinity, one can obtain samples from the true data distribution and even if the generator doesn't converge optimally, one can use the discriminator to draw enhanced samples.

https://github.com/uber-research/metropolis-hastings-gans
TensorFlow implement: https://github.com/nardeas/MHGAN

@Aniket1998
Copy link

This would be an interesting addition to the model zoo. Thanks for bringing it to notice
https://github.com/torchgan/model-zoo

@avik-pal
Copy link
Member

avik-pal commented Mar 9, 2019

This would be a really interesting addition. Shifting this issue to the model zoo repository.

@avik-pal avik-pal transferred this issue from torchgan/torchgan Mar 9, 2019
@avik-pal avik-pal added the enhancement New feature or request label Mar 9, 2019
@avik-pal avik-pal pinned this issue Mar 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants