Latent Variable Model

A latent variable model introduces an unobserved variable that explains or controls observed data .

The marginal likelihood is:

is the prior over latent variables and is the decoder or likelihood model.

Why It Matters

Latent variables can represent factors of variation, compressed structure, uncertainty, or hidden causes. They appear in VAE models, hierarchical generators, diffusion latents, and conditional generation systems.

Generative Story

A latent-variable paper should make the generative story explicit:

For conditional generation:

These two forms make different assumptions: the condition can shape the latent prior, the decoder, or both.

Inference

The posterior over latents is:

When exact inference is hard, models use approximate inference:

In variational models, this leads to the evidence lower bound:

The reconstruction term, KL term, prior, and posterior family all define what the latent is allowed to encode.

Latent Design Axes

AxisChoicesRisk
typecontinuous, discrete, categorical, graph, sequence, hierarchywrong type makes latent hard to use
priorstandard normal, learned prior, conditional prior, diffusion priorsampling from prior may not match encoded latents
posteriorexact, amortized, variational, encoder-based, MCMCposterior approximation can dominate performance
decoderlikelihood model, autoregressive decoder, diffusion decoder, graph decoderstrong decoder can ignore
usecompression, controllability, uncertainty, diversity, representationlatent claim may not match evaluation

Failure Modes

FailureSymptomCheck
posterior collapsedecoder ignores mutual information, KL term, latent traversals, ablation
prior mismatchencoded latents decode well but prior samples failcompare reconstruction and prior-sample validity
entangled latentchanging one latent changes many factorscontrolled intervention or conditional evaluation
leakage latentlatent encodes source, split, label, or template artifactsource/split-stratified analysis
invalid latent regioninterpolation or random samples decode invalid objectsvalidity over prior and interpolation paths

Checks

  • What does the latent variable represent?
  • Is discrete, continuous, structured, or hierarchical?
  • Is the latent space used by the decoder or ignored?
  • Can sampling from produce valid outputs?
  • Does the latent variable improve controllability or only add complexity?
  • Is evaluation based on reconstructions, prior samples, interpolations, or optimized latents?
  • Does the paper distinguish latent representation quality from generated sample quality?
  • Is the latent chosen, searched, or filtered at inference time?