liveBook · Manning

Generation

As explained in Math and Architectures of Deep Learning

A modeling approach that learns a data distribution so new samples resembling the training data can be generated.

Generation learns or fits a probability distribution to training data, then samples from that distribution to create new data resembling the examples. A model can also evaluate the probability of a new instance. The central idea is to find a density whose sample cloud overlaps the data of interest. section 5.7 section 13.0

Generation differs from discriminative prediction in what it models:

  • A discriminative model learns a decision boundary or emits a class; a generative model assigns probabilities across the input space. section 14.2
  • Smooth probability densities can avoid following irregular training-data bends too closely, especially when training data is limited. section 14.2
  • A generative classifier can become a discriminative classifier by thresholding the probability it assigns to an input. section 14.2
  • Distribution parameters such as expected value, variance, and covariance describe the fitted family and provide geometric intuition for its samples. section 5.7

Generating and evaluating cat images

Given training examples of cat images, fit a density p(x) whose sample cloud overlaps those examples. Sampling p(x) produces additional computer-generated cat images; evaluating p(x) for a new image estimates how likely it is to be a cat image. section 13.0

Figure 14.2 Solid circles indicate training data points (all belonging to the class of interest). The dashed curve indicates the decision boundary separating the class of interest from the class of non-interest. In a generative model, there is no decision boundary. Every point in the space is associated with a probability of belonging to the class of interest (indicated as a heat map in figure 14.2c)

(a) A good discriminative classifier—smooth decision boundary

(b) A bad discriminative classifier—irregular decision boundary

(c) Generative model—no decision boundary (heat map indicates the probability density)

Compare a smooth generative probability landscape with good and overfit discriminative decision boundaries. section 14.2

How Math and Architectures of Deep Learning covers it

How deep it goes
Descends from distribution properties through Bayesian parameter estimation, including priors, likelihoods, posteriors, and conjugate families.
Examples
Uses cat-image sampling, face-probability estimation, smooth density heat maps, and comparisons with irregular decision boundaries.
What it assumes
Assumes training samples and probability distributions, while developing expected value, variance, covariance, likelihood, and prior concepts.
What you can do after
Apply distribution models to generate samples or estimate probabilities for new data instances.
How it connects
Connects probability distributions, Bayesian estimation, discriminative classifiers, latent space modeling, and probability density functions.

Also explained in

Compare how 20 books explain generation →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Math and Architectures of Deep Learning. The section links point to the parts of the book it draws on.