HARDTESTGEN: A High-Quality RL Verifier Generation Pipeline for LLM Algorithmic Coding
Zhongmou He, Yee Man Choi, Kexun Zhang, Jiabao Ji, Junting Zhou, Dejia Xu, Ivan Bercovich, Aidan Zhang,
Key points
From the paper's conclusion- We curate a comprehensive algorithmic programming dataset HARDTESTS with 26.6k problems and high-quality synthetic tests.
Abstract
Verifiers provide important reward signals for reinforcement learning of large language models (LLMs). However, it is challenging to develop or create reliable verifiers, especially for code generation tasks. A well-disguised wrong solution program may only be detected by carefully human-written edge cases that are difficult to synthesize automatically. To address this issue, we propose HARDTESTGEN, an approach to synthesize high-quality test cases for algorithmic coding problems. We curate a comprehensive algorithmic programming dataset HARDTESTS with 26.6k problems and high-quality synthetic tests. Compared with existing tests, HARDTESTGEN tests demonstrate significantly higher accuracy in verifying LLM-generated code (+11.22 percentage points in precision, the percentage of actually correct code within the predicted correct ones). We also show that downstream post-training -- including rejection sampling and reinforcement learning (RL) -- using HARDTESTS verifier results in improved performance of LLM code generation. We open-source our dataset and synthesis pipeline at https://leililab.github.io/HardTests/.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- SWE-Critix: Post-Training Generalist Verifiers for Assessing Coding-Agent TrajectoriesarXiv · 2026
- SWE-VERIFIER: Selective Verification for Cost-Efficient Coding AgentsarXiv · 2026
- Verifier-Grounded Agentic RL for Provably Correct CodearXiv · 2026
- Information-Gain Rewards over Diversity-Pruned Tests: GT-Anchored Verifier Co-Training for Reliable Code GenerationarXiv · 2026
- From Generation to Verification: A Reproducible Empirical Study of Verification-Guided LLM Workflows for Software EngineeringComputers · 2026
- VerifierBench: Benchmarking the Generation of Executable Verifiers for LLM AgentsarXiv · 2026