AI, machine learning and deep learning

AI, machine learning, deep learning and LLMs are four nested ideas, not four words for the same thing. Watch each one try the same job, spotting a scam SMS, and see where each one breaks.

8 min Free

People use “AI”, “machine learning” and “deep learning” as if they meant the same thing. They don’t. Google Cloud describes them as a clear hierarchy: deep learning is a specialised type of machine learning, and machine learning is a core discipline within the broader field of artificial intelligence. LLMs sit inside deep learning.

  • Artificial intelligence (AI) is the whole field: building systems that do tasks which normally need human intelligence. It includes rule-based systems, search and planning, not only learning.
  • Machine learning (ML) is the part of AI where a model learns to make predictions from data, instead of a programmer writing every rule.
  • Deep learning is the part of ML that uses neural networks with many layers. It learns its own features from raw data such as text, images and audio.
  • Large language models (LLMs) are deep learning models trained on huge amounts of text to predict the next token. They’re a kind of generative AI: they create new content.

Press Play to watch each layer handle the same SMS. Then switch Try it to A sneaky scam and watch the hand-written rule fail.

  1. AI
  2. ML
  3. DL
  4. LLM
Incoming SMS

Your KYC has expired. Click http://bit.ly/kyc-upd to keep your UPI active.

How each one decides

Press Play.

Scoreboard for this message
  • Hand-written rule?
  • Machine learning?
  • Deep learning?
  • LLM?
Start

Four terms people mix up, and how they fit inside each other. Press Play to see each one try the same job: is this SMS a scam?

The rule is real logic and the machine learning score is a real sigmoid over the weights shown. The weights, the deep learning percentages and the LLM replies are illustrative, not from a trained model.

What to notice

  1. Rules are AI, but brittle. The rule works only for the exact words its author expected. “K.Y.C” instead of “KYC” slips straight past. Every new trick needs a new rule.
  2. Machine learning learns the weights, not the clues. Training on labelled examples decides how much “has a link” or “urgent words” matters. But a person still had to choose those clues. This is called feature engineering.
  3. Deep learning learns the clues too. A deep neural network reads the raw text and discovers useful patterns itself. The cost: it needs much more data and computing power. See How a neural network learns.
  4. LLMs are general. One model, trained once on huge amounts of text, can classify the SMS, explain why, and answer the next question, all from a plain-English prompt. See What is an LLM?
  5. Each inner circle is also the outer ones. An LLM is a deep learning model, which is a machine learning model, which is AI. A spam rule is AI but not machine learning.
Who writes the logicNeedsGood at
Rule-based AIA programmerKnowledge of the problemSimple, fixed, explainable checks
Machine learningLearned from labelled data, with hand-picked featuresLabelled examplesPredictions on structured data
Deep learningLearned from raw dataLots of data and computeImages, speech, text
LLMsLearned from huge amounts of textMassive data and compute (someone else’s)Understanding and generating language

Check your understanding

1. A bank uses a list of hand-written if/else rules to flag suspicious payments. Is that AI, machine learning, or both?
2. What does deep learning do that classic machine learning usually doesn't?
3. Where does Gemini sit in the nested circles?