Slopfluencer

Notes › AI › Models and training

RL with verifiable rewards

Reinforcement learning with verifiable rewards (RLVR) trains a language model by letting it attempt problems and rewarding the attempts that a program confirms are correct. The checker might run unit tests against generated code, compare a math answer with the known result, or confirm that a puzzle is solved. No person and no learned model judges the answer, so the reward is cheap to compute for millions of attempts and hard to win with an answer that only looks right.

The method is behind the reasoning models of 2025 and 2026, which learned to write out long chains of intermediate steps because doing so made their final answers pass the checker more often.[3] It works only where a program can tell right from wrong, and a model trained this way learns whatever the checker actually rewards. That has moved much of the effort in post-training from algorithms to building checkable tasks, and it ties this subject closely to evaluation, since a good eval and a good training task are often the same thing.

Background

Reinforcement learning (RL) for language models first became common as reinforcement learning from human feedback. People ranked pairs of answers, a separate reward model learned to predict those rankings, and the language model was trained to score well with the reward model. A learned reward model can be gamed, because the language model finds answers the reward model likes that people would not.

Verifiable rewards remove that middle layer for tasks with checkable answers. The term was coined in the Tulu 3 report from the Allen Institute for AI in November 2024, which used it as one stage of an open post-training recipe.[2] DeepSeek-R1, released in January 2025, applied the method to a frontier-sized model on math and coding. Its authors reported that reasoning could be encouraged through RL alone, without human-written reasoning examples, and that self-reflection, verification and changes of strategy emerged during training.[3] The broader picture of how RL fits next to fine-tuning and distillation is in Adapting language models.

Earlier work had already used correct answers as a filter. STaR, in 2022, had a model write out its reasoning for many questions and fine-tuned it only on the reasoning that reached the right answer, then repeated the loop.[17] Quiet-STaR extended the idea in 2024 to ordinary text, where the model learns to write a short rationale at each token that helps it predict the text that follows. After continued pretraining this way, its zero-shot accuracy on GSM8K, a set of grade-school math word problems, rose from 5.9 to 10.9 percent with no fine-tuning on that task.[19]

How it works

The training loop

Each training step takes a batch of prompts, samples several attempts at each, runs the checker on every attempt and updates the model to make the rewarded attempts more likely. The most widely used update rule is group relative policy optimization (GRPO), introduced with the DeepSeekMath models in 2024 as a lighter version of PPO (proximal policy optimization), an older reinforcement-learning update rule.[1] GRPO compares each attempt with the other attempts at the same prompt. An attempt that beat its group's average is reinforced, one that fell below it is discouraged, and no separate model is needed to estimate how good an attempt was, which saves memory.

Outcomes or steps

A checker usually scores only the final answer. The alternative is to score every step of the reasoning. A 2023 OpenAI study compared the two on competition math problems from the MATH dataset and found that a reward model trained on feedback for each step beat one trained only on final answers. Its best model solved 78 percent of a representative subset of the test set, and the step-level reward model was trained on 800,000 labels written by people, released as PRM800K.[18] Step-level rewards are costly because people, or a model trained on their labels, must judge each step, while an outcome check needs only the known answer. Most RLVR work therefore rewards outcomes.

Environments

A set of tasks together with its checker is called an environment. Reasoning Gym, released in May 2025, offers more than a hundred generators and checkers across algebra, logic, geometry, graph problems and games. Because the problems are generated, it can produce an endless supply at adjustable difficulty, instead of a fixed dataset the model will eventually memorize.[5]

Agent training uses larger environments, such as a sandbox with a code repository, a terminal and a test suite. In August 2026 a researcher behind the GLM open models reported, without published data, large gains from a month of RL on long, multi-step environments in a release whose base model, architecture and parameter count were unchanged from its predecessor.[8] In November 2026 Hugging Face released a small open model adapted with RL to one agent harness, Pi. Rewarding successful solutions and efficient tool use let it reach the same score on Terminal-Bench, a benchmark of command-line tasks, in 25 minutes instead of 60, and the release included 2,597 environments for others to use.[9]

The checker can measure more than correctness. CUDA Agent, published in February 2026, trained a model to write GPU kernels in an environment that verified each kernel and profiled its speed, and used those results as the reward. Its kernels were faster than those from torch.compile, PyTorch's built-in compiler, in 100, 100 and 92 percent of cases across the three levels of the KernelBench benchmark, and on the hardest level it beat Claude Opus 4.5 and Gemini 3 Pro, two frontier models of the time, by about 40 percent.[20] Environments are also spreading past software. AECBench, released in June 2026, is a framework for building checkable tasks from physical engineering work, which one RL researcher called an engineering environment for "atoms not bits."[22]

Training on long, multi-turn tasks is less stable than on single answers. A December 2025 post described work in which small open models trained for web search stopped after one or two searches and scored about 10 percent on the BrowseComp-Plus benchmark. With changes to RL training stability and data processing, the models searched for 15 to more than 20 turns and reached 30 percent.[21]

