AI, ML, DL & Reinforcement Learning: A map
The four terms are not synonyms. A plain guide to how they fit inside each other, how machines learn, and where language models sit.
By Gilaburu · · 7 min read

"AI", "machine learning", "deep learning" and "reinforcement learning" are often used as if they meant the same thing. They do not. They describe fields that sit inside each other, plus one way of learning that cuts across them. Once you see the map, most product claims and research headlines become much easier to read.
This is the first post in our Foundations series, where we explain the ideas behind the work we do, in our own words, with links to the sources we learned from.
The short version

- Artificial intelligence is the goal: software that does things we would call intelligent if a person did them, such as planning, understanding language or recognising objects.
- Machine learning is one way to reach that goal: instead of writing the rules by hand, we let the program learn them from data.
- Deep learning is one family of machine learning methods: it uses neural networks with many layers, which learn their own features from raw input.
- Generative AI and large language models are a recent branch of deep learning: models trained to produce new text, images or code.
Reinforcement learning does not fit neatly into one ring. It is a way of learning (from trial, error and reward), and it can be used with or without deep neural networks. We come back to it below.
Artificial intelligence: the goal, not the method
The term was coined for the 1956 Dartmouth workshop, and for decades most AI was symbolic: experts wrote rules ("if the patient has a fever and a rash, consider measles") and the program reasoned over them. Chess engines, route planners and the expert systems of the 1980s all worked this way.
Rule-based systems are still everywhere, and they are still AI. Their weakness is that someone has to write and maintain every rule, and many tasks resist being written down. Nobody can list the rules for recognising a cat in a photo.
Machine learning: learning the rules from examples
Arthur Samuel, who built a self-improving checkers program at IBM in the 1950s, is usually credited with describing machine learning as giving computers the ability to learn without being explicitly programmed. Instead of rules, we give the program examples and a way to measure how wrong it is. Training is the process of adjusting the model's internal numbers (its parameters) until that error is small on the examples, and, more importantly, on new data it has never seen.
That last part is the whole game. A model that memorises its training data but fails on fresh data is overfitting. This is why every serious project keeps a held-out test set, and why Google's Machine Learning Crash Course spends so much time on splitting data and on generalisation before it touches fancy models.
Machine learning problems are usually grouped by the kind of feedback the model gets:

- Supervised learning. Every example comes with the right answer (a label). Spam or not spam, the price a house sold for, the word that was spoken. The model learns to map inputs to labels. Most production ML today is supervised.
- Unsupervised learning. There are no labels. The model looks for structure on its own: groups of similar customers, unusual transactions, a compact representation of the data.
- Self-supervised learning is a clever middle ground that powers modern language models: the labels come from the data itself. Hide the next word of a sentence and ask the model to guess it, and you have billions of free training examples.
- Reinforcement learning. There is no answer key at all, only a score that arrives after the model acts. More on this below.
We look at each of these in depth, with tasks such as classification, regression, clustering and anomaly detection, in How machines learn: classification, clustering and beyond.
Classic machine learning (decision trees, gradient boosting, linear models) is still the best tool for many business problems with tables of data. It is fast, cheap and easy to explain. Deep learning is not always the answer.
Deep learning: letting the model find the features
In classic ML, people spend a lot of effort on feature engineering: deciding which measurements to feed the model. Deep learning removes much of that work. A neural network is a stack of simple layers, each one transforming its input a little. Early layers in an image model learn edges, later ones learn textures and shapes, the last ones learn objects. Nobody tells the network what an edge is.
The idea is old, but it only took off around 2012, when three things came together: large labelled datasets, GPUs fast enough to train big networks, and better training techniques. LeCun, Bengio and Hinton's review article Deep learning in Nature (2015) is still one of the clearest summaries of why depth helps. IBM's explainer AI vs. machine learning vs. deep learning vs. neural networks is a good, short companion to this section.
Deep learning made a series of problems suddenly practical: speech recognition, machine translation, medical imaging, and later image and text generation.
Where large language models fit
In 2017, researchers at Google introduced the Transformer in Attention Is All You Need. Its key idea, attention, lets every word in a sequence look at every other word when building its meaning, and it trains very efficiently on modern hardware.
Large language models are Transformers trained with self-supervision on huge amounts of text, by repeatedly predicting the next token. Scale that up far enough and the models pick up grammar, facts, style and a surprising amount of reasoning. So an LLM is deep learning, which is machine learning, which is AI. All four labels are correct; they just differ in how specific they are.
Reinforcement learning: learning by doing
Reinforcement learning (RL) is the odd one out, because it is defined by its feedback loop, not by its model. An agent observes the state of an environment, takes an action, and receives a reward and a new state. Its job is to learn a policy, a way of choosing actions, that collects as much reward as possible over time.

Two things make RL hard and interesting:
- Delayed reward. A move in chess may only pay off twenty moves later. The agent has to work out which of its earlier actions deserve the credit.
- Exploration versus exploitation. Should the agent repeat what has worked so far, or try something new that might be better? Too little exploration and it gets stuck; too much and it never cashes in.
Richard Sutton and Andrew Barto's textbook Reinforcement Learning: An Introduction is the standard reference, and the authors make it freely available online. Its first chapter is very readable even without the maths.
When RL is combined with deep neural networks we call it deep reinforcement learning. That is how DeepMind's AlphaGo learned to beat the world's best Go players in 2016. RL also matters for language models: after pre-training, models are often tuned with reinforcement learning from human feedback (RLHF), where people rank the model's answers and those rankings become the reward. OpenAI's InstructGPT paper describes the method in detail.
Why the distinction matters in practice
When someone tells you a product "uses AI", the map gives you better questions to ask:
- Is it learned or hand-written? Rules are predictable and easy to audit. Learned models adapt, but need data, testing and monitoring.
- What data was it trained on, and how is it evaluated? A model is only as good as its examples and its test set.
- Does it need deep learning? For many structured-data problems, a well-tuned classic model is cheaper, faster and good enough.
- Where does the feedback come from? If the system learns from rewards, what exactly is it rewarded for? A badly chosen reward is one of the most common ways RL systems go wrong.
At Gilaburu we build AI into everyday products, and these questions shape almost every design decision we make. In the next posts of this series we will go one level deeper: how a neural network actually learns, what a Transformer does with your prompt, and how RL is used to make models more helpful.
Sources and further reading
- Google, Machine Learning Crash Course
- IBM, AI vs. machine learning vs. deep learning vs. neural networks
- Y. LeCun, Y. Bengio, G. Hinton, Deep learning, Nature 521 (2015)
- A. Vaswani et al., Attention Is All You Need (2017)
- R. Sutton, A. Barto, Reinforcement Learning: An Introduction, 2nd edition (2018)
- L. Ouyang et al., Training language models to follow instructions with human feedback (2022)
- Google DeepMind, AlphaGo
Get new posts by email
A short note in your inbox when we publish, with a link to the full post here. Free, sent through Substack.
Read on Medium? Follow us there
See more of our posts in Google Top Stories.

