Qinsi1 commited on
Commit
1569fb2
·
verified ·
1 Parent(s): a55d85e

Add model card

Browse files
Files changed (1) hide show
  1. README.md +92 -0
README.md ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: Qwen/Qwen3-8B
4
+ pipeline_tag: text-generation
5
+ library_name: transformers
6
+ language:
7
+ - en
8
+ tags:
9
+ - spyrl
10
+ - rlsvr
11
+ - self-play
12
+ - reinforcement-learning
13
+ - mathematical-reasoning
14
+ - reasoning
15
+ ---
16
+
17
+ # SpyRL-Qwen3-8B-Math
18
+
19
+ Qwen3-8B trained with SpyRL on mathematical reasoning. In the performing stage each agent designs *and* solves a problem grounded in a math-heavy web document; the spy sees the same document with a contiguous 40% span masked out.
20
+
21
+ Trained with **SpyRL**, the reference implementation of **RLSVR** (Reinforcement Learning with Self-Verifiable Rewards) from the COLM 2026 paper *From RLVR to RLSVR: Task Transformation Induces Self-Verifiable Rewards for Open-Ended LLM Self-Improvement*.
22
+
23
+ RLSVR extends RLVR to open-ended tasks the way self-supervised learning extends supervised learning: instead of approximating a missing reward with a judge or reward model, it *transforms* the task into a proxy environment whose own rules generate the reward. SpyRL instantiates that as a multi-agent self-play game inspired by *Who Is the Spy?* — civilians receive the full input, one spy receives a masked copy, all agents perform the same target task, and then they vote on who the spy is. Because the environment assigns the spy identity up front, the vote is exactly checkable, and avoiding suspicion requires producing genuinely better output.
24
+
25
+ **No human annotation, no reward model, no LLM judge was used to train this model.**
26
+
27
+ ## Model details
28
+
29
+ | | |
30
+ |---|---|
31
+ | **Base model** | [`Qwen/Qwen3-8B`](https://huggingface.co/Qwen/Qwen3-8B) |
32
+ | **Target task** | Mathematical reasoning |
33
+ | **Self-play corpus** | [`nvidia/Nemotron-CC-Math-v1`](https://huggingface.co/datasets/nvidia/Nemotron-CC-Math-v1) |
34
+ | **Algorithm** | GRPO, alternating performing / detection stages |
35
+ | **Training** | 100 iterations, 1 node × 8 GPUs |
36
+ | **Supervision** | None — reward comes from the game's voting rules |
37
+
38
+ Exact group size, masking ratio and the rest of the configuration are in the launch script linked
39
+ below.
40
+
41
+ ## Results
42
+
43
+ | Benchmark | Base (Qwen3-8B) | **+ SpyRL** |
44
+ |---|---|---|
45
+ | GSM8K | 91.8 | **93.5** |
46
+ | Math500 | 74.2 | **81.2** |
47
+ | AIME 24 | 15.3 | **20.0** |
48
+ | AIME 25 | 12.1 | **23.3** |
49
+ | Minerva | 49.3 | **56.3** |
50
+ | MMLU-Pro | 58.1 | **63.1** |
51
+ | GPQA-Diamond | 33.3 | **39.8** |
52
+
53
+ Average gain over the base model across the seven benchmarks: **+6.16%**.
54
+
55
+ ## Usage
56
+
57
+ ```python
58
+ from transformers import AutoModelForCausalLM, AutoTokenizer
59
+
60
+ model_id = "SpyRL/SpyRL-Qwen3-8B-Math"
61
+ tokenizer = AutoTokenizer.from_pretrained(model_id)
62
+ model = AutoModelForCausalLM.from_pretrained(model_id, torch_dtype="auto", device_map="auto")
63
+
64
+ messages = [{"role": "user", "content": "Your prompt here"}]
65
+ inputs = tokenizer.apply_chat_template(messages, add_generation_prompt=True, return_tensors="pt").to(model.device)
66
+ outputs = model.generate(inputs, max_new_tokens=1024)
67
+ print(tokenizer.decode(outputs[0][inputs.shape[-1]:], skip_special_tokens=True))
68
+ ```
69
+
70
+ The chat template and tokenizer are inherited unchanged from the base model.
71
+
72
+ ## Training code
73
+
74
+ Full training code, launch scripts and per-task environments: [https://github.com/wangqinsi1/SpyRL-Self-PlaY-Reinforcement-Learning](https://github.com/wangqinsi1/SpyRL-Self-PlaY-Reinforcement-Learning)
75
+
76
+ ```bash
77
+ git clone https://github.com/wangqinsi1/SpyRL-Self-PlaY-Reinforcement-Learning.git && cd SpyRL-Self-PlaY-Reinforcement-Learning
78
+ conda create -n spyrl python=3.10 -y && conda activate spyrl
79
+ bash setup.sh
80
+ bash spyrl/train_math_reasoning.sh
81
+ ```
82
+
83
+ ## Citation
84
+
85
+ ```bibtex
86
+ @inproceedings{wang2026spyrl,
87
+ title = {From RLVR to RLSVR: Task Transformation Induces Self-Verifiable Rewards for Open-Ended LLM Self-Improvement},
88
+ 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},
89
+ booktitle = {Conference on Language Modeling (COLM)},
90
+ year = {2026}
91
+ }
92
+ ```