The models behind modern AI, in plain language.
“AI” is not one thing. It is a fast-growing family of mathematical models, each good at a different kind of pattern: images, sequences, language, sound. This page is a top-down map of that family, written for people making decisions about AI, not for people building it. No equations required, but every claim links to the exact chapter of our full reference text where the mathematics lives, in case you or your team ever want to go deeper.
Why “AI” is actually many different models
Every AI system you have used, a chatbot, a photo filter, a translation app, a spam filter, a music generator, is built from the same basic recipe: take a lot of examples of the thing you want the system to learn, choose a mathematical shape (an architecture) with millions or billions of adjustable knobs (its parameters), and slowly turn those knobs until the system’s guesses match the examples closely enough to be useful. That turning process is called training, and the resulting knob-settings are called a model.
The interesting part, and the part decision-makers actually need to understand, is that the choice of shape matters enormously. A shape built for recognizing shapes in photographs is a poor fit for understanding sentences, and a shape built for generating fluent sentences is a poor fit for painting a photorealistic image from scratch. Most of what has changed in AI over the past decade is not “more intelligence appearing from nowhere,” it is a sequence of better shapes, each one unlocking a new category of task.
This page walks through that sequence in the order it actually happened: plain neural networks, then convolutional networks for vision, then recurrent networks for sequences, then the Transformer that now underlies almost every large language model, and finally diffusion models, the technique behind most modern image, video, and audio generators. By the end, you should be able to look at almost any AI product and have a rough, correct sense of which of these ideas, or which combination of them, is doing the work underneath.
Neural networks: the common substrate
Nearly everything below is, underneath, a neural network: layers of simple units, each one taking a weighted sum of the numbers arriving from the layer before it, nudging that sum through a small nonlinear correction, and passing the result forward. Stack enough of these layers, and the network can represent surprisingly rich, curved relationships between its input and its output, not just straight lines.
Training such a network is conceptually simple, even though the bookkeeping is intricate: show it an example, compare its current guess to the right answer, and nudge every single weight a tiny amount in the direction that would have made the guess a little better. Repeat this billions of times across millions of examples, and the weights settle into values that capture genuine structure in the data, not just memorized answers. This nudging procedure has a name, backpropagation, and it is the one piece of machinery every model on this page shares.
What differs from one model family to the next is not this training procedure, but how the layers are wired together, and that wiring is what determines whether a network is good at recognizing cats in photos, predicting the next word in a sentence, or generating a video from scratch.
For more detail, see Feedforward Neural Networks in the book →
Convolutional Neural Networks: teaching computers to see
A photograph is a grid of millions of pixels, and a plain neural network that looked at every pixel independently would need an impractical number of weights, and would have no idea that a cat’s ear in the top-left corner of a photo is the same kind of shape as a cat’s ear in the bottom-right. Convolutional Neural Networks, or CNNs, fix both problems at once with a single idea: slide the same small pattern-detector (a filter) across the whole image, looking for the same edges, textures, and shapes wherever they appear. Stack several layers of these filters, each one combining the simple shapes the previous layer found into more complex ones, and the network builds up from edges, to textures, to eyes and ears, to whole faces or objects.
Where CNNs are applied today. CNNs remain the workhorse of computer vision: photo classification and search, quality control on factory production lines, satellite and aerial image analysis for agriculture and disaster response, face recognition and video surveillance, self-driving car perception, and medical imaging, where a CNN-based architecture called the U-Net is the standard tool for outlining tumors, organs, and lesions in X-rays, CT scans, and MRIs.
Current status. A newer architecture, the Vision Transformer, now matches or beats CNNs on many large-scale benchmarks, and the two are increasingly combined in the same system. But CNNs have not been retired: they need far less compute and far less training data to reach strong performance, which is exactly why they still run inside phones, cameras, drones, and other devices where power and memory are limited. For most everyday vision tasks running on small hardware, a CNN is still the practical default.
A little history, briefly.The 2012 ImageNet competition, won decisively by a CNN called AlexNet, is usually the moment historians point to as the start of the modern deep learning era: it beat every hand-engineered vision system that came before it by a wide margin. The architectures that followed, VGGNet, GoogLeNet, and ResNet (which introduced the “skip connection” trick that let networks grow far deeper without losing their training signal), are the direct ancestors of the vision systems in today’s phones, cars, and hospitals.
For more detail, see Convolutional Neural Networks in the book →
For more detail, see Residual Networks and Skip Connections in the book →
For more detail, see The U-Net Architecture in the book →
For more detail, see Generative Models for Medical Image Segmentation in the book →
Recurrent Neural Networks: teaching computers to remember
Language, speech, and sensor readings all share a property photographs do not: order matters, and the meaning of the current word or reading depends on everything that came before it. Recurrent Neural Networks, or RNNs, were built for exactly this: they read a sequence one piece at a time, and at every step they update a running internal summary, a hidden state, that is meant to carry forward whatever is relevant from everything read so far. A refinement called LSTM (Long Short-Term Memory) added explicit gates that let the network deliberately keep, forget, or update parts of that memory, fixing an early tendency of plain RNNs to lose track of anything more than a few steps back.
Where RNNs were, and still are, applied. For two decades, RNNs and LSTMs were the default choice for machine translation, speech recognition, handwriting recognition, and text generation. They remain genuinely useful today for streaming, real-time signals where data arrives continuously and a fixed-size running memory is a natural fit: time-series forecasting for finance and weather, sensor and industrial monitoring, robotics control loops, and on-device applications where a small, sequential model is cheaper to run than a large one that needs to see an entire sequence at once.
Current status.For language specifically, RNNs have been largely displaced by the Transformer, described next, because reading one word at a time is inherently slow to train at scale, and long documents can still overwhelm even an LSTM’s memory. That said, recurrence itself is far from dead: a newer family of architectures, sometimes called state-space models, recovers the RNN’s efficient, constant-memory way of processing a sequence while fixing its old weaknesses, and is an active area of research for making very long documents and conversations cheaper to handle.
A little history, briefly.Before Transformers arrived, LSTM-based sequence models sat behind Google Translate and the first generation of voice assistants, and DeepMind’s WaveNet, an autoregressive network for raw audio distantly related to this family, gave early text-to-speech systems their first genuinely human-like voices. Every one of those problems is now more often solved with a Transformer, but the underlying idea, carry a running summary of everything read so far, is one you will still meet whenever efficiency, not raw capability, is the binding constraint.
For more detail, see Recurrent Neural Networks in the book →
For more detail, see Long Short-Term Memory (LSTM) in the book →
Transformers: the architecture behind the current AI boom
The single architectural idea most responsible for the AI systems dominating the news since 2022, ChatGPT, Claude, Gemini, and the rest, is the Transformer, introduced in 2017. Its core mechanism, called attention, lets a model look at an entire sequence all at once and directly learn which other words in that sequence matter most to understanding any given word, rather than reading one word at a time and hoping a running memory captures everything important. That single change had an outsized consequence: because every position can be processed simultaneously instead of one after another, Transformers train dramatically faster on modern chips, and they turned out to keep getting better, predictably, the more data and compute were poured into them.
Variants you will encounter.The “decoder-only” Transformer, which generates text one word at a time based on everything written so far, is the shape behind essentially every modern chat assistant and coding copilot. “Encoder-only” Transformers, the BERT family, are tuned instead for understanding rather than generating, and quietly power search engines and document-classification systems. “Encoder-decoder” Transformers read an entire input before generating an output and remain the standard for translation and summarization. Vision Transformers apply the same attention idea to patches of an image instead of words in a sentence, and Diffusion Transformers, described in the next section, use it as the backbone for generating images and video. Increasingly, multimodal Transformers read and write text, images, audio, and video together, all within one model.
Where they are applied. Conversational assistants, coding tools, search and retrieval, machine translation, document summarization and analysis, customer support, and, increasingly, autonomous agents that chain several steps of reasoning and tool use together to complete a multi-step task on their own, sometimes as a whole team of specialized models working together rather than one model alone.
Under the hood, quietly.Much of the recent progress in making these models fast and affordable to run has nothing to do with making them “smarter” in any obvious sense: techniques with names like grouped-query attention, rotary position embeddings, and mixture-of-experts let a model be effectively enormous while only activating a fraction of itself for any single question, which is a large part of why today’s assistants can respond in a second or two instead of a minute.
The family, briefly.OpenAI’s GPT series, Anthropic’s Claude, Google’s Gemini, Meta’s LLaMA, and the openly released DeepSeek and Qwen models are all, underneath their branding, decoder-only Transformers of the kind described above, differing mainly in scale, training data, and the fine-tuning and alignment work layered on top, the subject of another chapter of the full text. What makes any one of them feel different to use is rarely the base architecture; it is almost always this later layer of tuning.
For more detail, see The Transformer in the book →
For more detail, see Architecture Spotlight: Recent Large Language Models in the book →
For more detail, see Autoregressive Models in the book →
For more detail, see Agentic AI and Multi-Agent Systems in the book →
Diffusion models: teaching computers to imagine
Most modern image, video, and audio generators, DALL·E, Midjourney, Stable Diffusion, and the video and music generators that followed them, work by an idea that sounds almost backwards: take a real image, gradually blur it into pure random static over many small steps, then train a network to reverse each of those steps, one at a time, turning static back into a clean image. Once trained on that reversal, the network can start from nothing but random static and run the same process forward, one denoising step at a time, until an entirely new image, one that never existed before, emerges. A “prompt” simply steers each of those denoising steps toward the picture you described.
Where diffusion models are applied. Image generation is the most familiar use, but the same step-by-step denoising idea now extends to video generation, music and audio synthesis, and even, more surprisingly, to generating text itself: instead of writing one word at a time left to right, a diffusion language model can revise an entire passage of text simultaneously, gradually resolving it into fluent language, a genuinely different way of writing than the Transformer approach above.
Where diffusion models are aligned. “Alignment” means steering a model toward what people actually want it to produce, safe, on-brief, and genuinely preferred images rather than merely plausible ones. For diffusion models this works by treating each denoising step as a small decision that can be nudged by a reward signal, the same basic idea used to align chat assistants, adapted to a model that paints rather than writes. Techniques built specifically for this, such as Diffusion-DPO, let a model be fine-tuned directly on pairs of “people preferred this image over that one” examples, the same preference-learning idea behind aligning language models, applied to a canvas instead of a page.
Current status. Image and video quality from diffusion models has improved remarkably quickly, and these tools are now embedded directly in creative software, advertising and design workflows, game development, and film pre-visualization. They are also increasingly used to generate synthetic training data for other AI systems, and, as explored further on the Capabilities page, to propose entirely new candidate drug molecules and materials.
The family, briefly.Stable Diffusion, DALL·E, and Midjourney popularized image generation; Runway, Pika, and Sora-style systems extended the same idea to video; and Suno and Udio apply it to full songs, vocals and all. All of them share this chapter’s core denoising idea, even as the exact recipe, and the backbone architecture generating each denoising step, keeps evolving underneath the product name.
For more detail, see Diffusion Models in the book →
For more detail, see Video Diffusion Models in the book →
For more detail, see Audio and Music Generation in the book →
For more detail, see Diffusion Language Models in the book →
For more detail, see Alignment for Diffusion Models in the book →
Other model families you will encounter
The four families above are the ones worth knowing well, but you will occasionally meet their relatives. Each solves the same basic problem, learning to generate realistic new data, with a different mathematical trade-off.
Generative Adversarial Networks (GANs)
Two networks compete: one generates fake images, the other tries to spot the fakes, and the contest sharpens both. GANs were the first models to produce genuinely convincing faces and photos, and remain useful today wherever very fast, single-step generation matters more than the broad flexibility diffusion models offer.
For more detail, see Generative Adversarial Networks in the book →
Variational Autoencoders (VAEs)
A VAE compresses data down to a compact, structured “summary” and learns to reconstruct it back, which makes it useful both for generation and for compression. VAEs quietly do much of the heavy lifting inside modern image and video diffusion models, which generate in this compact space rather than in raw pixels.
Normalizing Flows
Flows are built to give an exact probability for any piece of data they generate, not just a plausible-looking sample, which matters in scientific and safety-critical settings where a calibrated number, not just a picture, is the point.
Autoregressive models beyond text
The same “predict the next piece” idea that powers chat assistants also generates images pixel by pixel and audio sample by sample, the direct ancestor of the Transformer-based language models described above.
How these models combine in real systems today
A modern AI product is almost never “just one model.” A chat assistant is typically a decoder-only Transformer, fine-tuned and aligned to follow instructions and avoid harmful output, given a working memory so it can hold a long conversation or a large document without losing track, and increasingly wrapped in an agenticlayer that lets it call outside tools, browse, run code, or hand off pieces of a task to other, more specialized models. An image generation app is typically a diffusion model whose “understanding” of your text prompt comes from a Transformer, aligned via preference data so its outputs match what people actually prefer, not merely what is technically plausible.
Understanding the individual pieces on this page is what lets you correctly guess what any new AI product is actually capable of, and, just as importantly, where it is likely to fail. A system built from a language Transformer alone will struggle with anything requiring pixel-level visual precision; a diffusion-only system will struggle with anything requiring exact logical reasoning. Knowing which ingredient is doing which job is the difference between being surprised by an AI product and correctly anticipating it.
A practical note on scale, cost, and choosing between models
For a decision-maker, the most consequential choices rarely come down to the four families above in the abstract; they come down to scale, cost, openness, and where the computing happens. All four matter more, in practice, than which architecture is technically “best.”
Bigger is not always better. A larger model, with more layers and more parameters, is usually more capable on hard, open-ended tasks, but it is also slower, more expensive to run, and often unnecessary for a narrow, well-defined job. A small CNN running on a factory camera, or a compact language model running entirely on a phone, is frequently the more sensible engineering choice than routing every request to the largest available model.
Open versus closed. Some model families, LLaMA, DeepSeek, and Qwen among the large language models, are released with their weights available to download and run yourself; others, like GPT, Claude, and Gemini, are accessed only through an API run by their maker. Open weights give you control over cost, data privacy, and customization, at the price of needing your own infrastructure and expertise; closed, API-based models trade that control for convenience and typically the very latest capability.
Cloud versus on-device. Running a model in the cloud gives access to the largest, most capable versions, but sends data outside your organization and depends on a network connection. Running a smaller model on-device, a phone, a laptop, a piece of factory equipment, keeps data local and works offline, at the cost of using a less capable model. Many production systems today use both: a small, fast, on-device model handles routine cases, and a large cloud model is called in only for the harder ones.
None of these trade-offs are visible from a product’s marketing page, but all of them are visible once you know which model family, and roughly which scale, sits underneath it, which is precisely the judgment this page is meant to build.
At a glance
A quick-reference summary of the four families above, for anyone who wants the short version to keep on hand.
| Model | Best at | Typical use today | Where it struggles |
|---|---|---|---|
| CNN | Local, spatial patterns | Vision on small/edge devices, medical imaging | Long-range, non-spatial relationships |
| RNN / LSTM | Streaming, ordered signals | Real-time forecasting, on-device sequence tasks | Very long documents, large-scale training speed |
| Transformer | Language and general reasoning | Chat assistants, coding, search, agents | Pixel-precise generation, very long inputs at low cost |
| Diffusion | Realistic image, video, audio synthesis | Creative tools, synthetic data, molecule design | Exact logical or numerical reasoning |
Where to go from here
This page is a map, not the territory. Three ways to go deeper, depending on what you need next.
Read the mathematics
Every model above is derived in full, with proofs, in our free reference text.
Open Foundation →Ask an AI tutor
Bring your own free API key and get a live tutor on any chapter, at any depth.
Set up the tutor →See what these models can do
A domain-by-domain look at real and near-future AI capabilities, for decision-makers.
Explore Capabilities →