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

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Wang, Zihan, Liu, Siyao, Sun, Yang, Li, Hongyan, Shen, Kai
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866915330738094080
author Wang, Zihan
Liu, Siyao
Sun, Yang
Li, Hongyan
Shen, Kai
author_facet Wang, Zihan
Liu, Siyao
Sun, Yang
Li, Hongyan
Shen, Kai
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2506_05817
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle CodeContests+: High-Quality Test Case Generation for Competitive Programming
Wang, Zihan
Liu, Siyao
Sun, Yang
Li, Hongyan
Shen, Kai
Software Engineering
Computation and Language
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.
title CodeContests+: High-Quality Test Case Generation for Competitive Programming
topic Software Engineering
Computation and Language
url https://arxiv.org/abs/2506.05817