Recall & Review
beginner
What is a Variational Autoencoder (VAE)?
A Variational Autoencoder is a type of neural network that learns to compress data into a smaller space (called latent space) and then reconstructs the original data. It does this by learning a probability distribution instead of fixed points, allowing it to generate new data similar to the input.
Click to reveal answer
beginner
What is the role of the encoder in a Variational Autoencoder?
The encoder takes input data and maps it to a set of parameters (mean and variance) that describe a probability distribution in the latent space. Instead of a single point, it learns a range of possible values to represent the input.
Click to reveal answer
intermediate
Why do VAEs use a sampling step in the latent space?
VAEs sample from the learned distribution (using mean and variance) to get a latent vector. This sampling allows the model to generate diverse outputs and helps it learn a smooth latent space where similar points produce similar outputs.
Click to reveal answer
intermediate
What is the purpose of the KL divergence term in the VAE loss function?
The KL divergence measures how much the learned latent distribution differs from a standard normal distribution. Minimizing it helps keep the latent space organized and prevents the model from overfitting by encouraging the distribution to be close to normal.
Click to reveal answer
beginner
How does the reconstruction loss in a VAE work?
The reconstruction loss measures how close the output data is to the original input. It ensures the decoder learns to recreate the input well from the latent vector, typically using mean squared error or binary cross-entropy depending on the data.
Click to reveal answer
What does the encoder in a VAE output?
✗ Incorrect
The encoder outputs parameters (mean and variance) that define a probability distribution in the latent space.
Why is sampling used in the latent space of a VAE?
✗ Incorrect
Sampling allows the model to generate different outputs and helps the latent space represent data smoothly.
What does the KL divergence term in the VAE loss encourage?
✗ Incorrect
KL divergence pushes the learned latent distribution to be close to a standard normal distribution.
Which loss is commonly used for reconstruction in VAEs with binary data?
✗ Incorrect
Binary cross-entropy is used when the input data is binary or normalized between 0 and 1.
What is the main benefit of learning a distribution in the latent space?
✗ Incorrect
Learning a distribution lets the model generate new data points similar to the training data.
Explain how a Variational Autoencoder compresses and reconstructs data.
Think about the steps from input to output and how the model learns.
You got /4 concepts.
Describe the role of the KL divergence and reconstruction loss in training a VAE.
Consider what each loss term controls in the model.
You got /3 concepts.