Reproduce “CodeContests-O: Powering LLMs via Feedback-Driven Iterative Test Case Generation” on OpenResearch
Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Jianfeng Cai, Jinhua Zhu, Ruopei Sun, Kangwen Zhao, Dongyun Xue, Mingxiao Feng, Wengang Zhou, Houqiang Li
The University of Science and Technology of China presents CodeContests-O, a dataset of high-quality, verifiable test cases for competitive programming, created through a feedback-driven iterative framework. This methodology refines test case generation using real-world code execution results, leading to substantial improvements in the reasoning capabilities of large language models during reinforcement learning training, with a Qwen2.5-7B model achieving a Pass@1 score of 34.57% on LiveCodeBench.
Key insights
- The quality and precision of test cases, specifically their fidelity (True Positive Rate) and discriminability (True Negative Rate), are paramount for enhancing LLM reasoning, rather than simply increasing test case volume.
- Integrating objective, execution-derived feedback in an iterative, closed-loop framework dramatically improves the robustness and challenge level of generated test cases.
- Leveraging feedback to identify false negatives and false positives allows for targeted refinement that effectively exposes subtle flaws and covers complex edge cases in solutions.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.