RLVR

RLVR, reinforcement learning with verifiable rewards, trains a model on tasks whose answers a program can check, such as math or code with tests.

RLVR stands for reinforcement learning with verifiable rewards. It trains a model on tasks where a program can check whether an answer is correct. Examples are math problems with known answers and coding tasks with tests. The model gets a reward when the check passes, and no reward when it fails.

The model tries each task many times, and each attempt is called a rollout. A verifier checks every rollout and gives its reward. Training then makes the model more likely to produce the steps that led to correct answers. Because the reward comes from a check and not from a learned model, it is harder to fool, although a weak check can still be exploited.

RLVR is a key method for training reasoning models and coding agents. Coding tasks need the answer to run, so each rollout runs the code and its tests in an environment. Training runs very many rollouts in parallel, and each one needs to be isolated and start from the same state. Sandboxes provide this, often as many short-lived copies of the same reinforcement learning environment.