What is posterior collapse in variational autoencoders?

Quick Overview

Asks what posterior collapse is in a variational autoencoder, why it happens, how to detect it during training and how to fix it. It tests understanding of the ELBO, the KL term and how decoder capacity affects whether the latent code gets used.

What is posterior collapse in variational autoencoders?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

What is posterior collapse in variational autoencoders? ```hint Look at the objective Write out the ELBO and ask which term the optimizer can drive to zero cheaply, and what that does to the latent code. ``` ```hint Think about the decoder Consider what happens when the decoder can predict `x` well without any help from `z`. ``` ### What a Strong Answer Covers - What collapse means in terms of `q(z|x)`, the prior `p(z)` and the KL term - Why optimization drifts toward it, including the role of decoder capacity - How to detect it from training metrics and model outputs - Fixes, and what each one gives up ### Follow-up Questions - Why does a text VAE with an LSTM decoder collapse more readily than an image VAE whose decoder models pixels independently given `z`? - Is it a problem if only some latent dimensions collapse? - How does setting β above 1, as in a β-VAE, affect the risk of collapse? - With free bits, the KL often settles right at the threshold. What does that tell you?

Overview: Asks what posterior collapse is in a variational autoencoder, why it happens, how to detect it during training and how to fix it. It tests understanding of the ELBO, the KL term and how decoder capacity affects whether the latent code gets used.

General logo
General
Nov 25, 2026
mediumMachine Learning EngineerOtherMachine Learning
0
0

What is posterior collapse in variational autoencoders?

What a Strong Answer Covers Guidance

  • What collapse means in terms of q(z|x) , the prior p(z) and the KL term
  • Why optimization drifts toward it, including the role of decoder capacity
  • How to detect it from training metrics and model outputs
  • Fixes, and what each one gives up

Follow-up Questions Guidance

  • Why does a text VAE with an LSTM decoder collapse more readily than an image VAE whose decoder models pixels independently given z ?
  • Is it a problem if only some latent dimensions collapse?
  • How does setting β above 1, as in a β-VAE, affect the risk of collapse?
  • With free bits, the KL often settles right at the threshold. What does that tell you?