Evaluating and Improving Large Language Models for Competitive Program Generation
Minnan Wei, Ziming Li, Xiang Chen, Menglin Zheng, Ziyan Qu, Cheng Yu, Siyu Chen, Xiaolin Ju

TL;DR
This paper evaluates and enhances large language models' ability to solve complex competitive programming problems, addressing challenges like logic, format adherence, and resource constraints, by creating a curated benchmark and targeted improvement methods.
Contribution
It introduces a new benchmark of 80 diverse competitive programming problems and proposes a novel error taxonomy and repair framework to significantly improve LLM performance.
Findings
Initial success rate of 6.25% with basic prompts.
Error taxonomy covering general and specialized errors.
Improvement strategies increased acceptance to 57.5%.
Abstract
Context: Due to the demand for strong algorithmic reasoning, complex logic implementation, and strict adherence to input/output formats and resource constraints, competitive programming generation by large language models (LLMs) is considered the most challenging problem in current LLM-based code generation. However, previous studies often evaluate LLMs using simple prompts and benchmark datasets prone to data leakage. Moreover, prior work has limited consideration of the diversity in algorithm types and difficulty levels. Objective: In this study, we aim to evaluate and improve LLMs in solving real-world competitive programming problems. Methods: We initially collect 117 problems from nine regional ICPC/CCPC contests held in 2024 and design four filtering criteria to construct a curated benchmark consisting of 80 problems. Leveraging DeepSeek-R1 as the LLM, we evaluate its competitive…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
