AI, Machine Learning, Deep Learning, Generative AI: Four Circles, One Inside the Other
ยท 11 min read
Artificial intelligence, machine learning, deep learning, and generative AI get thrown around as if they all mean the same thing. They don't, but they are closely related, and the cleanest way I know to see how is to picture four circles sitting one inside the other.
- Artificial intelligence (AI) is the outer circle: any technique that gets a computer to do something we would call intelligent.
- Machine learning (ML) sits inside AI: systems that learn from data instead of following rules someone wrote by hand.
- Deep learning sits inside machine learning: machine learning built on neural networks with many layers.
- Generative AI sits right in the middle, inside deep learning: models that create new content, like text, images, audio, and video.
So the generative AI everyone is talking about is built on deep learning, every deep learning system is machine learning, and all of it counts as AI. It does not work the other way round, though. Plenty of AI has no machine learning in it at all.
In this article I want to walk through each circle from the outside in. To keep it concrete, I will use one everyday problem the whole way through, your email inbox, and show how each layer would deal with it. This is a simplified map, so anyone who works in the field will spot corners I have cut, but the overall shape holds up.
AI is the broad goal of getting a computer to match, or beat, human intelligence at some task. "Intelligence" covers an enormous amount of ground, but it usually comes down to things like learning, reasoning, and drawing conclusions from what you already know.
The field is older than most people expect. The name goes back to a 1955 proposal from John McCarthy for a summer research project at Dartmouth College the following year, and that 1956 gathering is widely treated as the moment AI became a research field of its own. For decades afterward it stayed mostly that, a research topic that few people outside universities and labs had ever heard of.
Early AI was largely rule-based. Programmers wrote knowledge down as explicit rules, often in languages built for the purpose like Lisp and Prolog. The approach reached its peak with the expert systems of the 1980s and into the 1990s, programs that captured a specialist's know-how as hundreds or thousands of if-then rules in order to diagnose a fault or recommend a decision.
For our inbox, a rule-based system might look something like this:
- If the subject line contains "You've won", mark it as spam.
- If the sender is not in your contacts and the message mentions "wire transfer", mark it as spam.
That holds up right until spammers change their wording, and then someone has to sit down and write new rules by hand. Rule-based AI is predictable and easy to explain, which counts for a lot, but it only ever knows what people have told it, and the world changes faster than anyone can keep the rules current.
Machine learning turns that approach around. Instead of writing the rules yourself, you hand the system a pile of examples and let it work out the patterns on its own.
A sequence makes the idea easy to feel. Suppose I show you this and ask what comes next:
2, 4, ...
You might say 6, or 8, but with only two numbers to go on you cannot really be sure. Now suppose I show you a lot more:
2, 4, 6, 8, 10, 12, 14, 16, ...
This time you are confident the next number is 18. That is the whole idea of machine learning in miniature: the more data a system sees, the more confidently it can predict what comes next. And if the sequence suddenly read 16, 18, 97, 22, you would spot straight away that 97 does not belong.
Those are exactly the two things machine learning is good at:
- Prediction. Given what has happened before, what is likely to come next? Think demand forecasting, recommendations, or credit scoring.
- Spotting the odd one out. What does not fit the pattern? This is the heart of fraud detection and a lot of cybersecurity, where the whole job is to find the user, login, or transaction that behaves unlike all the others.
For our inbox, a machine learning spam filter does not need anyone to write "You've won" into a rule. You train it on thousands of emails already labelled "spam" or "not spam", and it learns for itself which words, senders, links, and patterns tend to travel together. When the spammers change their approach, you retrain it on fresher examples rather than rewriting rules.
None of this is new, either. Arthur Samuel at IBM coined the term "machine learning" in 1959 off the back of a checkers program that got better the more it played. But it did not go mainstream until the 2010s, when there was finally enough data and enough computing power to make it pay off at scale. Today it is the ground most modern AI is built on.
Deep learning is a particular kind of machine learning, one built on neural networks: layers of simple connected units, loosely inspired by the way neurons connect in the brain. The "deep" part just refers to how many layers there are. A deep network stacks a lot of them, and each layer builds on whatever the one before it picked up.
That stacking is where the power comes from. Older machine learning usually leaned on people to decide which features mattered ahead of time, something like "count the number of links in this email". A deep network can learn the useful features for itself, straight from raw data. In image recognition, the early layers might latch onto edges, the middle layers onto shapes, and the later layers onto whole objects, without anyone ever telling the network to look for any of them. Deep learning really took off in the 2010s, especially after a deep network called AlexNet won the ImageNet image-recognition challenge in 2012 by a wide margin.
For our inbox, deep learning is what lets a filter move past keywords. It can learn the general feel of a phishing message, or read the text sitting inside an image that a spammer attached precisely to slip past a keyword filter.
The catch is explainability. A deep network can hold millions or even billions of learned values spread across its layers, so it is often genuinely hard to say why it landed on a particular answer. A rule-based system can point straight at the rule it followed; a deep network usually cannot. That gap matters a great deal in areas like lending, hiring, and healthcare, where you are expected to justify a decision and not just make it.
Almost all of the AI headlines of the last few years have been about the innermost circle, generative AI. Rather than classifying or predicting, these models produce new content of their own: text, code, images, audio, and video. Generative AI is built on deep learning, and much of it runs on the transformer architecture introduced in the 2017 paper "Attention Is All You Need".
The key idea underneath all of it is the foundation model. Researchers at Stanford coined the term in a 2021 report for models trained on broad data at scale that can then be adapted to a wide range of tasks. Instead of training a fresh model for every single job, you train one enormous model once and build many different applications on top of it.
The best-known foundation models are large language models, or LLMs, the engines behind chatbots like ChatGPT, Claude, and Gemini. An LLM works a little like the autocomplete on your phone, only at a vastly larger scale. Technically it is still predicting one small chunk of text, called a token, at a time. What has changed is how well it does it: by predicting the next token over and over, drawing on everything it has written so far, it can build a coherent sentence, then a paragraph, then an entire document.
For our inbox, this is the layer that can draft a reply for you, boil a long thread down to three bullet points, or rewrite a blunt message in a friendlier tone.
A common objection is that generative AI is not truly creative, that it only ever recombines patterns from its training data. There is something to that, but think about music for a second. Every note has already been invented, so in one sense every new song is just a rearrangement of notes that already existed, and nobody concludes from that that new music does not exist. Generative AI is much the same. It creates by recombining what it has learned, and the result can still be something that was not there before. Every analogy has its limits, but this one captures why "just remixing" sells these models short.
Foundation models are not limited to language. There are models for images, for audio, and for video, and those are what make deepfakes possible: convincing media of a real person saying or doing something they never actually said or did.
The same technology has genuinely good uses. It shows up in film, entertainment, and parody, and it can hand people back something they have lost. Apple's Personal Voice, for one, lets someone at risk of losing their speech record a synthesized voice that still sounds like them, then type what they want to say and have it spoken out loud.
But it is just as easy to turn to the wrong ends. A cloned voice or a faked video is a ready-made tool for scams, fraud, and misinformation. That is why the generative layer draws so much attention from regulators and security teams, and not only from the people using it to write emails.
For most of its history, AI crept along. Most people had no idea it existed, and the ones who did tended to hear that it was perpetually five to ten years away from being useful. Machine learning and deep learning quietly changed that inside businesses through the 2010s, usually in places no user ever saw: recommendations, fraud checks, search ranking.
Generative AI changed it for everyone at once. A chatbot you can just talk to turned AI into something people use directly, instead of something humming away in the background. Since ChatGPT arrived in late 2022, adoption has climbed sharply. In McKinsey's 2025 State of AI survey, 79% of respondents said their organizations were regularly using generative AI in at least one part of the business, up from 71% the year before, even if far fewer had managed to scale it all the way across the company.
| Term |
What it is |
How it works |
Inbox example |
| Artificial intelligence |
Any technique that makes a computer act intelligently |
Can be hand-written rules or learned from data |
Rules that flag emails containing "You've won" |
| Machine learning |
AI that learns from data |
Finds patterns in labelled examples to predict or spot outliers |
A spam filter trained on thousands of labelled emails |
| Deep learning |
Machine learning with many-layered neural networks |
Learns its own features from raw data such as text and images |
Reading text hidden in images to catch phishing |
| Generative AI |
Deep learning models that create new content |
Foundation models, such as LLMs, generating text, images, audio or video |
Drafting a reply or summarizing a long thread |
When you next hear a new AI product announced, it is worth asking which circle it actually sits in. A fraud-detection tool is almost certainly machine learning. Something that can pick out objects in a photo is probably deep learning. Anything that writes, draws, or speaks is generative AI. Knowing which layer you are dealing with tells you a surprising amount: what the tool is likely to be good at, the ways it is likely to fail, and how much of its reasoning you will ever be able to explain.