Skip to content
LSLab

Why Does Reinforcement Learning Matter?

  • Starter
  • Article
  • Ages 10+
  • 4 min read
A two-wheel educational robot moves through a real wooden maze toward an amber goal marker.

Reinforcement learning is a form of machine learning in which an AI agent learns by trial and error. Researchers give the agent a reward for good behaviors that help it achieve a goal, and the agent adapts its behavior to maximize cumulative reward over time. This way of learning matters because it teaches machines to make decisions.

Contents
The agent (robot) acts in the environment (the grid); the environment sends back a result and a reward (the star).
  • The agent
  • The environment
  • A reward

What you will learn

Before you start

You only need the idea of machine learning from the first article of this topic: a computer learning from data.

How does an agent learn from rewards?

An agent learns by trial and error. Think of a child learning to ride a bike: each try shows what works and what does not.

MIT News describes researchers assigning rewards to "good" behaviors that help achieve a goal, and the agent adapting to maximize that reward. This is how the article describes its example, not a guarantee that every agent becomes an expert.

IBM adds a detail about the cycle. If an action obtains a reward signal from the surrounding environment, the agent is encouraged to take that action again when in a similar future state. IBM distinguishes an immediate reward signal from long-term benefit; the agent maximizes cumulative rewards from the environment.

The agent tries an action, gets a result and goes back to try again.
  • The agent tries
  • The result of the try
  • A reward
Trial and error: the agent tries a path, finds it does not work, tries another and reaches the goal.

How is it different from learning with labeled data?

Supervised learning uses labeled examples to provide target outputs, such as categories or values to predict. During the reinforcement-learning phase, the agent receives feedback through reward signals instead of a label for each action saying whether it was correct or incorrect. This describes the feedback used in that learning phase; it does not mean every phase of a system uses no labeled data.

In IBM's description of an agent without manually labeled input data guiding it, the agent explores its environment and tries actions to discover which receive rewards.

The focus is different too. Whereas traditional machine learning has mostly focused on pattern mining, reinforcement learning shifts the focus to decision making.

One side has examples that come with answers; the other has an agent learning from a reward.
  • Labeled examples
  • The agent
  • A reward

Why does this way of learning matter?

It matters because it lets machines learn to act, not only to spot patterns. Stanford University says AI needs autonomous systems that learn to make good decisions, and reinforcement learning is one powerful paradigm for doing so.

The idea is useful in many places. A Stanford course describes it as relevant to an enormous range of tasks, including robotics, game playing, consumer modeling and healthcare.

A famous case is a game. A Stanford report says the success of AlphaGo, a program that beat the human Go champion, was due in large part to reinforcement learning. The report says the agent was initialized with a human-expert database, then refined by playing many games against itself and applying reinforcement learning.

Robots may gain too. The AI100 report says reinforcement learning may help bridge the gap left by the lack of large labeled data sets in robotics. This approach also requires systems to explore safely without committing errors that harm the system itself or others.

Robotics, games and healthcare are fields the sources name.
  • Robotics
  • Game playing
  • Healthcare

Real-world example

Think of teaching a dog a new trick with treats. The dog tries things, gets a treat for the right move and repeats it. An agent in reinforcement learning follows the same loop, with a reward in place of a treat. No computer is needed for this thought experiment.

Common misunderstandings

The machine is told the right answer each time. In the reinforcement learning described here, the agent receives feedback through reward signals instead of labeled examples that identify each behavior as correct or incorrect.

Reinforcement learning is brand new. The Stanford report says it has existed for several decades as a framework for experience-driven sequential decision-making. Deep learning then gave it a "shot in the arm".

Only game programs use it. The Stanford course page lists robotics, consumer modeling and healthcare as well as game playing.

Frequently asked questions

What is an agent in reinforcement learning?

IBM describes reinforcement learning as a process in which autonomous agents learn to make decisions by interacting with their environment. Robots and self-driving cars are examples of such autonomous agents.

Does reinforcement learning need labeled data?

During the reinforcement-learning phase, the agent receives reward signals and explores the environment instead of being given a correct/incorrect label for each action. Other phases of a system can still use labeled data: the Stanford report says AlphaGo was initialized with an expert database before self-play and reinforcement learning.

Why did deep learning matter for reinforcement learning?

The Stanford report says the advent of deep learning provided reinforcement learning with a "shot in the arm". AlphaGo's success is its main example.

Summary

  • An agent learns by trial and error, adapting its behavior to maximize cumulative reward.
  • Unlike supervised learning, which uses labeled target outputs such as categories or values, reinforcement learning uses reward signals as feedback for actions.
  • It matters because it teaches machines to make decisions, in areas such as robotics and game playing.

Terms in this article

English and Vietnamese terms, with the meanings used here. Hover, tap or Tab to a term with a dotted underline for an explanation as you read.

Reinforcement learningHọc tăng cường
Learning through interaction: an agent tries actions and adjusts its behaviour to maximize cumulative reward over time.
AgentTác tử
A system that acts and learns to make decisions by interacting with an environment.
RewardPhần thưởng
A feedback signal from the environment that an agent receives after an action and uses to adjust its behaviour.
Trial and errorThử và sai
Learning by trying actions and using their outcomes to adjust later attempts.
EnvironmentMôi trường
What an agent interacts with and receives feedback from while learning.
Autonomous agentTác tử tự chủ
An agent that can act and make decisions in its environment without direct instruction from a human.
Labeled dataDữ liệu có nhãn
Examples with supplied answers; the reinforcement learning described here learns from rewards instead.

This article is not marked as viewed

Spotted something wrong or unsafe?

Tell the administrator by email. The message already has the article title and address.

Report this article
  • A physical network of connected glass nodes with one cyan route, a conceptual illustration of AI information processing.
    Starter

    What Is Artificial Intelligence?

    What artificial intelligence (AI) is, how it differs from human intelligence and how computers learn from data. A first article for complete beginners.

    4 min read
  • A small robotic arm sorting physical objects by shape on a laboratory table, illustrating learning from examples.
    Starter

    How Do Machines Learn?

    How machines learn from examples: data, training, models and how they improve step by step. An opening article for beginners, to read with an adult.

    4 min read
  • Blue spheres and amber cubes arranged in separate groups beneath a camera, illustrating labelled examples.
    Starter

    Where Do We Encounter Supervised Learning?

    What supervised learning is and where we meet it in daily life, from spam filters to image recognition. A starter article.

    4 min read
  • Glass pieces clustered by shape and colour, a conceptual illustration of finding patterns in data.
    Starter

    What Are the Main Parts of Unsupervised Learning?

    Unsupervised learning finds structure in data that has no labels. This article introduces its main parts for complete beginners.

    4 min read
See all articles of the topic

Sources

These sources are written for older readers. If they feel hard, read them with an adult.