Research
Reinforcement learning with a theorem prover
Training a language model with reinforcement learning where the only reward is a proof checker saying the answer is right.
- Model
- Qwen3-8B
- GSM8K
- 79.0% → 86.5%
- Safety
- No loss on five benchmarks
- Status
- Paper, not public yet
The idea
Reinforcement learning for math usually rewards a model when its final answer matches a key. That rewards lucky guesses and sloppy reasoning that happens to land. Lean is a theorem prover: a program that only accepts a proof when every step checks. Rewarding the model only when Lean verifies its answer means it's rewarded for being provably right.
The result
I co-authored a paper where we trained Qwen3-8B with reinforcement learning, rewarded only for answers the Lean theorem prover verifies. On GSM8K, a set of grade-school math problems, accuracy rose from 79.0% to 86.5% (n=200, p=0.0046), with no loss on five safety benchmarks.
I'll link the paper here once it's public.