Aletheia: What Makes RLVR For Code Verifiers Tick?
Vatsal Venkatkrishna, Indraneil Paul, Iryna Gurevych
TL;DR
This work introduces Aletheia, a controlled testbed for evaluating surrogate code-execution verifiers under covariate shifts and across diverse policy models. It systematically ablates three RLVR recipe components—thinking traces, learning from negative samples, and on-policy training—and shows that GRPO generally yields the strongest verifiers, with thinking traces being essential for the largest models, on-policy learning crucial for small models, and negative samples providing broad stability gains. The study demonstrates that, while offline methods can approach GRPO for certain scales, fully online training remains superior, and simply increasing inference compute cannot fully substitute for core training components. The results offer practical guidance for cost-efficient verifier training and suggest that these insights generalize to cross-domain verifier settings beyond code generation.
Abstract
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.
