RL for LLM Agents

Verifiable Rewards: Training Reasoning Models Without a Learned Reward Model

How rule-based checks on answers and code replace a learned scorer, and where weak verifiers still leak.

RL for LLM Agents · 5 min read

For math, code and logic puzzles, you can check the final answer automatically. Training a model with that signal, instead of a learned reward model, has become a central technique for reasoning models.

What makes a reward verifiable

A verifiable reward comes from a rule or a program: the final number matches the reference answer, the code passes the unit tests, or the proof checker accepts the proof. There is no learned scorer to fool, which removes one big source of reward hacking.

The training loop

Sample several solutions per problem, give each a reward of one if it is verified correct and zero otherwise, and update the policy to make the successful attempts more likely. Group-based methods use the average reward across a problem’s samples as the baseline, so each solution is judged relative to its siblings.

What can still go wrong

  • Weak verifiers: tests that are too few let wrong programs pass, and the model learns to exploit them.
  • Answer-only checks reward lucky guesses on multiple-choice or small-answer problems.
  • Format tricks: models can learn to satisfy a parsing rule without solving the problem.
  • Problems that are too hard (always zero reward) or too easy (always one) give no learning signal.

Practical tips

Filter the problem set for a mix of difficulty so most problems yield both successes and failures. Audit a sample of rewarded solutions by hand. Evaluate on held-out problems with a verifier the policy never trained against.

More guides from this book