What changes when a system can create?
Many machine-learning systems choose a label or estimate a number. Generative AI has a different goal: it constructs a new candidate—such as a paragraph, picture, sound, video clip, program, or structured record—using patterns learned from examples.
“New” does not mean unrelated to training data. The result is shaped by learned patterns and by the request given at use time. Generative models are not simply retrieval systems, but memorization or near-verbatim reproduction can occur and must be checked.
This overview explains what generation is, how it differs from retrieval and ordinary prediction, what a pretrained model does at a high level, and where the major model families fit. Lesson 3 develops distributions, latent spaces, sampling, and conditioning in detail.
Generative AI in Simple Words
Traditional AI acts like an evaluator or grader—it labels an image, detects spam, or predicts a house price. Generative AI acts like an author or artist—it learns the underlying patterns and structure across millions of examples, then constructs completely new candidate text, imagery, audio, code, or records that fit your use-time prompt.
Learn Patterns
Digests vast datasets
Map Probability
Understands plausible worlds
Condition / Prompt
Receives guidance at runtime
Synthesize Output
Constructs new candidate artifact
What can Generative AI produce?
| Output type | Example request | Candidate output | What still needs checking |
|---|---|---|---|
| Text | Draft a support reply | A message in natural language | Facts, tone, policy, and citations |
| Image | Create three packaging concepts | New pixel arrangements | Brand accuracy, artifacts, rights, and bias |
| Audio | Read a lesson aloud | A waveform or audio tokens | Pronunciation, consent, and intelligibility |
| Video | Animate a product demonstration | A sequence of frames, often with sound | Identity, motion, continuity, and safety |
| Code | Draft a validation function | Program text | Correctness, security, tests, and dependencies |
| Structured data | Create test orders in a schema | Rows or JSON-shaped records | Schema validity, realism, privacy, and coverage |
Three systems that can look similar from the outside
A search box, a fraud model, and a writing assistant may all accept text, but they perform different operations. The distinction matters because each system has different evidence and failure modes.
Figure 2 — One request, three different system behaviours
Retrieval returns an item that already exists, prediction assigns a label or score, and generation constructs a new candidate from a condition and a starting signal.
The shared request Show me a product image visibly branches into retrieval through a database to a stored image, prediction through a classifier to a label and probability, and generation through a model supplied with condition and noise to a newly constructed image.
the same request branches to
A · RETRIEVAL
Database → stored image
RETRIEVEDB · PREDICTION
Classifier → label + 94%
PREDICTEDC · GENERATION
Condition + noise → new image
GENERATED| Approach | Main operation | Example | Evidence behind the result | Typical risk |
|---|---|---|---|---|
| Retrieval | Find and return an existing item | Find the refund policy paragraph | A stored document or database row | Wrong or outdated item retrieved |
| Predictive or discriminative ML | Map an input to a label, score, or number | Estimate whether a payment is fraudulent | A learned decision rule evaluated on similar cases | Incorrect prediction or distribution shift |
| Generative AI | Construct a candidate output | Draft a refund explanation using approved facts | Learned patterns plus supplied conditions | Unsupported, unsafe, biased, or memorized content |
Prompt, condition, and starting signal
Prompt
Instructions or context, usually written as text, supplied at use time.
Condition
Any information that guides the output: a prompt, class, image, mask, audio clip, or partial sequence.
Starting signal
The initial input to generation, such as random noise, a first token, a latent vector, or a partly completed artifact.
Training a model versus using one
Training
Developers supply examples and a learning objective. An optimizer repeatedly changes model parameters. This can require large datasets, specialized hardware, and long-running jobs.
Using a pretrained model
The saved parameters normally remain fixed. A user or application supplies a condition and the model generates an output. Prompting is use-time guidance; it is not the same as retraining.
Figure 1 — Training changes the model; generation uses it
Follow the upper lane first: loss sends an update back into training, so the parameters change. In the lower lane, the saved generator is reused with its parameters fixed.
Two connected lanes. Training sends examples into training, measures loss, feeds an update back, and saves a learned generator. Generation sends a condition and random seed into the same learned generator, whose parameters are fixed, to produce a candidate output.
A map of four major model families
These labels describe different generation mechanisms. They are orientation points here, not complete lessons.
Autoregressive
Creates one part at a time and uses earlier parts to help choose the next, as in next-token text generation.
Variational Autoencoder (VAE)
Samples a compact latent representation and decodes it into a new output.
Generative Adversarial Network (GAN)
Improves a generator through competition with a discriminator that learns to detect fakes.
Diffusion
Starts from noise and repeatedly denoises it until a structured sample appears.
How a Generative AI feature fits into an application
This is conceptual pseudocode, not a provider-specific runnable program. It separates trusted facts, generation, verification, and human review instead of treating the model output as automatically correct.
# Conceptual pseudocode: the model and checks depend on your application.
condition = {
"task": "write a two-sentence product description",
"facts": verified_product_facts,
"tone": "friendly",
}
draft = pretrained_model.generate(condition, random_seed=27)
result = verify_facts_and_policy(draft, verified_product_facts)
if result.is_safe_and_supported:
publish_for_human_review(draft)
else:
request_revision(result.problems)Where generation helps—and where caution is required
| Strength | Useful application | Limitation to manage |
|---|---|---|
| Produces many candidate drafts quickly | Writing, design exploration, code scaffolding | Hallucinated facts and plausible-looking errors require verification |
| Adapts output to a condition | Personalized explanations and controlled media | The condition influences output but does not guarantee compliance |
| Can model rare or simulated situations | Synthetic data and scenario testing | Bias or missing cases in training data can be reproduced or amplified |
| Works across multiple modalities | Text, image, audio, video, code, and structured data workflows | Compute, latency, energy use, privacy, and moderation costs can be substantial |
Historical Compute & Context Growth in Generative AI
Training compute scaling (PetaFLOP-days, log-scaled) alongside context window capacity.
Notice the exponential inflection: modern generative systems simultaneously scale parameter capacity, pretraining compute, and active context tokens.
Summary / Key Takeaways
- Generative AI constructs new candidate content from patterns learned in examples; it does not simply retrieve an existing item.
- Retrieval returns stored evidence, predictive ML maps an input to a label or number, and generation creates a new candidate output.
- A prompt is one kind of condition, while a starting signal may be noise, a token, a latent vector, or a partly completed artifact.
- Training changes model parameters with examples and an objective; using a pretrained model normally keeps those parameters fixed.
- Autoregressive models, VAEs, GANs, and diffusion models generate through different mechanisms rather than one universal process.
- Flexible creation still requires checks for unsupported facts, memorization, bias, privacy, safety, latency, cost, and appropriate human review.