Data as samples from an unknown distribution
One question drives this course: how can a model learn to produce new data that looks like its training data? A classifier answers a question about an image: is this a cat? A generative model produces the image itself, a new cat that was not in the training set.
To make the question precise, we treat a data set as independent draws from one distribution:
For images, is a vector of pixel values; for text it is a sequence of tokens, for audio a waveform. The distribution (also written ) is unknown. Nobody can write down the density of "photographs of cats". All we have is the sample.
We look for a model with parameters such that
and from which we can draw new points . Generative modeling is learning to sample from a distribution we do not know, by approximating it from examples.
"New" matters. Replaying a random training example is also a way to sample: its distribution is the empirical distribution , with mass on each . But the target is , the process that produced the photographs, not the finite list of photographs itself.