Glossary

Reinforcement Learning

Reinforcement Learning (RL)

Instead of giving the right answer, you reward the AI when it does well and penalize it when it doesn't, and let it work out a good strategy itself.

In reinforcement learning, an AI tries things again and again in some environment, gets a score after each action, and aims to push its total score higher. Game-playing programs got strong this way, by playing huge numbers of games against themselves.

With large language models, reinforcement learning is often used to train reasoning: on maths problems, for example, the model is rewarded only when the final answer is right, and it learns on its own to think the steps through first. The hard part is designing the reward well; otherwise the AI finds loopholes to rack up points.

An example

Teaching a puppy to shake hands: it gets a treat when it does it right and nothing when it doesn’t. After a few rounds it works out which move earns the reward.

This entry was compiled with AI assistance from the sources in the English Wiki. Found an error? See Corrections