Nestor G Pestelos Jr · Reference · Print this page

Artificial Intelligence · Model Post-Training

Reinforcement Learning with Verifiable Rewards (RLVR)

Reference entry · last updated September 10, 2026

Reinforcement learning with verifiable rewards (RLVR) is a post-training method that optimizes a language model policy against a reward computed by a deterministic checker rather than a learned reward model. The reward is usually binary: a completion scores 1 when an automatic verifier confirms it is correct, such as an exact-match answer key for mathematics, a unit-test suite for code, or a proof checker for formal logic, and 0 otherwise. It is the training signal behind the 2025 generation of reasoning models, and is also written "reinforcement learning from verifiable rewards."

1. First Principles: Verification as the Reward

RLVR applies to the subset of tasks where correctness is decidable by a program and the correct answer is already known for each training prompt. On that subset the reward function needs no modeling. For a prompt \(x\) with reference answer \(a_x\), the reward for a sampled completion \(y\) is the output of a verifier \(V\):[4, 5]

$$r(x, y) = \mathbb{1}\big[\, V(y, a_x) = \text{correct} \,\big] \in \{0, 1\}$$

The policy is then optimized with the same KL-regularized reinforcement learning objective used in RLHF, with the learned reward model replaced by this rule:

$$\max_\theta \; \mathbb{E}_{x \sim \mathcal{D},\, y \sim \pi_\theta(\cdot \mid x)} \big[ r(x, y) \big] - \beta \, D_{\text{KL}}\big(\pi_\theta(y \mid x) \,\|\, \pi_{\text{ref}}(y \mid x)\big)$$

Removing the learned reward model removes the failure surface it introduces. There is no reward-model overoptimization in the usual sense, because on the covered prompts the reward is ground truth rather than a fitted approximation of it. Preference data collection, rater disagreement, and the Bradley-Terry modeling assumption all drop out.

Two constraints define the method's reach. Coverage: a prompt is only usable if a verifier and a reference answer exist for it, which excludes open-ended writing, judgment, and most dialogue. Specification: the verifier defines "correct," so any gap between the verifier and true correctness is a gap the policy can learn to exploit. Goodhart's law returns at the level of the checker rather than a reward model.

2. The Training Loop

The pipeline that produced DeepSeekMath and the DeepSeek-R1 reasoning models runs a single reinforcement learning stage after supervised fine-tuning, or in the R1-Zero case directly on the base model.[4, 6]

2.1 Prompt Set with Known Answers

Training data is a set of prompts paired with reference answers, not demonstrations of the full solution. Common sources are math datasets with final-answer keys such as GSM8K and MATH,[1, 2] competitive-programming problems with test suites, and formal-theorem statements with machine-checkable proofs. The model must produce the reasoning itself; only the endpoint is graded.

2.2 The Verifier and the Reward

For each prompt the policy samples one or more completions, and each completion is scored by the verifier. Verifiers are domain-specific: symbolic equivalence checking against the answer key for mathematics, execution against unit tests for code, a proof assistant for formal logic. Implementations frequently split the reward into an accuracy term and a format term, for example rewarding a required answer delimiter or a reasoning block, so that the total is

$$R(x, y) = r_{\text{answer}}(x, y) + \lambda \, r_{\text{format}}(y)$$

The format term is itself a small rule-based specification and a common target for reward hacking.

2.3 Policy Update with GRPO

The policy gradient step most associated with RLVR is Group Relative Policy Optimization (GRPO), introduced with DeepSeekMath as a variant of PPO that removes the value network.[4, 7] For each prompt \(q\), GRPO samples a group of \(G\) completions \(\{o_1, \dots, o_G\}\), scores each with the verifier to get rewards \(\{r_1, \dots, r_G\}\), and standardizes within the group to form the advantage:

$$\hat{A}_i = \frac{r_i - \operatorname{mean}(\{r_1, \dots, r_G\})}{\operatorname{std}(\{r_1, \dots, r_G\})}$$

The group mean replaces the learned baseline, so completions are rewarded for beating their siblings on the same prompt. The update uses a PPO-style clipped ratio; see reinforcement learning for that objective in full. PPO with a value model is also used for RLVR; GRPO's appeal is lower memory during long-context reasoning rollouts.