Sparse rewards

A pass-or-fail reward says nothing about which part of an attempt was right. Several 2026 methods try to get more signal from the same checker. Self-Distillation Zero trains one model both to answer and to revise its answer given the reward, then teaches the answering role to produce what the revising role would; on math and code it improved at least 10 percent over the base models and beat GRPO with the same questions and sample budget.[6] Another method contrasts the shortest correct attempt in a group with the longest wrong one to locate where the wrong attempt went astray, and beat GRPO in all nine model and benchmark combinations it tested.[7]

History and timeline

  • Mar 2022: STaR fine-tunes a model on its own reasoning that reached correct answers.[17]
  • May 2023: a study finds that rewarding each reasoning step beats rewarding only the final answer on competition math.[18]
  • Feb 2024: DeepSeekMath introduces GRPO.[1]
  • Mar 2024: Quiet-STaR trains a model to write rationales that help it predict ordinary text.[19]
  • Nov 2024: The Tulu 3 report names the method RLVR.[2]
  • Jan 2025: DeepSeek-R1 shows reasoning emerging from RL with checkable rewards.[3]
  • Apr 2025: A study questions whether RLVR teaches new reasoning or only sharpens what the base model already had.[4]
  • May 2025: Reasoning Gym publishes procedurally generated environments.[5]
  • Dec 2025: stable multi-turn RL lets small models search for 20 or more turns instead of one or two.[21]
  • Feb 2026: CUDA Agent rewards GPU kernels for measured speed.[20]
  • Apr to May 2026: Self-distillation methods turn pass-or-fail rewards into denser training signals.[6][7]
  • Jul 2026: I argue that RL, unlike distillation, can take a model past its teacher.[10]
  • Aug 2026: I propose crowdsourcing environments through a puzzle-making platform.[14][15]
  • Aug 2026: a researcher behind GLM reports, without published data, large gains from RL on long environments with the model's size held fixed.[8]
  • Nov 2026: An RL-adapted small model and 2,597 environments are released for an open agent harness.[9]

My position

RL is how models get past the limits of their training data. Distillation is a form of synthetic data generation, and a student trained on a teacher's outputs tops out at the teacher's level.[10] Supervised fine-tuning teaches what the samples show plus some limited generalization nearby. RL lets a model try things and follow them further, the way a musician learns more from a piano than from a book of recordings.[11] Another observer of reasoning models put it the same way in September 2026. Fine-tuning on synthetic reasoning traces made a model only slightly better, if at all, and the gain came from RL.[23]

That makes verifiable environments the scarce input. A new programming language designed for models rather than people, for example, would need generated training data and environments that check programs before RL could make models fluent in it.[12][13] Environments are slow to build by hand, so a platform that makes building them easy and fun, in the way Roblox makes building games easy, could get people to make them, with bounties for the kinds of tasks companies want trained.[14][15]

Criticism and counterpoints

An April 2025 study tested whether RL adds new abilities at all. Measuring how often a model solves a problem in any of many tries (pass@k at large k), the authors found that RLVR-trained models beat their base models when allowed one try, but the base models solved more problems when allowed many. Their reading is that current RLVR does not create new reasoning patterns. It makes the model more reliable at ones the base model could already produce, and six popular RLVR algorithms all stayed well short of the base model's potential. In their tests distillation from a stronger teacher, not RL, introduced new patterns.[4] That runs directly against my view above, and the authors themselves suggest that longer training and multi-turn interaction with environments may be needed to change it.

A checker only checks what it was written to check. Tests that miss a case reward code that passes the tests without being correct, and a model trained against weak checks learns to exploit them. This is the same problem that makes public benchmarks unreliable (Evals and benchmarks).

The long reasoning that RLVR produces is not always worth its cost. In April 2026 one developer argued that reasoning makes models more expensive and rarely helps outside novel problems, which are a small share of everyday work.[24] An evaluation of Qwen3.6 27B, an open model from Alibaba, the following month found that capping reasoning length or forcing a structured chain of thought cut cost on a few tasks without losing accuracy, but that in most settings turning reasoning off entirely was better for both tokens and accuracy.[25]

Many valuable tasks have no checker at all, such as writing, design or judging what a user wanted. Training on them falls back to rubrics and LLM judges, which brings back the gaming problem verifiable rewards were meant to avoid.

Training on a harness's own environments raises a tension with the goal of general models. The Pi-adapted model was faster in its harness,[9] but I have argued that tying models to one harness admits defeat on generality.[16]

Open questions

  • Does more RL, on longer and more varied environments, produce abilities the base model lacked, or only sharpen existing ones?
  • Who builds and maintains environments for fields where no company has an incentive to?
  • Can dense self-distillation signals replace much of the sampling that pass-or-fail rewards need?
  • How can checkers be audited for loopholes before a model learns to use them?
  • Do reasoning traces that explore more alternatives lead to better answers, and could traces be compressed without losing anything?[26]
  • What environments could be built from records of ordinary business processes?[27]

