Abstract
Competitive programming, due to its high reasoning difficulty and precise correctness feedback, has become a key task for both training and evaluating the reasoning capabilities of large language models (LLMs). However, while a large amount of public problem data, such as problem statements and solutions, is available, the test cases of these problems are often difficult to obtain. Therefore, test case generation is a necessary task for building large-scale datasets, and the quality of the test cases directly determines the accuracy of the evaluation. In this paper, we introduce an LLM-based agent system that creates high-quality test cases for competitive programming problems. We apply this system to the CodeContests dataset and propose a new version with improved test cases, named CodeContests+. We evaluated the quality of test cases in CodeContestsPlus. First, we used 1.72 million submissions with pass/fail labels to examine the accuracy of these test cases in evaluation. The results indicated that CodeContests+ achieves significantly higher accuracy than CodeContests, particularly with a notably higher True Positive Rate (TPR). Subsequently, our experiments in LLM Reinforcement Learning (RL) further confirmed that improvements in test case quality yield considerable advantages for RL.
Abstract (translated)
由于其高度的推理难度和精确性反馈,竞赛编程已成为训练和评估大型语言模型(LLM)推理能力的关键任务。然而,尽管有许多公开的问题数据,如问题描述和解决方案是可用的,但这些问题的测试用例往往难以获得。因此,生成高质量的测试用例对于构建大规模数据集来说是一项必要工作,并且测试用例的质量直接影响评估的准确性。在本文中,我们介绍了一个基于LLM的代理系统,该系统可以为竞赛编程问题创建高质量的测试用例。我们将此系统应用于CodeContests数据集中,并提出了一个改进了测试用例的新版本,名为CodeContests+。 为了评估CodeContestsPlus中测试用例的质量,我们首先使用带有通过/失败标签的172万个提交来检查这些测试用例在评估中的准确性。结果表明,CodeContests+达到了比CodeContests更高的准确率,尤其是在真正例率(TPR)方面有显著提高。此外,在LLM强化学习(RL)实验中进一步证实了提高测试用例质量可以带来相当大的优势。
URL
https://arxiv.org/abs/2506.05817