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

Discriminating Q(z|x) and P(z) versus Q(z) and P(z) #5

Open
j-min opened this issue Aug 25, 2018 · 1 comment
Open

Discriminating Q(z|x) and P(z) versus Q(z) and P(z) #5

j-min opened this issue Aug 25, 2018 · 1 comment

Comments

@j-min
Copy link

j-min commented Aug 25, 2018

Hi,

I am little bit confused after reading your paper. Please correct me if I misunderstood.
In your paper, you show difference between VAE and WAE in terms of distribution matching objective

  • VAE: matching Q(z|x) to P(z)
  • WAE: matching Q(z) directly to P(z)
    image

However, I wonder why you implemented WAE that matches Q(z|x) to P(z) with GAN and MMD.
(ex. Discriminator still discriminates z tilda from Q(z|x) and z from P(z)
image

In order to match Q(z) to P(z), don't you have to calculate distance between Q(z) and P(z), in which Q(z) is obtained by marginalizing Q(z|x) with P(x)?
But you are averaging distance between Q(z|x) and P(z) with multiple x.

@tolstikhin
Copy link
Owner

Hey,

thanks for the question. When you sample $X_1, ..., X_n$ from the data distribution $P$ and then for every $i=1,...,n$ sample $Z_i$ from $Q(Z|X_i)$ then the resulting $Z_1,\dots,Z_n$ is a sample of independent points each one distributed according to the aggregate posterior $Q_Z$. Thus we are matching $Q_Z$ to $P_Z$ based on two samples: one from $Q_Z$ and one from $P_Z$.

I hope this helps.

Best wishes,
Ilya

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants