VQ-VAE Flashcards

1
Q

VQ-VAE - what are the 3 main contributions of VQ-VAE in comparison to VAE

A

1 Quantisation of the latent space
2 Restrict the latent space to a linear combination of a set of vectors (codebook).
3 The prior of the codebook is learned rather than static

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

VAE - what are the 4 main principles that VAE is based on

A

1 AE framework with continuous latents
2 A Gaussian sampling procedure
3 The prior of the latent vector follows a Gaussian distribution with u=0 and sigma=1
4 a reconstruction loss and a KL divergence loss

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

VQ-VAE - how does it changes the AE framework

A

There’s a quantisation step in the middle which convert the continuous feature extraction output to a quantised entity

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

VQ-VAE - How does it changes the sampling procedure?

A

It assumes that the prior is a uniform distribution over the codebook and the posterior of the decoder input is a delta function that gives back the nearest codeword

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

VQ-VAE - what happens to the KL divergence

A

Becomes constant and is removed from the learning

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

VQ-VAE - What happens to the prior

A

It is learned in the training process

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

VQ-VAE - what is the loss?

A

The reconstruction loss, the codebook loss and the commitment loss

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

VQ-VAE - What is the codebook loss?

A

MSE from the features of the input to the codeword (putting stop-gradient on the input features)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

VQ-VAE - What is the commitment loss?

A

The squared distance between the encoder to the stop-gradient of its closest codeword.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly