esc
  • WorkflowsPages
  • Case studiesPages
  • Machine Learning FoundationsLearn
  • AI EngineeringLearn
  • AI Guardrails & Red TeamingLearn
  • UI/UXLearn
  • Design SystemsLearn
  • Production System DesignLearn
  • AI papersPages
  • Interview KitPages
  • Book a callContact
  • Download ResumeContact
Let’s talk

I’ll build the agent for it.

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.

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

  1. 1The task goes in, with an answer key or tests behind it.
  2. 2The model's answer goes to the checker.
  3. 3The checker finds the answer right, so the reward is one.
  4. 4The checker finds it wrong, so the reward is zero.
  5. 5Weights move toward the answers that got a one.
  6. 6A zero counts against that try, compared with the others.
A task goes to the model, which writes several answers. Code checks each one and gives a reward of one or zero, and the model learns from that score. No person or judge model sits in the loop.
  1. 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. 2

    Sample several tries

    The model writes a handful of answers to the same prompt, so they can be compared with each other.

  3. 3

    Run the checker

    Code compares each answer with the key or runs the tests. A pass gives one, a fail gives zero.

  4. 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.

Python
# 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

  1. 1A checker can grade these, so the reward is one or zero.
  2. 2No checker exists, so a judge or a person scores them.
Tasks with one checkable result suit RLVR, such as maths, code with tests and SQL. Tone and the quality of writing have no checker, so a judge or a person has to score 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

1 / 6

What will they ask next?

  1. Q288What is RLHF?10 min
  2. Q289What is a reward model?11 min
  3. Q290What is PPO in RLHF, simply?Coming soon
  4. Q291What is DPO?11 min
  5. 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.