mlsanityData to 7 Oct 2026

CodeContests-O: Powering LLMs via Feedback-Driven Iterative Test Case Generation

arXiv 2601.13682 ↗First posted 20 Jan 2026cs.SE cs.PLcited by 2

On the map: LLM reasoning → Reasoning for agents, planning and code

Abstract (arXiv)

The rise of reasoning models necessitates large-scale verifiable data, for which programming tasks serve as an ideal source. However, while competitive programming platforms provide abundant problems and solutions, high-quality test cases for verification remain scarce. Existing approaches attempt to synthesize test cases using Large Language Models (LLMs), but rely solely on the model's intrinsic generation capabilities without external feedback, frequently resulting in insufficiently diverse cases. To address this limitation, we propose a Feedback-Driven Iterative Framework for comprehensive test case construction. Specifically, our method leverages the LLM to generate initial test cases, executes them against known correct and incorrect solutions, and utilizes the failed results as feedback to guide the LLM in refining the test cases toward high fidelity and discriminability. We then apply this method to the CodeContests dataset to construct an optimized high-quality derivative, CodeContests-O. Evaluating against the entire pool of solutions (1.1 × 107 in total), our dataset achieves an average True Positive Rate (TPR) of 89.37% and True Negative Rate (TNR) of 90.89%, significantly outperforming the CodeContests and CodeContests+ by margins of 4.32% and 9.37%, respectively. Furthermore, fine-tuning the Qwen2.5-7B model on CodeContests-O results in a 9.52% improvement on LiveCodeBench (Pass@1). Experiments demonstrate the effectiveness of our framework and the quality of CodeContests-O. To support reproducibility and facilitate future research, we release the hrefhttps://github.com/cai-jianfeng/CodeContests-Ocode and hrefhttps://huggingface.co/datasets/caijanfeng/CodeContests-Odataset.

Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Placed in Reasoning for agents, planning and code, one of 17 directions in LLM reasoning. First posted on arXiv 20 Jan 2026.

Builds on

No reference list yet.

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 2.

2 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025CodeContests+: High-Quality Test Case Generation for Competitive Programming
  2. 2025Can LLMs Generate Reliable Test Case Generators? A Study on Competition-Level Programming Problems
  3. 2025Rethinking Verification for LLM Code Generation: From Generation to Testing
  4. 2024Large Language Models as Test Case Generators: Performance Evaluation and Enhancement
  5. 2025rStar-Coder: Scaling Competitive Code Reasoning with a Large-Scale Verified Dataset
  6. 2025HardTests: Synthesizing High-Quality Test Cases for LLM Coding
  7. 2026LLMs taking shortcuts in test generation: A study with SAP HANA and LevelDB
  8. 2025Learning to Solve and Verify: A Self-Play Framework for Code and Test Generation