Artificial intelligence is the broad goal of getting machines to do tasks that need human intelligence. Machine learning is a subset of AI in which systems learn patterns from data. Deep learning is a subset of machine learning that uses neural networks with many layers.
Table of contents 6 sections
- AI is the broad field, machine learning is one approach inside it, and deep learning is one kind of machine learning.
- Not all AI learns from data: expert systems and search-based programs use rules their programmers wrote.
- Classic machine learning suits structured data and is cheaper and easier to explain than deep learning.
- Deep learning uses many-layered neural networks that learn their own features from raw images, sound and text, at the cost of more data and computing power.
- Chatbots and generative AI are deep learning systems, so they belong to all three categories at once.
AI vs machine learning vs deep learning is a question of nesting: machine learning is one way of building AI, and deep learning is one kind of machine learning. Picture three circles, each inside the last. Every deep learning system is machine learning, and every machine learning system is AI, but the reverse is not true.
What is artificial intelligence?
Artificial intelligence is the broad field of making machines perform tasks that normally need human intelligence, such as recognising speech, translating, planning or making decisions. The US National Institute of Standards and Technology describes an AI system as an engineered or machine-based system that can, for a given set of objectives, generate outputs such as predictions, recommendations or decisions that influence real or virtual environments. It adapts that wording from the OECD and from ISO/IEC 22989.
The field's usual starting point is a 1956 summer workshop at Dartmouth College organised by John McCarthy. Many AI systems since then have involved no learning at all. An expert system of the 1970s and 1980s encoded human expertise as hand-written if-then rules, and a chess program can search moves and score positions with a formula its programmers wrote. Both count as AI.
What is machine learning?
Machine learning replaces hand-written rules with learned ones. Instead of telling software how to spot spam, you show it thousands of emails labelled spam and not spam, and it finds the patterns that separate them. In classic machine learning, people usually decide which features the model looks at, such as the number of links in an email or the sender's history.
There are three main styles. Supervised learning trains on labelled examples, and unsupervised learning looks for structure, such as groups of similar customers, in unlabelled data. Reinforcement learning improves through trial, error and rewards, as in game-playing programs.
All three share one loop: the model makes a prediction, a score measures how wrong it was, and the parameters are adjusted to shrink the error, over many examples. Methods such as decision trees and linear regression often work well on spreadsheet-style data, and they are cheaper to train and easier to explain than deep neural networks.
What makes deep learning different?
Deep learning is machine learning with neural networks that have many layers. In a 2015 review in Nature, Yann LeCun, Yoshua Bengio and Geoffrey Hinton described it as models built from multiple processing layers that learn representations of data at several levels of abstraction. In plain terms, the network works out for itself which features matter, starting from raw pixels, sound or text.
The word deep refers to the number of layers, not to any depth of understanding. Training relies on backpropagation, an algorithm that works out how each layer's parameters should change to reduce the error.
The price is data and computing power. A widely cited milestone came in 2012, when a deep convolutional neural network from the University of Toronto won the ImageNet image-recognition contest with a top-5 error rate of 15.3 percent, against 26.2 percent for the second-best entry. The entry was a variant of a network with 60 million parameters that took five to six days to train on two graphics cards. Today's models are far larger, which is why energy use has become a public question, as our piece on how much power AI uses explains.
AI vs machine learning vs deep learning: how do they compare?
Side by side, the three differ in scope, appetite for data and the effort needed to build them. The examples below are typical rather than exhaustive.
- AI. The goal and the whole field. It may use rules, search, planning or learning. Examples include rule-based expert systems, game-playing search programs and chatbots.
- Machine learning. Software that learns patterns from examples instead of following hand-written rules. People often choose the features. Examples include spam filters, credit-risk scoring and demand forecasts.
- Deep learning. Machine learning with many-layered neural networks that learn their own features from raw data. It needs large datasets and heavy computing power. Examples include speech recognition, image classification, machine translation and large language models.
Where do chatbots and generative AI fit?
Today's chatbots are deep learning systems. A large language model is a neural network trained on text, which makes it deep learning, which makes it machine learning, which makes it AI. Our explainer on how large language models work shows how the pieces fit. Generative AI, the family of tools that create text, images, audio or code, is built mostly on deep learning too.
An AI agent describes how a system is used rather than how it learns: software that uses a model to plan and take actions. We cover the difference in what an AI agent is and how it differs from a chatbot.
Labels can mislead. Not everything sold as AI learns from data, and the EU AI Act deliberately separates AI systems, which infer how to generate outputs from the input they receive, from simpler software that only follows rules defined by people. Our guide to the EU AI Act explains the risk tiers that follow from that definition.
Which one does your project need?
Treat the three terms as a toolbox, not a ladder where higher is better. These rules of thumb help.
- If the rules are clear and stable, write the rules. Tax tables and form validation do not need a model.
- If you have examples but the rules are fuzzy, try classic machine learning first, especially on tabular data such as customer records.
- If the input is images, audio or free text, and you have a lot of data or can start from a pre-trained model, deep learning is the likelier fit.
- Judge any system by measured results on your own data, not by the label on the box.
- When a vendor sells you AI, ask what the system learns from, how it was evaluated and what happens when it is wrong.
Frequently asked
- Artificial Intelligence Risk Management Framework (AI RMF 1.0), NIST AI 100-1 — National Institute of Standards and Technology
- Deep learning — Nature (LeCun, Bengio and Hinton, 2015)
- ImageNet Classification with Deep Convolutional Neural Networks — Advances in Neural Information Processing Systems 25 (Krizhevsky, Sutskever and Hinton, 2012)
- Artificial Intelligence (AI) Coined at Dartmouth — Dartmouth College
0 comments
No comments yet — be the first.