Explaining Competitive-Level Programming Solutions using LLMs
Not on the map. Why?
Abstract (arXiv)
In this paper, we approach competitive-level programming problem-solving as a composite task of reasoning and code generation. We propose a novel method to automatically annotate natural language explanations to textit<problem, solution> pairs. We show that despite poor performance in solving competitive-level programming problems, state-of-the-art LLMs exhibit a strong capacity in describing and explaining solutions. Our explanation generation methodology can generate a structured solution explanation for the problem containing descriptions and analysis. To evaluate the quality of the annotated explanations, we examine their effectiveness in two aspects: 1) satisfying the human programming expert who authored the oracle solution, and 2) aiding LLMs in solving problems more effectively. The experimental results on the CodeContests dataset demonstrate that while LLM GPT3.5's and GPT-4's abilities in describing the solution are comparable, GPT-4 shows a better understanding of the key idea behind the solution.
Key facts. Cited by 13 papers in the map (data through 7 Oct 2026). Builds on 20 of its 35 references that are in the map. First posted on arXiv 11 Jul 2023.
Builds on
20 of 35 references.
References · 20
- 2023GPT-4 Technical Reportcited by 18,132
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,601
- 2022Large Language Models are Zero-Shot Reasonerscited by 4,323
- 2022Competition-Level Code Generation with AlphaCodecited by 1,427
- 2022Least-to-Most Prompting Enables Complex Reasoning in Large Language Modelscited by 1,397
- 2022Solving Quantitative Reasoning Problems with Language Modelscited by 1,359
- 2022Program of Thoughts Prompting: Disentangling Computation from Reasoning for Numerical Reasoning Taskscited by 1,057
- 2023Teaching Large Language Models to Self-Debugcited by 963
- 2022STaR: Bootstrapping Reasoning With Reasoningcited by 895
8 more
- 2022CodeT: Code Generation with Generated Testscited by 369
- 2023LEVER: Learning to Verify Language-to-Code Generation with Executioncited by 228
- 2016DeepCoder: Learning to Write Programscited by 145
- 2023Execution-based Code Generation using Deep Reinforcement Learningcited by 95
- 2022Experiences from Using Code Explanations Generated by Large Language Models in a Web Software Development E-Bookcited by 84
- 2022Iteratively Prompt Pre-trained Language Models for Chain of Thoughtcited by 75
- 2023Comparing Code Explanations Created by Students and Large Language Modelscited by 63
- 2018Neural Program Search: Solving Programming Tasks from Description and Examplescited by 10
Built on by
Citing papers per year: 2023: 3; 2024: 7; 2025: 3.
13 papers.
Sort:
By area:
- 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 1,906
- 2024Can Language Models Solve Olympiad Programming?cited by 70
- 2024What Makes Large Language Models Reason in (Multi-Turn) Code Generation?cited by 29
- 2023LLM-Assisted Code Cleaning For Training Accurate Code Generatorscited by 27
- 2025GSO: Challenging Software Optimization Tasks for Evaluating SWE-Agentscited by 24
- 2024Leveraging Print Debugging to Improve Code Generation in Large Language Modelscited by 15
- 2024Robo-Instruct: Simulator-Augmented Instruction Alignment For Finetuning Code LLMscited by 6
- 2024Think Thrice Before You Act: Progressive Thought Refinement in Large Language Modelscited by 5
- 2023Rescue: Ranking LLM Responses with Partial Ordering to Improve Response Generationcited by 4
- 2025AlgoSimBench: Identifying Algorithmically Similar Problems for Competitive Programmingcited by 2
- 2025Can Multi-turn Self-refined Single Agent LMs with Retrieval Solve Hard Coding Problems?cited by 2
- 2023Function-constrained Program Synthesiscited by 1
- 2025Can Multi-turn Self-refined Single Agent LMs with Retrieval Solve Hard Coding Problems?30 Aug 2025
- 2025AlgoSimBench: Identifying Algorithmically Similar Problems for Competitive Programming21 Jul 2025
- 2025GSO: Challenging Software Optimization Tasks for Evaluating SWE-Agents29 May 2025
- 2024Think Thrice Before You Act: Progressive Thought Refinement in Large Language Models17 Oct 2024
- 2024What Makes Large Language Models Reason in (Multi-Turn) Code Generation?10 Oct 2024
- 2024Evaluating the Quality of Code Comments Generated by Large Language Models for Novice Programmers22 Sep 2024
- 2024Robo-Instruct: Simulator-Augmented Instruction Alignment For Finetuning Code LLMs30 May 2024
- 2024Can Language Models Solve Olympiad Programming?16 Apr 2024
- 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Code12 Mar 2024
- 2024Leveraging Print Debugging to Improve Code Generation in Large Language Models10 Jan 2024
- 2023Function-constrained Program Synthesis27 Nov 2023
- 2023LLM-Assisted Code Cleaning For Training Accurate Code Generators25 Nov 2023
1 more
- 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 1,906
- 2024What Makes Large Language Models Reason in (Multi-Turn) Code Generation?cited by 29
- 2024Think Thrice Before You Act: Progressive Thought Refinement in Large Language Modelscited by 5
- 2025AlgoSimBench: Identifying Algorithmically Similar Problems for Competitive Programmingcited by 2
- 2025AlgoSimBench: Identifying Algorithmically Similar Problems for Competitive Programming21 Jul 2025
- 2024Think Thrice Before You Act: Progressive Thought Refinement in Large Language Models17 Oct 2024
- 2024What Makes Large Language Models Reason in (Multi-Turn) Code Generation?10 Oct 2024
- 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Code12 Mar 2024
- 2024Can Language Models Solve Olympiad Programming?cited by 70
- 2023LLM-Assisted Code Cleaning For Training Accurate Code Generatorscited by 27
- 2024Leveraging Print Debugging to Improve Code Generation in Large Language Modelscited by 15
- 2024Robo-Instruct: Simulator-Augmented Instruction Alignment For Finetuning Code LLMscited by 6
- 2023Rescue: Ranking LLM Responses with Partial Ordering to Improve Response Generationcited by 4
- 2023Function-constrained Program Synthesiscited by 1
- 2024Evaluating the Quality of Code Comments Generated by Large Language Models for Novice Programmerscited by 0
- 2024Evaluating the Quality of Code Comments Generated by Large Language Models for Novice Programmers22 Sep 2024
- 2024Robo-Instruct: Simulator-Augmented Instruction Alignment For Finetuning Code LLMs30 May 2024
- 2024Can Language Models Solve Olympiad Programming?16 Apr 2024
- 2024Leveraging Print Debugging to Improve Code Generation in Large Language Models10 Jan 2024
- 2023Function-constrained Program Synthesis27 Nov 2023
- 2023LLM-Assisted Code Cleaning For Training Accurate Code Generators25 Nov 2023
- 2023Rescue: Ranking LLM Responses with Partial Ordering to Improve Response Generation15 Nov 2023