Paper Reading AI Learner

CodeContests+: High-Quality Test Case Generation for Competitive Programming

2025-06-06 07:29:01
Zihan Wang, Siyao Liu, Yang Sun, Hongyan Li, Kai Shen

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

PDF

https://arxiv.org/pdf/2506.05817.pdf


Tags
3D Action Action_Localization Action_Recognition Activity Adversarial Agent Attention Autonomous Bert Boundary_Detection Caption Chat Classification CNN Compressive_Sensing Contour Contrastive_Learning Deep_Learning Denoising Detection Dialog Diffusion Drone Dynamic_Memory_Network Edge_Detection Embedding Embodied Emotion Enhancement Face Face_Detection Face_Recognition Facial_Landmark Few-Shot Gait_Recognition GAN Gaze_Estimation Gesture Gradient_Descent Handwriting Human_Parsing Image_Caption Image_Classification Image_Compression Image_Enhancement Image_Generation Image_Matting Image_Retrieval Inference Inpainting Intelligent_Chip Knowledge Knowledge_Graph Language_Model LLM Matching Medical Memory_Networks Multi_Modal Multi_Task NAS NMT Object_Detection Object_Tracking OCR Ontology Optical_Character Optical_Flow Optimization Person_Re-identification Point_Cloud Portrait_Generation Pose Pose_Estimation Prediction QA Quantitative Quantitative_Finance Quantization Re-identification Recognition Recommendation Reconstruction Regularization Reinforcement_Learning Relation Relation_Extraction Represenation Represenation_Learning Restoration Review RNN Robot Salient Scene_Classification Scene_Generation Scene_Parsing Scene_Text Segmentation Self-Supervised Semantic_Instance_Segmentation Semantic_Segmentation Semi_Global Semi_Supervised Sence_graph Sentiment Sentiment_Classification Sketch SLAM Sparse Speech Speech_Recognition Style_Transfer Summarization Super_Resolution Surveillance Survey Text_Classification Text_Generation Time_Series Tracking Transfer_Learning Transformer Unsupervised Video_Caption Video_Classification Video_Indexing Video_Prediction Video_Retrieval Visual_Relation VQA Weakly_Supervised Zero-Shot