wetsoledrysoul commited on
Commit
5a8ebd7
·
verified ·
1 Parent(s): bc1b0a2

Update model/dataset card: arXiv link, updated abstract, unified documentation

Browse files
Files changed (1) hide show
  1. README.md +60 -31
README.md CHANGED
@@ -1,55 +1,84 @@
1
  ---
2
  library_name: transformers
3
  license: cc-by-nc-sa-4.0
4
- datasets:
5
- - Aletheia-Bench/Aletheia-DPO
6
  base_model:
7
  - deepseek-ai/DeepSeek-R1-Distill-Qwen-14B
 
 
 
 
 
 
 
8
  ---
9
 
10
- <font size=3><div align='center' >
11
- [[**🤗 Model & Dataset**](https://huggingface.co/Aletheia-Bench)]
12
- [[**📊 Code**](https://github.com/insait-institute/aletheia)]
13
- [[**📖 Paper**](https://arxiv.org/)]
14
  </div></font>
15
 
16
  # Aletheia: What Makes RLVR For Code Verifiers Tick?
17
- Multi-domain thinking verifiers trained via Reinforcement Learning from Verifiable Rewards (RLVR) are a prominent fixture of the Large Language Model (LLM) post-training pipeline, owing to their ability to robustly rate and rerank model outputs. However, the adoption of such verifiers towards code generation has been comparatively sparse, with execution feedback constituting the dominant signal. Nonetheless, code verifiers remain valuable toward judging model outputs in scenarios where execution feedback is hard to obtain and are a potentially powerful addition to the code generation post-training toolbox. To this end, we create and open-source Aletheia, a controlled testbed that enables execution-grounded evaluation of code verifiers' robustness across disparate policy models and covariate shifts. We examine components of the RLVR-based verifier training recipe widely credited for its success: (1) intermediate thinking traces, (2) learning from negative samples, and (3) on-policy training. While experiments show the optimality of RLVR, we uncover important opportunities to simplify the recipe. Particularly, despite code verification exhibiting positive training- and inference-time scaling, on-policy learning stands out as the key component at small verifier sizes, and thinking-based training emerges as the most important component at larger scales.
18
 
 
 
 
19
 
 
 
 
20
 
21
  ## 📦 Model Zoo
22
- Fine-tuned code verifiers at 1.5B, 7B, and 14B scales using several algorithms
 
 
23
  | Algorithm | Thinking | Negatives | Online | Description |
24
  | :--- | :---: | :---: | :---: | :--- |
25
- | **GRPO-Think** | ✅ | ✅ | ✅ | Standard GRPO-style approach to training verifiers. |
26
- | **GRPO-Instruct** | ❌ | ✅ | ✅ | RLVR training without intermediate thinking traces. |
27
- | **RAFT** | ✅ | ❌ | ✅ | On-policy rejection sampling fine-tuning using only positive reasoning samples. |
28
- | **Think-DPO** | ✅ | ✅ | ❌ | Offline preference optimization using pre-collected thinking traces. |
29
- | **Batch-online GRPO** | ✅ | ✅ | ⚠️ | Semi-online training where the generator policy is synced every 4 steps. |
 
 
30
 
31
  ## 🎁 Datasets
32
- The Aletheia dataset collection is available on HuggingFace and includes:
33
 
34
- * **Aletheia-Train**: A dataset of 2-5 candidate code snippets to solve a coding problem, each with exactly one correct code
35
- * **Aletheia-DPO**: A companion dataset to Aletheia-Train, containing "chosen" and "rejected" responses for each instance. The chosen response identifies the correct code snippet, while the rejected responses do not.
36
- * **Aletheia-Heldout**: A completely in-distribution test set
37
- * **Aletheia-Strong**: An OOD test set where the candidates are generated by stronger models
38
- * **Aletheia-Hard**: An OOD test set where the comparison between candidates is more difficult
39
- * **Aletheia-Adv**: An OOD test set where the candidates are adversarially modified to exploit common LLM biases
 
 
 
 
 
 
 
40
 
41
- ## 💡 Intended uses
42
- * **RLHF / RLAIF**: plug-and-play reward function for code generation policy optimization.
43
- * **Automated evaluation**: LLM-as-a-judge for a variety of code-related tasks.
44
- * **Research**: study the effects of thinking traces, on-policy learning, and negative samples in training successful code verifiers
45
 
46
- ## Citations
 
 
47
 
48
  ```bibtex
49
- @article{aletheia2025,
50
- title={Aletheia: What Makes RLVR For Code Verifiers Tick?},
51
- author={Venkatkrishna, Vatsal and Paul, Indraneil and Gurevych, Iryna},
52
- journal={arXiv preprint},
53
- year={2025}
 
 
 
54
  }
55
- ```
 
 
 
 
 
1
  ---
2
  library_name: transformers
3
  license: cc-by-nc-sa-4.0
4
+ pipeline_tag: text-generation
 
5
  base_model:
6
  - deepseek-ai/DeepSeek-R1-Distill-Qwen-14B
7
+ datasets:
8
+ - INSAIT-Institute/Aletheia-DPO
9
+ tags:
10
+ - code
11
+ - code-verification
12
+ - rlvr
13
+ - dpo
14
  ---
15
 
16
+ <font size=3><div align='center'>
17
+ [[**📖 Paper**](https://arxiv.org/pdf/2601.12186)]
18
+ [[**💻 Code**](https://github.com/insait-institute/aletheia)]
19
+ [[**🤗 Models & Datasets**](https://huggingface.co/collections/INSAIT-Institute/aletheia-6a7c60fab9eadaef73aa427b)]
20
  </div></font>
21
 
22
  # Aletheia: What Makes RLVR For Code Verifiers Tick?
 
23
 
24
+ Multi-domain thinking verifiers trained via Reinforcement Learning with Verifiable Rewards (RLVR) are a cornerstone of modern post-training. However, their adoption in code generation has lagged behind that of execution feedback due to the prohibitive costs of the full RLVR pipeline. In this work, we ablate three primary choices along the performance-cost trade-off in RLVR: intermediate thinking traces, learning from negative samples, and on-policy training. We introduce **Aletheia**, a controlled, execution-grounded testbed to facilitate a contamination-free analysis of code verifier training recipes across disparate model sizes and covariate shifts across two common verifier application scenarios. Our analysis reveals that the optimal training recipe is scale-dependent: on-policy learning is the primary performance driver for small verifiers, whereas the thinking budget becomes the most vital factor at larger scales. While leveraging negative samples has a consistent impact on top-1 selection accuracy across sizes, their contribution to ranking reconstruction increases monotonically with scale and plays a key role in stabilizing training at large sizes. Our Pareto optimality analysis demonstrates that eliminating on-policy training at larger model scales yields a verifier that performs comparably to the full RLVR recipe. Furthermore, we find that eschewing thinking traces serves as a compute-efficient strategy at lower budgets, offering a strong trade-off between training cost and verifier accuracy. Ultimately, our work provides the empirical foundation necessary to efficiently deploy robust code verifiers, thereby enabling their wider adoption in post-training pipelines for large code generation models.
25
+
26
+ ## 🤖 This Model
27
 
28
+ **`DPO-Think-14B`** is a **DPO-Think** verifier: trained with **offline** preference optimization (DPO) on pre-collected thinking traces (no on-policy sampling). It is fine-tuned from [`deepseek-ai/DeepSeek-R1-Distill-Qwen-14B`](https://huggingface.co/deepseek-ai/DeepSeek-R1-Distill-Qwen-14B) (14B scale) on [`INSAIT-Institute/Aletheia-DPO`](https://huggingface.co/datasets/INSAIT-Institute/Aletheia-DPO).
29
+
30
+ Given a competitive-programming problem and a set of candidate solutions, the verifier judges and ranks the candidates. See the [GitHub repository](https://github.com/insait-institute/aletheia) for the exact prompt format, plus training and evaluation scripts.
31
 
32
  ## 📦 Model Zoo
33
+
34
+ Fine-tuned code verifiers at 1.5B, 7B, and 14B scales using several algorithms:
35
+
36
  | Algorithm | Thinking | Negatives | Online | Description |
37
  | :--- | :---: | :---: | :---: | :--- |
38
+ | [**GRPO-Think**](https://huggingface.co/INSAIT-Institute/GRPO-Think-7B-16k) | ✅ | ✅ | ✅ | Standard GRPO-style approach to training verifiers. |
39
+ | [**GRPO-Instruct**](https://huggingface.co/INSAIT-Institute/GRPO-Instruct-7B) | ❌ | ✅ | ✅ | RLVR training without intermediate thinking traces. |
40
+ | [**RAFT**](https://huggingface.co/INSAIT-Institute/RAFT-7B) | ✅ | ❌ | ✅ | On-policy rejection sampling fine-tuning using only positive reasoning samples. |
41
+ | [**DPO-Think**](https://huggingface.co/INSAIT-Institute/DPO-Think-7B) | ✅ | ✅ | ❌ | Offline preference optimization using pre-collected thinking traces. |
42
+ | [**BatchOnline-GRPO**](https://huggingface.co/INSAIT-Institute/BatchOnline-GRPO-7B) | ✅ | ✅ | ⚠️ | Semi-online training where the generator policy is synced every 4 steps. |
43
+
44
+ The `-4k` / `-8k` / `-16k` suffix on GRPO-Think checkpoints denotes the reasoning-token budget (maximum completion length) used during training.
45
 
46
  ## 🎁 Datasets
 
47
 
48
+ The Aletheia dataset collection includes:
49
+
50
+ * [**Aletheia-Train**](https://huggingface.co/datasets/INSAIT-Institute/Aletheia-Train): 50,000 training instances, each pairing a competitive-programming problem with 2–5 candidate solutions — exactly one of which is correct (execution-verified) — generated by a pool of weak and strong policy models across Python, C++, and Java.
51
+ * [**Aletheia-Train-Questions**](https://huggingface.co/datasets/INSAIT-Institute/Aletheia-Train-Questions): The 3,574 unique problem statements underlying Aletheia-Train, useful for on-policy sampling.
52
+ * [**Aletheia-DPO**](https://huggingface.co/datasets/INSAIT-Institute/Aletheia-DPO): A companion dataset to Aletheia-Train containing "chosen" and "rejected" verification responses for each instance. The chosen response identifies the correct code snippet, while the rejected response does not.
53
+ * [**Aletheia-Mixed**](https://huggingface.co/datasets/INSAIT-Institute/Aletheia-Mixed): A variant of Aletheia-Train in which ~25% of instances carry adversarial modifications that exploit common LLM biases (authority references, self-declared correctness, misleading comments, etc.).
54
+ * [**Aletheia-Mixed-DPO**](https://huggingface.co/datasets/INSAIT-Institute/Aletheia-Mixed-DPO): The DPO-style companion to Aletheia-Mixed.
55
+ * [**Aletheia-Heldout**](https://huggingface.co/datasets/INSAIT-Institute/Aletheia-Heldout): A completely in-distribution test set.
56
+ * [**Aletheia-Strong**](https://huggingface.co/datasets/INSAIT-Institute/Aletheia-Strong): An OOD test set where the candidates are generated by stronger models.
57
+ * [**Aletheia-Hard**](https://huggingface.co/datasets/INSAIT-Institute/Aletheia-Hard): An OOD test set where the comparison between candidates is more difficult.
58
+ * [**Aletheia-Adv**](https://huggingface.co/datasets/INSAIT-Institute/Aletheia-Adv): An OOD test set where the candidates are adversarially modified to exploit common LLM biases.
59
+
60
+ ## 💡 Intended Uses
61
 
62
+ * **RLHF / RLAIF**: plug-and-play reward function for code generation policy optimization.
63
+ * **Automated evaluation**: LLM-as-a-judge for a variety of code-related tasks.
64
+ * **Research**: study the effects of thinking traces, on-policy learning, and negative samples in training successful code verifiers.
 
65
 
66
+ ## 📚 Citation
67
+
68
+ If you find this work useful, please cite our paper:
69
 
70
  ```bibtex
71
+ @misc{venkatkrishna2026aletheiamakesrlvrcode,
72
+ title={Aletheia: What Makes RLVR For Code Verifiers Tick?},
73
+ author={Vatsal Venkatkrishna and Indraneil Paul and Iryna Gurevych},
74
+ year={2026},
75
+ eprint={2601.12186},
76
+ archivePrefix={arXiv},
77
+ primaryClass={cs.SE},
78
+ url={https://arxiv.org/abs/2601.12186},
79
  }
80
+ ```
81
+
82
+ ## 📄 License
83
+
84
+ This work is licensed under [CC BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/).