Skip to content
TutorialsA part of Coaley Peak®
AI glossaryDefinition

Reinforcement Learning

A type of machine learning where an AI agent learns by trying actions and receiving rewards or penalties based on the outcomes.

Reinforcement learning (RL) is a training approach where an AI agent learns entirely through experience rather than from labelled examples. The agent takes actions, observes what happens, and receives a signal telling it whether the outcome was good or bad. Through many rounds of this loop, it discovers which strategies produce the most reward over time.

Unlike supervised learning, which requires a human to label every training example in advance, reinforcement learning lets the model explore on its own. This makes it well suited to complex problems where spelling out every correct answer would be impractical, such as controlling a robot, winning a board game, or deciding how to route traffic through a busy network.

How it works#

An RL system has three core parts: the agent (the AI doing the learning), the environment (whatever the agent interacts with), and the reward signal (the score or feedback the agent receives after each action).

At each step, the agent looks at the current state of the environment, picks an action, and receives a reward. A positive reward encourages the agent to repeat similar actions; a negative reward, sometimes called a penalty, discourages them. The agent's goal is to find a policy, a set of decision rules, that maximises its total reward over many steps.

Because the agent starts with no knowledge, early behaviour is largely random. Over thousands or millions of attempts, patterns emerge. The agent learns to prefer actions that have historically led to higher rewards, whilst still occasionally exploring new options in case something better exists. This exploration-exploitation balance is one of the central challenges in RL research.

Examples#

Game-playing AI. AlphaGo, developed by Google DeepMind, learned to play the board game Go using reinforcement learning. It played millions of games against itself. Each winning move was rewarded; losing positions were penalised. The system eventually surpassed human champions without anyone programming specific strategies into it.

Improving language model responses. When companies build chatbots powered by large language models, they often use a technique called reinforcement learning from human feedback (RLHF). Human reviewers rate which responses are most helpful and accurate. The model is then trained to produce responses closer to those high-rated examples, making it noticeably more useful in everyday conversation.

Robotic warehouse systems. Logistics robots in automated warehouses use RL to learn efficient pick-and-place movements. The robot receives a reward for completing a task quickly and without dropping items. After millions of simulated attempts, it develops smooth, reliable motions that would take weeks to program by hand.

Why it matters#

Reinforcement learning is behind some of the most impressive AI achievements of the last decade. It is increasingly used in business settings too, from optimising supply chains to personalising recommendations. Understanding the basics helps you appreciate why AI systems sometimes behave unexpectedly during early deployment, because they are still, in effect, exploring their environment.

If you want to understand how modern AI models are trained and improved, the tutorial AI vs ML vs Deep Learning is a good starting point, and our /paths page lists structured routes into machine learning topics.

Reinforcement Learning: frequently asked questions

How is reinforcement learning different from supervised learning?
In supervised learning, the model is trained on labelled examples where the correct answer is already known. In reinforcement learning, there are no labels, instead the model tries actions and receives rewards or penalties, gradually working out which behaviours produce the best outcomes.
Is reinforcement learning used in chatbots and large language models?
Yes. A technique called reinforcement learning from human feedback (RLHF) is widely used to fine-tune large language models. Human reviewers rate model responses, and the model is trained to favour replies that score well, making it more helpful and less likely to produce harmful content.
Do you need a huge amount of data to use reinforcement learning?
Not in the traditional sense. Rather than needing a large labelled dataset up front, a reinforcement learning agent generates its own experience by interacting with an environment. That said, it typically needs many thousands or millions of interactions before it learns effective strategies, which can be computationally expensive.
For your team

Useful? Now picture your whole team knowing it.

Everything here is free, and the first course is too: eight short online lessons your team can start this afternoon. When you want the skills to stick, we come to you for a day on-site, built around the work your people actually do.