Skip to content
mentoor

Topic 1 of 4 · 4 min read

The nested layers of AI

Goal: Place a named product or feature in the right layer: rule-based software, machine learning, deep learning or generative AI.

"AI" is an umbrella word, and inside it sit smaller layers: machine learning, deep learning and generative AI. Each layer is a narrower idea than the one around it. Knowing the layers lets you say what a product really does.

Check yourself · 1 of 3

Which statement about the layers of AI is correct?

Choose one answer

Why it matters

People use "AI" for a chess engine, a spam filter and ChatGPT as if they were the same thing. They are not. They work in different ways, fail in different ways and need different levels of trust. If you cannot place a product in a layer, you cannot guess how it will go wrong.

The layers, from outside to inside

  1. Artificial intelligence (AI). Any software that does a task we would normally say needs human thinking. This is the widest layer. It even includes old programs built from fixed rules, such as a chess program from the 1990s.
  2. Machine learning (ML). Software that is not given the rules. It is shown many examples and finds the pattern itself. A bank's fraud alert learns from past fraud and past normal payments.
  3. Deep learning. A kind of machine learning that uses large neural networks with many layers. It works well on messy data such as photos, voices and text. Face unlock on a phone and voice typing are deep learning.
  4. Generative AI. Deep learning models that produce new content: text, images, audio, code. ChatGPT, Claude, Gemini, Copilot and image tools such as Midjourney are generative AI.

Think of Russian dolls. Every generative AI product is deep learning, every deep learning product is machine learning, and every machine learning product is AI. The reverse is not true.

Before and after

Before: "Our new thermostat uses AI." You picture a smart, thinking device.

After: You ask which layer. The thermostat turns the heat on at 7:00 and off when you leave. That is a fixed schedule, plain rules. If it instead learns from weeks of your habits and adjusts, that is machine learning. If it lets you chat with it and write you a summary of your energy use, that part is generative AI.

The label stayed the same. The meaning changed a lot.

What goes wrong

  • Treating all AI as one thing. You trust a chatbot's facts the way you trust a calculator. A calculator follows rules. A chatbot predicts likely words.
  • Thinking "AI" means "new". Route planners and autocorrect used machine learning long before chatbots appeared.
  • Thinking the layers are ranked. Generative AI is not "better". A small, rule-based or machine learning system is often cheaper, faster and more reliable for a narrow job such as sorting invoices.

When you meet a product, ask one question first: does it follow rules, learn a pattern, or generate new content?

Examples

Four products, four layers

Product Layer Why
A tax form that checks "income above limit?" Rule-based A person wrote the rule.
An email app that learns which mail you mark as junk Machine learning It learned from your examples.
Phone face unlock Deep learning A neural network reads the picture of your face.
A writing assistant that drafts a reply Generative AI It produces new text.

Same app, two layers

A photo app can use deep learning to find faces in your pictures and generative AI to remove a person from the background. One product, two layers. Ask about each feature, not the whole app.

Key points

  • AI is the umbrella word; machine learning, deep learning and generative AI are nested layers inside it.
  • Machine learning finds patterns in examples instead of following rules a person wrote.
  • Deep learning is machine learning with large neural networks, and suits photos, voice and text.
  • Generative AI creates new content; ChatGPT, Claude, Gemini and Copilot are examples.
  • Rule-based software can still be called AI, so the label alone tells you very little.
  • A newer layer is not automatically better for a narrow, well-defined job.

Common mistakes

  • Treating "AI", "ChatGPT" and "algorithm" as meaning the same thing.
  • Assuming any product with an AI label learns from data; some only follow fixed rules.
  • Assuming generative AI is the right tool for every job.
  • Placing a product in a layer from its marketing page instead of from what its features do.

Check yourself · 2 of 3

A 1990s chess program picks moves with rules and a scoring formula that engineers wrote by hand. Which layer fits best?

Choose one answer

Check yourself · 3 of 3

A phone keyboard learns which words you type most and suggests them. It writes no full sentences. Which layer describes it best?

Choose one answer

Practice items, not counted towards your mastery.

Start here