SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2003.06060 · 2020

Your GAN is Secretly an Energy-based Model and You Should use Discriminator Driven Latent Sampling

arXiv · PDF · Open in the Atlas

Code that ran

We lifted 5 functions out of this paper's own repositories and ran 3 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.

RepositoryRoleRan
Daniil-Selikhanovych/ebm-wgan reimplementation 3 of 3
ramonpeter/LaSeR pwc_unofficial 0 of 2
FunctionStatusWhere it lives
Langevin_sampling Ran Daniil-Selikhanovych/ebm-wgan/api/ebm_sampling.py
pointer only (licence: NONE) · get_code("438bcd0a1ba99d17")
MALA_sampling Ran Daniil-Selikhanovych/ebm-wgan/api/ebm_sampling.py
pointer only (licence: NONE) · get_code("d5e920b3e7544980")
calculate_energy Ran Daniil-Selikhanovych/ebm-wgan/api/ebm_sampling.py
pointer only (licence: NONE) · get_code("32369b999c744730")
Loader Not yet run ramonpeter/LaSeR/load_data.py
code served (permissive licence) · get_code("8a98b258e2730b4d")
read_files Not yet run ramonpeter/LaSeR/load_data.py
code served (permissive licence) · get_code("1128b0cc9e6d1a73")

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

We show that the sum of the implicit generator log-density $\log p_g$ of a GAN with the logit score of the discriminator defines an energy function which yields the true data density when the generator is imperfect but the discriminator is optimal, thus making it possible to improve on the typical generator (with implicit density $p_g$). To make that practical, we show that sampling from this modified density can be achieved by sampling in latent space according to an energy-based model induced by the sum of the latent prior log-density and the discriminator output score. This can be achieved by running a Langevin MCMC in latent space and then applying the generator function, which we call Discriminator Driven Latent Sampling~(DDLS). We show that DDLS is highly efficient compared to previous methods which work in the high-dimensional pixel space and can be applied to improve on previously trained GANs of many types. We evaluate DDLS on both synthetic and real-world datasets qualitatively and quantitatively. On CIFAR-10, DDLS substantially improves the Inception Score of an off-the-shelf pre-trained SN-GAN~\citep{sngan} from $8.22$ to $9.09$ which is even comparable to the class-conditional BigGAN~\citep{biggan} model. This achieves a new state-of-the-art in unconditional image synthesis setting without introducing extra parameters or additional training.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2003.06060")
get_code_for_paper("2003.06060")
have("2003.06060")

Connect an agent — have() is free.