How rewards teach reinforcement learning agents to behave

In June 2021, scientists at the AI ​​lab DeepMind made a controversial claim. The researchers suggested that we could reach artificial general intelligence (AGI) using one single approach: reinforcement learning† They titled their paper on the subject: “Reward is Enough

The team argued that AGI could emerge through an incentive mechanism known as a reward function.

“We hypothesize that intelligence, and its associated abilities, can be understood as subserving the maximization of reward,” the study authors wrote.

Their claims have been dismissed by some scientists, but they nevertheless shine a spotlight on a powerful technique.

What is reinforcement learning?

In reinforcement learning (RL), a software agent learns through trial and error. When it takes a desired action, the model receives a reward.

Over time, the agent works out how to execute the task to optimize its reward.

The technique can be applied to a vast array of tasks, from controlling autonomous vehicles to improving energy efficiency† But its most celebrated achievements have come in the world of games.

In March 2016, the technique had a landmark moment.

A DeepMind system called AlphaGo became the first computer program to defeat a world champion in Go, a famously complex board game.

The victory was reportedly watched by about 200 million people.

During the match, the AI ​​played unconventional moves that baffled its opponent.

“The final version of AlphaGo does not use any rules,” said Demis Hassabis, DeepMind co-founder and CEO.

“Instead, it learns the game from scratch by playing against different versions of itself thousands of times, incrementally learning through a process of trial and error, known as reinforcement learning. This means it is free to learn the game for itself, unconstrained by orthodox thinking.”

These constraints were replaced by reward maximization.

How a reward function works

Rewards are common learning incentives for animals. A squirrel, for instance, develops intellectual abilities in its search for nuts. A child, meanwhile, may get a chocolate for tidying their room — or a spank for bad behavior. †Don’t worry, I don’t have kids

In AI systems, the rewards and punishments are calculated mathematically. A self-driving system could receive a -1 when the model hits a wall, and a +1 if it safely passes another car. These signals allow the agent to evaluate its performance.

The algorithm then learns through trial and error to maximize the reward — and ultimately, complete the task in the most desirable manner.

“Because it’s learning from interaction in an incremental way, it feels very much like what biological intelligence systems do,” Doina Precup, who leads DeepMind’s Montreal office, told TNW

Precup’s colleagues are now developing multi-purpose RL agents.

In 2020, DeepMind unveiled MuZeru, a program that figures out the rules of a game it’s never seen before. Eventually, the lab believes such agents could solve multiple problems in the real world.

There are still major challenges to overcome. RL agents struggle to maximize rewards in complex environments and assess the long-term repercussions of their actions. Nevertheless, the reward-is-enough proponents believe the algorithms’ adaptability could pave a path to AGI.

Leave a Comment