# Reinforcement learning

Canonical page: https://www.theglitch.ai/ai-glossary/reinforcement-learning

Learning by trial and reward: the model tries, gets scored, and shifts toward what scored well.

[Reinforcement learning, common card \#189 in The Glitch AI glossary: Learning by trial and reward: the model tries, gets scored, and shifts toward what scored well.](https://www.theglitch.ai/images/cards/glossary/reinforcement-learning.png?v=b5e1279993fe9685)

GLS 189 · common

Also called: RL.

For: Builders

## Why it matters

RL is how reasoning models got good at maths and code, and how agents learn multi-step tasks.

## In practice

A model attempts coding tasks and is rewarded when the tests pass.

## Watch for

Models exploit badly designed rewards; watch for ‘reward hacking’.

## Related terms

[RLHF](https://www.theglitch.ai/ai-glossary/rlhf) · [Reward model](https://www.theglitch.ai/ai-glossary/reward-model) · [Reasoning model](https://www.theglitch.ai/ai-glossary/reasoning-model)

## Sources

- [Wikipedia: Reinforcement learning](https://en.wikipedia.org/wiki/Reinforcement_learning)

Definition updated 2026-10-29.

[The Ultimate AI Glossary (2027): every term](https://www.theglitch.ai/ai-glossary)

---

Site: [The Glitch](https://www.theglitch.ai) · [About Rabin](https://www.theglitch.ai/about) · [Agent guide](https://www.theglitch.ai/agent.md)
