Skip to content
BENIBIX Learn

Reinforcement Learning

Also known as RL, Learning from Rewards

Learning by trial and error. Good actions earn rewards, so the agent repeats them.

Think of it like

Think of it like teaching a dog with treats. Good moves earn a treat, so it does them more.

Example

A program learns a racing game by itself. At first it crashes all the time. After millions of laps, the reward for finishing fast teaches it to drive well.

Why it matters

It works where there is no answer key, only a goal. It is used for games, robots and to make chatbots more helpful.

Definition

Reinforcement learning is learning by trying things and getting rewards. A program, called the agent, takes an action in some world. The world changes and hands back a reward or a penalty. The agent repeats this many times and learns which actions lead to the most reward over time. Nobody shows it the right moves, only the score.
Reinforcement learning is the last panel. Act, see what happens, get a reward, and go round again.

Common mistake

Writing a reward that can be cheated. The agent finds the shortcut to the reward, even when that is not what you wanted.

Key takeaways

  1. 1
    Try and see. Act, then get a reward.
  2. 2
    Long-term score. Learns what pays off over time.
  3. 3
    No answer key. Only the reward guides it.

Compare

Learn it properly