Generative model
A generative model is a model that learns how a body of data is distributed, so it can judge how likely an example is and produce new examples that resemble the data.
In statistics, a generative model captures the whole distribution of the data: for labelled data, the joint distribution of inputs and labels, P(x, y), and for unlabelled data simply P(x). Because it describes how examples come about, it can in principle generate new ones by sampling. A discriminative model, by contrast, only learns P(y|x), the probability of a label given an input.
Generating content was not originally the point. Classic generative models such as naive Bayes, Gaussian mixture models and hidden Markov models were widely used for classification, density estimation and coping with missing data. A generative classifier uses Bayes' rule to turn its model of each class into a prediction. Andrew Ng and Michael Jordan's 2001 comparison found that such a classifier can reach its best performance with fewer examples than a discriminative one, though the discriminative model tends to reach a lower error once data is plentiful.
Deep learning changed what generative models could do. Variational autoencoders, generative adversarial networks, diffusion models and autoregressive models all learn distributions over very complex data, such as photographs, speech or text. A large language model is a generative model of text: it learns the probability of each next token given the tokens before it, and sampling from those probabilities one token at a time produces new writing.
That is the technical root of generative AI. The products people call generative AI, from chatbots to image and music generators, are built on deep generative models. In everyday news usage generative model has come to mean a model that creates content, which is accurate, but the older statistical sense explains why such models can also score how likely a piece of text or an image is.
Size is not part of the definition. A naive Bayes spam filter and a language model with billions of parameters are both generative models; what they share is that they model how the data is distributed, rather than only the boundary between one answer and another.
A generative model learns how the data itself is distributed, so it can produce new examples and estimate how likely an example is. A discriminative model learns only how to predict a label from an input. Image generators and chatbots are generative; logistic regression and support vector machines are discriminative. Yes. It learns the probability of each next token given the text before it, which amounts to a model of how text is distributed. Generating a reply is a matter of sampling from those probabilities one token at a time. Classic examples are naive Bayes, Gaussian mixture models and hidden Markov models. Modern deep generative models include variational autoencoders, generative adversarial networks, diffusion models and autoregressive language models such as the GPT family. Generative model is the technical term for a model of how data is distributed, and it predates today's products by decades. Generative AI is the broader label for systems and products, such as chatbots and image generators, built on deep generative models.Common questions
What is the difference between generative and discriminative models?
Is a large language model a generative model?
What are some examples of generative models?
What is the difference between a generative model and generative AI?
Search for "generative vs discriminative models", "deep generative models" or "density estimation" to see the idea from both the statistical and the deep learning sides. Reliable sources include machine learning textbooks, university course notes, the original papers on arXiv and in conference proceedings, and encyclopedia articles that cite them. Expect some inconsistency in terminology, since researchers have drawn the line between generative and discriminative in slightly different places.Finding more
Working out what this means for your business?
Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.