The AI Onion: AI vs. Machine Learning vs. Deep Learning vs. Generative AI
People use "AI," "machine learning," "deep learning," and "generative AI" as if they were four names for the same thing. They're not. They're nested layers — each one a subset of the one before, like rings of an onion. And the layer a product actually sits in tells you exactly what it can and can't do.
Layer 1 — Artificial intelligence
The outermost, broadest circle. AI is any system that mimics some aspect of human intelligence — reasoning, planning, recognizing, deciding. That includes decades-old techniques with no learning in them at all: a chess engine searching moves, a GPS planning a route, an expert system walking a hand-written decision tree. If a human sat down and wrote every rule by hand, it can still be AI. It just isn't any of the inner layers.
Layer 2 — Machine learning
Step one ring in. Machine learning is the subset of AI where the system learns its rules from examples instead of having them programmed. You don't write "emails containing these 400 phrases are spam" — you show the model a million emails labeled spam or not-spam, and it works out the distinguishing patterns itself. The rules exist; a machine found them, not an engineer. Everything in the layers below is machine learning, but not all machine learning goes deeper.
Layer 3 — Deep learning
Deep learning is machine learning done with multi-layer neural networks — stacks of simple computing units where each layer builds more abstract features from the layer below: edges become shapes, shapes become faces. That layered structure is what finally cracked the problems classic ML struggled with: computer vision, speech recognition, understanding messy real-world input. When your phone unlocks by looking at you, that's a deep network at work.
Layer 4 — Generative AI
The innermost ring, and the one behind the current wave. Generative AI is deep learning pointed at creating new content rather than recognizing existing content — text, images, audio, code. Large language models live here: they're deep neural networks trained on enormous amounts of text until they can produce new text. Every chatbot and coding copilot you've used is layer 4 — which means it's also layers 3, 2, and 1 by definition.
Spot the layer
| Product | Layer |
|---|---|
| Spam filter | Machine learning |
| Face unlock | Deep learning |
| Route planning | Classic AI |
| Chatbot / coding copilot | Generative AI |
Why the layer matters
"AI-powered" on a landing page tells you almost nothing — a hand-written rules engine and a frontier language model can both wear the label honestly. Asking which layer cuts through the marketing. A classic-AI system is predictable but rigid: it only handles cases someone anticipated. An ML system adapts to patterns in data but needs good training examples. A deep-learning system handles messy perception tasks but is harder to explain. A generative system can produce fluent new content — and can also produce fluent nonsense. Knowing the layer tells you the capability, and just as importantly, the failure mode.
Resources
- Machine learning — Wikipedia
- Deep learning — Wikipedia
- Generative artificial intelligence — Wikipedia
Building an AI feature? Yeda AI designs, audits, and ships production LLM systems.