HARDTESTGEN:面向LLM算法编程的高质量RL验证器生成流水线
HARDTESTGEN: A High-Quality RL Verifier Generation Pipeline for LLM Algorithmic Coding
HARDTESTGEN 是一套为算法编程题合成高质量测试用例的流水线,并构建了包含 26.6k 道题目的数据集 HARDTESTS。相比现有测试,其验证 LLM 生成代码的精度提升 11.22 个百分点。使用 HARDTESTS 验证器进行拒绝采样和强化学习等下游后训练,可提升 LLM 代码生成表现,数据集与流水线已开源。
arXiv:2505.24098v2 Announce Type: cross 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/.
来源:arXiv (AI + Vision + Imaging) · arxiv.org