mlsanityData to 14 Oct 2026

Evaluating and Improving Large Language Models for Competitive Program Generation

arXiv 2506.22954 ↗First posted 28 Jun 2025cs.SI cs.SEcited by 3

Not on the map. Why?

Abstract (arXiv)

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 program generation capabilities through the online judge (OJ) platforms, guided by a carefully designed basic prompt. For incorrect submissions, we construct a fine-grained error taxonomy and then propose a targeted improvement framework by combining a multi-turn dialogue-based repair phase and an information-augmented regeneration phase. Results: Experimental results show that only 5 out of 80 problems are fully accepted when using basic prompts. For the unsolved problems, we construct the error taxonomy, including general errors (such as design, boundary, condition, data type, syntax, and input/output errors) and specialized errors (such as those in mathematical problems, greedy algorithms, and graph theories). After applying our proposed improvement strategies, we substantially increased the number of correct solutions, with 46 out of 80 problems successfully accepted.

Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). First posted on arXiv 28 Jun 2025.

Builds on

No reference list yet.

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 2; 2026: 1.

3 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025LLM-ProS: Analyzing Large Language Models' Performance in Competitive Problem Solving
  2. 2026Where Do Large Language Models Fail on Competitive Programming? A Taxonomy of Failures by Algorithm Type and Difficulty Rating ↗
  3. 2025Holistic Evaluation of State-of-the-Art LLMs for Code Generation
  4. 2025CodeContests+: High-Quality Test Case Generation for Competitive Programming
  5. 2026Narrowing the Complexity Gap in the Evaluation of Large Language Models ↗
  6. 2025ProBench: Benchmarking Large Language Models in Competitive Programming
  7. 2026InteractBench: Benchmarking LLMs on Competitive Programming under Unrevealed Information
  8. 2025Evaluating the Generalization Capabilities of Large Language Models on Code Reasoning