DIM icon indicating copy to clipboard operation
DIM copied to clipboard

Questions about prior matching part

Open HeimingX opened this issue 6 years ago • 1 comments

Hi, thank you for your interesting DIM model and the open-source code.

However, I am confused about the realization of prior matching part https://github.com/rdevon/DIM/blob/bac4765a8126746675f517c7bfa1b04b88044d51/cortex_DIM/models/discriminator.py#L62 It seems that GAN is used to force the global encoding matching the prior distribution. The discriminator loss consists of a difference between E_pos and E_neg (the realization equals to the original gan's formulation, i.e., with log term) and also one gradient penalty term which is introduced in WGAN to satisfy the Lipschitz constraint. So I wonder if the combination of original gan with a gradient penalty is reasonable?

HeimingX avatar Jan 07 '20 05:01 HeimingX

Which original GAN do you speak of? The penalty that I use comes from Kevin Roth's paper, which works much better than WGAN-GP penalty in my experience. In Kevin's paper, he used one of the f-divergence GANs (which includes the original, see Sebastian Nowozin's paper), and as far as I know they should work with any of them. Most of these are implemented in my code.

rdevon avatar May 14 '20 16:05 rdevon