AI GLOSSARY · AI CONCEPTS
Reinforcement learning
Definition
Reinforcement learning (RL) is a machine learning approach in which an agent learns by trial and error, taking actions in an environment and receiving numerical rewards, with the aim of maximizing total reward over time.
Also called: RL.
In plain language
Reinforcement learning is learning by trying things and being scored. Think of training a dog with treats: the dog is not told the right move, it tries, gets a treat or none, and over many tries it does more of what paid off. In software, a learner (called the agent) acts in some world (the environment), gets a number as a reward, and adjusts its habits to collect more. IBM gives robotics, such as automated driving, as an example. The limits are real: the learner needs a way to be scored, and in the real world conditions vary a lot, which makes learning harder.
Technical definition
An RL setup describes an agent, an environment, actions, observations and rewards. A policy determines how actions are chosen. The objective is expected return, defined by the task, for example an episodic sum of rewards or a discounted sum. Value functions estimate expected future return. Training can use newly collected experience or previously collected data; it need not use a neural-network policy. Anthropic documents reinforcement learning on simulated prompt injections, rewarding correct identification and refusal of malicious instructions.
Worked examples in this catalogue
Catalogue examples point at a skill, guide or coding tool listed on this site, with what to run and what you see. An example marked illustrative describes the item from its own documentation; it was not executed for this page. Platform Scores are our assessment under a published method, not a safety guarantee.
Skill by Skill Almanac · Illustrative, not executed
llm-eval-test-sets 57/100 · Provisional, not yet measuredScored · Method v0.2 · How we score
- What you see
- An eval dataset for an LLM feature, with a checker for duplicates, missing graders and imbalance.
- Why it exercises the concept
- Reinforcement learning depends on a way to score outcomes. A grader in an eval set is the same idea, a rule that turns an output into a score, though here it measures a model and does not train it.
Skill by Jesse Vincent · Illustrative, not executed
verification-before-completion 30/100 · Provisional, not yet measuredScored · Method v0.2 · How we score
- What you see
- A rule that the agent runs the checks and reads their output before it claims work is done.
- Why it exercises the concept
- A test that passes or fails is a clear signal of success. This shows why a checkable outcome is valuable, though this skill steers an agent's behavior in a session and does not train a model.
Skill by Skill Almanac · Illustrative, not executed
skill-authoring-and-evals 62/100 · grade CScored · Method v0.2 · How we score
- What you see
- A skill written from what a plain agent gets wrong, then tested with trigger evals and with-versus-without evals.
- Why it exercises the concept
- It practises the loop of try, measure, adjust, which is the everyday version of the loop that reinforcement learning automates. No model weights change here.
How it shows up when you use agents
Ordinary inference calls in a coding-agent session do not themselves run reinforcement learning. A vendor may use RL during model training; an agent can also run separate training code if asked. Anthropic, for example, says it trains Claude with reinforcement learning on simulated prompt injections and rewards it for refusing malicious instructions. It is one of several training methods, alongside supervised learning, and a vendor may combine them. Check a vendor's own documentation for what it states about a particular model.
The word "agent" can mislead here. In reinforcement learning, an agent is the learner that is being trained by rewards. In the LLM-based usage discussed here, an AI agent uses a trained language model with application-managed tools and state. A coding agent in your terminal is the second kind: it does not update its weights from the reward of your session.
What breaks when this is misunderstood: people expect an agent to improve from your feedback over a session or a week, when the model is fixed and only its context changes. Others assume a trained model is guaranteed to follow its training, when Anthropic itself says prompt injection is far from a solved problem. Next action: if you want an agent to behave better on your project, change what it is given, such as instructions, checks and examples, and measure the result. If you want to learn how models are trained from human preferences, read RLHF.
A small worked example. In a hypothetical two-step environment, going left ends the episode with reward 1. Going right gives reward 0, then finishing from the next state gives reward 3. With an undiscounted episodic sum, the two returns are 1 and 3. Optimizing return can therefore favor the path with the lower immediate reward. This is an exact calculation for an invented environment, not a model benchmark or a claim that a deployed agent learns from its session.
Common confusions
- Reinforcement learning versus supervised learning. Supervised learning learns from examples with correct answers. Reinforcement learning learns from rewards after acting, with no labeled answer for each step, according to IBM.
- RL agent versus AI agent. The first is the learner in a training setup. The second is a deployed program that uses a model and tools. See AI agent.
- Reinforcement learning versus RLHF. RLHF is reinforcement learning where the reward comes from human feedback. See RLHF.
- Myth. Reinforcement learning means the model keeps learning as you use it. Reinforcement learning is a training method. Using a model in a chat or coding session does not by itself run it.
Related terms
Show all 19 related terms
Terms that mention Reinforcement learning
20 terms mention this one
- Agentic search
- Model training (AI)
- AlphaGo
- Browser agent
- Constitutional AI
- Conversational AI
- Direct preference optimization (DPO)
- Imitation learning
- InstructGPT
- Meta-learning
- Monte Carlo tree search (MCTS)
- Reasoning model
- Reward hacking
- Reward model
- RLAIF (reinforcement learning from AI feedback)
- Reinforcement learning from human feedback (RLHF)
- Sim-to-real transfer
- Together AI
- Types of AI
- World model
More in AI concepts
Sources
- What is reinforcement learning?, IBM (accessed 2026-11-23)
- Part 1: Key Concepts in RL, OpenAI Spinning Up (accessed 2026-11-23)
- Mitigating prompt injections in browser use, Anthropic (accessed 2026-11-23)
- Offline Reinforcement Learning: Tutorial, Review, and Perspectives on Open Problems, Levine, Kumar, Tucker and Fu (accessed 2026-11-24)
Definitions are written by Skill Almanac from these sources and were checked against them on 2026-11-24. Wikipedia is never the only source.
Review record
Last verified
Drafted by Claude (original draft) and Codex (automated revisions); sources and example targets checked by Independent automated source review (OpenAI Codex); not human peer review on 2026-11-24. Last verified .
Change log (5)
- : Independent automated factual/example review completed. Cached US query estimate aligned to receipt; no traffic promise. Final technical gate recorded separately; publication disabled.
- : First version.
- : Verifier pass: dropped unsupported exploration, model and deep-RL claims.
- : Scoped explanations and example revision; exact-version review pending, no publication approval.
- : Automated review completed; approved for the staged public release. Search indexing is controlled by the release configuration.