AI, ML, deep learning and generative AI — the nesting
standardbeginnerArtificial intelligence (AI) is the broad goal of building systems that do tasks that normally need human intelligence. Machine learning (ML) is one way to build AI: a program improves at a task by learning patterns from data instead of following hand-written rules.
Think of it as
Think of these terms as nested circles, not a straight line. AI is the outer circle — any system that behaves intelligently, including hand-written rule engines. ML is a smaller circle inside it — systems that learn their rules from data. Deep learning is smaller still — ML using neural networks with many layers. Generative AI is a slice of deep learning that produces new content (text, images, audio) instead of only predicting a label or number. A foundation model is a large model, usually deep learning, trained once on broad data and reused for many tasks — that's a statement about how it was trained, not about its architecture. Discriminative models predict a label or value for an input ('is this email spam?'); 'predictive system' is a looser umbrella term for anything that outputs a forecast, whether or not it uses ML at all.
The nested terms, with one example each
Remember: AI ⊃ ML ⊃ deep learning ⊃ generative AI, each nested inside the last. A foundation model is defined by "trained once, reused everywhere," not by its architecture.
See also: learning paradigms · ml task types


