Skip to content
AI for Everyone

Reinforcement learning

Concept

A loop diagram. The model takes an action in its environment, such as a move in a game of Go. The environment responds with a reward or a penalty, and an arrow leads back to the model.
The model doesn’t get ready-made answers. It learns whether an action was good from the reward or penalty that follows.Diagram: AI for Everyone

In reinforcement learning, the model isn’t given correct answers. It takes actions, and the rewards or penalties that follow tell it whether those actions were good. In a game, for example, the ultimate reward is usually winning. This is how AlphaGo learned to play Go, and how robots learn tasks like walking around a room.

Reinforcement learning is also used to fine-tune large language models. When feedback from people guides this training, the technique is called RLHF, short for reinforcement learning from human feedback. In a 2022 paper, OpenAI researchers described having people rank the model’s answers and then fine-tuning the model to write the kinds of answers that people ranked higher. Before that step, the same model had been fine-tuned with supervised learning.

In my articles

The comparison table in my February 2025 article on generative AI assigns reinforcement learning only to artificial general intelligence. In the corrections I added in November 2026, I explain that this was already inaccurate on the day the article was published, because by 2022 OpenAI was fine-tuning large language models with reinforcement learning from human feedback.

Sources

Related articles

Related entries

Last checked:

All entries