3. Relationship to RLHF and Process Supervision

RLVR and RLHF share the reinforcement learning objective and differ in where the reward comes from. RLHF fits a reward model to human preference comparisons and optimizes against it;[8] RLVR replaces that model with a rule.

RLHFRLVR
Reward sourceReward model fitted to human comparisonsDeterministic verifier against a known answer
Training dataPairwise preference labelsPrompts with reference answers
Main failure surfaceReward-model overoptimization, rater bias, sycophancyVerifier gaming, coverage gaps, false negatives
Domain reachAny task a human can judgeOnly machine-checkable tasks
Typical useHelpfulness, tone, safetyMathematics, code, formal reasoning

The two are complementary rather than exclusive. A production post-training recipe such as Tulu 3 runs supervised fine-tuning, then preference optimization, then RLVR as a later stage aimed at the verifiable skills.[5]

Along a second axis, RLVR as usually practiced is outcome supervision: it grades the final answer and says nothing about the steps. Process supervision instead scores each reasoning step, which Lightman et al. found trains a more reliable reward model on the MATH benchmark than outcome supervision does.[3] Process rewards require step-level labels or a trained process reward model and lose the "no learned reward model" property that makes outcome RLVR simple.

4. Verifiable Domains and Their Checkers

The common thread is a cheap, deterministic, low-false-positive check. Where a check is expensive, stochastic, or easily satisfied by a wrong answer, RLVR degrades toward the reward-hacking behavior it is meant to avoid.

5. Empirical Results

DeepSeekMath applied GRPO with rule-based math rewards and raised a 7B model's MATH accuracy well above its supervised baseline, establishing the recipe.[4] Tulu 3 reported that adding RLVR as a final stage improved targeted skills such as mathematics and precise instruction following without a general regression.[5] DeepSeek-R1 scaled the approach: an RL-only variant, R1-Zero, was trained from the base model with verifiable rewards and no supervised reasoning traces, and developed long chains of thought, self-checking, and backtracking on its own, though with readability and language-mixing problems that a supervised cold-start stage then addressed.[6]

6. Limitations and Open Questions

7. Development

See also

References

  1. [1] K. Cobbe, V. Kosaraju, M. Bavarian, et al., "Training Verifiers to Solve Math Word Problems," arXiv:2110.14168, 2021. https://arxiv.org/abs/2110.14168
  2. [2] D. Hendrycks, C. Burns, S. Kadavath, et al., "Measuring Mathematical Problem Solving With the MATH Dataset," in NeurIPS Datasets and Benchmarks, 2021. https://arxiv.org/abs/2103.03874
  3. [3] H. Lightman, V. Kosaraju, Y. Burda, et al., "Let's Verify Step by Step," in ICLR, 2024. https://arxiv.org/abs/2305.20050
  4. [4] Z. Shao, P. Wang, Q. Zhu, et al., "DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models," arXiv:2402.03300, 2024. https://arxiv.org/abs/2402.03300
  5. [5] N. Lambert, J. Morrison, V. Pyatkin, et al., "Tulu 3: Pushing Frontiers in Open Language Model Post-Training," arXiv:2411.15124, 2024. https://arxiv.org/abs/2411.15124
  6. [6] DeepSeek-AI, "DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learning," arXiv:2501.12948, 2025. https://arxiv.org/abs/2501.12948
  7. [7] J. Schulman, F. Wolski, P. Dhariwal, A. Radford, and O. Klimov, "Proximal Policy Optimization Algorithms," arXiv:1707.06347, 2017. https://arxiv.org/abs/1707.06347
  8. [8] L. Ouyang, J. Wu, X. Jiang, et al., "Training language models to follow instructions with human feedback," in NeurIPS, 2022. https://arxiv.org/abs/2203.02155
  9. [9] Y. Yue, Z. Chen, R. Lu, A. Zhao, et al., "Does Reinforcement Learning Really Incentivize Reasoning Capacity in LLMs Beyond the Base Model?," arXiv:2504.13837, 2025. https://arxiv.org/abs/2504.13837
  10. [10] R. Shao, et al., "Spurious Rewards: Rethinking Training Signals in RLVR," arXiv:2506.10947, 2025. https://arxiv.org/abs/2506.10947