Update model/dataset card: arXiv link, updated abstract, unified documentation
Browse files
README.md
CHANGED
|
@@ -37,49 +37,70 @@ configs:
|
|
| 37 |
license: cc-by-nc-sa-4.0
|
| 38 |
---
|
| 39 |
|
| 40 |
-
<font size=3><div align='center'
|
| 41 |
-
[[**
|
| 42 |
-
[[**
|
| 43 |
-
[[**
|
| 44 |
</div></font>
|
| 45 |
|
| 46 |
# Aletheia: What Makes RLVR For Code Verifiers Tick?
|
| 47 |
-
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.
|
| 48 |
|
|
|
|
| 49 |
|
|
|
|
|
|
|
|
|
|
| 50 |
|
| 51 |
## π¦ Model Zoo
|
| 52 |
-
|
|
|
|
|
|
|
| 53 |
| Algorithm | Thinking | Negatives | Online | Description |
|
| 54 |
| :--- | :---: | :---: | :---: | :--- |
|
| 55 |
-
| **GRPO-Think** | β
| β
| β
| Standard GRPO-style approach to training verifiers. |
|
| 56 |
-
| **GRPO-Instruct** | β | β
| β
| RLVR training without intermediate thinking traces. |
|
| 57 |
-
| **RAFT** | β
| β | β
| On-policy rejection sampling fine-tuning using only positive reasoning samples. |
|
| 58 |
-
| **
|
| 59 |
-
| **
|
|
|
|
|
|
|
| 60 |
|
| 61 |
## π Datasets
|
| 62 |
-
The Aletheia dataset collection is available on HuggingFace and includes:
|
| 63 |
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
* **Aletheia-
|
| 67 |
-
* **Aletheia-
|
| 68 |
-
* **Aletheia-
|
| 69 |
-
* **Aletheia-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 70 |
|
| 71 |
-
## π‘ Intended
|
| 72 |
-
* **RLHF / RLAIF**: plug-and-play reward function for code generation policy optimization.
|
| 73 |
-
* **Automated evaluation**: LLM-as-a-judge for a variety of code-related tasks.
|
| 74 |
-
* **Research**: study the effects of thinking traces, on-policy learning, and negative samples in training successful code verifiers
|
| 75 |
|
| 76 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 77 |
|
| 78 |
```bibtex
|
| 79 |
-
@
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
|
|
|
|
|
|
|
|
|
| 84 |
}
|
| 85 |
-
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
license: cc-by-nc-sa-4.0
|
| 38 |
---
|
| 39 |
|
| 40 |
+
<font size=3><div align='center'>
|
| 41 |
+
[[**π Paper**](https://arxiv.org/pdf/2601.12186)]
|
| 42 |
+
[[**π» Code**](https://github.com/insait-institute/aletheia)]
|
| 43 |
+
[[**π€ Models & Datasets**](https://huggingface.co/collections/INSAIT-Institute/aletheia-6a7c60fab9eadaef73aa427b)]
|
| 44 |
</div></font>
|
| 45 |
|
| 46 |
# Aletheia: What Makes RLVR For Code Verifiers Tick?
|
|
|
|
| 47 |
|
| 48 |
+
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.
|
| 49 |
|
| 50 |
+
## π This Dataset
|
| 51 |
+
|
| 52 |
+
**`Aletheia-DPO`** is the **preference-pair companion** to Aletheia-Train, containing a "chosen" and a "rejected" verification response for each instance. The chosen response identifies the correct code snippet, while the rejected response does not. Intended for offline preference optimization (e.g., DPO). Part of the Aletheia benchmark β see the [GitHub repository](https://github.com/insait-institute/aletheia) for loading, training, and evaluation scripts.
|
| 53 |
|
| 54 |
## π¦ Model Zoo
|
| 55 |
+
|
| 56 |
+
Fine-tuned code verifiers at 1.5B, 7B, and 14B scales using several algorithms:
|
| 57 |
+
|
| 58 |
| Algorithm | Thinking | Negatives | Online | Description |
|
| 59 |
| :--- | :---: | :---: | :---: | :--- |
|
| 60 |
+
| [**GRPO-Think**](https://huggingface.co/INSAIT-Institute/GRPO-Think-7B-16k) | β
| β
| β
| Standard GRPO-style approach to training verifiers. |
|
| 61 |
+
| [**GRPO-Instruct**](https://huggingface.co/INSAIT-Institute/GRPO-Instruct-7B) | β | β
| β
| RLVR training without intermediate thinking traces. |
|
| 62 |
+
| [**RAFT**](https://huggingface.co/INSAIT-Institute/RAFT-7B) | β
| β | β
| On-policy rejection sampling fine-tuning using only positive reasoning samples. |
|
| 63 |
+
| [**DPO-Think**](https://huggingface.co/INSAIT-Institute/DPO-Think-7B) | β
| β
| β | Offline preference optimization using pre-collected thinking traces. |
|
| 64 |
+
| [**BatchOnline-GRPO**](https://huggingface.co/INSAIT-Institute/BatchOnline-GRPO-7B) | β
| β
| β οΈ | Semi-online training where the generator policy is synced every 4 steps. |
|
| 65 |
+
|
| 66 |
+
The `-4k` / `-8k` / `-16k` suffix on GRPO-Think checkpoints denotes the reasoning-token budget (maximum completion length) used during training.
|
| 67 |
|
| 68 |
## π Datasets
|
|
|
|
| 69 |
|
| 70 |
+
The Aletheia dataset collection includes:
|
| 71 |
+
|
| 72 |
+
* [**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.
|
| 73 |
+
* [**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.
|
| 74 |
+
* [**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.
|
| 75 |
+
* [**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.).
|
| 76 |
+
* [**Aletheia-Mixed-DPO**](https://huggingface.co/datasets/INSAIT-Institute/Aletheia-Mixed-DPO): The DPO-style companion to Aletheia-Mixed.
|
| 77 |
+
* [**Aletheia-Heldout**](https://huggingface.co/datasets/INSAIT-Institute/Aletheia-Heldout): A completely in-distribution test set.
|
| 78 |
+
* [**Aletheia-Strong**](https://huggingface.co/datasets/INSAIT-Institute/Aletheia-Strong): An OOD test set where the candidates are generated by stronger models.
|
| 79 |
+
* [**Aletheia-Hard**](https://huggingface.co/datasets/INSAIT-Institute/Aletheia-Hard): An OOD test set where the comparison between candidates is more difficult.
|
| 80 |
+
* [**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.
|
| 81 |
|
| 82 |
+
## π‘ Intended Uses
|
|
|
|
|
|
|
|
|
|
| 83 |
|
| 84 |
+
* **RLHF / RLAIF**: plug-and-play reward function for code generation policy optimization.
|
| 85 |
+
* **Automated evaluation**: LLM-as-a-judge for a variety of code-related tasks.
|
| 86 |
+
* **Research**: study the effects of thinking traces, on-policy learning, and negative samples in training successful code verifiers.
|
| 87 |
+
|
| 88 |
+
## π Citation
|
| 89 |
+
|
| 90 |
+
If you find this work useful, please cite our paper:
|
| 91 |
|
| 92 |
```bibtex
|
| 93 |
+
@misc{venkatkrishna2026aletheiamakesrlvrcode,
|
| 94 |
+
title={Aletheia: What Makes RLVR For Code Verifiers Tick?},
|
| 95 |
+
author={Vatsal Venkatkrishna and Indraneil Paul and Iryna Gurevych},
|
| 96 |
+
year={2026},
|
| 97 |
+
eprint={2601.12186},
|
| 98 |
+
archivePrefix={arXiv},
|
| 99 |
+
primaryClass={cs.SE},
|
| 100 |
+
url={https://arxiv.org/abs/2601.12186},
|
| 101 |
}
|
| 102 |
+
```
|
| 103 |
+
|
| 104 |
+
## π License
|
| 105 |
+
|
| 106 |
+
This work is licensed under [CC BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/).
|