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.
| RLHF | RLVR | |
|---|---|---|
| Reward source | Reward model fitted to human comparisons | Deterministic verifier against a known answer |
| Training data | Pairwise preference labels | Prompts with reference answers |
| Main failure surface | Reward-model overoptimization, rater bias, sycophancy | Verifier gaming, coverage gaps, false negatives |
| Domain reach | Any task a human can judge | Only machine-checkable tasks |
| Typical use | Helpfulness, tone, safety | Mathematics, 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
- Mathematics. Final-answer comparison with symbolic normalization to accept equivalent forms. The dominant testbed; also the domain where false negatives from imperfect equivalence checking are most reported.
- Code. Compilation plus a unit-test suite, with the pass rate or a pass/fail bit as reward. The verifier is only as complete as the tests.
- Formal proofs. A proof assistant such as Lean accepts or rejects a candidate proof. The strongest form of verification, with the narrowest data supply.
- Constrained instruction following. Instructions with checkable constraints, such as a word count, a required keyword, or valid JSON, admit a rule-based check.[5]
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
- Domain ceiling. RLVR trains only what a verifier can score. It adds no signal for style, helpfulness, or safety, so it supplements preference tuning rather than replacing it.
- Capability extension versus sampling. Yue et al. found that across large sampling budgets, base models reach a higher pass@k than their RLVR-tuned versions, and argue RLVR mostly reweights toward solutions the base model could already produce rather than adding new reasoning ability.[9]
- Reward-signal attribution. Shao et al. showed that random or spurious rewards produce large math gains for Qwen models by eliciting pretrained behavior, while the same signals barely help Llama3 or OLMo2, which complicates claims that a specific reward drove a specific gain.[10]
- Verifier gaming. The policy can learn to satisfy the checker without solving the task, for example matching an answer format while reasoning incorrectly, or exploiting weak unit tests. See reward hacking.
- Verifier coverage. Equivalence checkers reject valid alternative answers (false negatives) and weak checkers accept wrong ones (false positives). Both inject label noise the policy optimizes against.
7. Development
- 2021. Cobbe et al. introduce GSM8K and train a separate verifier to rank sampled math solutions;[1] Hendrycks et al. release the MATH dataset.[2]
- 2023. Lightman et al. compare process and outcome supervision on MATH and release step-level labels.[3]
- 2024. DeepSeekMath introduces GRPO with rule-based math rewards;[4] Tulu 3 names the method "Reinforcement Learning with Verifiable Rewards" and ships it as a post-training stage.[5]
- 2025. DeepSeek-R1 and R1-Zero demonstrate reasoning trained largely or entirely by verifiable rewards;[6] Yue et al. and Shao et al. publish limiting analyses.[9, 10]
See also
References
- [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] 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] H. Lightman, V. Kosaraju, Y. Burda, et al., "Let's Verify Step by Step," in ICLR, 2024. https://arxiv.org/abs/2305.20050
- [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] 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] DeepSeek-AI, "DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learning," arXiv:2501.12948, 2025. https://arxiv.org/abs/2501.12948
- [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] 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] 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] R. Shao, et al., "Spurious Rewards: Rethinking Training Signals in RLVR," arXiv:2506.10947, 2025. https://arxiv.org/abs/2506.10947