Reinforcement learning (RL)
Reinforcement learning is a way of training AI in which an agent learns by trial and error, taking actions and adjusting its behaviour to collect as much reward as possible over time.
Most machine learning learns from examples with the right answers attached. Reinforcement learning works differently. An agent acts in an environment, observes what happens and receives a numerical reward. Nobody tells it which action was correct. Over many attempts it builds a policy, a mapping from situations to actions, that aims to maximise the total reward it expects to collect, not just the next one. Google's machine learning glossary uses games as the example: the reward that matters is usually winning, so the system learns from whole sequences of moves that ended in victory or defeat.
The central tension is between exploration and exploitation. An agent that always repeats what has worked so far never finds anything better; one that keeps experimenting never cashes in. A common simple rule picks the best known action most of the time and a random one occasionally. The problem is usually described formally as a Markov decision process: a set of states, a set of actions, the probabilities of moving between states and the rewards for doing so.
The field's foundations were laid largely by Richard Sutton and Andrew Barto. Sutton's 1984 doctoral thesis introduced actor-critic architectures and his 1988 paper set out temporal difference learning, Watkins described Q-learning in his 1989 thesis, and Sutton and Barto's textbook Reinforcement Learning: An Introduction appeared in 1998, with a second edition in 2018. The pair received the 2024 ACM Turing Award, announced in 2025, for the conceptual and algorithmic foundations of the field. The best known demonstration came from games: in October 2017 DeepMind reported that AlphaGo Zero, trained only by playing against itself, beat the version of AlphaGo that had defeated Lee Sedol by 100 games to 0.
Reinforcement learning is now a standard stage in building language models. OpenAI used reinforcement learning from human feedback for InstructGPT in January 2022 and ChatGPT in November 2022, with a reward model standing in for human preferences. Reasoning models such as OpenAI's o1 (2024) and DeepSeek-R1 (2025) were trained with large-scale reinforcement learning; DeepSeek reported using rewards computed automatically, for example by checking a maths answer or running code against tests.
In practice the method is only as good as its reward. If the reward can be earned without doing the intended task, the agent will often find that shortcut, a failure known as reward hacking. Reinforcement learning also tends to need very large numbers of attempts, which is why it thrives in games, simulations and tasks where answers can be checked by a computer, and is harder to use where every trial is slow, costly or risky.
Supervised learning trains on examples that come with the correct answer attached, so the model learns to copy a known mapping. Reinforcement learning has no answer key: the agent tries actions and receives a reward signal that says how well things went, often only after a long sequence of steps. It has to work out for itself which actions led to the result. After pre-training and supervised fine-tuning, chatbots are usually trained further with reinforcement learning. In reinforcement learning from human feedback, people rank alternative answers, a reward model learns those preferences, and the chatbot is tuned to produce answers the reward model scores highly. Reasoning models such as DeepSeek-R1 add rewards that check whether a final answer is actually correct. A policy is the agent's strategy: a mapping from the situation it is in to the action it takes, often expressed as probabilities over possible actions. Training in reinforcement learning means improving the policy so that, following it, the agent collects as much reward as possible over time. Games have clear rules, a clear score and can be simulated millions of times at no real cost, which suits a method that learns by trial and error. AlphaGo Zero, for example, learned Go purely by playing against itself. Real-world tasks are harder because trials are slow or risky and success is harder to measure.Common questions
What is the difference between reinforcement learning and supervised learning?
How is reinforcement learning used in ChatGPT and other chatbots?
What is a policy in reinforcement learning?
Why is reinforcement learning so good at games?
Search for "reinforcement learning introduction", "Markov decision process" or "exploration exploitation" for the basics, and "RLHF" or "reinforcement learning reasoning models" for how it is used with language models. Sutton and Barto's textbook is the standard reference and is widely available. For recent developments rely on the original papers on arXiv and on technical reports from the labs that trained a model, and be wary of claims that a system learned something entirely on its own without checking what reward it was given.Finding more
Working out what this means for your business?
Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.