potentialpaper

CVeDRL: An Efficient Code Verifier via Difficulty-aware Reinforcement Learning

Ji Shi, Peiming Guo, Xinming Zhang, Meishan Zhang, Miao Zhang

ARR 2026 May

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

Abstract. Code verifier is the key to the post-verification process in large language model (LLM) code generation. However, supervised fine-tuning (SFT) methods suffer from dataset scarcity, high error and failure rates, and severe inference delay. In this work, we adapt reinforcement learning to train an efficient code verifier, CVeDRL, which substantially alleviates these challenges and balances performance and efficiency in only a 0.6B scale. First, we design syntax and functionality rewards and employ GRPO to train the base code verifier. However, preliminary experiments indicated that the base model could not produce effective unit tests for difficult branches and samples. Then we propose Branch-Difficulty-aware and Sample-Difficulty-aware reinforcement learning based on exponential reward shaping and static analysis metrics (Halstead Complexity and Maintainability Index). Experimental results show that CVeDRL significantly outperforms the vanilla model while remaining competitive with state-of-the-art models such as GPT-4o-mini and GPT-3.5 in pass rate, assertion failure rate, and code coverage, etc. Furthermore, CVeDRL-0.6B improves inference efficiency by more than 20x compared with LLM trained with SFT method.

Code is available at https://anonymous.4open.science/r/CVeDRL-DF1A/

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

FromAToBDateVersionSubmitted toPDFEvidence
15 Sep 2025ICLR 2026submittedICLR 2026Withdrawn—[1]
13 May 2026ARR 2026 MaysubmittedARR 2026 MayUnder review—[1]
Their titles, abstracts and, where both have a PDF, the text.Missing a version?

We don't know of a submission of this paper to a venue with open reviews. Missing a submission?

Loading the discussion…