What is
Generative
AI?
A family of models that learns patterns and structure from data, then produces new synthetic content in response to an input or condition.
Modern systems commonly use foundation models: broadly pre-trained neural networks that provide this generative capability.
patterns and structure
captures a distribution
text · code · image · audio · JSON
What it does. How it is built.
How it is trained for reuse.
Objective
Generative AI creates a new sample; discriminative AI predicts a label, score, or value. An LSTM can do either job, depending on its training objective.Architecture
CNN, RNN/LSTM, and Transformer describe how a model is built. Architecture alone does not make a model generative or discriminative.Foundation-model paradigm
A foundation model is broadly self-supervised pre-trained, then adapted across tasks. LSTMs and GANs could be generative long before foundation models.Foundation models
are the engine underneath.
model
application
They are called foundation models because one broadly pre-trained base can support many downstream applications through adaptation. It is a base capability—not a complete application.
Self-supervised learning:
the data teaches the model.
The original text supplies both the input and the answer. No human needs to label every sentence.
GPT’s causal objective supports left-to-right text generation; BERT’s masked objective learns bidirectional representations for classification, search, and extraction.
GPT
Causal / next-token prediction
Give only the prefix:
Predict the next token:
Sees: earlier tokens only.
BERT
Masked-token prediction
Hide one token:
Reconstruct the hidden token:
Sees: tokens on both sides.
From explicit rules
to models that create.
Generative AI did not appear overnight. It is the latest change in where intelligence is encoded: rules → data → learned representations → broadly pre-trained models.
Each era solved a real problem, then exposed a limitation that drove the next technical shift.
Symbolic AI:
intelligence as explicit rules.
The premise: describe reasoning with symbols, logic, search, and hand-written knowledge.
Expert systems:
capture a domain expert.
The system paired an if–then rule base with domain knowledge to make narrow decisions.
Statistical ML:
learn from labelled data.
Instead of writing every rule, engineers trained a model to map features to a target.
Deep learning:
learn the representations too.
Multi-layer neural networks began learning useful features directly from large datasets.
Transformers:
attention and pre-training at scale.
The Transformer removed recurrence, used attention, and made training much more parallelizable.
Generative foundation models:
create across tasks and modalities.
Broad-data models are instruction-tuned and increasingly work across language, images, audio, and code.
What tasks are
suitable?
A strong use case has a clear input, a useful output contract, and a way to judge quality.
Where does GenAI
add value?
Use it when several outputs can be acceptable and creating or transforming content is the bottleneck.
Use deterministic software instead
For exact calculations, fixed policy enforcement, stable rules, and authoritative lookups.
Multimodal Generative AI
connects modalities.
A multimodal model can accept, relate, or generate across text, images, audio, video, and structured data.
Image
Audio
Video
foundation model
Image · audio
Structured data
GenAI changes the
application architecture.
It does not remove domain data models, permissions, business rules, testing, monitoring, or accountability.
Fluent output is not
evidence of correctness.
Human-in-the-loop is an
architecture decision.
output
level
Medium: review queue
High: domain authority decides
Define who reviews, what evidence they see, what they may override, and what gets logged for audit.
Next: Large
Language Models
We now zoom into the most widely used generative foundation models: how they represent, attend to, and generate language.
Open Chapter 02 →