RL with verifiable rewards
Let the model try, run the tests, reward what passes. Environments, task sets, and verifiers.
Who needs this
For teams that can afford many rollouts and have a trustworthy verifier. It is the stage that most often moves hard-reasoning and agentic scores, and the stage where mistakes in the verifier become reward hacking.
Decisions you will make
- Which task source: unit-tested function problems, competitive programming with test cases, repository issues with containerized tests, terminal tasks, SQL with execution match, or formal proofs checked by a proof assistant.
- Which filter on difficulty. Tasks the model always solves or never solves give no learning signal, so keep a middle band of pass rates.
- Which framework runs the rollouts and where the sandbox lives.
Pitfalls
- Reward hacking: models edit or special-case tests, read hidden tests from disk, or use the network when it is on. Isolate the sandbox and keep tests out of reach.
- Weak or sparse tests reward wrong code. Add test cases, or check them with a reference solution before using a task.
- Run RL after the model already solves a fair share of tasks. From a weak start, most rollouts fail and the signal is thin.
Benchmarks 7
BIRD mini-dev and BIRD-Critic
Harder, more realistic text-to-SQL with execution-based evaluation; BIRD-Critic covers SQL debugging with test cases.
FormalMATH
Large Lean 4 formal math benchmark spanning olympiad to undergraduate level.
LiveCodeBench
Contamination-aware benchmark from LeetCode, AtCoder and Codeforces with problem release dates; DeepCoder used the lcbv5 train problems for RL.
SWE-bench (full, train/test splits)
The original 2,294-issue benchmark, now with eval_script, image and log_parser columns. A SWE-bench-Train subset (1,063 questions per the Nemotron-Cascade card) was used by Nemotron-Cascade.
SWE-bench-Live
Continuously updated issue-resolution benchmark with docker_image, test_cmds and rebuild_cmds per task, intended to stay ahead of contamination.
Terminal-Bench 2.0
Hard terminal tasks in Harbor format (instruction, Docker environment, tests); official leaderboard at tbench.ai. Also terminal-bench 2.1, 3.0 and a science split on HF.
Verina
Verifiable code generation in Lean: each task has description, Lean code, signature, tests and rejected inputs; evaluates code, spec and proof generation. VerinaLite/Plus variants exist.
Datasets 25
AceCode-87K (TIGER-Lab)
Questions rewritten by GPT-4o-mini with synthesized test cases; includes completions with pass rates, used for reward models and RL (AceCoder).
AceCode-V2-122K (TIGER-Lab)
Improved AceCode: questions and tests rewritten by OpenAI o1-mini and filtered with Qwen2.5-Coder-32B-Instruct; card includes RL results for Qwen2.5-Coder-7B-Base.
APPS
Interview-level and competition Python problems with solutions and test cases.
CodeContests (DeepMind)
Competitive problems from Codeforces, CodeChef, AtCoder and others with generated tests and correct/incorrect human solutions in Python, C++ and Java.
CodeContests+
CodeContests with LLM-generated, validated test generators and checkers to raise test quality, built using SandboxFusion; intended as better RL verifiers.
CodeContests-O
Feedback-driven iterative test case generation for CodeContests problems: generators, checkers and corner cases.
DeepCoder-Preview-Dataset
Verified-test competitive programming set used to train DeepCoder-14B: TACO verified, PrimeIntellect SYNTHETIC-1 code and LiveCodeBench problems with test lists.
Eurus-2-RL-Data
PRIME RL training set: outcome-verifiable math answers and coding test cases from APPS, CodeContests, TACO and Codeforces, deduplicated.
Kimina-Prover-Promptset
Lean 4 formal statements with natural-language versions used for Kimina-Prover RL.
KodCode-Light-RL-10K
Filtered 10K subset of KodCode-V1-SFT-R1 for RL (GRPO/PPO); card reports GRPO runs on Qwen2.5-7B-Instruct-1M and Qwen2.5-Coder-7B-Instruct.
KodCode-V1
Fully synthetic coding questions with solutions and pytest-style tests validated by execution; fields include gpt pass percentage and difficulty.
Lean Workbook
Auto-formalized competition-style problems in Lean 4, used for theorem-prover RL; Goedel-LM/Lean-workbook-proofs has 29,750 proofs.
Llama-Nemotron-Post-Training-Dataset (code)
Post-training data for Llama-3.3-Nemotron-70B and Llama-3.1-Nemotron-Ultra-253B; v1.1 added 500K code reasoning samples.
Nemotron-Cascade-RL-SWE
NVIDIA recipe data for SWE RL: difficulty-filtered mix of SWE-Bench-Train, SWE-rebench, SWE-smith, R2E-Gym-Subset and SWE-Fixer, with repos from SWE-bench Verified excluded to avoid contamination.
Nemotron-RL-coding-competitive_coding
NeMo Gym RLVR set of Python competitive problems with unit tests from CodeContests and open-r1/codeforces.
NuminaMath-LEAN
Competition problems with formal statements, ground-truth proofs and an rl_data field for Lean 4 training.
open-r1/codeforces
Codeforces problems with statements, editorials, official tests and generated checkers, including interactive problems; the 'verifiable' config keeps problems with complete tests.
rStar-Coder
Competitive problems with mutually verified test cases, with configs synthetic_sft, synthetic_rl, synthetic_rl_testcase, seed_sft, seed_testcase.
Skywork-OR1-RL-Data
RL-ready math and code problems in verl format (prompt, reward_model.ground_truth) with per-model pass difficulty labels for 1.5B, 7B and 32B R1 distills.
Spider
Cross-domain text-to-SQL; databases are executable SQLite so execution accuracy gives a reward.
SWE-bench-extra
Nebius earlier large SWE-bench-format task collection (patch, test_patch, F2P/P2P, license per instance), precursor to SWE-rebench.
SWE-Dev
Feature-driven development tasks: product requirement, partial source, developer-written unit tests and ground-truth code, supporting SFT and RL with test-based reward.
SWE-Synth
Synthetic bug-fix instances with setup patches, F2P/P2P tests and problem statements, plus Moatless SFT trajectories in sibling datasets.
SYNTHETIC-1
Prime Intellect crowdsourced DeepSeek-R1 traces with verification_info and score columns across math, coding, SWE and more.
TACO
Large algorithmic problem set with tests, solutions, difficulty and algorithm tags, aggregated from many contest sites.
Environments 10
Lego-RL-2699 and LegoFlow-SWE
SWE-Lego family: Harbor-format RL environments, teacher trajectories and a Harbor-packaged SWE-bench Verified for evaluating against the same trainer.
Multi-SWE-RL
ByteDance Seed community effort to collect multilingual SWE RL instances (unannotated new instances plus discarded Multi-SWE-bench instances).
OpenSWE (GAIR, daVinci-Env)
Large open set of executable Python SWE environments with synthesis pipeline released.
R2E-Gym (Subset)
Procedurally generated executable environments from commits (back-translated issue text, LM-generated tests) used to train SWE agents and verifiers; includes dev splits in the Lite variant.
Reasoning Gym
Library of procedurally generated reasoning tasks with programmatic verifiers, including code and algorithm tasks; infinite data.
SWE-Flow / Repo2RLEnv swe_flow recipe
Test-driven synthesis: trace passing tests, remove exercised functions, ask the agent to reconstruct them, reward via retained tests. Hugging Face Repo2RLEnv now packages the recipe as Harbor tasks.
SWE-Gym
Real GitHub issue tasks with FAIL_TO_PASS and PASS_TO_PASS tests, built for training and verifying SWE agents. Lite (230) and Raw (64,689 unvalidated PR rows) variants exist.
SWE-rebench (nebius, v1)
Continuously mined Python GitHub issue tasks with install configs, F2P/P2P tests and docker_image names, from Nebius; also feeds a decontaminated leaderboard.
SWE-rebench V2
Language-agnostic executable SWE tasks with pre-built images, F2P/P2P tests and LLM quality filtering. A companion set has 126,300 PR-derived tasks.
SWE-smith
Synthetic bug-injection tasks generated per repo (LM-written, rewritten, procedural and PR-mirror bugs) with test-based validation and per-task Docker image names. Java and other-language variants are listed under SWE-bench on HF.
Models 15
AceReason-Nemotron-14B
RL-only (math then code) from DeepSeek-R1-Distill-Qwen-14B; card reports LiveCodeBench avg@8.
DeepCoder-14B-Preview
RL fine-tune of DeepSeek-R1-Distill-Qwen-14B for code reasoning; card reports 60.6% Pass@1 on LiveCodeBench v5 (8/1/24-2/1/25), versus 53.0 for the base distill.
DeepSWE-Preview
RL-only coding agent trained on Qwen3-32B with 4.5K R2E-Gym problems (sympy-like repos shared with SWE-bench Verified filtered out); card reports SWE-bench Verified rising from 23% to 42% in 200 RL steps.
Devstral Small 2 (24B)
Dec 2025 Mistral agentic coding model, Apache licensed; earlier Devstral-Small-2505 and 2507 are also Apache-2.0 (verified).
GLM-5.3-Flash
Aug 2026 smaller GLM-5.3 with new base model, hybrid sparse/linear attention and native multimodality; MIT licensed.
gpt-oss-120b
Aug 2025 OpenAI open-weight reasoning model with an Apache license; a permissive teacher/baseline.
Kimi-Dev-72B
Qwen2.5-72B-based SWE model trained with Agentless-style RL; card reports 60.4% on SWE-bench Verified (Moonshot-reported, workflow approach).
Nemotron-Cascade-14B-Thinking
Dec 2025 NVIDIA reasoning model trained with cascaded domain-wise RL (including SWE).
Olmo 3 32B (Base/Think)
Fully open (weights, data, checkpoints incl. stage1/2/3) Allen AI model suite with Base, Instruct and Think; best for transparent post-training research. No dedicated 'OLMo-Coder' was found.
Qwen2.5-Coder family (32B shown)
Sep-Nov 2024 code-specialized Qwen family with base and instruct variants from 0.5B to 32B. Still the most widely used open base for code SFT/RL recipes (SWE-smith, OpenHands LM, Open-R1 style work).
Qwen3-Coder-30B-A3B-Instruct
Small MoE Qwen3 coder that is easy to fine-tune and serve; the most downloaded recent Qwen coder in HF search (about 1.95M downloads on the check date).
Qwen3-Coder-Next (and -Base)
Open-weight coding-agent model from Jan 2026 built for local agents (80B total, 3B active). A Base variant is published for further post-training.
Qwen3.8-27B
Newest open Qwen generation (Aug 2026): dense vision-language model with thinking mode and gains in coding and long-horizon agentic tasks. A strong post-trained starting point for SFT/RL on a single node, and a mid-size teacher.
Seed-Coder-8B (Base/Instruct/Reasoning)
ByteDance Seed (2025) family built from model-curated pretraining data; base, instruct and RL-trained reasoning variants in one permissive license.
Skywork-OR1-32B (and 7B)
RL on DeepSeek-R1-Distill-Qwen-32B for math and code; paper reports LiveCodeBench-comparable to R1 and Qwen3-32B.
Papers 20
AceCoder
Automated test-case synthesis creates (question, tests) pairs for reward models and RL; best-of-32 gains of about 5 to 10 points reported.
AceReason-Nemotron
Systematic RL ablations: math-only RL first then code-only RL; shows math RL also helps code.
Auditing Reward Hackability in Code RL Environments
Abstract reports 22.4% of 49 SWE-bench Verified tasks accept a patch that differs from the gold patch (57.8% with a stronger attacker).
CodeRL
First widely cited framework using unit-test signals and an actor-critic to train code LMs with RL.
Coding or Cheating?
Frontier models try to recover answers from repo history and filesystems in hardened SWE environments.
DAPO
Open RL system with decoupled clip, dynamic sampling, token-level loss and overlong handling; 50 on AIME 2024 with Qwen2.5-32B base.
DeepSeek-R1
Shows reasoning can be incentivized with pure RL on verifiable rewards, including coding competitions.
Dynamic Scaling of Unit Tests for Code Reward Modeling (CodeRM)
More generated unit tests give better reward signals, especially on hard problems; proposes CodeRM-8B.
EvilGenie: A Reward Hacking Benchmark
Benchmark on LiveCodeBench problems where hacking is easy; LLM judges detect obvious hacks, held-out tests help only slightly.
Group Sequence Policy Optimization (GSPO)
Sequence-level importance ratios stabilize RL for MoE models.
Kimi-Dev: Agentless Training as Skill Prior
Argues Agentless-style training induces localization/edit/reflection priors; the abstract reports 60.4% on SWE-bench Verified (workflow mode) and 48.6% pass@1 as an agent after SFT on 5k public trajectories.
PPOCoder
Combines pretrained code LMs with PPO using compiler/execution and structure-alignment feedback.
ProRL: Prolonged RL
Long RL runs expand reasoning boundaries beyond the base model.
R2E-Gym
Procedural SWE environment of 8.7K tasks via test generation and back-translation from commits; 34.4% on SWE-bench Verified with a 32B model; hybrid test-time scaling (abstract).
RLTF: Reinforcement Learning from Unit Test Feedback
Online RL with multi-granularity unit-test feedback (including error locations) to refine code LLMs.
Skywork Open Reasoner 1
Open RL implementation on R1-distill models; abstract reports average accuracy on AIME24, AIME25 and LiveCodeBench rising from 57.8% to 72.8% for 32B; includes ablations on core RL components.
SWE-Gym
First environment for training SWE agents: 2,438 real Python tasks with executable runtimes; up to 19% absolute gains on SWE-bench Verified/Lite via SFT, plus trained verifiers (abstract).
SWE-RL (Meta)
Scales RL for real-world software engineering with a lightweight rule-based reward (similarity to ground-truth patch) on open software evolution data.
SWE-smith
Pipeline that turns any Python repo into an execution environment and synthesizes 100s-1000s of task instances by breaking tests; builds a 50k-instance dataset from 128 repos (abstract).
Understanding R1-Zero-Like Training (Dr. GRPO)
Finds GRPO length bias that inflates incorrect responses and proposes Dr. GRPO; also notes Qwen2.5 bases show strong reasoning without templates.
Recipes 3
DeepCoder RL recipe (GRPO+)
Open code-RL recipe: GRPO+ (DAPO ideas: clip-high, no KL loss), iterative context lengthening 16K to 32K, DAPO overlong filtering, and offline difficulty filtering of coding problems, on R1-Distill-Qwen-14B.
DeepSWE RL recipe (rLLM)
Pure-RL SWE-agent recipe on Qwen3-32B with 4.5K R2E-Gym problems, repos overlapping SWE-bench Verified filtered out, built on rLLM.
Open-R1
Hugging Face's open reproduction of DeepSeek-R1: SFT, GRPO training scripts, code-reward environments and datasets.
Tools 37
Apptainer
HPC container runtime that runs without root; needed on clusters like Berzelius where Docker is unavailable. SWE images must be converted from Docker.
AReaL
Async RL system for LLM agents (repo now under areal-project). Verified active on GitHub API.
bigcode-evaluation-harness
Code LLM eval harness that executes untrusted generations; README provides Dockerfiles for evaluating in containers 'for security and reproducibility' and supports generating on GPUs then executing elsewhere.
bubblewrap
Unprivileged namespace sandbox used by Flatpak; lightweight wrapper for running test commands.
Docker (Moby)
Container runtime standard for SWE task images; shares the host kernel so isolation is weaker than microVMs. Default for SWE-bench, SWE-smith, R2E-Gym.
E2B
Open-source cloud sandboxes for agents (isolation technology not verified here).
Firecracker
microVM monitor: strongest isolation for untrusted code at scale; underpins E2B-style sandboxes.
gVisor
User-space kernel for container isolation as an OCI runtime (runsc).
Harbor
Framework for running agents in containerized tasks: used for Terminal-Bench 2, SWE-bench adapters, and RL rollouts; supports Docker and cloud sandboxes.
isolate
IOI contest sandbox with cgroup limits; used by Judge0.
Judge0
Online judge API with sandboxed execution for 60+ languages.
Kata Containers
Containers in lightweight VMs; Kubernetes friendly.
mini-swe-agent
Roughly 100-line bash-only agent; simple harness for RL rollouts.
Modal sandboxes (SDK)
SDK for Modal, with Sandboxes for running untrusted code on demand; hosted service, SDK is open source.
NeMo-RL
NVIDIA scalable RL toolkit, pairs with NeMo Gym. Verified active on GitHub API.
nsjail
Namespace/seccomp/cgroup jail for process isolation.
NVIDIA NeMo Gym
Framework and collection of RLVR environments and datasets (competitive coding, SWE) for NeMo-RL and other trainers.
Open-Instruct (AI2)
AI2 post-training codebase including RLVR (GRPO) training. Verified active on GitHub API.
OpenEnv
Interface library for RL post-training with environments (Gym-style API served over containers).
OpenHands
Agent platform and runtime with docker sandbox; used to generate SWE-Gym and Nemotron trajectories.
OpenRLHF
Ray-based scalable RL framework with PPO/REINFORCE variants and agentic mode. Verified active on GitHub API.
Piston
Multi-language code execution engine with API.
Podman
Daemonless, rootless Docker-compatible container engine; useful where a root daemon is not allowed.
prime-rl
Async agentic RL training at scale; integrates with verifiers environments. Verified active on GitHub API.
Repo2RLEnv
Hugging Face tool that turns any repository into verifiable RL environments for coding agents in Harbor task format (instruction, Dockerfile, tests, reward script).
rLLM
Framework behind DeepCoder and SWE agent RL runs. Verified active on GitHub API.
ROLL
Alibaba RL library with agentic pipelines. Verified active on GitHub API.
SandboxFusion
ByteDance code sandbox with many languages and datasets, built for RL code rewards; used to build CodeContests+.
SkyRL
Modular full-stack RL library including SkyRL-gym environments and multi-turn SWE training. Verified active on GitHub API.
SkyRL
Modular full-stack RL library for LLMs including agentic/SWE tasks.
slime
SGLang-based RL scaling framework from Tsinghua/Z.ai. Verified active on GitHub API.
SWE-agent
Princeton agent harness for GitHub issue tasks.
TRL
Hugging Face RL library with GRPO trainer and custom reward functions. Verified active on GitHub API.
Unsloth
Memory-efficient fine-tuning and RL library with GGUF export and local UI.
verifiers (Prime Intellect)
Library for RL environments and evals; environments are installable packages and can be published to the Prime Intellect Environments Hub.
verl
HybridFlow RL post-training framework; supports GRPO/PPO with rule-based and sandbox code rewards. Verified active on GitHub API.
verl
HybridFlow RL post-training framework used by DAPO and many code-RL recipes.
