# RLVR (reinforcement learning with verifiable rewards)

Reinforcement learning with verifiable rewards trains a language model on tasks where a program, not a learned reward model, decides whether an answer is right. This entry covers where the term comes from, how a training step works, which tasks can be verified, and why search-equipped tasks need a fixed cutoff date.

Reinforcement learning with verifiable rewards (RLVR) is a post-training method in which a language model is rewarded only when a deterministic check confirms its answer is correct, such as an exact match on a math result or a passing test suite for code.

**One RLVR training step**

```text
  prompt with known answer
            │
            ▼
   ┌─────────────────┐
   │  policy model   │──▶ samples G completions
   └─────────────────┘
            │
            ▼
   ┌─────────────────┐   exact match, unit tests,
   │    verifier     │◀─ constraint check
   └─────────────────┘
            │ reward = 1 if correct, else 0
            ▼
   policy update (PPO, GRPO, ...)
```

## What is RLVR?

The term comes from AI2's [Tülu 3 paper](https://arxiv.org/abs/2411.15124) (November 2024), which described RLVR as the existing RLHF objective with the learned reward model replaced by a verification function. Tülu 3 applied it to math word problems and instruction-following constraints. DeepSeek-R1 used the same idea at larger scale, with [rule-based accuracy and format rewards](https://www.nature.com/articles/s41586-025-09422-z) and the GRPO algorithm, and showed that reasoning behavior could emerge from RL on a base model alone.

The appeal is that the reward can't be flattered. A reward model trained on human preferences can learn to like confident or long answers. A verifier only checks whether the answer is right.

## How it works

For each prompt, the policy samples one or more completions. A verifier extracts the final answer and compares it with the reference: exact match for a number, a test run for a patch, a parser for a format constraint. Correct completions earn a reward and incorrect ones don't. An RL algorithm such as PPO or GRPO then shifts the policy toward the completions that scored. Because the check is a program, it runs millions of times at low cost and gives the same result each time.

## Key characteristics

- **Needs tasks with known answers.** Math, code with tests, structured extraction, resolved forecasts, and questions with checked answers all qualify. Open-ended writing mostly doesn't.
- **Sparse reward.** Most setups score only the final answer, so the model gets no credit for a good approach that ends in a wrong result.
- **Vulnerable to shortcuts.** Any path to the right answer earns the reward, including ones the task didn't intend. See [reward hacking](https://parallel.ai/learn/reward-hacking).
- **Sensitive to the environment.** Tools the model can call during training, such as search, become part of what it learns to exploit.

## Example

A lab trains a research agent on questions whose answers resolved in 2026, such as product launch dates. The agent can call a web search tool. If that tool reads the live web, the agent learns to look up the resolved date and the reward stops measuring research skill. If the tool answers from a [point-in-time search](https://parallel.ai/learn/point-in-time-search) pinned to the date each question opened, the agent has to reason from the evidence available then, and the verifier still checks against what actually happened. Parallel's [Lookback](https://docs.parallel.ai/search/lookback) supports this pattern on its Search and Extract APIs.

## Related terms

- [RL environment](https://parallel.ai/learn/rl-environment): the tasks, tools, and verifier an RLVR run trains against.
- [Reward hacking](https://parallel.ai/learn/reward-hacking): when a policy earns reward without doing the intended task.
- [Look-ahead bias](https://parallel.ai/learn/look-ahead-bias): using information from after the simulated date.
- [Web search for reinforcement learning](https://parallel.ai/articles/web-search-for-reinforcement-learning): how to keep search on during post-training.

## FAQ

**How is RLVR different from RLHF?**

RLHF trains a reward model on human preference comparisons and optimizes the policy against it. RLVR replaces that reward model with a deterministic check, so it only works where correctness can be verified.

**Is GRPO the same as RLVR?**

No. GRPO is an RL algorithm that estimates advantages from a group of sampled completions instead of a separate critic. RLVR is a choice of reward. They are often used together.

**Can RLVR train agents that use tools?**

Yes. Search, code execution, and browsing tools become part of the environment, and the verifier scores the final answer. The tools then need the same care as the reward, since a tool that exposes the answer turns into a shortcut.

[**Start Building**](https://docs.parallel.ai/home)
