AutoEncoders Flashcards
AutoEncoder
Components and loss function
An autoencoder is a model designed to encode objects in a low dimensiona space - the latent space.
1. Encoder: reduces the dimensionality of the input while retaining its most valuable features.
2. Bottleneck: the latent vector.
3. Decoder: expands the dimension back using the latent vector so to approximate the original input with the best fidelty.
The loss function is the reconstruction loss.
Reconstruction Loss
The l2 norm between the decoded output and the original input.
Insensitive to blurring.
How can AutoEncoders be used as generative models?
Decode the interpolation of two encoded latent vectors
Why are VAEs required? Why can’t we use regular AEs to generate?
The latent space isn’t necessairly continuous
VAE
Variational AutoEncoder
An autoencoder model designed to encode each input as a distribution (paramaterized by mean and variance) which the decoder will later sample to generate the decoded output.
We can also sample from the distribution to generate new samples.
What are the loss functions of VAE
- Reconstruction Loss
- KL Divergence between the encoded distribution and the N(0, 1) distribution.
Downside of VAEs
Generations are blurry, low fidelity. The average of real samples often is out-of-distribution.