Change log

  • 2026-12-03: First written, from the RLVR and GRPO papers, 2026 self-distillation work and my posts from July and August 2026.
  • 2026-12-03: Enriched with the STaR and Quiet-STaR precursors, step-level versus outcome rewards, speed-based rewards for GPU kernels, engineering and multi-turn search environments, the cost of long reasoning, and two open questions from my posts.

See also

Reading

References

  1. ^ Shao et al., DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models
  2. ^ Lambert et al., Tulu 3: Pushing Frontiers in Open Language Model Post-Training
  3. ^ DeepSeek-AI, DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learning
  4. ^ Yue et al., Does Reinforcement Learning Really Incentivize Reasoning Capacity in LLMs Beyond the Base Model?
  5. ^ Stojanovski et al., Reasoning Gym: Reasoning Environments for Reinforcement Learning with Verifiable Rewards
  6. ^ He et al., Self-Distillation Zero: Self-Revision Turns Binary Rewards into Dense Supervision
  7. ^ Tan et al., Self-Supervised On-Policy Distillation for Reasoning Language Models
  8. ^ Scale RL and long-horizon environments, not parameters (@jietang, Aug 2026)
  9. ^ A small model trained with RL for one specific agent harness (@ClementDelangue, Nov 2026)
  10. ^ Distillation is synthetic data capped by the teacher; RL is how models exceed it (@trashpandaemoji, Jul 2026), since deleted
    @oneill_c At the end of the day distillation is just another form of synthetic data generation. It caps out at the teacher model’s limits. RL is how models exceed the limits.
  11. ^ SFT gives you the sample, RL gives you new capabilities (@trashpandaemoji, Aug 2026), since deleted
    @loktar00 That’s interesting. Supervised Fine Tuning (SFT) is exactly this but you also get some capabilities local to the sample, basic limited generalization. RL is where you get new capabilities. Like giving a musician a piano and letting them try stuff and going down rabbit holes.
  12. ^ A language built for models, not human ergonomics (@trashpandaemoji, Jul 2026), since deleted
    @davidcrawshaw You can decouple the language features from human ergonomics. I don’t know that much about programming languages, but I bet you can do some crazy shit once you remove the constraint of making it accessible so humans can write it. All you need is to be able to generate enough…
  13. ^ And have verifiable environments so you can RL on it (@trashpandaemoji, Jul 2026), since deleted
    @davidcrawshaw And have verifiable environments so you can RL on it.
  14. ^ A platform that makes creating puzzles easy (@trashpandaemoji, Aug 2026), since deleted
    @rickasaurus Yeah. You need like a platform to make creating these puzzles easy. Like Roblox or like a game maker platform. Then you can get people to make the puzzles for you.
  15. ^ Then you have RL environments; put bounties on the data companies want (@trashpandaemoji, Aug 2026), since deleted
    @rickasaurus Then you have a bunch of RL environments. Maybe put bounties on data that companies want to incentivize creating it.
  16. ^ Training models for one harness admits defeat (@trashpandaemoji, Aug 2026), since deleted
    @NousResearch @firesidealpha I thought the whole point was to build generalizable models. Tying them to the harness kinda admits defeat?
  17. ^ Zelikman et al., STaR: Bootstrapping Reasoning With Reasoning
  18. ^ Lightman et al., Let's Verify Step by Step
  19. ^ Zelikman et al., Quiet-STaR: Language Models Can Teach Themselves to Think Before Speaking
  20. ^ Dai et al., CUDA Agent: Large-Scale Agentic RL for High-Performance CUDA Kernel Generation
  21. ^ Stable multi-turn search RL takes 8B models from 2 to 20+ search turns (@byebyescaling, Dec 2025)
  22. ^ A framework for verifiable engineering environments (@willccbb, Jun 2026)
  23. ^ SFT on synthetic reasoning traces barely helps; the gain came from RL (@flowersslop, Sep 2026)
  24. ^ Reasoning is costly and rarely helps outside novel problems (@0xSero, Apr 2026)
  25. ^ Reasoning budgets and structured chains of thought underwhelm on Qwen3.6 27B (@bnjmn_marie, May 2026)
  26. ^ Do reasoning traces that explore more perform better, and can they be compressed? (@trashpandaemoji, Aug 2026), since deleted
    @jxmnop Interesting findings! I’m curious if you can use this technique to artificially expand reasoning traces. For example do reasoning traces that perform more exploration perform better? Or could you compress reasoning traces losslessly?
  27. ^ What environments could be built from business-process data? (@trashpandaemoji, Aug 2026), since deleted
    @dejavucoder I’m very curious what kind of environments you could build from a dataset like this. Like standard business process stuff?