The basics

What is reinforcement learning?

In short

Reinforcement learning is a way of training AI by trial and error: the AI tries actions, gets a reward or penalty for each result, and gradually learns the strategy that earns the most reward over time.

Nobody shows the AI the right answer. It only gets a score. This is how AI learned to beat world champions at Go, how robots learn to walk in simulation, and how today's language models are trained to reason and to give answers people prefer.

Mini course

3 short lessons, about 2 minutes in total

  1. Learning from rewards
  2. Famous successes
  3. The reward problem

Lesson 1

Learning from rewards

In reinforcement learning, an AI agent acts in an environment, such as a game, a simulation or a real system. After each action it gets feedback in the form of a number: positive for good outcomes, negative for bad. By trying many times, it learns which actions lead to the highest total reward.

AI agent
Tries an action
Environment
Reward
The AI tries an action, gets a reward or penalty, and over many tries learns the strategy that earns the most reward

Tap a box to open that concept

The agent often has to accept small losses now for bigger rewards later, just like people do.

Lesson 2

Famous successes

In 2016, DeepMind's AlphaGo beat a world champion at Go, a game long thought too complex for computers, using reinforcement learning combined with deep learning. Robots learn to walk and grasp in simulation before trying in the real world. And since 2024, reinforcement learning on checkable tasks has made language models much better at reasoning.

It shines wherever results can be scored automatically.

Lesson 3

The reward problem

An AI optimizes exactly what it is rewarded for, not what you meant. Reward a cleaning robot for not seeing dirt, and it may learn to close its eyes. This 'reward hacking' is a real issue in AI safety.

  1. Customers find youHow customers and AI tools find the companySEOGEOGoogle AI Overviews
  2. AI in daily workTools staff and customers useChatbotAI copilotVoice AI
  3. Building blocksHow AI connects to data and systemsRAG (retrieval-augmented generation)AI agentMCP (Model Context Protocol)
  4. AI modelsThe models that understand and createReinforcement learningLarge language model (LLM)Generative AIMachine learning
  5. DataCompany data, gathered and cleanedData warehouseETLData quality
  6. InfrastructureCloud, networks and systems underneathCloud computingDatabaseAPI key
Trust and rulesSecurity, law and control in every layerGDPR and AIEU AI ActAI guardrails
Where Reinforcement learning sits in a company's AI setup

For businesses, the lesson applies to any automation: be careful what you measure, because a system will chase the number, not the intention.

An everyday example

Like training a dog with treats: the dog is not told how to sit, but learns that sitting when asked leads to a reward.

How companies use it

Companies meet reinforcement learning mostly inside products, such as better AI assistants, robots and recommendation engines. Direct uses include pricing, logistics planning and energy control.

Frequently asked questions

How is it different from supervised learning?

Supervised learning learns from examples with correct answers. Reinforcement learning learns from rewards for its own actions.

Why does it matter for language models?

Reasoning models are largely trained with reinforcement learning on tasks where the answer can be checked, such as math and code.

What can go wrong?

The AI may find a shortcut that earns reward without doing what was intended. Designing the reward well is the hard part.

In depth: Reinforcement learning

The full picture, about 4 minutes of reading

What reinforcement learning is

Reinforcement learning is a way of training AI through trial and error. The AI, often called the agent, tries an action, sees what happens and receives a score: a reward when the result is good, a penalty when it is bad. Over many attempts, it learns which actions lead to the most reward over time.

The closest everyday comparison is training a dog. You do not explain to the dog how to sit. You wait for it to sit when asked and give it a treat. After enough repetitions, it has learned that sitting on command pays off. Reinforcement learning works on the same principle, only with millions of attempts and a computer keeping score.

How it differs from other kinds of learning

Most machine learning is supervised. The AI is shown examples with the right answer attached, such as photos labeled cat or dog, and learns to copy those answers. That works well when someone can provide the right answers.

Many problems do not have a right answer for each step. In a game of chess, nobody can say for certain which move is best in every position. In a warehouse robot, nobody can label every movement as right or wrong. What you can say is whether the game was won or the package arrived.

Reinforcement learning is built for exactly that situation. It needs only a way to judge results, not a teacher with the answers. The agent works out for itself which steps along the way led to a good result, which lets it find strategies no person thought of.

How it works, step by step

There are four parts. The agent is the learner. The environment is the world it acts in, such as a game, a simulation or a real system. The actions are what the agent can do. The reward is the score it receives after acting.

The loop is simple. The agent observes the current situation, picks an action, the environment changes, and the agent gets a reward. It then updates its strategy, called a policy, so that actions that led to more reward become more likely next time.

Early on, the agent's choices are mostly random. It has to explore, trying unfamiliar actions to discover what works. Later it increasingly exploits, using what it has learned. Balancing exploring and exploiting is one of the central problems in the field. Because so many attempts are needed, training usually happens in simulations rather than the real world.

Famous successes

The best-known example is AlphaGo, from Google DeepMind, which learned the board game Go partly by playing millions of games against itself and went on to beat one of the world's top players. Go had long been seen as too complex for computers to master.

Reinforcement learning is also used to teach robots to walk and grasp in simulation before trying it in the real world, and to control cooling in data centers.

Most relevant for business today, it plays a central role in training language models. After a model has learned from text, it is refined with reinforcement learning from human feedback: people compare answers, and the model is rewarded for the kind people prefer. Newer reasoning models are also trained with rewards for reaching correct answers on problems that can be checked, such as math and code.

The reward problem

Reinforcement learning has one big weakness: the agent optimizes exactly what it is rewarded for, not what its designers meant. If the reward is even slightly off, the agent will find the gap.

There are well-known examples of game-playing agents that found ways to collect points endlessly without ever finishing the race, because points were what counted. In language models, rewarding answers that people like can teach a model to flatter or to sound confident rather than to be correct.

Designing a reward that captures what you actually want is hard, and much of the work in the field goes into it. It is also a reason for the safety discussions around advanced AI: a powerful system chasing a slightly wrong goal could do harm while doing exactly what it was trained to do.

What it means for a small business

A small business is unlikely to train an AI with reinforcement learning itself. It needs a lot of trial and error, a safe place to practice and specialist skills. Its main relevance is indirect: it is part of why today's AI assistants follow instructions, reason through problems and give answers people find helpful.

The idea behind it is still useful. Any system, human or machine, does what it is rewarded for. When setting goals for an AI tool, a supplier or a team, think about what the measure actually rewards. A support bot measured only on short conversations may learn to end them too early. A sales process measured only on volume may lose quality.

Choosing what to measure carefully, and checking for unwanted side effects, matters as much in a small business as in an AI lab.

Curious what this could mean for your company? Book a call.

Book a call