Reinforcement Learning

Learning by trying things and adjusting to the score you get back

Key points
  • Reinforcement learning adjusts the next move based on the score received after trying something. Nobody tells it the right answer.
  • All it gets is a single number lumping together how well or badly it did. Which part of the move deserves credit is something it has to work out on its own.
  • The score can arrive a long time after the move that earned it. It's especially suited to problems where a choice made now only pays off several steps later.
  • Whether to stick with what's worked, or try something new is the central balancing act. Lean too far either way and it either stops learning or starts losing points.
  • With labeled answers, it's supervised learning; with no answers at all, it's unsupervised learning. Reinforcement learning is the third kind, where you only find out the score by actually trying.
Contents

1The analogy

Roll your first ball at a bowling alley and it usually ends up in the gutter. Nobody standing next to you calls out the exact answer, like "turn your arm fifteen degrees further in." All that comes back is how many pins fell. Zero. Three. Seven. So the next ball gets rolled a little differently — a step over on the approach, a bit less power, a different release point. Knock down seven and that combination gets remembered; drop back to two and that one gets dropped. After dozens of games, the body picks up the pattern. It can't explain the angle in words, but it knows how to roll for a good score. Reinforcement learning is exactly this: adjusting your moves based only on the score you get back.

2In detail

All that comes back is a score

Reinforcement learning has three players: the one acting, the stage that receives the action, and the score the stage hands back. In bowling, that's the bowler, the lane and pins, and the number of pins knocked down.

In supervised learning, every roll would need an answer attached — "that stance was correct this time." Reinforcement learning has no such answer. Only a single score comes back, and stance, angle, power, and starting position are all bundled together inside it. Figuring out which part of that raised the score is itself part of what has to be learned.

How the scoreboard is written decides the whole outcome. Score only on pins knocked down, and a habit of throwing as hard as possible sets in. Dock heavily every time it hits the gutter, and a cautious throwing style sets in instead. The scoreboard is the goal.

The score can arrive a long time later

A bowling frame is two balls. Where the first ball lands decides whether the second ball can pick up a spare. Leave only a corner pin standing with the first ball, and there's almost nothing the second ball can do about it. The first ball's score, eight, wasn't bad on its own — but looking at the whole frame, it was a costly choice.

The problems reinforcement learning deals with tend to have this same shape. The value of a choice made now often only shows up several steps later. That's why the choice gets made by weighing not just the immediate score but the score expected further ahead too. Future score gets counted at a slight discount, which is what lets it be weighed against a score that's certain right now.

Whether to stick with what's worked, or try something new

Find a stance that reliably knocks down seven pins, and it pays to keep rolling from there. But if a spot two steps over would land a strike, sticking to the known stance means you never find out. Roll from a brand-new spot every single time instead, and the score never stops bouncing around.

This balancing act is called exploration and exploitation. Early on, learning leans heavily toward trying new things; as it gets more experience, it shifts toward whatever has worked well. Tuning that balance without tipping too far either way is the part of reinforcement learning that takes the most care.

What settles in the body becomes the policy

After dozens of games, what's left behind isn't a record of scores — it's a rule: "in this situation, roll it this way." Which spot to stand on when a right-side pin is left standing, how much power to use when the lane is slick, things like that. This bundle of rules is called a policy.

Once the learning process ends, this policy is what actually gets used. Feed it a situation and out comes a move. A well-tuned policy can still roll reasonably on a lane it's never faced before, but if that lane is too different from what it trained on, it ends up in the gutter again, just like the very first ball.

In practice, it rolls hundreds of thousands of times

A person can pick up the feel of the game in a few rounds, but a machine can't. A single score carries so little information that reaching a workable policy takes hundreds of thousands, sometimes hundreds of millions, of attempts.

So most training happens inside a simulated stage rather than the real world. Inside a simulation, millions of games can run in a single day, with no risk of a ball ever actually breaking. The catch is that even a small gap between the simulation and reality can leave a learned trick useless. Closing that gap remains one of the biggest open problems in robotics.

3More precisely

Reinforcement learning repeats a loop of observing a state, choosing an action, and receiving a reward, in search of a policy that maximizes the sum of future rewards. Adding up future rewards with a slight discount applied is called the discounted cumulative reward, and a table scoring how valuable a given state and action pair is is called a value function.

The analogy breaks down in a few places. A game of bowling resets to a starting state once it ends, but real problems often carry a choice forward into a state there's no returning from. Bowling's scoring is also completely fixed, while in the real world a person has to decide directly what earns how many points, and get that design wrong and the system learns behavior that racks up a high score while being useless. Tuning language models by turning human preference into a score sits on this same framework — instead of a person hand-writing the scoring rules, the method itself learns how to score from people's choices. Put in bowling terms, it's closer to scoring which throw the audience liked better, instead of counting pins.

4Try it yourself

5Common misconceptions

  • It's easy to think reinforcement learning is a more advanced version of supervised learning, but actually they just handle different kinds of problems. When answers can be labeled ahead of time, supervised learning is faster and steadier by far.

  • It's easy to think giving good scores is all it takes for the system to figure out the rest, but actually it's common for it to find gaps in the scoreboard and rack up points through methods that miss the point entirely.

  • It's easy to think the machine sets its own goal, but actually the goal is always set by whoever wrote the scoreboard. What learning decides isn't the goal — it's the path to reach it.

7One-line summary

In shortReinforcement learning is trying something over and over on a stage that hands back only a score instead of the right answer, and working out for itself a set of moves that earns a bigger score going forward.

Spotted an error or have a better analogy? Suggest an edit · Last updated2026-09-02