# Generative model

> Canonical: https://skillalmanac.com/glossary/generative-model | Last verified: 2026-11-25 | Index status: index-eligible

A generative model represents how data is distributed and can produce new examples resembling that data. A discriminative model instead distinguishes categories or estimates a label from an input.

Also called: generative models.

## In plain language

A generative model learns patterns in data so it can produce new samples, such as text or images that resemble its training material. A discriminative model focuses on separating categories, such as deciding whether an image shows a cat or dog. Generation does not guarantee truth or quality: a plausible output can still be wrong, and its usefulness must be checked for the task.

## Technical definition

Given data instances X and labels Y, a generative model captures the joint distribution p(X, Y), or p(X) when labels are absent. A discriminative model captures the conditional distribution p(Y | X). Google notes that neither type must return an explicit probability. Generative modeling is generally the broader task because it represents more of the data distribution, but that does not make it superior for classification.

## How it shows up when you use agents

Text-generating assistants commonly use generative language models. Given a prompt and context, such a model produces a new sequence rather than choosing only from a fixed list of labels. Other generative models can produce images or different kinds of data. A [generative adversarial network](/glossary/generative-adversarial-network) and a [diffusion model](/glossary/diffusion-model) are particular kinds of generative model, not synonyms for the whole category.

Discriminative models solve a different problem. An image classifier might distinguish cats from dogs, while a spam classifier assigns a message to a category. Systems can combine the two roles: a generative component can draft an answer, while a separately identified classifier can label an input or output. The presence of both components does not turn them into the same kind of model.

When assessing an agent, first identify the action you need. If you need prose, code, an image, or another new sample, generation may fit. If you need one label from known categories, compare a [classification](/glossary/classification) approach. In either case, test the output against task-specific evidence or labelled examples. A fluent generated answer is not verification, and a category prediction is not an explanation by itself.

## Common confusions

- **Generative versus discriminative.** A generative model represents p(X, Y), or p(X) without labels. A discriminative model represents p(Y | X). Neither is required to display a probability.
- **Generative model versus generative AI.** The model is a learned statistical component. [Generative AI](/glossary/generative-ai) also covers applications and workflows built around such components.
- **Generative versus supervised.** These terms describe different dimensions. Supervised learning describes training with labelled examples; it is not simply another name for discriminative modeling.
- **Generating data versus being a generative model.** A rule-based mock-data utility can create new rows without learning any distribution. Production of new material alone is therefore insufficient.
- **Harder versus better.** Modeling more of a distribution is generally a broader task than drawing a decision boundary, but it does not guarantee better performance on a classification job.

## Worked examples in this catalogue

### [What Is an LLM? The Facts Agent Users Need](https://skillalmanac.com/learn/what-is-an-llm-for-agent-users)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: An illustrated guide separating language models, modeling objectives, and the applications built around them.

Why it exercises the concept: It shows that text-generating, autoregressive language models are generative while warning that not every language-model design uses ordinary next-token generation.

### [mock-record-generator](https://skillalmanac.com/skills/skill-almanac/mock-record-generator)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: A seeded utility that creates repeatable mock CSV or JSON records from a field specification.

Why it exercises the concept: This is a useful contrast: it produces new records by programmed rules rather than by learning a data distribution, so generated output alone does not make something a generative model.

## Related terms

- [Generative AI (gen AI)](https://skillalmanac.com/glossary/generative-ai.md)
- [Machine learning (ML)](https://skillalmanac.com/glossary/machine-learning.md)
- [Generative adversarial network (GAN)](https://skillalmanac.com/glossary/generative-adversarial-network.md)
- [Diffusion model](https://skillalmanac.com/glossary/diffusion-model.md)
- [Classification](https://skillalmanac.com/glossary/classification.md)
- [Autoregressive model](https://skillalmanac.com/glossary/autoregressive-model.md)

## Sources

- [Background: What is a Generative Model?](https://developers.google.com/machine-learning/gan/generative), Google for Developers (accessed 2026-11-25)
- [What is a generative model?](https://www.ibm.com/think/topics/generative-model), IBM (accessed 2026-11-25)

Definitions are written by Skill Almanac from the sources above and checked against them on 2026-11-25. [Glossary index](https://skillalmanac.com/glossary.md).
