Module 1 · What GenAI really is · Lesson 2 of 32
AI vs machine learning vs deep learning vs GenAI
9 minFree GenAI course · BeginnerLesson 1.2By Saket Bhatnagar
Researched and drafted with AI, reviewed and edited by Saket Bhatnagar.
In short
- AI is the big family: any computer system doing tasks that seem to need intelligence.
- Machine learning is AI that learns from data; deep learning is machine learning with many-layered neural networks.
- Generative AI is deep learning that creates new content. Each box sits inside the one before it.
Video lesson · coming soon
AI vs machine learning vs deep learning vs GenAI, in 3 minutes
Lala, your AI mentor, will walk you through this lesson in a short animated video. Until then, everything is here to read and try.
- 01 AI, ML, DL, GenAI: what is the difference?
- 02 Like a postal address
- 03 Each box sits inside the last
- 04 Face lock is deep, not generative
- 05 Play: the smallest box
- 06 Next: how machines learn
Arjun is in his final year at an engineering college in Nagpur. In one placement talk, the speaker says “AI” forty times, “ML” twelve times, “deep learning” twice and “GenAI” in every slide title. Arjun nods along. Later his friend Asha asks him, “So what is the difference?” He opens his mouth, and nothing comes out.
If that has happened to you, good news. These four words are not rivals. They fit inside each other, like an address. Once you see the nesting, you will never mix them up again.
Four words, one address
When you post a letter to your nani, you write the address from small to big: house, area, city, state, country. Every house in Kothrud is in Pune. Every house in Pune is in Maharashtra. Every house in Maharashtra is in India. But not every house in India is in Kothrud.
The AI words work the same way. Artificial intelligence is the country. Machine learning is one state inside it. Deep learning is a city in that state. Generative AI is a busy neighbourhood in that city, the one everyone is talking about right now.
How the four boxes nest
Drag to exploreRead it from the outside in: each box is a special kind of the box before it.
Diagram connections:
- Artificial intelligence to Machine learning (contains)
- Machine learning to Deep learning (contains)
- Deep learning to Generative AI (contains)
- Artificial intelligence: The whole field, including systems built from hand-written…
- Machine learning: AI that learns patterns from examples instead of being told…
- Deep learning: Machine learning that uses neural networks with many layers.
- Generative AI: Deep learning models that produce new text, images, audio,…
Now let us walk through each box, from the outside in, with one everyday example for each.
AI: the big family, rules included
Remember the ludo app on your phone where you play against “the computer”? In many simple versions, nobody trained anything. A programmer wrote rules: if you can capture a piece, capture it; otherwise move the piece closest to home. It feels a little clever, and that is enough to count as AI.
For decades, a lot of AI was built this way. Chess programs searched through millions of possible moves. Route finders worked out the shortest path across a city map. Early “expert systems” held thousands of if-then rules written by specialists. All of these are AI, and none of them learned from examples.
The weakness of rules shows up fast. Try writing rules to recognise your friend Priya’s face in a photo. Eyes this far apart? Hair this long? Priya gets a haircut and your rules break. Some problems are too messy for a rulebook.
Machine learning and deep learning: learning from examples
Think of a kirana shop owner in Indore, Mr. Jain. Nobody gave him a rule for how many packets of Maggi to stock. After years of watching sales, he knows: more before exams, more in the monsoon, fewer in wedding season. He learned from data, his own sales history.
Machine learning gives computers that same ability. You show the system lots of past examples, like sales numbers next to the week and the weather, and it finds the pattern by itself. Then it can forecast next week. Banks use this to estimate loan risk. Email apps use it to learn what spam looks like from emails people marked as spam.
Deep learning is a special, powerful kind of machine learning. It uses a neural network: layers of tiny number-crunching units loosely inspired by brain cells. Each layer passes its results to the next. In a photo app, early layers notice edges, middle layers notice shapes like eyes, and later layers recognise whole faces.
Deep learning shines on messy data like photos, speech and long text, the stuff rules could never handle. That is why your phone can recognise your face to open, type what you say in Hindi or Tamil, and translate a signboard through the camera. It needs a lot of data and a lot of computing power, which is why it took off only in the 2010s.
GenAI: the neighbourhood everyone is visiting
In lesson 1 you met the mehendi artist, the AI that creates instead of sorting. Almost every generative AI tool today is a deep learning model, usually a very large one trained on huge amounts of text, images or audio. The chat apps you use are built on large language models, deep learning models trained to write text. Image tools use other deep learning designs that you will meet in module 6.
Not all deep learning is generative. The face lock on your phone is deep learning, but it only answers “is this you, yes or no?”. It never draws a new face. So GenAI is a part of deep learning, not the whole of it.
| Box | How it gets its skill | Everyday example | What it outputs |
|---|---|---|---|
| AI (rules only) | People write the rules | A ludo bot, a route finder | A move, a route, a decision |
| Machine learning | Learns patterns from examples | Stock forecast, loan risk score | A label or a number |
| Deep learning | Learns with many-layered neural networks | Face lock, voice typing | A label, a number or a transcript |
| Generative AI | Large deep learning models trained on huge data | Chat apps, image tools | New text, images, audio, code or video |
Check yourself
Check yourself
Which statement is true?
Pick an answer to see why it is right or wrong.
Check yourself
What does the word “deep” mean in deep learning?
Pick an answer to see why it is right or wrong.
Remember these three
- AI is the whole family; machine learning is AI that learns from data.
- Deep learning is machine learning with many-layered neural networks, great for photos, speech and text.
- Generative AI is the part of deep learning that creates new content, and it is all of these at once.
Questions people ask
- What is the difference between AI and machine learning?
- AI is the broad goal of making computers do smart-seeming tasks, by any method. Machine learning is one method, where the computer learns patterns from examples instead of following hand-written rules.
- Is generative AI the same as deep learning?
- No. Generative AI is a part of deep learning. Deep learning also includes models that only recognise or label things, such as face lock or voice typing, without creating anything new.
- Is ChatGPT AI, machine learning or deep learning?
- All of them. ChatGPT is generative AI built on a large language model, which is a deep learning model, which is a kind of machine learning, which is a kind of AI. The smallest box that fits is GenAI.
- Should I learn machine learning before generative AI?
- To use and understand GenAI tools, you do not need to. This course starts with GenAI directly and explains the machine learning ideas you need on the way. If you want to train your own models later, studying ML basics is worth it.