Machine learning vs generative AI: how they relate, not compete
Machine learning is the broad field of algorithms that learn patterns from data to make predictions or decisions, and generative AI is a subset of machine learning that uses those same learning techniques to create new content — text, images, audio, code — rather than only judge or forecast. The two are not rival approaches you choose between; generative AI is built on machine-learning foundations, the way a car is built on engineering principles rather than competing with engineering itself. This article sets out the relationship plainly, gives everyday examples of each, and clears up the mix-up that leads people to talk about them as if they were alternatives.
The relationship, stated plainly
Machine learning is the umbrella term: any system that improves at a task by learning from data, rather than following rules written out by hand in advance, counts as machine learning. That covers a huge range of techniques and outputs — models that sort emails into spam or not-spam, models that predict next month’s demand, models that recommend a film, and, yes, models that write a paragraph or generate an image.
Generative AI sits inside that umbrella as one particular kind of output. Instead of producing a label, a score or a forecast, a generative model produces a new artefact — a sentence that did not exist before, a picture, a block of code. It still learns from data the way any machine-learning system does; what differs is what it is trained to do with what it learns. Asking “should I use machine learning or generative AI” is a bit like asking “should I use vehicles or lorries” — one is the category, the other is a member of it.
Everyday examples of machine learning outside generative AI
Most of the machine learning that quietly runs businesses today is not generative at all — it is predictive or discriminative, producing a judgement rather than a creation:
- Fraud detection — flagging a transaction as suspicious based on patterns learned from past fraudulent and legitimate transactions.
- Recommendation systems — predicting which product, film or article you are likely to want next, based on patterns in past behaviour.
- Demand forecasting — estimating future sales or resource needs from historical trends.
- Classification — sorting emails as spam, images as containing a particular object, or support tickets into categories.
Everyday examples of generative AI
Generative AI, by contrast, is judged by what it produces rather than what it decides. A chatbot drafting an email, an assistant summarising a report, a tool turning a text description into an illustration, and a coding assistant writing a function are all generative — each one creates something new rather than classifying or scoring something that already exists. Our companion explainer on generative AI goes deeper into how that generation actually works.
Where the confusion comes from
The mix-up usually happens because generative AI is the part of machine learning that has become visible and conversational almost overnight, while the predictive machine learning running behind the scenes has been quietly working for years without most people ever noticing it. When someone says “AI” today they often mean the chatbot in front of them, which makes it easy to forget that the fraud check on their card payment or the recommendation on their streaming service is machine learning too — it is simply the non-generative kind, and it has been in production far longer.
How the two relate to deep learning
Deep learning is a third term that often gets tangled up with the other two, and it sits alongside rather than instead of the picture above: it is a family of machine-learning techniques (built from layered neural networks) that both predictive machine learning and generative AI can use. Our fuller explainer on AI, machine learning and deep learning maps out how all three terms nest inside one another in one place, if you want the complete picture rather than just the machine-learning-versus-generative-AI slice of it.
A quick side-by-side
The table below is a rough map, not a strict boundary — some systems blend both ideas.
- Scope: machine learning is the whole field; generative AI is one subset of it.
- Typical output: machine learning often outputs a label, score or forecast; generative AI outputs new content.
- Example task: machine learning — flag this transaction as fraudulent or not; generative AI — write a first draft of this email.
- How they learn: both learn patterns from training data using related underlying techniques, including deep learning.
- Exam framing: machine learning fundamentals (supervised vs unsupervised learning, covered in our companion article) typically appear as their own syllabus section, with generative AI as a further, more recent layer on top.
Original practice questions, timed mock exams and revision notes. No card, nothing to pay.
Questions, answered
Sources
Exam details in this post come from the vendor's published exam guide, which is the authority on what is tested and how.
- AWS Certified AI Practitioner (AIF-C01) exam guide — Amazon Web Services
- Google Cloud Generative AI Leader exam guide — Google Cloud