What Is RL from Verifiable Rewards?
What RL from verifiable rewards (RLVR) is, why a checker can grade maths and code answers, and where it breaks, for your AI interview.
In short
RL from verifiable rewards trains a model with reinforcement learning, but the reward comes from a checker that can tell right from wrong, such as an answer key or passing unit tests. It works where code can check the answer, and it fails where quality is a matter of opinion.
10 min readAdvancedCommon · estimateFacts checked 26 November 2026
Say it out loud
Read it once, then say it without looking. Start with the short one; use the long one when they ask you to go deeper.
RLVR is reinforcement learning where a checker sets the reward, with no person or judge model involved. If the maths answer matches the answer key, or the code passes its tests, the model gets one. Otherwise it gets zero, and over many tries it learns the answers the checker accepts. It works well for maths, code and strict formats. It can't grade tone or advice, and a checker can be gamed, so I'd test it hard.
Reinforcement learning trains a model by rewarding good results. RL from verifiable rewards keeps that idea and changes where the reward comes from. A reward model guesses how good an answer is. A checker decides whether it is right, using an answer key, a rule or a set of tests.
Here is a case I'd use. A bank's risk team wants a model that writes SQL for its loss reports. The checker runs each query on a test copy of the database and compares the rows with the expected rows. A match gives a reward of one, and anything else gives zero. Over many tries the model learns to write queries that return the right rows.
The limits matter. It only works where a program can settle the answer, so it suits maths, code with tests, SQL results and strict formats. Tone, advice and summaries need a judge model or a person. A checker can also be gamed, so it has to be tight and tested against tricks. DeepSeek-R1-Zero used rule-based rewards for maths, coding and logical reasoning, and DeepSeek avoided learned reward models on reasoning tasks because of reward hacking.
So my answer is short: I ask whether a machine can verify the output. If it can, I reward only verified answers and test the checker hard. If it cannot, I use a judge and keep a person on the risky cases.
What is RL from verifiable rewards, in plain words?
Reinforcement learning, in plain words, is learning by reward. The model tries something, gets a score, and changes so that high-scoring tries become more likely. RL from verifiable rewards keeps that loop and changes one thing: the score comes from a checker that can tell whether the answer is right.
Think of an insurer's claims desk. A junior drafts a payout for a car claim, and the policy rulebook recalculates it. If the figures match, the draft goes through. The rulebook decides, so nobody has to guess how good the draft looks. RLVR applies the same idea to a model.
In the AI version, the model writes a payout figure for a motor claim, code recalculates it from the policy rules, and the model is rewarded only when the two agree.
Key words
- Reinforcement learning
- Training by reward: good tries are rewarded, so the model does more of them.
- Verifiable reward
- A score set by code that can check the answer, such as an answer key or a test suite.
- Checker
- The code that runs the check and returns the reward, usually one or zero.
- Reward model
- A model trained to guess how good an answer is, often from human preferences. RLVR avoids it.
How does the training loop work?
Each round has four steps. The chart shows the loop, and the steps below say what happens at each arrow.
One RLVR training loop
A task with a known answer
a maths, code or SQL question
Model writes answers
several tries for each prompt
Checker: code, not a judge
compares with the key or runs tests
Right: reward 1
the answer passes the check
Wrong: reward 0
the answer fails, so it ranks lower
Update the model
weights move toward rewarded tries
- 1The task goes in, with an answer key or tests behind it.
- 2The model's answer goes to the checker.
- 3The checker finds the answer right, so the reward is one.
- 4The checker finds it wrong, so the reward is zero.
- 5Weights move toward the answers that got a one.
- 6A zero counts against that try, compared with the others.
- 1
Pick a task with a known answer
A maths problem, a function to write or a SQL question, each with an answer key or tests.
- 2
Sample several tries
The model writes a handful of answers to the same prompt, so they can be compared with each other.
- 3
Run the checker
Code compares each answer with the key or runs the tests. A pass gives one, a fail gives zero.
- 4
Nudge the model
The training step makes the higher-scoring tries more likely next time. The loop then repeats on new tasks.
What does a checker look like in code?
Here is a small version for a claim payout. The rule is written once in code, and the model's proposed figure is checked against it. The numbers are made up, but the shape is what a real checker does.
# A simplified checker for a motor claim payout. Code works out the right amount; the model only proposes one.
import re
def payout(claim, deductible, cap):
# The policy rule, written once in code: pay the claim less the deductible, up to the cap.
return min(max(claim - deductible, 0), cap)
def reward(model_text, expected):
# A verifiable reward: one if the stated amount matches the rule, zero otherwise.
match = re.search(r"payout:\s*([\d,]+(?:\.\d{2})?)", model_text, re.IGNORECASE)
if not match:
return 0.0 # no clear figure earns nothing
given = float(match.group(1).replace(",", ""))
return 1.0 if abs(given - expected) < 0.005 else 0.0
expected = payout(8450.00, 500.00, 6000.00)
print("expected payout:", expected)
print(reward("Payout: 6,000.00 after the cap.", expected))
print(reward("Payout: 7,950.00", expected))
print(reward("The claim should be paid in full.", expected))Output
expected payout: 6000.0 1.0 0.0 0.0
The model is never asked whether its answer sounds right. It earns a reward only when the rule agrees, so a confident sentence without the right figure scores zero.
Where does it work, and where does it break?
RLVR suits tasks where a program can settle the answer: maths with a final number, code that passes tests, SQL that returns the right rows, and instructions with a rule a program can count. The Tulu 3 paper used it for maths and for precise instruction following, which it can check automatically with heuristics.
Where a checker can grade the answer
Has a checkable answer
Maths with a final number
exact match with the answer key
Code with unit tests
the tests pass or they fail
SQL that returns the rows
its rows match the expected rows
Needs a judgement
Tone of a support reply
no single right answer
A summary a lawyer likes
depends on the reader
RLVR can train it
a checker sets the reward
Judge model or people
a score from a judge or rater
- 1A checker can grade these, so the reward is one or zero.
- 2No checker exists, so a judge or a person scores them.
DeepSeek-R1-Zero used rule-based rewards for maths, coding and logical reasoning, and its authors said the success of pure RL depends on reliable reward signals.
“We select tasks with verifiable outcomes, such as mathematical problem-solving, and only provide rewards when the model's generations are verified to be correct.”
Tulu 3 paper
“This decision is predicated on our observation that neural reward models are susceptible to reward hacking during large-scale reinforcement learning.”
DeepSeek-R1 paper
The catch is reward hacking. A model can find a blind spot in the checker and collect rewards without solving the task. DeepSeek's paper defines it as a model exploiting flaws or biases in the reward function, which is why its team avoided learned reward models on reasoning tasks.
Tip
Asked what RLVR cannot do: it cannot grade taste or judgement. Say it needs a checkable answer, that a judge model or a person takes over for the rest, and that a checker should be tested against tricks.
What does the interviewer want to hear?
A strong answer covers
- A plain definition: reinforcement learning where code checks the answer and sets the reward.
- The difference from RLHF (reinforcement learning from human feedback): a checker instead of a reward model learned from human preferences.
- Where it works: maths, code with tests, SQL results and strict formats.
- Its risk: the model can game the checker, so the checker has to be tight.
- The honest limit: no checker, no RLVR. Tone and advice need a judge or a person.
- An example from your own work, with the checker you would build for it.
Common traps
Trap"A reward model can check any answer."
BetterA reward model is a learned guess. RLVR's point is a checker that can prove the answer right or wrong.
Trap"Any reinforcement learning with a score is RLVR."
BetterOnly when the score comes from a verifiable check. A human rating or a judge model's score is a different method.
Trap"A tight checker makes the model safe."
BetterA checker can still be gamed. Test it against tricks, and keep a person on risky outputs.
Can you spot the verifiable reward?
Spot the reward
A support team wants RLVR for its refund bot. Which reward can a checker verify?
Quick check
A bank wants a model that writes SQL for its loss reports. Which reward suits RLVR?
Can you answer these from memory?
Flash cards · tap a card to flip it
What will they ask next?
- Q288What is RLHF?10 min
- Q289What is a reward model?11 min
- Q290What is PPO in RLHF, simply?Coming soon
- Q291What is DPO?11 min
- Q241What is reward hacking?Coming soon
Last updated on 26 November 2026
Building a model that must follow strict business rules?
Venkat designs and builds AI products and agents (the UI and the system behind it), so book a short call and say what you need. No promises, no numbers.