Skip to content

Reinforcement learning

Also called: RL

Published:

How does reinforcement learning work?

At its centre is an agent that makes decisions without direct human instruction [1]. The agent interacts with an environment, which tells it what state it is in; the agent picks an action, and the environment answers with a reward signal [1]. The agent's goal is to maximise cumulative reward, and actions that earned a reward become more likely in similar states [1]. The mapping from states to actions is called the policy. In a self-driving car, for instance, a policy might map "pedestrian detected" to "stop" [1].

Because there are no labelled right answers, the agent has to balance two things. It explores new actions to find out which ones pay off, and it exploits the ones it already knows work. It can't do only one of them [1].

How does it differ from other types of learning?

Supervised learning learns to predict from hand-labelled data. Unsupervised learning looks for patterns in unlabelled data. Reinforcement learning learns how to act, through trial and error and reward signals [1].

Where is it used?

Google points to training robots and to game-playing software such as AlphaGo [2]. According to IBM, large language models are typically pre-trained with self-supervised methods and then refined with reinforcement learning [3].

Frequently asked questions

What is a reward in reinforcement learning?

It is the feedback the environment returns after an action. Over time the agent tries to maximise the total reward it collects.

Sources

  1. What is reinforcement learning? — IBM
  2. What is Machine Learning? — Google for Developers
  3. What is Machine Learning? — IBM