AI, Machine Learning, Deep Learning And Generative AI: How They Fit Together
These terms are often used as if they mean the same thing. They do not. Here is how they nest inside one another, and where foundation models and generative AI fit.
Checked against primary sources and independently reviewed on . Sources are listed at the end.
Vendor brochures, board papers and news stories use “AI”, “machine learning” and “generative AI” interchangeably. That causes real confusion when a team tries to decide which tools need review or which risks apply. The terms describe different things, and most of them sit inside one another like a set of nested boxes.
This article explains each term with an everyday example, shows how they relate, and clears up the one term that does not fit neatly into the nesting: generative AI. The diagram below is the short version; the sections after it fill in the detail.
- Artificial IntelligenceAny machine-based system that infers from its input how to produce predictions, content, recommendations or decisions.
- Machine LearningAI whose behaviour is learned from data rather than written as explicit rules.
- Deep LearningMachine learning that uses neural networks with many layers.
- Foundation ModelsVery large deep learning models trained on broad data and adapted to many tasks.
Artificial Intelligence
AI is the widest category. Policy bodies define an AI system as one that works out, from the input it receives, how to produce outputs such as predictions, content, recommendations or decisions.1 The first article in this group, What Is AI?, covers that definition in detail.
AI is also older and broader than machine learning. Expert systems, popular long before today’s models, reasoned over knowledge that specialists had written down by hand rather than learning from data. The EU recitals still count this kind of logic-based or knowledge-based reasoning as inference, so such a system can be AI in the legal sense. What falls outside is software that only carries out rules people wrote, with no reasoning of its own.2
Machine Learning
Machine learning is the part of AI where the system learns its behaviour from examples. Instead of a programmer writing “flag emails containing these 200 phrases”, a spam filter is shown thousands of emails already labelled as spam or not spam and adjusts itself until it separates them well. The learned behaviour lives in internal numbers called parameters. How that adjustment works is covered in How A Machine Learning Model Is Built.
Many familiar business uses of AI are machine learning: credit scoring, demand forecasting, fraud detection, product recommendations and document classification. In each case the system was shaped by historical examples, so the quality of those examples matters as much as the code.
Deep Learning
Deep learning is machine learning that uses artificial neural networks with many stacked layers. Each layer transforms its input a little and passes it on, so early layers pick up simple patterns and later layers combine them into more abstract ones. In a 2015 review in Nature, Yann LeCun, Yoshua Bengio and Geoffrey Hinton described image models whose early layers respond to edges, later layers to combinations of edges and parts of objects, and the deepest layers to whole objects.3
The same review credits deep learning with large gains in speech recognition and image recognition, and it is also the basis of today’s language models.3 In general terms, it tends to need more data and computing power than simpler methods, and because what it learns is spread across a very large number of parameters, its reasoning is harder to explain. NIST notes that organisations may face a trade-off between predictive accuracy and interpretability.4
Foundation Models And General-Purpose AI
In a 2021 paper, a large team of researchers introduced the term foundation model for a model “trained on broad data at scale” that can then be adapted to a wide range of tasks.5 The paper’s own examples include the language models BERT and GPT-3. In principle, one model, trained once at great expense, can be adapted to drafting emails, summarising contracts, writing code or answering support questions.
The EU AI Act uses a legal term, the general-purpose AI model, that overlaps with this research idea without being identical to it. In plain terms, the Act means a model that can handle many different kinds of task well and can be plugged into many other products, and it expressly includes models trained on very large datasets with self-supervision.1 The legal definition has its own tests and exclusions, so whether a given foundation model qualifies has to be checked against the Act itself. Providers of these models have their own obligations under Chapter V of the Act, separate from the rules for AI systems built on top of them. Those obligations have applied since 2 August 2025, although models already on the market before that date have until 2 August 2027 to comply.6
Where Generative AI Fits
Generative AI is the term that breaks the neat nesting. It describes systems whose output is new content, such as text, images, audio, video or code, rather than a label or a score. That makes it a description of what a system does, not of how it is built.
Chat assistants built on large language models are a clear example of generative AI that runs on deep learning and is built on a foundation model.5 Not every foundation model is used generatively, though, and simple generative techniques existed long before deep learning. When the OECD revised its AI definition in 2023, it added “content” to the list of outputs specifically so that generative systems are clearly inside the definition.7
| Term | What Defines It | Example |
|---|---|---|
| AI | Infers how to produce outputs from input | A system that routes customer emails to the right team |
| Machine learning | Behaviour learned from data | An email classifier trained on 50,000 past tickets |
| Deep learning | Multi-layer neural network | A neural network classifier for the same emails |
| Generative AI | Produces new content | A model that drafts a reply to each email |
Why The Distinction Matters
Each layer brings its own questions. Machine learning raises questions about the training data and whether it reflects the people the system will affect. Deep learning adds questions about explainability. Generative AI adds the risk of fluent but false output, which the Large Language Models group explains, and new attack routes covered in AI Security. Naming the right layer is the first step to asking the right questions.
Footnotes
-
Regulation (EU) 2024/1689 (Artificial Intelligence Act), Article 3, points (1) and (63), consolidated text of 27 July 2026 (as amended by Regulation (EU) 2026/1744), EUR-Lex. eur-lex.europa.eu ↩ ↩2
-
Regulation (EU) 2024/1689, Recital 12, Official Journal, 12 July 2024. eur-lex.europa.eu ↩
-
Y. LeCun, Y. Bengio and G. Hinton, “Deep learning”, Nature 521, 436 to 444, May 2015. doi.org ↩ ↩2
-
NIST, AI 100-1, “Artificial Intelligence Risk Management Framework (AI RMF 1.0)”, January 2023, section 3. nvlpubs.nist.gov ↩
-
R. Bommasani et al., “On the Opportunities and Risks of Foundation Models”, arXiv:2108.07258, August 2021. arxiv.org ↩ ↩2
-
Regulation (EU) 2024/1689, Article 53 (Chapter V), Article 111(3) and Article 113(b), consolidated text of 27 July 2026 (as amended by Regulation (EU) 2026/1744), EUR-Lex. eur-lex.europa.eu ↩
-
OECD.AI, “Updates to the OECD’s definition of an AI system explained”, 29 November 2023. oecd.ai ↩
Knowledge Hub content is general information. It is not legal advice, a compliance certification, a guarantee of security or a substitute for an assessment of your own systems. Standards and rules change; check the sources for the latest position.