Density Estimation

Density estimation learns or approximates the probability distribution that generated data. It is the statistical root of many generative models.

The target is a distribution , while the model provides or an approximation to it. Learning usually tries to make assign high probability to training examples and low probability to implausible regions.

The maximum-likelihood objective is:

Equivalently, it minimizes negative log-likelihood:

In expectation form, maximum likelihood minimizes cross entropy:

Because

the model is pushed toward the data distribution when the model class and optimization are adequate.

Common Forms

  • Explicit density models.
  • Autoregressive factorization.
  • Normalizing flows.
  • Variational latent-variable models.
  • Score or denoising objectives that avoid direct density evaluation.

Autoregressive models factorize density as:

Normalizing flows use an invertible transform :

Score-based models learn the score instead of the density value:

Density vs Generation

Likelihood and sample quality are related but not identical. A model can assign high likelihood to common low-level statistics while generating poor samples, or generate useful samples while making exact likelihood unavailable.

For conditional generation, the target is:

where can be a class label, text prompt, protein context, molecular scaffold, or other conditioning signal.

Checks

  • Is likelihood tractable, estimated, bounded, or unavailable?
  • Does high likelihood correspond to useful sample quality?
  • Is the modeled distribution conditional or unconditional?
  • Are out-of-distribution samples assigned misleadingly high density?
  • Is evaluation using held-out likelihood, sample quality, downstream utility, or calibration?
  • Are discrete, continuous, and structured outputs handled with compatible density assumptions?