Model details
Table | |
|---|
| Base model | Qwen/Qwen3-4B-Instruct-2507 |
| Target task | Mathematical reasoning |
| Self-play corpus | nvidia/Nemotron-CC-Math-v1 |
| Algorithm | GRPO, alternating performing / detection stages |
| Training | 100 iterations, 1 node × 8 GPUs |
| Supervision | None — reward comes from the game's voting rules |
Exact group size, masking ratio and the rest of the configuration are in the launch script linked
below.
Results
Table with columns: Benchmark, Base (Qwen3-4B), + SpyRL| Benchmark | Base (Qwen3-4B) | + SpyRL |
|---|
| GSM8K | 84.5 | 93.4 |
| Math500 | 68.2 | 79.5 |
| AIME 24 | 10.3 | 13.3 |
| AIME 25 | 6.7 | 20.0 |
| Minerva | 42.3 | 47.8 |
| MMLU-Pro |
Average gain over the base model across the seven benchmarks: +8.97%.
Usage
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "SpyRL/SpyRL-Qwen3-4B-Math"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, torch_dtype="auto", device_map="auto")
messages = [{"role": "user", "content": "Your prompt here"}]
inputs = tokenizer.apply_chat_template(messages, add_generation_prompt=True, return_tensors="pt").to(model.device)
outputs = model.generate(inputs, max_new_tokens=1024)
print(tokenizer.decode(outputs[0][inputs.shape[-1]:], skip_special_tokens=True))
The chat template and tokenizer are inherited unchanged from the base model.
Training code
Full training code, launch scripts and per-task environments: https://github.com/wangqinsi1/SpyRL-Self-PlaY-Reinforcement-Learning
git clone https://github.com/wangqinsi1/SpyRL-Self-PlaY-Reinforcement-Learning.git && cd SpyRL-Self-PlaY-Reinforcement-Learning
conda create -n spyrl python=3.10 -y && conda activate spyrl
bash setup.sh
bash spyrl/train_math_reasoning.sh
Citation
@inproceedings{wang2026spyrl,
title = {From RLVR to RLSVR: Task Transformation Induces Self-Verifiable Rewards for Open-Ended LLM Self-Improvement},
author = {Qinsi Wang and Jing Shi and Huazheng Wang and Kun Wan and Yiran Wu and Bo Liu and Qingyun Wu and Hai Helen Li and Yiran Chen and Handong Zhao and Wentian Zhao},
booktitle = {Conference on Language Modeling (COLM)},
year = {2026}
}