# Reinforcement Learning (RL)

- **Canonical URL:** https://getaimath.com/dictionary/reinforcement-learning-rl/
- **Topics:** [AI & Machine Learning Fundamentals](https://getaimath.com/dictionary/category/ai-and-machine-learning-fundamentals/)
- **Last updated:** 2026-11-25

## What is Reinforcement Learning (RL)?

**In one sentence:** Reinforcement Learning is a way for AI to learn by trying things and getting rewards for good choices and penalties for bad ones.

It is like training a puppy with treats. The AI, called an agent, takes an action, sees what happens, and gets a score. Over many tries it figures out which actions lead to the highest score. Nobody shows it the right answers; it discovers them by experimenting.

![Training vs. Inference: Studying Flashcards vs. Taking the Test — Simple cartoon diagram comparing AI Training (studying 1,000 flashcards and fixing mistakes until the brain learns the pattern) with AI Inference (answering a brand-new question in 1 second on test day).](https://getaimath.com/diagrams/ai-and-machine-learning-fundamentals.png)
*Napkin Diagram (AI & Machine Learning Fundamentals): Training is the long study session where the AI learns from examples; inference is test day when you actually use it.*

## What is an example of Reinforcement Learning (RL)?

An AI that learns to win a video game by playing it millions of times and chasing a high score uses reinforcement learning.

## Why does Reinforcement Learning (RL) matter?

Reinforcement learning powers game-playing AIs, robots, and the final polishing of many chatbots.

## Related Concepts

- [Self-supervised Learning](https://getaimath.com/dictionary/self-supervised-learning/): Self-supervised learning is when an AI makes its own practice questions from raw data, so no human labels are needed.
- [Reinforcement Learning from Human Feedback (RLHF)](https://getaimath.com/dictionary/reinforcement-learning-from-human-feedback-rlhf/): RLHF is a way to improve a chatbot by having people rate its answers and then training it to give the kinds of answers people prefer.
- [Semi-supervised Learning](https://getaimath.com/dictionary/semi-supervised-learning/): Semi-supervised learning trains an AI with a small amount of labeled data and a large amount of unlabeled data.
- [Fine-tuning](https://getaimath.com/dictionary/fine-tuning/): Fine-tuning is giving an already-trained AI model extra training on a smaller, focused set of examples so it gets good at a specific job.
- [Unsupervised Learning](https://getaimath.com/dictionary/unsupervised-learning/): Unsupervised learning is when an AI looks for patterns in data that has no labels or right answers.
- [Pre-training](https://getaimath.com/dictionary/pre-training/): Pre-training is the first, giant training stage where a model learns general knowledge from enormous amounts of data.

---
Source: The AI Math Dictionary (https://getaimath.com/dictionary/reinforcement-learning-rl/)
