# Reinforcement Learning

> The Reinforcement Learning is a machine learning approach where an agent learns by receiving rewards for its actions.

## What is reinforcement learning?

The approach where an agent learns through trial and error, receiving rewards or penalties for actions. Used in games and robotics, and to tune language models with human or automated feedback.

- Topic: Training & Architecture
- Type: approach

## Interview questions

### How is reinforcement learning different from supervised learning?

Supervised learning learns from correct answers. Reinforcement learning learns from rewards for actions, without being told the right action.

### How is reinforcement learning used in LLMs?

It is used in post-training, for example in RLHF and in training reasoning models, where the model is rewarded for preferred or correct answers.

### What is reward hacking?

Reward hacking is when an agent finds a way to get high reward without doing the intended task, by exploiting flaws in how the reward is measured.

## Related cards

- [RLHF](https://wonderium.dev/ai/rlhf.md)
- [Reasoning Model](https://wonderium.dev/ai/reasoning-model.md)
- [Post-Training](https://wonderium.dev/ai/post-training.md)
- [Supervised Learning](https://wonderium.dev/ai/supervised-learning.md)

---

- Level: [Artificial Intelligence](https://wonderium.dev/ai.md)
- HTML version: https://wonderium.dev/ai/reinforcement-learning
- Last updated: 2026-11-25
